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