@alfadocs/ui-kit 1.149.1 → 1.151.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) 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-Cdsve-XN.js → ai-summary-panel-DyAHCqaj.js} +4 -4
  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-QCv6zW-J.js → anamnesis-summary-rows-CFpaA1GP.js} +4 -4
  8. package/dist/_chunks/{app-frame-DUPEwu4E.js → app-frame-XEjLsLGY.js} +2 -2
  9. package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
  10. package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-FSsTXj1t.js} +84 -71
  11. package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-9hRo85Lx.js} +91 -79
  12. package/dist/_chunks/appointment-peek-CmQM4wvx.js +223 -0
  13. package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-COfoHpoJ.js} +4 -4
  14. package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-BlKwDJKi.js} +3 -3
  15. package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-OghXENKK.js} +4 -4
  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-fQleWmJE.js → calendar-appointment-editor-dialog-BPAfWtm9.js} +590 -583
  18. package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-BudLsUZO.js} +5 -5
  19. package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-DukgSOPH.js} +9 -9
  20. package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-BulUpy0I.js} +2 -2
  21. package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-OmTiQdCg.js} +11 -11
  22. package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-eohONLia.js} +5 -5
  23. package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
  24. package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
  25. package/dist/_chunks/code-BfU9G1ZM.js +15 -0
  26. package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-CqiFs8BH.js} +4 -4
  27. package/dist/_chunks/{connection-status-Bi6KPTlh.js → connection-status-C13KmOPL.js} +2 -2
  28. package/dist/_chunks/control-room-rail-BmpTKtL1.js +456 -0
  29. package/dist/_chunks/{data-grid-CkzbCZSo.js → data-grid-DTAwrOiq.js} +3 -3
  30. package/dist/_chunks/{data-table-DFAYYsSc.js → data-table-CgpHO6EZ.js} +2 -2
  31. package/dist/_chunks/{default-tabs-C45FVzsG.js → default-tabs-CZaDDf1G.js} +4 -4
  32. package/dist/_chunks/{description-list-DA4TgL_I.js → description-list-DaldSpGy.js} +29 -26
  33. package/dist/_chunks/dev-bypass-button-DFcNpCQj.js +24 -0
  34. package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-TbwhY_eK.js} +4 -4
  35. package/dist/_chunks/{editable-currency-cell-renderer-DXJI0fnU.js → editable-currency-cell-renderer-a3CrwNKm.js} +143 -168
  36. package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
  37. package/dist/_chunks/{empty-state-5REM7oDM.js → empty-state-qHtpcasr.js} +65 -77
  38. package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
  39. package/dist/_chunks/{error-boundary-BQ5mRqEd.js → error-boundary-BDS1XStO.js} +2 -2
  40. package/dist/_chunks/{error-page-CdNGIezW.js → error-page-3gWV-Vmj.js} +2 -2
  41. package/dist/_chunks/{error-page-illustration-BdJLuMdV.js → error-page-illustration-CJCjLk_-.js} +125 -149
  42. package/dist/_chunks/{face-scheme-BC2whb1S.js → face-scheme-DRYGaszs.js} +255 -264
  43. package/dist/_chunks/feature-preview-switch-B_8JTya_.js +75 -0
  44. package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DMvYx-Gq.js} +165 -180
  45. package/dist/_chunks/folder-DvNxod7_.js +36 -0
  46. package/dist/_chunks/{heatmap-DvsZ-mcL.js → heatmap-BZNkPkDD.js} +4 -4
  47. package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-VnvlK87x.js} +3 -3
  48. package/dist/_chunks/{info-tip-cCppV1fD.js → info-tip-DkVISvo-.js} +2 -2
  49. package/dist/_chunks/{invoice-upload-list-BReimsvV.js → invoice-upload-list-DutydbjC.js} +3 -3
  50. package/dist/_chunks/{link-cell-renderer-CWLArl5e.js → link-cell-renderer-DTunki79.js} +3 -3
  51. package/dist/_chunks/{login-dev-card-DqUNJcd7.js → login-dev-card-CQz9yhrU.js} +2 -2
  52. package/dist/_chunks/{map-view-n6GiDRWM.js → map-view-B67HXWPR.js} +2 -2
  53. package/dist/_chunks/mark-adrift-LBqHvZwv.js +42 -0
  54. package/dist/_chunks/{marketplace-app-shell-CGA-R-zt.js → marketplace-app-shell-CclaaAvb.js} +3 -3
  55. package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
  56. package/dist/_chunks/{message-tray-Dx2HPcKB.js → message-tray-DysT-DPS.js} +2 -2
  57. package/dist/_chunks/{note-timeline-BbjHMhkL.js → note-timeline-CS5j2OKD.js} +86 -77
  58. package/dist/_chunks/notebook-text-spVSekMN.js +21 -0
  59. package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-d0I3hOEY.js} +363 -341
  60. package/dist/_chunks/{notification-tray-BnC5OItw.js → notification-tray-CjGDlwLg.js} +2 -2
  61. package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-CAnXavjq.js} +3 -3
  62. package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
  63. package/dist/_chunks/panel-right-CnMHSvLU.js +15 -0
  64. package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-B5hnQwfQ.js} +3 -3
  65. package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-DQx_9CYV.js} +3 -3
  66. package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-BOHcm9hT.js} +6 -6
  67. package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-wFIzTz7N.js} +4 -4
  68. package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-BDgfYLgz.js} +202 -201
  69. package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-ZunOre3Q.js} +158 -164
  70. package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BSSfKrcc.js} +3 -3
  71. package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-R-lwrisO.js} +4 -4
  72. package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-C6XlWpEl.js} +3 -3
  73. package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-DlvSUZFX.js} +3 -3
  74. package/dist/_chunks/{practice-results-D0TAgL8v.js → practice-results-CqoB5YAv.js} +5 -5
  75. package/dist/_chunks/{prescription-history-CQuJmd4H.js → prescription-history-CxBM3gnm.js} +4 -4
  76. package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CaLBAxzj.js} +3 -3
  77. package/dist/_chunks/{product-hub-panel-NVpRuJeW.js → product-hub-panel-RJzrDcGp.js} +3 -3
  78. package/dist/_chunks/{public-header.agent-Dzo6ujrE.js → public-header.agent-B2CqVq4s.js} +2 -2
  79. package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-kgCmmgZk.js} +4 -4
  80. package/dist/_chunks/{registration-form-AtRCt8n5.js → registration-form-Dbe1sFZb.js} +2 -2
  81. package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-BkPPA3Fj.js} +4 -4
  82. package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-C-sMq0pb.js} +5 -5
  83. package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-jIz5aP2X.js} +4 -4
  84. package/dist/_chunks/rich-text-editor-DTadvKa7.js +4716 -0
  85. package/dist/_chunks/{scroll-area-CY5SLYNw.js → scroll-area-RQtcKkHf.js} +84 -79
  86. package/dist/_chunks/{sheet-CZDjW9Q-.js → sheet-1LXzej6Q.js} +2 -2
  87. package/dist/_chunks/{sidebar-D5DFYN5K.js → sidebar-BV9JCgS4.js} +2 -2
  88. package/dist/_chunks/{signed-out-frame-CC25CgKo.js → signed-out-frame-CKA8SSbU.js} +2 -2
  89. package/dist/_chunks/{signing-end-screen-Bq6tkFE6.js → signing-end-screen-HXkalppf.js} +2 -2
  90. package/dist/_chunks/{slot-grid-khIpy8Gx.js → slot-grid-DdqeF6PW.js} +2 -2
  91. package/dist/_chunks/{sync-tray-BQD-HuA4.js → sync-tray-CSVGzuur.js} +2 -2
  92. package/dist/_chunks/{task-editor-C-4I2sBa.js → task-editor-aXjGMwYA.js} +6 -6
  93. package/dist/_chunks/{task-tray-CxxcGGgx.js → task-tray-C48Vq8nt.js} +2 -2
  94. package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-BdxHb-fX.js} +3 -3
  95. package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
  96. package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-B4p6MmxA.js} +383 -363
  97. package/dist/_chunks/{toolbar-B9oh9XY9.js → toolbar-B2JJ_XDT.js} +2 -2
  98. package/dist/_chunks/tooth-chip-DOv925IH.js +41 -0
  99. package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
  100. package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
  101. package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-CZQV1NkJ.js} +59 -62
  102. package/dist/_chunks/use-appointment-details-read-BR3TQOHx.js +2091 -0
  103. package/dist/_chunks/user-round-DZxRG9zq.js +15 -0
  104. package/dist/_chunks/{week-availability-D0tTll4q.js → week-availability-D00rMjsX.js} +2 -2
  105. package/dist/_chunks/{workflow-map-F7OThorL.js → workflow-map-DLUTUZ27.js} +2 -2
  106. package/dist/agent-catalog.json +15 -1
  107. package/dist/appointment-editor-panel/index.js +4 -4
  108. package/dist/booking-tools-data/index.js +1 -1
  109. package/dist/browser-support.js +1 -1
  110. package/dist/calendar-action-buttons/index.js +1 -1
  111. package/dist/components/_shared/appointment-format.d.ts +4 -0
  112. package/dist/components/_shared/mark-adrift.d.ts +12 -0
  113. package/dist/components/_shared/patient-field-row.d.ts +5 -1
  114. package/dist/components/_shared/safe-html.d.ts +6 -0
  115. package/dist/components/_shared/tooth-chip.d.ts +21 -0
  116. package/dist/components/address-autocomplete/index.js +1 -1
  117. package/dist/components/address-fields/index.js +1 -1
  118. package/dist/components/agenda-tray/index.js +1 -1
  119. package/dist/components/ai-summary-panel/index.js +1 -1
  120. package/dist/components/anamnesis-card/index.js +1 -1
  121. package/dist/components/app-frame/index.js +1 -1
  122. package/dist/components/appointment-card/index.js +2 -2
  123. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +12 -2
  124. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
  125. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +12 -2
  126. package/dist/components/appointment-details-panel/description-length.d.ts +18 -0
  127. package/dist/components/appointment-details-panel/index.d.ts +1 -0
  128. package/dist/components/appointment-details-panel/index.js +7 -6
  129. package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
  130. package/dist/components/appointment-peek/index.js +1 -1
  131. package/dist/components/appointment-timeline/index.js +1 -1
  132. package/dist/components/bill-line-table/index.js +1 -1
  133. package/dist/components/bill-table/index.js +1 -1
  134. package/dist/components/booking/index.js +1 -1
  135. package/dist/components/calls-panel/index.js +1 -1
  136. package/dist/components/care-plan-card/index.js +1 -1
  137. package/dist/components/care-plan-entry-card/index.js +1 -1
  138. package/dist/components/communications-panel/index.js +1 -1
  139. package/dist/components/connection-status/index.js +1 -1
  140. package/dist/components/control-room-rail/control-room-rail.d.ts +24 -0
  141. package/dist/components/control-room-rail/index.js +1 -1
  142. package/dist/components/data-grid/index.js +2 -2
  143. package/dist/components/data-table/index.js +3 -3
  144. package/dist/components/description-list/index.js +1 -1
  145. package/dist/components/dev-bypass-button/index.js +1 -1
  146. package/dist/components/document-preview/index.js +1 -1
  147. package/dist/components/editable-description/editable-description.d.ts +7 -0
  148. package/dist/components/editable-description/index.js +1 -1
  149. package/dist/components/empty-state/index.js +1 -1
  150. package/dist/components/entity-summary/index.js +1 -1
  151. package/dist/components/error-boundary/index.js +1 -1
  152. package/dist/components/face-scheme/index.js +1 -1
  153. package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
  154. package/dist/components/feature-preview-switch/index.d.ts +2 -0
  155. package/dist/components/feature-preview-switch/index.js +5 -0
  156. package/dist/components/file-manager/index.js +1 -1
  157. package/dist/components/heatmap/index.js +1 -1
  158. package/dist/components/index.d.ts +1 -0
  159. package/dist/components/info-tip/index.js +1 -1
  160. package/dist/components/invoice-upload-list/index.js +1 -1
  161. package/dist/components/map-view/index.js +1 -1
  162. package/dist/components/message-tray/index.js +1 -1
  163. package/dist/components/note-timeline/index.js +1 -1
  164. package/dist/components/note-timeline/note-timeline.d.ts +8 -0
  165. package/dist/components/notes-panel/index.js +1 -1
  166. package/dist/components/notes-panel/notes-panel.d.ts +33 -2
  167. package/dist/components/notification-tray/index.js +1 -1
  168. package/dist/components/optical-prescription/index.js +1 -1
  169. package/dist/components/panel-header/index.js +1 -1
  170. package/dist/components/panel-header/panel-header.d.ts +8 -0
  171. package/dist/components/panel-subview/index.js +1 -1
  172. package/dist/components/patient-details/index.js +1 -1
  173. package/dist/components/patient-summary-card/index.js +1 -1
  174. package/dist/components/patient-summary-card/patient-summary-card.d.ts +9 -0
  175. package/dist/components/patient-table/index.js +1 -1
  176. package/dist/components/payment-card/index.js +1 -1
  177. package/dist/components/practice-results/index.js +1 -1
  178. package/dist/components/product-hub-tray/index.js +1 -1
  179. package/dist/components/public-header/index.js +1 -1
  180. package/dist/components/radiograph-panel/index.js +1 -1
  181. package/dist/components/registry-connection-panel/index.js +1 -1
  182. package/dist/components/reviews-panel/index.js +1 -1
  183. package/dist/components/rich-text-editor/editor-toolbar.d.ts +18 -5
  184. package/dist/components/rich-text-editor/index.d.ts +1 -1
  185. package/dist/components/rich-text-editor/index.js +1 -1
  186. package/dist/components/rich-text-editor/link-bar.d.ts +8 -0
  187. package/dist/components/rich-text-editor/rich-text-editor.d.ts +25 -3
  188. package/dist/components/scroll-area/index.js +1 -1
  189. package/dist/components/scroll-area/scroll-area.d.ts +6 -0
  190. package/dist/components/sheet/index.js +1 -1
  191. package/dist/components/sidebar/index.js +1 -1
  192. package/dist/components/slot-grid/index.js +1 -1
  193. package/dist/components/sync-tray/index.js +1 -1
  194. package/dist/components/task-editor/index.js +1 -1
  195. package/dist/components/task-tray/index.js +1 -1
  196. package/dist/components/tasks-panel/index.js +1 -1
  197. package/dist/components/text-area/index.js +1 -1
  198. package/dist/components/text-area/text-area.d.ts +15 -0
  199. package/dist/components/tool-rail/index.js +1 -1
  200. package/dist/components/tool-rail/tool-rail.d.ts +23 -1
  201. package/dist/components/transaction-chip/index.js +1 -1
  202. package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
  203. package/dist/components/transcript-panel/index.js +1 -1
  204. package/dist/components/treatment-receipt/index.js +1 -1
  205. package/dist/components/treatment-receipt/treatment-receipt.d.ts +6 -1
  206. package/dist/components/week-availability/index.js +1 -1
  207. package/dist/components/workflow/index.js +1 -1
  208. package/dist/core.css +1 -1
  209. package/dist/find-free-slots-panel/index.js +1 -1
  210. package/dist/host-compat.css +4 -1
  211. package/dist/host-legacy.css +63 -4
  212. package/dist/i18n/locales/ar.d.ts +18 -0
  213. package/dist/i18n/locales/ar.js +18 -3
  214. package/dist/i18n/locales/de.d.ts +18 -0
  215. package/dist/i18n/locales/de.js +18 -3
  216. package/dist/i18n/locales/el.d.ts +18 -0
  217. package/dist/i18n/locales/el.js +21 -3
  218. package/dist/i18n/locales/en.d.ts +18 -0
  219. package/dist/i18n/locales/en.js +21 -3
  220. package/dist/i18n/locales/es.d.ts +18 -0
  221. package/dist/i18n/locales/es.js +21 -3
  222. package/dist/i18n/locales/fr.d.ts +18 -0
  223. package/dist/i18n/locales/fr.js +21 -3
  224. package/dist/i18n/locales/hi.d.ts +18 -0
  225. package/dist/i18n/locales/hi.js +18 -3
  226. package/dist/i18n/locales/it.d.ts +28 -10
  227. package/dist/i18n/locales/it.js +31 -13
  228. package/dist/i18n/locales/ja.d.ts +18 -0
  229. package/dist/i18n/locales/ja.js +18 -3
  230. package/dist/i18n/locales/nl.d.ts +18 -0
  231. package/dist/i18n/locales/nl.js +18 -3
  232. package/dist/i18n/locales/pl.d.ts +18 -0
  233. package/dist/i18n/locales/pl.js +21 -3
  234. package/dist/i18n/locales/pt.d.ts +18 -0
  235. package/dist/i18n/locales/pt.js +21 -3
  236. package/dist/i18n/locales/ro.d.ts +18 -0
  237. package/dist/i18n/locales/ro.js +21 -3
  238. package/dist/i18n/locales/ru.d.ts +18 -0
  239. package/dist/i18n/locales/ru.js +18 -3
  240. package/dist/i18n/locales/sq.d.ts +18 -0
  241. package/dist/i18n/locales/sq.js +21 -3
  242. package/dist/i18n/locales/sv.d.ts +18 -0
  243. package/dist/i18n/locales/sv.js +18 -3
  244. package/dist/i18n/locales/tr.d.ts +18 -0
  245. package/dist/i18n/locales/tr.js +18 -3
  246. package/dist/i18n/locales/zh.d.ts +18 -0
  247. package/dist/i18n/locales/zh.js +18 -3
  248. package/dist/index.js +820 -817
  249. package/dist/locales/ar.json +21 -3
  250. package/dist/locales/de.json +21 -3
  251. package/dist/locales/el.json +21 -3
  252. package/dist/locales/en.json +21 -3
  253. package/dist/locales/es.json +21 -3
  254. package/dist/locales/fr.json +21 -3
  255. package/dist/locales/hi.json +21 -3
  256. package/dist/locales/it.json +31 -13
  257. package/dist/locales/ja.json +21 -3
  258. package/dist/locales/nl.json +21 -3
  259. package/dist/locales/pl.json +21 -3
  260. package/dist/locales/pt.json +21 -3
  261. package/dist/locales/ro.json +21 -3
  262. package/dist/locales/ru.json +21 -3
  263. package/dist/locales/sq.json +21 -3
  264. package/dist/locales/sv.json +21 -3
  265. package/dist/locales/tr.json +21 -3
  266. package/dist/locales/zh.json +21 -3
  267. package/dist/online-bookings-panel/index.js +2 -2
  268. package/dist/patterns/alia-assistant/index.js +1 -1
  269. package/dist/patterns/anamnesis/index.js +1 -1
  270. package/dist/patterns/calendar/index.js +4 -4
  271. package/dist/patterns/error-page/index.js +2 -2
  272. package/dist/patterns/help-me-write-templates/index.js +1 -1
  273. package/dist/patterns/login-form/index.js +1 -1
  274. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  275. package/dist/patterns/patient-account-settings/index.js +1 -1
  276. package/dist/patterns/patient-check-in/index.js +1 -1
  277. package/dist/patterns/patient-portal/index.js +2 -2
  278. package/dist/patterns/prescription/index.js +1 -1
  279. package/dist/patterns/registration-form/index.js +1 -1
  280. package/dist/patterns/signed-out-frame/index.js +1 -1
  281. package/dist/patterns/signing/index.js +1 -1
  282. package/dist/redactor.css +9 -0
  283. package/dist/safe-html/index.js +33 -19
  284. package/dist/tokens.css +61 -52
  285. package/dist/waiting-list-panel/index.js +3 -3
  286. package/package.json +5 -1
  287. package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
  288. package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
  289. package/dist/_chunks/control-room-rail-BQvaYowi.js +0 -416
  290. package/dist/_chunks/dev-bypass-button-BzfYGPuf.js +0 -33
  291. package/dist/_chunks/folder-BghC8_S2.js +0 -20
  292. package/dist/_chunks/rich-text-editor-eGdYDPK2.js +0 -4405
  293. package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
  294. package/dist/_chunks/use-appointment-details-read-Bl1DHXQ2.js +0 -1998
  295. /package/dist/{patterns → components}/_shared/mark-pieces.d.ts +0 -0
@@ -1,24 +1,24 @@
1
- import { jsxs as I, jsx as c } from "react/jsx-runtime";
2
- import { forwardRef as kt, useRef as m, useState as R, useMemo as q, useId as Nt, useCallback as B, useEffect as te, useImperativeHandle as zt, Fragment as Lt } from "react";
3
- import * as K from "@radix-ui/react-dialog";
4
- import { c as N } from "./index-D2ZczOXr.js";
5
- import { useTranslation as Ct } from "react-i18next";
6
- import { u as Dt } from "./app-frame-context-CPszhDDb.js";
7
- import { I as he } from "./icon-button-u9VMQn3x.js";
8
- import { D as _t, a as Pt } from "./dialog-container-DHR0byah.js";
9
- import { a as Vt } from "./panel-header-CbtlTe85.js";
10
- import { S as Ze } from "./scroll-area-CY5SLYNw.js";
11
- import { a as Bt } from "./tooltip-uEBdD1-5.js";
12
- import { u as jt } from "./use-controllable-state-BiY4xTzM.js";
13
- import { u as Mt } from "./use-edge-resize-CBtem0j2.js";
14
- import { u as k } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
15
- import { a as Ft, u as Ge, R as Ot } from "./use-list-reflow-C7O4Uqnl.js";
16
- import { u as qt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
17
- import { u as Kt } from "./use-presence-transition-cDwWUXV-.js";
18
- import { u as Ht } from "./use-resolved-theme-B0f1_oyq.js";
19
- import { u as $t } from "./registry-DvAUVLHh.js";
20
- import { X as Ut } from "./x-B5YnXwCz.js";
21
- const Wt = {
1
+ import { jsxs as w, jsx as d } from "react/jsx-runtime";
2
+ import { forwardRef as Vt, useRef as m, useState as I, useMemo as K, useId as Pt, useCallback as B, useEffect as ae, useImperativeHandle as Ot, Fragment as Bt } from "react";
3
+ import * as H from "@radix-ui/react-dialog";
4
+ import { c as k } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as Ft } from "react-i18next";
6
+ import { u as jt } from "./app-frame-context-CPszhDDb.js";
7
+ import { I as xe } from "./icon-button-u9VMQn3x.js";
8
+ import { D as Mt, a as qt } from "./dialog-container-DHR0byah.js";
9
+ import { a as Kt } from "./panel-header-DTc5OFUg.js";
10
+ import { S as et } from "./scroll-area-RQtcKkHf.js";
11
+ import { a as Ht } from "./tooltip-uEBdD1-5.js";
12
+ import { u as $t } from "./use-controllable-state-BiY4xTzM.js";
13
+ import { u as Ut } from "./use-edge-resize-CBtem0j2.js";
14
+ import { u as A } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
15
+ import { a as Wt, u as tt, R as Yt } from "./use-list-reflow-C7O4Uqnl.js";
16
+ import { u as Zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
17
+ import { u as Gt } from "./use-presence-transition-cDwWUXV-.js";
18
+ import { u as Xt } from "./use-resolved-theme-B0f1_oyq.js";
19
+ import { u as Jt } from "./registry-DvAUVLHh.js";
20
+ import { X as Qt } from "./x-B5YnXwCz.js";
21
+ const en = {
22
22
  id: "tool-rail",
23
23
  capabilities: ["open", "close", "select_single"],
24
24
  state: {
@@ -26,13 +26,13 @@ const Wt = {
26
26
  type: "string | null",
27
27
  descriptionKey: "ui.toolRail.agent.state.activeToolId",
28
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: (l) => l.getActiveToolId()
29
+ read: (i) => i.getActiveToolId()
30
30
  },
31
31
  panelMode: {
32
32
  type: "'docked' | 'overlay' | 'full-screen'",
33
33
  descriptionKey: "ui.agent.toolRail.state.panelMode",
34
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: (l) => l.getPanelMode()
35
+ read: (i) => i.getPanelMode()
36
36
  }
37
37
  },
38
38
  actions: {
@@ -51,8 +51,8 @@ const Wt = {
51
51
  descriptionKey: "ui.toolRail.agent.actions.open",
52
52
  description: "Open the given tool's panel.",
53
53
  examples: [{ args: { id: "inbox" }, note: "Open the inbox tool panel." }],
54
- invoke: (l, a) => {
55
- l.open(a.id);
54
+ invoke: (i, a) => {
55
+ i.open(a.id);
56
56
  }
57
57
  },
58
58
  close: {
@@ -60,8 +60,8 @@ const Wt = {
60
60
  idempotent: !0,
61
61
  descriptionKey: "ui.toolRail.agent.actions.close",
62
62
  description: "Collapse the rail to its strip (no active tool).",
63
- invoke: (l) => {
64
- l.close();
63
+ invoke: (i) => {
64
+ i.close();
65
65
  }
66
66
  },
67
67
  select_tool: {
@@ -75,8 +75,8 @@ const Wt = {
75
75
  idempotent: !0,
76
76
  descriptionKey: "ui.toolRail.agent.actions.selectTool",
77
77
  description: "Set the active tool by id (opens its panel), or pass null to collapse.",
78
- invoke: (l, a) => {
79
- l.setActiveTool(a.id);
78
+ invoke: (i, a) => {
79
+ i.setActiveTool(a.id);
80
80
  }
81
81
  }
82
82
  },
@@ -96,11 +96,14 @@ const Wt = {
96
96
  description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
97
97
  }
98
98
  }
99
- }, Yt = "ds:[inline-size:3rem]", Zt = "ds:[inline-size:var(--tool-rail-panel-inline-size,var(--ai-tools-rail-panel-inline-size,22rem))]", Xe = "--tool-rail-panel-inline-size", Gt = 288, Xt = 880, Jt = 352, Qt = 24;
100
- function en(l, a, D) {
101
- return a === void 0 || !Number.isFinite(a) || a <= 0 ? !1 : l === null || !Number.isFinite(l) ? D : D ? l < a + Qt : l < a;
99
+ }, tn = "ds:[inline-size:3rem]", nn = "ds:[inline-size:var(--tool-rail-panel-inline-size,var(--ai-tools-rail-panel-inline-size,22rem))]", nt = "--tool-rail-panel-inline-size", at = "ds:flex-1 ds:min-h-0 ds:[&>*]:max-h-full ds:[&>*]:overflow-y-auto", st = "ds:flex ds:h-full ds:flex-col ds:[&>*]:flex-[1_0_auto]", an = 288, sn = 880, rn = 352, on = 24;
100
+ function ln(i, a, _) {
101
+ return a === void 0 || !Number.isFinite(a) || a <= 0 ? !1 : i === null || !Number.isFinite(i) ? _ : _ ? i < a + on : i < a;
102
102
  }
103
- const tn = N(
103
+ function $(i) {
104
+ return !!(i != null && i.disabled) && !i.disabledReason;
105
+ }
106
+ const dn = k(
104
107
  [
105
108
  // `relative`: an overlaid panel is positioned against the rail.
106
109
  "ds:relative ds:flex ds:shrink-0 ds:h-full",
@@ -125,19 +128,19 @@ const tn = N(
125
128
  },
126
129
  defaultVariants: { side: "end" }
127
130
  }
128
- ), nn = N(
131
+ ), cn = k(
129
132
  [
130
133
  "ds:flex ds:shrink-0 ds:flex-col ds:items-center",
131
134
  "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
132
135
  "ds:gap-[var(--spacing-xs)]",
133
- Yt
136
+ tn
134
137
  ].join(" ")
135
- ), an = N(
138
+ ), un = k(
136
139
  [
137
140
  // Positioned by the caller: `relative` docked, absolute when overlaid.
138
141
  "ds:flex ds:min-h-0 ds:flex-col ds:h-full",
139
142
  "ds:bg-[var(--background)]",
140
- Zt,
143
+ nn,
141
144
  // Open / collapse: the panel fades and slides from the strip. The WIDTH
142
145
  // snaps on purpose — animating it would re-lay-out the main area (a
143
146
  // calendar grid) on every frame. Declared at rest so both directions
@@ -158,7 +161,7 @@ const tn = N(
158
161
  },
159
162
  defaultVariants: { side: "end" }
160
163
  }
161
- ), sn = N("", {
164
+ ), fn = k("", {
162
165
  variants: {
163
166
  mode: {
164
167
  docked: "ds:relative ds:z-[1]",
@@ -186,12 +189,12 @@ const tn = N(
186
189
  }
187
190
  ],
188
191
  defaultVariants: { mode: "docked", side: "end" }
189
- }), rn = [
192
+ }), pn = [
190
193
  "ds:fixed ds:inset-0 ds:z-[var(--z-modal)]",
191
194
  "ds:flex ds:flex-col",
192
195
  "ds:bg-[var(--background)] ds:text-[color:var(--foreground)]",
193
196
  "ds:focus-visible:outline-none"
194
- ].join(" "), on = "ds:relative ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:overflow-clip", Je = N(
197
+ ].join(" "), vn = "ds:relative ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:overflow-clip", rt = k(
195
198
  [
196
199
  "ds:flex ds:min-h-0 ds:flex-col",
197
200
  "ds:transition-[opacity,translate] ds:duration-[var(--animation-duration)]",
@@ -216,7 +219,7 @@ const tn = N(
216
219
  },
217
220
  defaultVariants: { layer: "live" }
218
221
  }
219
- ), ln = 500, dn = [
222
+ ), mn = 500, gn = [
220
223
  "id",
221
224
  "name",
222
225
  "for",
@@ -224,29 +227,29 @@ const tn = N(
224
227
  "data-component-id",
225
228
  "data-testid"
226
229
  ];
227
- function cn(l) {
228
- return window.getComputedStyle(l).transitionDuration.split(",").some((a) => Number.parseFloat(a) > 0);
230
+ function hn(i) {
231
+ return window.getComputedStyle(i).transitionDuration.split(",").some((a) => Number.parseFloat(a) > 0);
229
232
  }
230
- function un(l) {
231
- const a = l.cloneNode(!0), D = l.querySelectorAll("*"), H = a.querySelectorAll("*"), $ = [];
232
- return D.forEach((u, j) => {
233
- var U;
234
- const v = H[j];
235
- if (v && ((u.scrollTop !== 0 || u.scrollLeft !== 0) && $.push([v, u.scrollTop, u.scrollLeft]), u instanceof HTMLCanvasElement && v instanceof HTMLCanvasElement))
233
+ function bn(i) {
234
+ const a = i.cloneNode(!0), _ = i.querySelectorAll("*"), U = a.querySelectorAll("*"), W = [];
235
+ return _.forEach((u, F) => {
236
+ var Y;
237
+ const v = U[F];
238
+ if (v && ((u.scrollTop !== 0 || u.scrollLeft !== 0) && W.push([v, u.scrollTop, u.scrollLeft]), u instanceof HTMLCanvasElement && v instanceof HTMLCanvasElement))
236
239
  try {
237
- (U = v.getContext("2d")) == null || U.drawImage(u, 0, 0);
240
+ (Y = v.getContext("2d")) == null || Y.drawImage(u, 0, 0);
238
241
  } catch {
239
242
  }
240
- }), H.forEach((u) => {
241
- const j = u instanceof SVGElement;
242
- for (const v of dn)
243
- j && v === "id" || u.removeAttribute(v);
243
+ }), U.forEach((u) => {
244
+ const F = u instanceof SVGElement;
245
+ for (const v of gn)
246
+ F && v === "id" || u.removeAttribute(v);
244
247
  if (u.matches("iframe, video, audio, embed, object, source"))
245
248
  for (const v of ["src", "srcdoc", "data", "autoplay"])
246
249
  u.removeAttribute(v);
247
- }), { nodes: Array.from(a.childNodes), scrolls: $ };
250
+ }), { nodes: Array.from(a.childNodes), scrolls: W };
248
251
  }
249
- const fn = N(
252
+ const yn = k(
250
253
  [
251
254
  "ds:absolute ds:[inset-block:0] ds:z-[1] ds:select-none ds:touch-none",
252
255
  "ds:[inline-size:var(--resizable-handle-size)] ds:cursor-col-resize",
@@ -270,7 +273,7 @@ const fn = N(
270
273
  },
271
274
  defaultVariants: { edge: "inline-start" }
272
275
  }
273
- ), pn = N(
276
+ ), xn = k(
274
277
  [
275
278
  "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
276
279
  "ds:inline-flex ds:items-center ds:justify-center",
@@ -283,7 +286,7 @@ const fn = N(
283
286
  "ds:pointer-events-none ds:select-none",
284
287
  "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
285
288
  ].join(" ")
286
- ), Qe = N(
289
+ ), ot = k(
287
290
  // `group/rail-tool` lets an affordance overlay (e.g. a pin star) reveal on
288
291
  // hover / focus-within of the whole slot.
289
292
  ["ds:group/rail-tool ds:relative", "ds:rounded-[var(--radius-sm)]"],
@@ -305,76 +308,77 @@ const fn = N(
305
308
  reorderable: !1
306
309
  }
307
310
  }
308
- ), vn = "ds:opacity-0", et = [
311
+ ), wn = "ds:opacity-0", it = [
309
312
  "ds:transition-opacity ds:duration-[var(--animation-duration)]",
310
313
  "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
311
314
  ].join(" ");
312
- function mn(l, a) {
313
- return l > 99 ? a : String(l);
315
+ function In(i, a) {
316
+ return i > 99 ? a : String(i);
314
317
  }
315
- const gn = kt(
318
+ const Rn = Vt(
316
319
  ({
317
- id: l,
320
+ id: i,
318
321
  tools: a,
319
- activeToolId: D,
320
- defaultActiveToolId: H = null,
321
- onActiveToolChange: $,
322
+ activeToolId: _,
323
+ defaultActiveToolId: U = null,
324
+ onActiveToolChange: W,
322
325
  side: u = "end",
323
- railLabel: j,
326
+ railLabel: F,
324
327
  resizablePanel: v = !1,
325
- panelWidth: U,
326
- onPanelWidthChange: tt,
327
- onReorder: W,
328
- formatReorderAnnouncement: ne,
329
- renderToolAffordance: ae,
330
- renderPanelHeader: be,
331
- dataComponent: nt = "tool-rail",
332
- agentAdapter: at = Wt,
333
- className: st
334
- }, rt) => {
335
- var $e, Ue;
336
- const { t: S } = Ct("ui"), [ot, g] = jt({
337
- value: D,
338
- defaultValue: H,
339
- onChange: $
340
- }), h = ot ?? null, se = m([]), z = m(null), [ye, re] = R(0), _ = m(!1), oe = m(!1), L = q(
328
+ panelPlacement: Y = "auto",
329
+ panelWidth: lt,
330
+ onPanelWidthChange: dt,
331
+ onReorder: Z,
332
+ formatReorderAnnouncement: se,
333
+ renderToolAffordance: re,
334
+ renderPanelHeader: we,
335
+ dataComponent: ct = "tool-rail",
336
+ agentAdapter: ut = en,
337
+ className: ft
338
+ }, pt) => {
339
+ var Ge, Xe;
340
+ const { t: R } = Ft("ui"), [vt, g] = $t({
341
+ value: _,
342
+ defaultValue: U,
343
+ onChange: W
344
+ }), h = vt ?? null, oe = m([]), L = m(null), [Ie, ie] = I(0), V = m(!1), le = m(!1), N = K(
341
345
  () => a.findIndex((e) => e.id === h),
342
346
  [a, h]
343
- ), o = L >= 0 ? a[L] : null, ie = m(o);
344
- o && (ie.current = o);
345
- const it = q(
346
- () => a.findIndex((e) => !e.disabled),
347
+ ), o = N >= 0 ? a[N] : null, de = m(o);
348
+ o && (de.current = o);
349
+ const mt = K(
350
+ () => a.findIndex((e) => !$(e)),
347
351
  [a]
348
- ), xe = q(() => {
352
+ ), Re = K(() => {
349
353
  var t;
350
354
  const e = (t = a[0]) == null ? void 0 : t.scope;
351
355
  return e ? a.findIndex((n) => n.scope && n.scope !== e) : -1;
352
- }, [a]), lt = xe > 0, b = q(() => {
356
+ }, [a]), gt = Re > 0, b = K(() => {
353
357
  var n;
354
358
  const e = a.findIndex((s) => s.reorderable);
355
359
  if (e < 0) return null;
356
360
  let t = e;
357
361
  for (; t + 1 < a.length && ((n = a[t + 1]) != null && n.reorderable); ) t += 1;
358
362
  return { first: e, last: t };
359
- }, [a]), we = !!W && b !== null, dt = Nt(), [M, le] = R(null), [Ie, Y] = R(null), T = m(null), { isAccessible: ct } = Ht(T), P = ct || void 0, { containerRef: Re } = Ft({
363
+ }, [a]), Se = !!Z && b !== null, Te = Pt(), [j, ce] = I(null), [Ee, G] = I(null), E = m(null), { isAccessible: ht } = Xt(E), P = ht || void 0, { containerRef: Ae } = Wt({
360
364
  key: a.map((e) => e.id).join(),
361
365
  reduceMotion: P
362
- }), de = Ge({ reduceMotion: P }), ce = Kt(
366
+ }), ue = tt({ reduceMotion: P }), fe = Gt(
363
367
  o !== null,
364
368
  { reduceMotion: P }
365
- ), C = o === null && ce.mounted, w = o ?? (C ? ie.current : null), { ref: Se } = ce, [ut, ft] = R(null), pt = B(
369
+ ), z = o === null && fe.mounted, x = o ?? (z ? de.current : null), { ref: ke } = fe, [bt, yt] = I(null), xt = B(
366
370
  (e) => {
367
- z.current = e, ft(e), Se(e);
371
+ L.current = e, yt(e), ke(e);
368
372
  },
369
- [Se]
373
+ [ke]
370
374
  );
371
- k(() => {
375
+ A(() => {
372
376
  var n;
373
- const e = z.current;
377
+ const e = L.current;
374
378
  if (!e) return;
375
379
  const t = document.activeElement;
376
- if (C && t instanceof HTMLElement && e.contains(t)) {
377
- const s = (n = ie.current) == null ? void 0 : n.id, r = T.current, d = (s ? r == null ? void 0 : r.querySelector(
380
+ if (z && t instanceof HTMLElement && e.contains(t)) {
381
+ const s = (n = de.current) == null ? void 0 : n.id, r = E.current, c = (s ? r == null ? void 0 : r.querySelector(
378
382
  `[data-tool-id="${CSS.escape(s)}"]`
379
383
  ) : null) ?? /* The tool left the strip with its panel (a host removed it as it
380
384
  closed): the strip's tab stop, else its first enabled icon, so
@@ -384,75 +388,75 @@ const gn = kt(
384
388
  )) ?? (r == null ? void 0 : r.querySelector(
385
389
  "[data-tool-id]:not(:disabled)"
386
390
  ));
387
- t.blur(), e.setAttribute("inert", ""), d == null || d.focus();
391
+ t.blur(), e.setAttribute("inert", ""), c == null || c.focus();
388
392
  return;
389
393
  }
390
- e.toggleAttribute("inert", C);
391
- }, [C]);
392
- const Ee = qt(), [Z, Te] = R(
394
+ e.toggleAttribute("inert", z);
395
+ }, [z]);
396
+ const Le = Zt(), [X, Ne] = I(
393
397
  (o == null ? void 0 : o.id) ?? null
394
- ), y = (o == null ? void 0 : o.id) ?? null, G = !P && !Ee && y !== null && Z !== null && Z !== y;
395
- k(() => {
396
- if (Z === y) return;
397
- if (!G) {
398
- Te(y);
398
+ ), y = (o == null ? void 0 : o.id) ?? null, J = !P && !Le && y !== null && X !== null && X !== y;
399
+ A(() => {
400
+ if (X === y) return;
401
+ if (!J) {
402
+ Ne(y);
399
403
  return;
400
404
  }
401
405
  let e = 0;
402
- const t = () => Te(y), n = requestAnimationFrame(() => {
406
+ const t = () => Ne(y), n = requestAnimationFrame(() => {
403
407
  e = requestAnimationFrame(t);
404
408
  }), s = window.setTimeout(t, 64);
405
409
  return () => {
406
410
  cancelAnimationFrame(n), cancelAnimationFrame(e), window.clearTimeout(s);
407
411
  };
408
- }, [y, Z, G]);
409
- const vt = !!P || Ee, Ae = m(null), [f, ke] = R({ liveId: y, serial: 0, focusLost: !1, leaving: [] });
412
+ }, [y, X, J]);
413
+ const wt = !!P || Le, ze = m(null), [f, Ce] = I({ liveId: y, serial: 0, focusLost: !1, leaving: [] });
410
414
  if (f.liveId !== y) {
411
- const e = f.liveId !== null && y !== null ? (($e = Ae.current) == null ? void 0 : $e.querySelector(
415
+ const e = f.liveId !== null && y !== null ? ((Ge = ze.current) == null ? void 0 : Ge.querySelector(
412
416
  ':scope > [data-tool-rail-layer="live"]'
413
417
  )) ?? null : null, t = f.leaving.filter(
414
418
  (n) => n.toolId !== y
415
419
  );
416
- ke({
420
+ Ce({
417
421
  liveId: y,
418
422
  serial: f.serial + 1,
419
423
  focusLost: (e == null ? void 0 : e.contains(document.activeElement)) ?? !1,
420
- leaving: e && !vt ? [
424
+ leaving: e && !wt ? [
421
425
  ...t.filter((n) => n.toolId !== f.liveId),
422
426
  {
423
427
  exitId: `${f.liveId}:${f.serial}`,
424
428
  toolId: f.liveId,
425
- ...un(e)
429
+ ...bn(e)
426
430
  }
427
431
  ] : t
428
432
  });
429
433
  }
430
- const F = B((e) => {
431
- ke(
434
+ const M = B((e) => {
435
+ Ce(
432
436
  (t) => t.leaving.some((n) => n.exitId === e) ? {
433
437
  ...t,
434
438
  leaving: t.leaving.filter((n) => n.exitId !== e)
435
439
  } : t
436
440
  );
437
- }, []), { leave: Ne } = Ge({
441
+ }, []), { leave: De } = tt({
438
442
  reduceMotion: P,
439
- durationMs: ln
443
+ durationMs: mn
440
444
  });
441
- te(() => {
445
+ ae(() => {
442
446
  for (const { exitId: e } of f.leaving)
443
- Ne(e, () => F(e));
444
- }, [f.leaving, Ne, F]);
445
- const mt = w ? f.leaving : [], gt = ((Ue = f.leaving[f.leaving.length - 1]) == null ? void 0 : Ue.exitId) ?? null, ze = m(f.leaving);
446
- ze.current = f.leaving;
447
- const ht = B(
447
+ De(e, () => M(e));
448
+ }, [f.leaving, De, M]);
449
+ const It = x ? f.leaving : [], Rt = ((Xe = f.leaving[f.leaving.length - 1]) == null ? void 0 : Xe.exitId) ?? null, _e = m(f.leaving);
450
+ _e.current = f.leaving;
451
+ const St = B(
448
452
  (e) => {
449
453
  if (!e || e.childNodes.length > 0) return;
450
- const t = ze.current.find(
454
+ const t = _e.current.find(
451
455
  (n) => n.exitId === e.dataset.exitId
452
456
  );
453
457
  if (t) {
454
- if (!cn(e)) {
455
- F(t.exitId);
458
+ if (!hn(e)) {
459
+ M(t.exitId);
456
460
  return;
457
461
  }
458
462
  e.setAttribute("inert", ""), e.append(...t.nodes);
@@ -460,194 +464,195 @@ const gn = kt(
460
464
  n.scrollTop = s, n.scrollLeft = r;
461
465
  }
462
466
  },
463
- [F]
467
+ [M]
464
468
  );
465
- k(() => {
469
+ A(() => {
466
470
  var t, n;
467
471
  if (!f.focusLost || !y) return;
468
472
  const e = document.activeElement;
469
- e && e !== document.body || (n = (t = T.current) == null ? void 0 : t.querySelector(
473
+ e && e !== document.body || (n = (t = E.current) == null ? void 0 : t.querySelector(
470
474
  `[data-tool-id="${CSS.escape(y)}"]`
471
475
  )) == null || n.focus();
472
476
  }, [f.serial]);
473
- const [bt, Le] = R([]), Ce = m(a);
474
- te(() => {
475
- const e = Ce.current, t = new Set(a.map((s) => s.id)), n = e.filter((s) => !t.has(s.id));
477
+ const [Tt, Ve] = I([]), Pe = m(a);
478
+ ae(() => {
479
+ const e = Pe.current, t = new Set(a.map((s) => s.id)), n = e.filter((s) => !t.has(s.id));
476
480
  if (n.length > 0) {
477
- Le((s) => {
478
- const r = new Set(s.map((d) => d.id));
481
+ Ve((s) => {
482
+ const r = new Set(s.map((c) => c.id));
479
483
  return [
480
484
  ...s,
481
- ...n.filter((d) => !r.has(d.id))
485
+ ...n.filter((c) => !r.has(c.id))
482
486
  ];
483
487
  });
484
488
  for (const s of n)
485
- de.leave(s.id, () => {
486
- Le(
487
- (r) => r.filter((d) => d.id !== s.id)
489
+ ue.leave(s.id, () => {
490
+ Ve(
491
+ (r) => r.filter((c) => c.id !== s.id)
488
492
  );
489
493
  });
490
494
  }
491
- Ce.current = a;
492
- }, [a, de]);
493
- const [yt, xt] = R(""), ue = m(!1), De = B(
495
+ Pe.current = a;
496
+ }, [a, ue]);
497
+ const [Et, At] = I(""), pe = m(!1), Oe = B(
494
498
  (e, t) => {
495
- if (!W || !b) return;
499
+ if (!Z || !b) return;
496
500
  const n = Math.max(
497
501
  b.first,
498
502
  Math.min(b.last, t)
499
503
  );
500
504
  if (n === e) return;
501
- W(e, n);
505
+ Z(e, n);
502
506
  const s = a[e];
503
507
  if (s) {
504
- const r = ne ? ne({ tool: s, from: e, to: n }) : S("toolRail.reorderAnnounce", {
508
+ const r = se ? se({ tool: s, from: e, to: n }) : R("toolRail.reorderAnnounce", {
505
509
  tool: s.label,
506
510
  to: n - b.first + 1,
507
511
  total: b.last - b.first + 1,
508
512
  defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
509
513
  });
510
- r && (ue.current = !ue.current, xt(ue.current ? r : `${r}​`));
514
+ r && (pe.current = !pe.current, At(pe.current ? r : `${r}​`));
511
515
  }
512
516
  },
513
- [W, b, a, S, ne]
514
- ), _e = a[ye], O = L >= 0 ? L : _e && !_e.disabled ? ye : it, wt = B(
517
+ [Z, b, a, R, se]
518
+ ), Be = a[Ie], q = N >= 0 ? N : Be && !$(Be) ? Ie : mt, kt = B(
515
519
  (e, t) => {
516
520
  const n = a.find((s) => s.id === e);
517
- !n || n.disabled || (_.current = t, g(h === e ? null : e));
521
+ !n || n.disabled || (V.current = t, g(h === e ? null : e));
518
522
  },
519
523
  [a, h, g]
520
- ), It = B(
524
+ ), Lt = B(
521
525
  (e) => {
522
- var V, i, x;
526
+ var O;
523
527
  const t = a.length;
524
528
  if (t === 0 || e.altKey) return;
525
529
  let n = null;
526
- if (e.key === "ArrowDown" ? n = (O + 1) % t : e.key === "ArrowUp" ? n = (O - 1 + t) % t : e.key === "Home" ? n = 0 : e.key === "End" && (n = t - 1), n === null) return;
530
+ if (e.key === "ArrowDown" ? n = (q + 1) % t : e.key === "ArrowUp" ? n = (q - 1 + t) % t : e.key === "Home" ? n = 0 : e.key === "End" && (n = t - 1), n === null) return;
527
531
  const s = e.key === "ArrowUp" || e.key === "End";
528
- let r = n, d = 0;
529
- for (; d < t && ((V = a[r]) != null && V.disabled); )
530
- r = s ? (r - 1 + t) % t : (r + 1) % t, d += 1;
531
- (i = a[r]) != null && i.disabled || (e.preventDefault(), re(r), (x = se.current[r]) == null || x.focus());
532
+ let r = n, c = 0;
533
+ for (; c < t && $(a[r]); )
534
+ r = s ? (r - 1 + t) % t : (r + 1) % t, c += 1;
535
+ $(a[r]) || (e.preventDefault(), ie(r), (O = oe.current[r]) == null || O.focus());
532
536
  },
533
- [a, O]
534
- ), p = Dt(), E = (p == null ? void 0 : p.phone) ?? !1, fe = (p == null ? void 0 : p.sharedWidth) ?? null, X = p == null ? void 0 : p.minMainWidth, [A, Pe] = R(!1), J = m(!1);
535
- J.current = A;
536
- const [Q, Ve] = R(null), Be = m(void 0), je = m(null);
537
- k(() => {
537
+ [a, q]
538
+ ), p = jt(), T = (p == null ? void 0 : p.phone) ?? !1, ve = (p == null ? void 0 : p.sharedWidth) ?? null, Q = p == null ? void 0 : p.minMainWidth, [Fe, je] = I(!1), ee = m(!1);
539
+ ee.current = Fe;
540
+ const C = Y === "overlay" || Fe, [te, Me] = I(null), qe = m(void 0), Ke = m(null);
541
+ A(() => {
538
542
  var n;
539
- const e = Be.current;
540
- if (Be.current = h, !E || h === null) {
541
- Q !== null && Ve(null);
543
+ const e = qe.current;
544
+ if (qe.current = h, !T || h === null) {
545
+ te !== null && Me(null);
542
546
  return;
543
547
  }
544
- if (Q === h) return;
548
+ if (te === h) return;
545
549
  if (e !== void 0 && h !== e) {
546
- je.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, Ve(h);
550
+ Ke.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, Me(h);
547
551
  return;
548
552
  }
549
- const t = (n = T.current) == null ? void 0 : n.contains(document.activeElement);
553
+ const t = (n = E.current) == null ? void 0 : n.contains(document.activeElement);
550
554
  g(null), t && (p == null || p.focusMain());
551
- }, [E, h, Q, g, p]);
552
- const pe = E && o !== null && Q === o.id;
553
- te(() => {
554
- const e = T.current;
555
+ }, [T, h, te, g, p]);
556
+ const me = T && o !== null && te === o.id;
557
+ ae(() => {
558
+ const e = E.current;
555
559
  if (!e) return;
556
560
  const t = (n) => {
557
- if (n.key !== "Escape" || L < 0 || n.target instanceof Element && n.target.closest(`[${Pt}]`))
561
+ if (n.key !== "Escape" || N < 0 || n.target instanceof Element && n.target.closest(`[${qt}]`))
558
562
  return;
559
563
  n.preventDefault();
560
- const s = L;
561
- g(null), re(s), requestAnimationFrame(() => {
564
+ const s = N;
565
+ g(null), ie(s), requestAnimationFrame(() => {
562
566
  var r;
563
- (r = se.current[s]) == null || r.focus();
567
+ (r = oe.current[s]) == null || r.focus();
564
568
  });
565
569
  };
566
570
  return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
567
- }, [L, g]), te(() => {
568
- if (!A || !o || E) return;
571
+ }, [N, g]), ae(() => {
572
+ if (!C || !o || T) return;
569
573
  const e = (t) => {
570
574
  t.key !== "Escape" || t.defaultPrevented || (t.preventDefault(), g(null));
571
575
  };
572
576
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
573
- }, [A, o, E, g]), k(() => {
577
+ }, [C, o, T, g]), A(() => {
574
578
  var e;
575
- o && _.current && ((e = z.current) == null || e.focus()), _.current = !1;
579
+ o && V.current && ((e = L.current) == null || e.focus()), V.current = !1;
576
580
  }, [o]);
577
- const Me = u === "end" || A ? "inline-start" : "inline-end", { separatorProps: Fe, isResizing: ee, isResized: Oe } = Mt({
578
- edge: Me,
579
- targetRef: z,
580
- cssProperty: Xe,
581
- minSize: Gt,
582
- maxSize: Xt,
583
- defaultSize: Jt,
581
+ const He = u === "end" || C ? "inline-start" : "inline-end", { separatorProps: $e, isResizing: ne, isResized: Ue } = Ut({
582
+ edge: He,
583
+ targetRef: L,
584
+ cssProperty: nt,
585
+ minSize: an,
586
+ maxSize: sn,
587
+ defaultSize: rn,
584
588
  disabled: !v,
585
589
  // A width the user cannot change or reset is a trap: the controlled
586
590
  // value applies only while the handle is on.
587
- size: v ? U : void 0,
588
- onResize: tt
589
- }), ve = Fe["aria-valuenow"];
590
- k(() => {
591
+ size: v ? lt : void 0,
592
+ onResize: dt
593
+ }), ge = $e["aria-valuenow"];
594
+ A(() => {
591
595
  var e;
592
- !v || !Oe || !o || (e = z.current) == null || e.style.setProperty(
593
- Xe,
594
- `${ve}px`
596
+ !v || !Ue || !o || (e = L.current) == null || e.style.setProperty(
597
+ nt,
598
+ `${ge}px`
595
599
  );
596
- }, [o, v, Oe, ve]);
597
- const [Rt, St] = R(null), qe = !!p && !E && X !== void 0;
598
- k(() => {
599
- const e = z.current;
600
- if (!e || !o || !qe || typeof ResizeObserver > "u") return;
600
+ }, [o, v, Ue, ge]);
601
+ const [Nt, zt] = I(null), We = !!p && !T && Q !== void 0;
602
+ A(() => {
603
+ const e = L.current;
604
+ if (!e || !o || !We || typeof ResizeObserver > "u") return;
601
605
  const t = new ResizeObserver(() => {
602
606
  const n = e.offsetWidth;
603
- St((s) => s === n ? s : n);
607
+ zt((s) => s === n ? s : n);
604
608
  });
605
609
  return t.observe(e), () => t.disconnect();
606
- }, [o, qe]), k(() => {
610
+ }, [o, We]), A(() => {
607
611
  var r;
608
- if (!p || E || X === void 0) {
609
- J.current && Pe(!1);
612
+ if (!p || T || Q === void 0) {
613
+ ee.current && je(!1);
610
614
  return;
611
615
  }
612
- if (ee) return;
613
- const e = z.current;
616
+ if (ne) return;
617
+ const e = L.current;
614
618
  if (!o || !e) return;
615
- const t = ((r = Re.current) == null ? void 0 : r.getBoundingClientRect().width) ?? 0, n = fe === null ? null : fe - t - e.offsetWidth, s = en(
619
+ const t = ((r = Ae.current) == null ? void 0 : r.getBoundingClientRect().width) ?? 0, n = ve === null ? null : ve - t - e.offsetWidth, s = ln(
616
620
  n,
617
- X,
618
- J.current
621
+ Q,
622
+ ee.current
619
623
  );
620
- s !== J.current && Pe(s);
624
+ s !== ee.current && je(s);
621
625
  }, [
622
626
  p,
623
- E,
624
- fe,
625
- X,
626
- o,
627
+ T,
627
628
  ve,
628
- ee,
629
- Rt
629
+ Q,
630
+ o,
631
+ ge,
632
+ ne,
633
+ Nt
630
634
  ]);
631
- const me = m(h);
632
- me.current = h;
633
- const Ke = m("docked");
634
- Ke.current = pe ? "full-screen" : A ? "overlay" : "docked";
635
- const ge = q(
635
+ const he = m(h);
636
+ he.current = h;
637
+ const Ye = m("docked");
638
+ Ye.current = me ? "full-screen" : C ? "overlay" : "docked";
639
+ const be = K(
636
640
  () => ({
637
- getActiveToolId: () => me.current,
638
- getPanelMode: () => Ke.current,
641
+ getActiveToolId: () => he.current,
642
+ getPanelMode: () => Ye.current,
639
643
  setActiveTool: (e) => {
640
- _.current = !1, g(e);
644
+ var t;
645
+ e !== null && ((t = a.find((n) => n.id === e)) != null && t.disabled) || (V.current = !1, g(e));
641
646
  },
642
647
  open: (e) => {
643
648
  const t = a.find((n) => n.id === e);
644
- !t || t.disabled || (_.current = !1, g(e));
649
+ !t || t.disabled || (V.current = !1, g(e));
645
650
  },
646
651
  close: () => {
647
- const e = me.current;
648
- _.current = !1, g(null), e != null && requestAnimationFrame(() => {
652
+ const e = he.current;
653
+ V.current = !1, g(null), e != null && requestAnimationFrame(() => {
649
654
  var t, n;
650
- (n = (t = T.current) == null ? void 0 : t.querySelector(
655
+ (n = (t = E.current) == null ? void 0 : t.querySelector(
651
656
  `[data-tool-id="${CSS.escape(e)}"]`
652
657
  )) == null || n.focus();
653
658
  });
@@ -655,149 +660,151 @@ const gn = kt(
655
660
  }),
656
661
  [a, g]
657
662
  );
658
- zt(rt, () => ge, [ge]), $t(at, ge, l);
659
- const Et = S("toolRail.badgeCountOverflow", {
663
+ Ot(pt, () => be, [be]), Jt(ut, be, i);
664
+ const Ct = R("toolRail.badgeCountOverflow", {
660
665
  defaultValue: "99+"
661
- }), He = j ?? S("toolRail.railLabel", { defaultValue: "Tools" });
662
- return /* @__PURE__ */ I(
666
+ }), Ze = F ?? R("toolRail.railLabel", { defaultValue: "Tools" });
667
+ return /* @__PURE__ */ w(
663
668
  "aside",
664
669
  {
665
- ref: T,
666
- "aria-label": He,
667
- "data-component": nt,
668
- "data-component-id": l,
670
+ ref: E,
671
+ "aria-label": Ze,
672
+ "data-component": ct,
673
+ "data-component-id": i,
669
674
  "data-side": u,
670
- "data-panel-mode": pe ? "full-screen" : A ? "overlay" : "docked",
671
- className: [tn({ side: u }), st].filter(Boolean).join(" "),
675
+ "data-panel-mode": me ? "full-screen" : C ? "overlay" : "docked",
676
+ className: [dn({ side: u }), ft].filter(Boolean).join(" "),
672
677
  children: [
673
- we ? /* @__PURE__ */ c("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: yt }) : null,
674
- w && !E ? /* @__PURE__ */ I(
678
+ Se ? /* @__PURE__ */ d("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: Et }) : null,
679
+ x && !T ? /* @__PURE__ */ w(
675
680
  "section",
676
681
  {
677
- ref: pt,
682
+ ref: xt,
678
683
  tabIndex: -1,
679
- "aria-label": S("toolRail.panelLabel", {
680
- tool: w.label,
684
+ "aria-label": R("toolRail.panelLabel", {
685
+ tool: x.label,
681
686
  defaultValue: "{{tool}} panel"
682
687
  }),
683
- "aria-hidden": C || void 0,
684
- "data-tool-rail-state": C ? "collapsing" : "expanded",
685
- "data-presence": ce.phase,
686
- "data-active-tool": w.id,
687
- "data-resizing": ee ? "" : void 0,
688
+ "aria-hidden": z || void 0,
689
+ "data-tool-rail-state": z ? "collapsing" : "expanded",
690
+ "data-presence": fe.phase,
691
+ "data-active-tool": x.id,
692
+ "data-resizing": ne ? "" : void 0,
688
693
  className: [
689
694
  // Overlaid, it slides in from the strip on its inline end.
690
- an({ side: A ? "end" : u }),
691
- sn({
692
- mode: A ? "overlay" : "docked",
695
+ un({ side: C ? "end" : u }),
696
+ fn({
697
+ mode: C ? "overlay" : "docked",
693
698
  side: u
694
699
  }),
695
700
  "ds:focus-visible:outline-none"
696
701
  ].filter(Boolean).join(" "),
697
702
  children: [
698
- /* @__PURE__ */ I(_t, { container: ut, children: [
699
- be ? be(w, { isActive: !C }) : null,
700
- /* @__PURE__ */ I("div", { ref: Ae, className: on, children: [
701
- mt.map((e) => /* @__PURE__ */ c(
703
+ /* @__PURE__ */ w(Mt, { container: bt, children: [
704
+ we ? we(x, { isActive: !z }) : null,
705
+ /* @__PURE__ */ w("div", { ref: ze, className: vn, children: [
706
+ It.map((e) => /* @__PURE__ */ d(
702
707
  "div",
703
708
  {
704
- ref: ht,
709
+ ref: St,
705
710
  "aria-hidden": "true",
706
711
  "data-exit-id": e.exitId,
707
712
  "data-tool-rail-body": e.toolId,
708
713
  "data-tool-rail-layer": "leaving",
709
- "data-presence": G && e.exitId === gt ? "present" : "leaving",
710
- className: Je({ layer: "leaving" }),
714
+ "data-presence": J && e.exitId === Rt ? "present" : "leaving",
715
+ className: rt({ layer: "leaving" }),
711
716
  onTransitionEnd: (t) => {
712
- t.target === t.currentTarget && F(e.exitId);
717
+ t.target === t.currentTarget && M(e.exitId);
713
718
  }
714
719
  },
715
720
  e.exitId
716
721
  )),
717
- /* @__PURE__ */ I(
722
+ /* @__PURE__ */ w(
718
723
  "div",
719
724
  {
720
- "data-tool-rail-body": w.id,
725
+ "data-tool-rail-body": x.id,
721
726
  "data-tool-rail-layer": "live",
722
- "data-presence": G ? "entering" : "present",
723
- className: Je({ layer: "live" }),
727
+ "data-presence": J ? "entering" : "present",
728
+ className: rt({ layer: "live" }),
724
729
  children: [
725
- w.header ? /* @__PURE__ */ c("div", { className: "ds:shrink-0", children: w.header }) : null,
726
- w.fill ? (
730
+ x.header ? /* @__PURE__ */ d("div", { className: "ds:shrink-0", children: x.header }) : null,
731
+ x.fill ? (
727
732
  // data-tool-fill: a self-scrolling panel owns its own native
728
733
  // scroll, so a token rule paints its scrollbar to match the
729
734
  // 8px overlay. See tokens/index.css.
730
- /* @__PURE__ */ c("div", { "data-tool-fill": "", className: "ds:flex-1 ds:min-h-0", children: w.panel })
731
- ) : /* @__PURE__ */ c(
732
- Ze,
735
+ /* @__PURE__ */ d("div", { "data-tool-fill": "", className: at, children: x.panel })
736
+ ) : /* @__PURE__ */ d(
737
+ et,
733
738
  {
734
739
  orientation: "vertical",
740
+ fillViewport: !0,
735
741
  className: "ds:flex-1 ds:min-h-0",
736
- children: w.panel
742
+ children: /* @__PURE__ */ d("div", { "data-tool-flow": "", className: st, children: x.panel })
737
743
  }
738
744
  )
739
745
  ]
740
746
  },
741
- w.id
747
+ x.id
742
748
  )
743
749
  ] })
744
750
  ] }),
745
- v ? /* @__PURE__ */ c(
751
+ v ? /* @__PURE__ */ d(
746
752
  "div",
747
753
  {
748
- ...Fe,
749
- "aria-label": S("toolRail.resizePanel", {
754
+ ...$e,
755
+ "aria-label": R("toolRail.resizePanel", {
750
756
  defaultValue: "Resize tool panel"
751
757
  }),
752
- "data-resizing": ee ? "" : void 0,
753
- className: fn({ edge: Me })
758
+ "data-resizing": ne ? "" : void 0,
759
+ className: yn({ edge: He })
754
760
  }
755
761
  ) : null
756
762
  ]
757
763
  }
758
764
  ) : null,
759
- pe && o ? /* @__PURE__ */ c(
760
- K.Root,
765
+ me && o ? /* @__PURE__ */ d(
766
+ H.Root,
761
767
  {
762
768
  open: !0,
763
769
  onOpenChange: (e) => {
764
770
  e || g(null);
765
771
  },
766
- children: /* @__PURE__ */ c(K.Portal, { children: /* @__PURE__ */ I(
767
- K.Content,
772
+ children: /* @__PURE__ */ d(H.Portal, { children: /* @__PURE__ */ w(
773
+ H.Content,
768
774
  {
769
775
  "aria-describedby": void 0,
770
776
  "data-component": "tool-rail-panel",
771
777
  "data-active-tool": o.id,
772
- className: rn,
778
+ className: pn,
773
779
  onCloseAutoFocus: (e) => {
774
- const t = je.current;
780
+ const t = Ke.current;
775
781
  t != null && t.isConnected && (e.preventDefault(), t.focus());
776
782
  },
777
783
  children: [
778
- /* @__PURE__ */ I("div", { className: "ds:flex ds:shrink-0 ds:justify-end ds:p-[var(--spacing-xs)]", children: [
779
- /* @__PURE__ */ c(K.Title, { className: "ds:sr-only", children: S("toolRail.panelLabel", {
784
+ /* @__PURE__ */ w("div", { className: "ds:flex ds:shrink-0 ds:justify-end ds:p-[var(--spacing-xs)]", children: [
785
+ /* @__PURE__ */ d(H.Title, { className: "ds:sr-only", children: R("toolRail.panelLabel", {
780
786
  tool: o.label,
781
787
  defaultValue: "{{tool}} panel"
782
788
  }) }),
783
- /* @__PURE__ */ c(K.Close, { asChild: !0, children: /* @__PURE__ */ c(
784
- he,
789
+ /* @__PURE__ */ d(H.Close, { asChild: !0, children: /* @__PURE__ */ d(
790
+ xe,
785
791
  {
786
- icon: /* @__PURE__ */ c(Ut, { "aria-hidden": "true" }),
792
+ icon: /* @__PURE__ */ d(Qt, { "aria-hidden": "true" }),
787
793
  intent: "ghost",
788
794
  size: "lg",
789
- "aria-label": S("common.close", { defaultValue: "Close" })
795
+ "aria-label": R("common.close", { defaultValue: "Close" })
790
796
  }
791
797
  ) })
792
798
  ] }),
793
- /* @__PURE__ */ I(Vt, { actions: null, children: [
794
- o.header ? /* @__PURE__ */ c("div", { className: "ds:shrink-0", children: o.header }) : null,
795
- o.fill ? /* @__PURE__ */ c("div", { "data-tool-fill": "", className: "ds:flex-1 ds:min-h-0", children: o.panel }) : /* @__PURE__ */ c(
796
- Ze,
799
+ /* @__PURE__ */ w(Kt, { actions: null, children: [
800
+ o.header ? /* @__PURE__ */ d("div", { className: "ds:shrink-0", children: o.header }) : null,
801
+ o.fill ? /* @__PURE__ */ d("div", { "data-tool-fill": "", className: at, children: o.panel }) : /* @__PURE__ */ d(
802
+ et,
797
803
  {
798
804
  orientation: "vertical",
805
+ fillViewport: !0,
799
806
  className: "ds:flex-1 ds:min-h-0",
800
- children: o.panel
807
+ children: /* @__PURE__ */ d("div", { "data-tool-flow": "", className: st, children: o.panel })
801
808
  }
802
809
  )
803
810
  ] })
@@ -806,24 +813,24 @@ const gn = kt(
806
813
  ) })
807
814
  }
808
815
  ) : null,
809
- /* @__PURE__ */ c(Bt, { children: /* @__PURE__ */ I(
816
+ /* @__PURE__ */ d(Ht, { children: /* @__PURE__ */ w(
810
817
  "div",
811
818
  {
812
- ref: Re,
819
+ ref: Ae,
813
820
  role: "toolbar",
814
821
  "aria-orientation": "vertical",
815
- "aria-label": He,
816
- className: nn(),
817
- onKeyDown: It,
822
+ "aria-label": Ze,
823
+ className: cn(),
824
+ onKeyDown: Lt,
818
825
  children: [
819
826
  a.map((e, t) => {
820
- const n = e.id === h, s = typeof e.badgeCount == "number" && e.badgeCount > 0, r = s ? S("toolRail.toolWithCount", {
827
+ const n = e.id === h, s = typeof e.badgeCount == "number" && e.badgeCount > 0, r = s ? R("toolRail.toolWithCount", {
821
828
  tool: e.label,
822
829
  count: e.badgeCount,
823
830
  defaultValue: "{{tool}}, {{count}} updates"
824
- }) : e.label, d = we && !!e.reorderable && !e.disabled, V = d ? `${dt}-${e.id}` : void 0;
825
- return /* @__PURE__ */ I(Lt, { children: [
826
- lt && t === xe ? /* @__PURE__ */ c(
831
+ }) : e.label, c = Se && !!e.reorderable && !e.disabled, O = c ? `${Te}-${e.id}` : void 0, D = e.disabled ? e.disabledReason : void 0, ye = D ? `${Te}-${e.id}-reason` : void 0;
832
+ return /* @__PURE__ */ w(Bt, { children: [
833
+ gt && t === Re ? /* @__PURE__ */ d(
827
834
  "div",
828
835
  {
829
836
  role: "separator",
@@ -831,100 +838,113 @@ const gn = kt(
831
838
  className: "ds:my-[var(--spacing-2xs)] ds:h-px ds:w-[var(--spacing-lg)] ds:shrink-0 ds:bg-[var(--border)] ds:forced-colors:bg-[CanvasText]"
832
839
  }
833
840
  ) : null,
834
- /* @__PURE__ */ I(
841
+ /* @__PURE__ */ w(
835
842
  "div",
836
843
  {
837
844
  className: [
838
- Qe({
839
- dragging: M === t,
840
- dropTarget: Ie === t && M !== t,
841
- reorderable: d
845
+ ot({
846
+ dragging: j === t,
847
+ dropTarget: Ee === t && j !== t,
848
+ reorderable: c
842
849
  }),
843
- et,
844
- Ot
850
+ it,
851
+ Yt
845
852
  ].filter(Boolean).join(" "),
846
853
  "data-reflow-id": e.id,
847
- "data-dragging": M === t ? "" : void 0,
848
- draggable: d || void 0,
849
- onDragStart: d ? (i) => {
850
- le(t), i.dataTransfer.effectAllowed = "move", i.dataTransfer.setData(
854
+ "data-dragging": j === t ? "" : void 0,
855
+ draggable: c || void 0,
856
+ onDragStart: c ? (l) => {
857
+ ce(t), l.dataTransfer.effectAllowed = "move", l.dataTransfer.setData(
851
858
  "text/plain",
852
859
  String(t)
853
860
  );
854
861
  } : void 0,
855
- onDragOver: d ? (i) => {
856
- M !== null && (i.preventDefault(), i.dataTransfer.dropEffect = "move", Ie !== t && Y(t));
862
+ onDragOver: c ? (l) => {
863
+ j !== null && (l.preventDefault(), l.dataTransfer.dropEffect = "move", Ee !== t && G(t));
857
864
  } : void 0,
858
- onDragLeave: d ? () => Y((i) => i === t ? null : i) : void 0,
859
- onDrop: d ? (i) => {
860
- i.preventDefault();
861
- const x = M;
862
- Y(null), le(null), !(x === null || x === t) && De(x, t);
865
+ onDragLeave: c ? () => G((l) => l === t ? null : l) : void 0,
866
+ onDrop: c ? (l) => {
867
+ l.preventDefault();
868
+ const S = j;
869
+ G(null), ce(null), !(S === null || S === t) && Oe(S, t);
863
870
  } : void 0,
864
- onDragEnd: d ? () => {
865
- le(null), Y(null);
871
+ onDragEnd: c ? () => {
872
+ ce(null), G(null);
866
873
  } : void 0,
867
874
  children: [
868
- /* @__PURE__ */ c(
869
- he,
875
+ /* @__PURE__ */ d(
876
+ xe,
870
877
  {
871
- ref: (i) => {
872
- se.current[t] = i;
878
+ ref: (l) => {
879
+ oe.current[t] = l;
873
880
  },
874
881
  icon: e.icon,
875
- tooltip: e.label,
882
+ tooltip: D ?? e.label,
876
883
  "aria-label": r,
877
884
  intent: "ghost",
878
885
  size: "sm",
879
- disabled: e.disabled,
886
+ disabled: e.disabled && !D,
887
+ "aria-disabled": D ? !0 : void 0,
888
+ className: D ? "ds:aria-disabled:focus-visible:opacity-100 ds:aria-disabled:focus-visible:*:opacity-50" : void 0,
880
889
  "aria-pressed": n,
881
890
  "aria-expanded": n,
882
891
  "data-active": n ? e.id : void 0,
883
892
  "data-tool-id": e.id,
884
- "aria-describedby": V,
885
- "aria-keyshortcuts": d ? "Alt+ArrowUp Alt+ArrowDown" : void 0,
886
- tabIndex: t === O ? 0 : -1,
893
+ "aria-describedby": ye ?? O,
894
+ "aria-keyshortcuts": c ? "Alt+ArrowUp Alt+ArrowDown" : void 0,
895
+ tabIndex: t === q ? 0 : -1,
887
896
  onFocus: () => {
888
- e.disabled || re(t);
897
+ $(e) || ie(t);
889
898
  },
890
- onClick: () => wt(e.id, oe.current),
891
- onKeyDown: (i) => {
892
- if (i.key === "Enter" || i.key === " ") {
893
- oe.current = !0;
899
+ onClick: (l) => {
900
+ if (D) {
901
+ l.preventDefault();
894
902
  return;
895
903
  }
896
- if (d && i.altKey && b) {
897
- let x = null;
898
- if (i.key === "ArrowUp" ? x = t - 1 : i.key === "ArrowDown" ? x = t + 1 : i.key === "Home" ? x = b.first : i.key === "End" && (x = b.last), x !== null) {
899
- i.preventDefault();
900
- const Tt = Math.max(
904
+ kt(e.id, le.current);
905
+ },
906
+ onKeyDown: (l) => {
907
+ if (l.key === "Enter" || l.key === " ") {
908
+ le.current = !0;
909
+ return;
910
+ }
911
+ if (c && l.altKey && b) {
912
+ let S = null;
913
+ if (l.key === "ArrowUp" ? S = t - 1 : l.key === "ArrowDown" ? S = t + 1 : l.key === "Home" ? S = b.first : l.key === "End" && (S = b.last), S !== null) {
914
+ l.preventDefault();
915
+ const Dt = Math.max(
901
916
  b.first,
902
- Math.min(b.last, x)
903
- ), At = e.id;
904
- De(t, Tt), requestAnimationFrame(() => {
905
- var We, Ye;
906
- (Ye = (We = T.current) == null ? void 0 : We.querySelector(
907
- `[data-tool-id="${CSS.escape(At)}"]`
908
- )) == null || Ye.focus();
917
+ Math.min(b.last, S)
918
+ ), _t = e.id;
919
+ Oe(t, Dt), requestAnimationFrame(() => {
920
+ var Je, Qe;
921
+ (Qe = (Je = E.current) == null ? void 0 : Je.querySelector(
922
+ `[data-tool-id="${CSS.escape(_t)}"]`
923
+ )) == null || Qe.focus();
909
924
  });
910
925
  }
911
926
  }
912
927
  },
913
- onKeyUp: (i) => {
914
- (i.key === "Enter" || i.key === " ") && (oe.current = !1);
928
+ onKeyUp: (l) => {
929
+ (l.key === "Enter" || l.key === " ") && (le.current = !1);
915
930
  }
916
931
  }
917
932
  ),
918
- s ? /* @__PURE__ */ c("span", { "aria-hidden": "true", className: pn(), children: mn(
933
+ s ? /* @__PURE__ */ d("span", { "aria-hidden": "true", className: xn(), children: In(
919
934
  e.badgeCount,
920
- Et
935
+ Ct
921
936
  ) }) : null,
922
- ae == null ? void 0 : ae(e, {
937
+ re == null ? void 0 : re(e, {
923
938
  index: t,
924
939
  isActive: n,
925
- isRovingTarget: t === O
940
+ isRovingTarget: t === q
926
941
  }),
927
- V ? /* @__PURE__ */ c("span", { id: V, className: "ds:sr-only", children: S("toolRail.reorderInstructions", {
942
+ ye ? (
943
+ /* Hidden: it is the icon's description, not a second
944
+ copy of the reason to read in the toolbar. */
945
+ /* @__PURE__ */ d("span", { id: ye, hidden: !0, children: D })
946
+ ) : null,
947
+ O ? /* @__PURE__ */ d("span", { id: O, className: "ds:sr-only", children: R("toolRail.reorderInstructions", {
928
948
  tool: e.label,
929
949
  defaultValue: "Reorder {{tool}}. Press Alt + Up or Alt + Down to move."
930
950
  }) }) : null
@@ -933,22 +953,22 @@ const gn = kt(
933
953
  )
934
954
  ] }, e.id);
935
955
  }),
936
- bt.map(
937
- (e) => de.isLeaving(e.id) ? /* @__PURE__ */ c(
956
+ Tt.map(
957
+ (e) => ue.isLeaving(e.id) ? /* @__PURE__ */ d(
938
958
  "div",
939
959
  {
940
960
  className: [
941
- Qe({
961
+ ot({
942
962
  dragging: !1,
943
963
  dropTarget: !1,
944
964
  reorderable: !1
945
965
  }),
946
- et,
947
- vn
966
+ it,
967
+ wn
948
968
  ].filter(Boolean).join(" "),
949
969
  "aria-hidden": "true",
950
- children: /* @__PURE__ */ c(
951
- he,
970
+ children: /* @__PURE__ */ d(
971
+ xe,
952
972
  {
953
973
  icon: e.icon,
954
974
  intent: "ghost",
@@ -969,9 +989,9 @@ const gn = kt(
969
989
  );
970
990
  }
971
991
  );
972
- gn.displayName = "ToolRail";
992
+ Rn.displayName = "ToolRail";
973
993
  export {
974
- gn as T,
975
- Wt as t
994
+ Rn as T,
995
+ en as t
976
996
  };
977
- //# sourceMappingURL=tool-rail-DjPEiBa2.js.map
997
+ //# sourceMappingURL=tool-rail-B4p6MmxA.js.map