@alfadocs/ui-kit 1.61.0 → 1.63.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 (319) hide show
  1. package/dist/_chunks/{actions-cell-renderer-CZWGQFKV.js → actions-cell-renderer-BXCpK2_0.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DauvvKX6.js → agenda-card-DR9gDdKp.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-DU7O5Z7R.js → agenda-tray-DGB1Zup-.js} +3 -3
  4. package/dist/_chunks/{ai-credits-notice-MBgQXxsx.js → ai-credits-notice-pK9BOmEz.js} +2 -2
  5. package/dist/_chunks/{ai-permission-notice-BJHutKLE.js → ai-permission-notice-DpRmZ9Q3.js} +4 -4
  6. package/dist/_chunks/{ai-prompt-input-Dzos37rf.js → ai-prompt-input-DSGSe4LH.js} +2 -2
  7. package/dist/_chunks/{alert-BhCstf2h.js → alert-DdDpOi-P.js} +2 -2
  8. package/dist/_chunks/{alia-sidebar-CU3mVL9J.js → alia-sidebar-qe0quZkB.js} +6 -6
  9. package/dist/_chunks/{anamnesis-card-VjJOUl-t.js → anamnesis-card-CsUBOG32.js} +3 -3
  10. package/dist/_chunks/{anamnesis-summary-card-cCj7LPh3.js → anamnesis-summary-card-CMzBLTiN.js} +3 -3
  11. package/dist/_chunks/{anamnesis-summary-rows-C5F08WT6.js → anamnesis-summary-rows-DFWws7mM.js} +11 -11
  12. package/dist/_chunks/{antenatal-schedule-timeline-CfNFrej5.js → antenatal-schedule-timeline-DuaAQj1m.js} +2 -2
  13. package/dist/_chunks/app-frame-DUPEwu4E.js +179 -0
  14. package/dist/_chunks/app-frame-context-CPszhDDb.js +10 -0
  15. package/dist/_chunks/{appointment-card-BXQUZlAJ.js → appointment-card-CL32sux-.js} +3 -3
  16. package/dist/_chunks/{appointment-peek-BvzXHYiD.js → appointment-peek-B5mcDcXt.js} +3 -3
  17. package/dist/_chunks/{appointment-timeline-r-q97cec.js → appointment-timeline-DaHKV81s.js} +4 -4
  18. package/dist/_chunks/{appointment-tray-DF_R9ldY.js → appointment-tray-qtpJt8e0.js} +3 -3
  19. package/dist/_chunks/{audio-recorder-Cssm6jVh.js → audio-recorder-DR-u1qbl.js} +3 -3
  20. package/dist/_chunks/{auth-form-parts-CravOf0L.js → auth-form-parts-Cmb41LSQ.js} +2 -2
  21. package/dist/_chunks/{badge-hnBt8o7n.js → badge-BUk4RjTS.js} +2 -2
  22. package/dist/_chunks/{balance-badge-cell-DMG06b2C.js → balance-badge-cell-tB4u0Nr4.js} +5 -5
  23. package/dist/_chunks/{bishop-score-DxfkcxiV.js → bishop-score-CaNTrikJ.js} +2 -2
  24. package/dist/_chunks/{bmi-calculator-B4kgPqt5.js → bmi-calculator-DjmQ04Ch.js} +4 -4
  25. package/dist/_chunks/{booking-CXaqmdF7.js → booking-CGhOtxad.js} +8 -8
  26. package/dist/_chunks/{button-group-Cfpyu6pc.js → button-group-DCOJhvm3.js} +3 -3
  27. package/dist/_chunks/{calendar-DNTVaK6b.js → calendar-DCr65Kt1.js} +3 -3
  28. package/dist/_chunks/{calendar-workspace-UL5xcpWa.js → calendar-workspace-BgcqB0PI.js} +29 -29
  29. package/dist/_chunks/{care-plan-card-DFQbU_Gd.js → care-plan-card-DJzbwJLl.js} +4 -4
  30. package/dist/_chunks/{care-plan-entry-card-bj784KRk.js → care-plan-entry-card-DPJcP34v.js} +4 -4
  31. package/dist/_chunks/{care-plan-header-DDhyAfVK.js → care-plan-header-1HzbkYcR.js} +4 -4
  32. package/dist/_chunks/{carousel.agent-Csn24G1k.js → carousel.agent-BaRsN-8H.js} +2 -2
  33. package/dist/_chunks/chart-BAeJ7pvD.js +1120 -0
  34. package/dist/_chunks/{chat-input-Ck34Pnmp.js → chat-input-HtTbUUD6.js} +2 -2
  35. package/dist/_chunks/{chat-message-DU0X3Xnl.js → chat-message-fRLZ95O5.js} +2 -2
  36. package/dist/_chunks/{checkbox--ndmyokr.js → checkbox-BjDv-r3o.js} +2 -2
  37. package/dist/_chunks/{checkbox-group-B0oZHNT3.js → checkbox-group-Cw2H5qaq.js} +2 -2
  38. package/dist/_chunks/{clinical-note-card-L6FVM9Gx.js → clinical-note-card-D2bbWksq.js} +3 -3
  39. package/dist/_chunks/{code-block-DiC4bg-o.js → code-block-vwEv1jEa.js} +2 -2
  40. package/dist/_chunks/{connection-status-BAnuwayz.js → connection-status--wYsgreh.js} +3 -3
  41. package/dist/_chunks/{contact-card-C8rEsC4Q.js → contact-card-Czu60UvU.js} +2 -2
  42. package/dist/_chunks/{contact-profile-card-JTRbnbxy.js → contact-profile-card-B4sjoIqf.js} +4 -4
  43. package/dist/_chunks/control-room-rail-DUerqHeo.js +416 -0
  44. package/dist/_chunks/{cycle-calculator-BuFi6ZJa.js → cycle-calculator-D-rwX9Pj.js} +2 -2
  45. package/dist/_chunks/{dashboard-grid-DRnhIlT-.js → dashboard-grid-B2MB7SRS.js} +627 -603
  46. package/dist/_chunks/{data-table-DAPkhyXO.js → data-table-Ck2rIwWF.js} +6 -6
  47. package/dist/_chunks/{data-table-tabs-2t0cdk0h.js → data-table-tabs-BfrnefV5.js} +3 -3
  48. package/dist/_chunks/{dependent-selector-DgaAQc-c.js → dependent-selector-DBr1AhLg.js} +3 -3
  49. package/dist/_chunks/{description-list-CFEw__MT.js → description-list-Q8640NHu.js} +2 -2
  50. package/dist/_chunks/{dev-bypass-button-dTuUuzsT.js → dev-bypass-button--CPzzRSj.js} +2 -2
  51. package/dist/_chunks/{document-preview-DYX669jE.js → document-preview-B1dQm292.js} +4 -4
  52. package/dist/_chunks/{document-scanner-C41n4pNq.js → document-scanner-CVPVLK7z.js} +2 -2
  53. package/dist/_chunks/{due-date-calculator-yYvX8Ww_.js → due-date-calculator-DTfxFJCM.js} +5 -5
  54. package/dist/_chunks/{editable-currency-cell-renderer-6LDFAWUE.js → editable-currency-cell-renderer-1ijmzNWh.js} +4 -4
  55. package/dist/_chunks/{editable-description-D9FsTi8e.js → editable-description-ChGNdYY8.js} +2 -2
  56. package/dist/_chunks/{editor-overlay-BYkcaLCj.js → editor-overlay-CpVO1-Kk.js} +2 -2
  57. package/dist/_chunks/{entity-summary-oD_63dlz.js → entity-summary-BQ9_KA8S.js} +5 -5
  58. package/dist/_chunks/{error-summary-BhM8FEkl.js → error-summary-DrUfuKu1.js} +2 -2
  59. package/dist/_chunks/{face-scheme-C-5V3MsY.js → face-scheme-DAD-mXzM.js} +4 -4
  60. package/dist/_chunks/{fetal-weight-CHv2winC.js → fetal-weight-DycD_Vqr.js} +2 -2
  61. package/dist/_chunks/{field-array-dSkD_ePA.js → field-array-BJYc1xSu.js} +2 -2
  62. package/dist/_chunks/{file-manager-C8bdHsYy.js → file-manager-k85OOFr4.js} +6 -6
  63. package/dist/_chunks/{fiscal-code-input-BSWwda0C.js → fiscal-code-input-DwHb2nVW.js} +2 -2
  64. package/dist/_chunks/{forgot-password-form-CGWV5Q1-.js → forgot-password-form-CgZkEvZy.js} +4 -4
  65. package/dist/_chunks/{freemium-paywall-DjjVPC-5.js → freemium-paywall-r-z48YaT.js} +2 -2
  66. package/dist/_chunks/{gestational-age-calculator-BLccWS_4.js → gestational-age-calculator-BnCAL5a-.js} +5 -5
  67. package/dist/_chunks/{hcg-doubling-CnrY2OVu.js → hcg-doubling-DVDiqFyp.js} +2 -2
  68. package/dist/_chunks/{header-BVHAt7Fi.js → header-_TppWBpK.js} +2 -2
  69. package/dist/_chunks/{header-settings-C200bKyp.js → header-settings-BSH9Gk0J.js} +3 -3
  70. package/dist/_chunks/{heatmap-CRMr7VWC.js → heatmap-Cp8Gn9q-.js} +4 -4
  71. package/dist/_chunks/{help-me-write-templates-C9T8-DcT.js → help-me-write-templates-DFmqnsAa.js} +4 -4
  72. package/dist/_chunks/{hover-card-DbTmj-ea.js → hover-card-CTNhQXWS.js} +2 -2
  73. package/dist/_chunks/{icon-button-dNE6ENLn.js → icon-button-C_1TgRiK.js} +2 -2
  74. package/dist/_chunks/{icon-button-group-Du8IvZek.js → icon-button-group-NIHji7_y.js} +2 -2
  75. package/dist/_chunks/{icon-picker-D5NdDbCL.js → icon-picker-Dq4O32K8.js} +2 -2
  76. package/dist/_chunks/{info-tip-DObdz3w3.js → info-tip-cYszyg6h.js} +2 -2
  77. package/dist/_chunks/{key-value-pair-BNYHAZwD.js → key-value-pair-BscGwZsJ.js} +2 -2
  78. package/dist/_chunks/{kit-extensions-DI2nHVNw.js → kit-extensions-RnddkrXn.js} +6 -6
  79. package/dist/_chunks/{link-gRw3NtOt.js → link-N5_YpLtm.js} +7 -6
  80. package/dist/_chunks/{link-cell-renderer-DvhzS6lu.js → link-cell-renderer-dtEYlxi2.js} +6 -6
  81. package/dist/_chunks/{locale-picker-Bu4YE5b2.js → locale-picker-CeveTnDK.js} +3 -3
  82. package/dist/_chunks/{login-dev-card-DwWWHclZ.js → login-dev-card-PnADNcI9.js} +3 -3
  83. package/dist/_chunks/{marketplace-app-shell-p6hPgVwy.js → marketplace-app-shell-C-2e4eCD.js} +139 -136
  84. package/dist/_chunks/{message-card-CvZlo3Fn.js → message-card-A3mJNqfy.js} +2 -2
  85. package/dist/_chunks/{message-tray-DrS_LOed.js → message-tray-Ft6vSr71.js} +3 -3
  86. package/dist/_chunks/{multi-select-BT23EnSA.js → multi-select-CMaAQQgb.js} +2 -2
  87. package/dist/_chunks/{nav-grid-Byx8PxuB.js → nav-grid-Oc4aCPrg.js} +2 -2
  88. package/dist/_chunks/{note-attachment-Bt2cddsZ.js → note-attachment-D8V7PUiR.js} +3 -3
  89. package/dist/_chunks/{note-timeline-CX9nAgAR.js → note-timeline-CwxPQ2Ak.js} +2 -2
  90. package/dist/_chunks/{notes-panel-6TElt7jQ.js → notes-panel-BRLc2ozF.js} +7 -7
  91. package/dist/_chunks/{notification-card-Qrs52HIA.js → notification-card-c2oX8j3F.js} +2 -2
  92. package/dist/_chunks/{notification-tray-DRm1z97G.js → notification-tray-BR3seWA7.js} +3 -3
  93. package/dist/_chunks/{operator-hero-C_Khr5IU.js → operator-hero-3_RG4Dkj.js} +2 -2
  94. package/dist/_chunks/{optical-prescription-DLIAhJ6f.js → optical-prescription-CxfMsbxi.js} +2 -2
  95. package/dist/_chunks/{panel-header-D_mTdhUp.js → panel-header-BJkaUwnl.js} +2 -2
  96. package/dist/_chunks/{panel-subview-CjZgdWwO.js → panel-subview-yP4qIbKS.js} +3 -3
  97. package/dist/_chunks/{patient-details-BjqKBY2x.js → patient-details-BY8Rwwpi.js} +4 -4
  98. package/dist/_chunks/{patient-field-row-BiI0BPPK.js → patient-field-row-C8ymfffP.js} +8 -8
  99. package/dist/_chunks/{patient-search-B5R7FyFO.js → patient-search-DOnDUVsl.js} +2 -2
  100. package/dist/_chunks/{patient-summary-card-BOgnWKRV.js → patient-summary-card-cmqjIXMk.js} +9 -9
  101. package/dist/_chunks/{payment-automation-upsell-39d5ykBi.js → payment-automation-upsell-C8MEu0t6.js} +4 -4
  102. package/dist/_chunks/{payment-form-v6zZuV1_.js → payment-form-i90DUuNK.js} +2 -2
  103. package/dist/_chunks/{payment-request-card-E3G4aVt6.js → payment-request-card-0DjQgVgX.js} +5 -5
  104. package/dist/_chunks/{pdf-viewer-CNQxa4tv.js → pdf-viewer-DJ9VN7cu.js} +2 -2
  105. package/dist/_chunks/{periodontal-chart-BZ1d6S36.js → periodontal-chart-DCcOEYC6.js} +2 -2
  106. package/dist/_chunks/{periodontal-chart-card-BE5hiQnn.js → periodontal-chart-card-CxdjXFb3.js} +3 -3
  107. package/dist/_chunks/{periodontal-diagnosis-6wybid_W.js → periodontal-diagnosis-B9YmmVmM.js} +5 -5
  108. package/dist/_chunks/{periodontal-risk-chart-CgLwBj5c.js → periodontal-risk-chart-CPy7CNFe.js} +2 -2
  109. package/dist/_chunks/{permission-matrix-DuTkUHxe.js → permission-matrix-BoQjENGV.js} +3 -3
  110. package/dist/_chunks/{popover-DQr_tljb.js → popover-4ZVtH_At.js} +2 -2
  111. package/dist/_chunks/{practice-profile-hero-DPbvYfCs.js → practice-profile-hero-Dfc0F60y.js} +2 -2
  112. package/dist/_chunks/{practice-results-Cktx7KaC.js → practice-results-B8L9ZmtR.js} +4 -4
  113. package/dist/_chunks/{pregnancy-dating-26fcvhAx.js → pregnancy-dating-D2XTELiw.js} +5 -5
  114. package/dist/_chunks/{pregnancy-weight-gain-D8q1IUCT.js → pregnancy-weight-gain-BVvyL-j1.js} +4 -4
  115. package/dist/_chunks/{privacy-lock-BpVgSgMb.js → privacy-lock-CEYJ8ehu.js} +2 -2
  116. package/dist/_chunks/{privacy-mask-BfMC57ST.js → privacy-mask-Ch7743uk.js} +2 -2
  117. package/dist/_chunks/{product-hub-panel-CH4B49ij.js → product-hub-panel-C_ZosrBt.js} +3 -3
  118. package/dist/_chunks/{public-footer-ZWTEG1Rq.js → public-footer-CXOrdAaS.js} +2 -2
  119. package/dist/_chunks/{public-header.agent-BHTDKMsw.js → public-header.agent-DXRA7ebK.js} +3 -3
  120. package/dist/_chunks/{radio-BBbMdbE_.js → radio-BZQs6_36.js} +2 -2
  121. package/dist/_chunks/{radio-group-DicxWJXP.js → radio-group-ChIKyeSJ.js} +3 -3
  122. package/dist/_chunks/{radiograph-panel.agent-DR0gOeSc.js → radiograph-panel.agent-DDNUo4Ul.js} +4 -4
  123. package/dist/_chunks/{registration-form-B8IeB9kd.js → registration-form-BQyT_kBX.js} +5 -5
  124. package/dist/_chunks/{resource-chip-DQeCJzJf.js → resource-chip-DB5jDwUO.js} +2 -2
  125. package/dist/_chunks/{reviews-panel-CHzDqerd.js → reviews-panel-AvsVgtJu.js} +3 -3
  126. package/dist/_chunks/{rich-text-editor-BRuTo2hm.js → rich-text-editor-M2gT_E7f.js} +9 -9
  127. package/dist/_chunks/{sheet-CqvPYNLn.js → sheet-D2PfJl8n.js} +2 -2
  128. package/dist/_chunks/{sidebar-C9Zof0z1.js → sidebar-BS24EnYd.js} +2 -2
  129. package/dist/_chunks/{sign-document-D4iHS_Ug.js → sign-document-CY7xTXbm.js} +2 -2
  130. package/dist/_chunks/{signature-request-BH7yKI01.js → signature-request-BMCHy2ZO.js} +5 -5
  131. package/dist/_chunks/{signature-status-chip-DP3qRijv.js → signature-status-chip-pIoQjvH8.js} +3 -3
  132. package/dist/_chunks/{signed-out-frame-eaOWHpDr.js → signed-out-frame-Rg_GVDnl.js} +4 -4
  133. package/dist/_chunks/{slot-grid-DELa2Nwz.js → slot-grid-dj5f6R2w.js} +2 -2
  134. package/dist/_chunks/{stat-DmjGfXND.js → stat-D2PNJujA.js} +2 -2
  135. package/dist/_chunks/{streaming-text-bPDoG7Y3.js → streaming-text-zFViGexf.js} +2 -2
  136. package/dist/_chunks/{tab-bar-5GppbMGc.js → tab-bar-BEODTG6k.js} +2 -2
  137. package/dist/_chunks/{tag-CS5cXpfx.js → tag-DOZGz0fT.js} +2 -2
  138. package/dist/_chunks/{task-card-zaTU1rQa.js → task-card-BS7Uqevr.js} +2 -2
  139. package/dist/_chunks/{task-editor-CgGcg-2c.js → task-editor-DoiOzNiC.js} +9 -9
  140. package/dist/_chunks/{task-tray-DGMwogWu.js → task-tray-eQU4KJcA.js} +3 -3
  141. package/dist/_chunks/{tasks-panel-xGtiEdcj.js → tasks-panel-8nLwBw6P.js} +7 -7
  142. package/dist/_chunks/{theme-toggle-_cfYEK73.js → theme-toggle-Ctb77x6O.js} +3 -3
  143. package/dist/_chunks/{toast-CNUydTgT.js → toast-6T519aLz.js} +2 -2
  144. package/dist/_chunks/tool-rail-C-03rH2I.js +973 -0
  145. package/dist/_chunks/tooltip-uEBdD1-5.js +178 -0
  146. package/dist/_chunks/{tooth-scheme-05DsRMA5.js → tooth-scheme-Dkh4JwzT.js} +2 -2
  147. package/dist/_chunks/{transcript-panel-CjsiDB1K.js → transcript-panel-XudW5l6l.js} +2 -2
  148. package/dist/_chunks/{treatment-receipt-BSVOfStA.js → treatment-receipt-BdJ36vNP.js} +3 -3
  149. package/dist/_chunks/{use-appointment-details-read-BGVthJFx.js → use-appointment-details-read-D6Gb_OuN.js} +16 -16
  150. package/dist/_chunks/use-edge-resize-CBtem0j2.js +171 -0
  151. package/dist/_chunks/{voice-control-panel-DyKEaFxt.js → voice-control-panel-C0BfY23Y.js} +4 -4
  152. package/dist/_chunks/{warning-stack-CAL9xVo1.js → warning-stack-HYWAytZV.js} +3 -3
  153. package/dist/_chunks/{widget-picker-CkhoG4Rj.js → widget-picker-DlNPGcnu.js} +2 -2
  154. package/dist/_chunks/{workflow-map-BUYG1oXU.js → workflow-map-C2B2qIr1.js} +5 -5
  155. package/dist/agent-catalog.json +13 -1
  156. package/dist/agent-i18n/en.json +10 -0
  157. package/dist/components/_shared/use-apex-legend-scroll.d.ts +11 -0
  158. package/dist/components/_shared/use-apex-x-label-spacing.d.ts +11 -0
  159. package/dist/components/agenda-card/index.js +1 -1
  160. package/dist/components/agenda-tray/index.js +1 -1
  161. package/dist/components/ai-credits-notice/index.js +1 -1
  162. package/dist/components/ai-permission-notice/index.js +1 -1
  163. package/dist/components/ai-prompt-input/index.js +1 -1
  164. package/dist/components/alert/index.js +1 -1
  165. package/dist/components/anamnesis-card/index.js +1 -1
  166. package/dist/components/anamnesis-summary-card/index.js +1 -1
  167. package/dist/components/app-frame/app-frame-context.d.ts +19 -0
  168. package/dist/components/app-frame/app-frame.d.ts +3 -0
  169. package/dist/components/app-frame/index.d.ts +2 -0
  170. package/dist/components/app-frame/index.js +4 -2
  171. package/dist/components/appointment-card/index.js +2 -2
  172. package/dist/components/appointment-details-panel/index.js +1 -1
  173. package/dist/components/appointment-peek/index.js +1 -1
  174. package/dist/components/appointment-timeline/index.js +1 -1
  175. package/dist/components/audio-recorder/index.js +1 -1
  176. package/dist/components/badge/index.js +1 -1
  177. package/dist/components/bishop-score/index.js +1 -1
  178. package/dist/components/bmi-calculator/index.js +1 -1
  179. package/dist/components/booking/index.js +1 -1
  180. package/dist/components/button/index.js +1 -1
  181. package/dist/components/button-group/index.js +1 -1
  182. package/dist/components/calendar/index.js +1 -1
  183. package/dist/components/care-plan-card/index.js +1 -1
  184. package/dist/components/care-plan-entry-card/index.js +1 -1
  185. package/dist/components/care-plan-header/index.js +1 -1
  186. package/dist/components/carousel/index.js +1 -1
  187. package/dist/components/chart/chart.d.ts +3 -1
  188. package/dist/components/chart/index.js +1 -1
  189. package/dist/components/chat-input/index.js +1 -1
  190. package/dist/components/chat-message/index.js +1 -1
  191. package/dist/components/checkbox/index.js +1 -1
  192. package/dist/components/checkbox-group/index.js +1 -1
  193. package/dist/components/clinical-note-card/index.js +1 -1
  194. package/dist/components/connection-status/index.js +1 -1
  195. package/dist/components/contact-card/index.js +1 -1
  196. package/dist/components/contact-profile-card/index.js +1 -1
  197. package/dist/components/control-room-rail/control-room-context.d.ts +10 -4
  198. package/dist/components/control-room-rail/index.js +1 -1
  199. package/dist/components/cycle-calculator/index.js +1 -1
  200. package/dist/components/dashboard-grid/index.js +1 -1
  201. package/dist/components/data-table/index.js +4 -4
  202. package/dist/components/data-table-tabs/index.js +1 -1
  203. package/dist/components/dependent-selector/index.js +1 -1
  204. package/dist/components/description-list/index.js +1 -1
  205. package/dist/components/dev-bypass-button/index.js +1 -1
  206. package/dist/components/document-preview/index.js +1 -1
  207. package/dist/components/document-scanner/index.js +1 -1
  208. package/dist/components/due-date-calculator/index.js +2 -2
  209. package/dist/components/editable-description/index.js +1 -1
  210. package/dist/components/editor-overlay/index.js +1 -1
  211. package/dist/components/entity-summary/index.js +1 -1
  212. package/dist/components/error-summary/index.js +1 -1
  213. package/dist/components/face-scheme/index.js +1 -1
  214. package/dist/components/fetal-weight/index.js +1 -1
  215. package/dist/components/field-array/index.js +1 -1
  216. package/dist/components/file-manager/index.js +1 -1
  217. package/dist/components/fiscal-code-input/index.js +1 -1
  218. package/dist/components/freemium-paywall/index.js +1 -1
  219. package/dist/components/gestational-age-calculator/index.js +1 -1
  220. package/dist/components/hcg-doubling/index.js +1 -1
  221. package/dist/components/header/index.js +1 -1
  222. package/dist/components/header-settings/index.js +1 -1
  223. package/dist/components/heatmap/index.js +1 -1
  224. package/dist/components/hover-card/index.js +1 -1
  225. package/dist/components/icon-button/index.js +1 -1
  226. package/dist/components/icon-button-group/index.js +1 -1
  227. package/dist/components/icon-picker/index.js +1 -1
  228. package/dist/components/info-tip/index.js +1 -1
  229. package/dist/components/key-value-pair/index.js +1 -1
  230. package/dist/components/link/index.js +1 -1
  231. package/dist/components/locale-picker/index.js +1 -1
  232. package/dist/components/message-card/index.js +1 -1
  233. package/dist/components/message-tray/index.js +1 -1
  234. package/dist/components/multi-select/index.js +1 -1
  235. package/dist/components/nav-grid/index.js +1 -1
  236. package/dist/components/note-timeline/index.js +1 -1
  237. package/dist/components/notes-panel/index.js +1 -1
  238. package/dist/components/notification-card/index.js +1 -1
  239. package/dist/components/notification-tray/index.js +1 -1
  240. package/dist/components/operator-hero/index.js +1 -1
  241. package/dist/components/optical-prescription/index.js +1 -1
  242. package/dist/components/panel-header/index.js +1 -1
  243. package/dist/components/panel-subview/index.js +1 -1
  244. package/dist/components/patient-details/index.js +1 -1
  245. package/dist/components/patient-search/index.js +1 -1
  246. package/dist/components/patient-summary-card/index.js +1 -1
  247. package/dist/components/patient-table/index.js +1 -1
  248. package/dist/components/payment-card/index.js +1 -1
  249. package/dist/components/payment-form/index.js +1 -1
  250. package/dist/components/pdf-viewer/index.js +1 -1
  251. package/dist/components/periodontal-chart/index.js +1 -1
  252. package/dist/components/periodontal-chart-card/index.js +1 -1
  253. package/dist/components/periodontal-diagnosis/index.js +1 -1
  254. package/dist/components/periodontal-risk-chart/index.js +1 -1
  255. package/dist/components/permission-matrix/index.js +1 -1
  256. package/dist/components/popover/index.js +1 -1
  257. package/dist/components/practice-profile-hero/index.js +1 -1
  258. package/dist/components/practice-results/index.js +1 -1
  259. package/dist/components/pregnancy-dating/index.js +1 -1
  260. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  261. package/dist/components/privacy-lock/index.js +1 -1
  262. package/dist/components/product-hub-tray/index.js +1 -1
  263. package/dist/components/public-footer/index.js +1 -1
  264. package/dist/components/public-header/index.js +1 -1
  265. package/dist/components/radio/index.js +1 -1
  266. package/dist/components/radio-group/index.js +2 -2
  267. package/dist/components/radiograph-panel/index.js +1 -1
  268. package/dist/components/resource-chip/index.js +1 -1
  269. package/dist/components/reviews-panel/index.js +1 -1
  270. package/dist/components/rich-text-editor/index.js +2 -2
  271. package/dist/components/sheet/index.js +1 -1
  272. package/dist/components/sidebar/index.js +1 -1
  273. package/dist/components/sign-document/index.js +1 -1
  274. package/dist/components/signature-status-chip/index.js +1 -1
  275. package/dist/components/slot-grid/index.js +1 -1
  276. package/dist/components/stat/index.js +1 -1
  277. package/dist/components/stat/stat.d.ts +7 -2
  278. package/dist/components/streaming-text/index.js +1 -1
  279. package/dist/components/tab-bar/index.js +1 -1
  280. package/dist/components/tag/index.js +1 -1
  281. package/dist/components/task-card/index.js +1 -1
  282. package/dist/components/task-editor/index.js +1 -1
  283. package/dist/components/task-tray/index.js +1 -1
  284. package/dist/components/tasks-panel/index.js +1 -1
  285. package/dist/components/theme-toggle/index.js +1 -1
  286. package/dist/components/toast/index.js +1 -1
  287. package/dist/components/tool-rail/index.js +1 -1
  288. package/dist/components/tool-rail/tool-rail.d.ts +7 -0
  289. package/dist/components/tooltip/index.js +1 -1
  290. package/dist/components/tooth-scheme/index.js +1 -1
  291. package/dist/components/transcript-panel/index.js +1 -1
  292. package/dist/components/treatment-receipt/index.js +1 -1
  293. package/dist/components/voice-control-panel/index.js +1 -1
  294. package/dist/components/warning-stack/index.js +1 -1
  295. package/dist/components/widget-picker/index.js +1 -1
  296. package/dist/components/workflow/index.js +1 -1
  297. package/dist/hooks/index.js +1 -1
  298. package/dist/hooks/use-edge-resize.d.ts +5 -1
  299. package/dist/index.js +781 -779
  300. package/dist/patterns/alia-assistant/index.js +1 -1
  301. package/dist/patterns/anamnesis/index.js +1 -1
  302. package/dist/patterns/calendar/index.js +1 -1
  303. package/dist/patterns/forgot-password-form/index.js +1 -1
  304. package/dist/patterns/help-me-write-templates/index.js +1 -1
  305. package/dist/patterns/login-form/index.js +1 -1
  306. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  307. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +3 -0
  308. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  309. package/dist/patterns/registration-form/index.js +1 -1
  310. package/dist/patterns/signature-request/index.js +1 -1
  311. package/dist/patterns/signed-out-frame/index.js +1 -1
  312. package/dist/tokens.css +10 -1
  313. package/package.json +1 -1
  314. package/dist/_chunks/app-frame-CqmDh2v5.js +0 -134
  315. package/dist/_chunks/chart-D7PbNO_M.js +0 -920
  316. package/dist/_chunks/control-room-rail-BbBEIdws.js +0 -379
  317. package/dist/_chunks/tool-rail-Blgibz0a.js +0 -816
  318. package/dist/_chunks/tooltip-Cp-PLePW.js +0 -119
  319. package/dist/_chunks/use-edge-resize-DHbyQwu8.js +0 -149
@@ -2,7 +2,7 @@ import { jsxs as v, jsx as o, Fragment as ge } from "react/jsx-runtime";
2
2
  import { forwardRef as ve, useId as ye, useRef as w, useCallback as W, useImperativeHandle as be, useMemo as xe } from "react";
3
3
  import { c as Ie } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ke } from "react-i18next";
5
- import { I as q } from "./icon-button-dNE6ENLn.js";
5
+ import { I as q } from "./icon-button-C_1TgRiK.js";
6
6
  import { u as we } from "./use-controllable-state-BiY4xTzM.js";
7
7
  import { u as Ce } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
8
  import { u as Ne } from "./registry-DvAUVLHh.js";
@@ -366,4 +366,4 @@ export {
366
366
  Se as P,
367
367
  Te as c
368
368
  };
369
- //# sourceMappingURL=chat-input-Ck34Pnmp.js.map
369
+ //# sourceMappingURL=chat-input-HtTbUUD6.js.map
@@ -5,7 +5,7 @@ import { useTranslation as B } from "react-i18next";
5
5
  import { B as F } from "./button-D-MQxsA_.js";
6
6
  import { A as I } from "./avatar-WZY3eGE7.js";
7
7
  import { T as A } from "./timestamp-DPLDWdxA.js";
8
- import { s as M, C as S } from "./code-block-DiC4bg-o.js";
8
+ import { s as M, C as S } from "./code-block-vwEv1jEa.js";
9
9
  import { s as V } from "./safe-image-src-DstKgCo7.js";
10
10
  import { R as D } from "./rotate-ccw-BBQnIVTr.js";
11
11
  import { C as E } from "./clock-Drd4Wtis.js";
@@ -236,4 +236,4 @@ J.displayName = "ChatMessage";
236
236
  export {
237
237
  J as C
238
238
  };
239
- //# sourceMappingURL=chat-message-DU0X3Xnl.js.map
239
+ //# sourceMappingURL=chat-message-fRLZ95O5.js.map
@@ -3,7 +3,7 @@ import { createContext as T, useContext as _, forwardRef as M, useId as G, useRe
3
3
  import * as b from "@radix-ui/react-checkbox";
4
4
  import { c as A } from "./index-D2ZczOXr.js";
5
5
  import { u as B } from "./use-controllable-state-BiY4xTzM.js";
6
- import { T as F } from "./tooltip-Cp-PLePW.js";
6
+ import { T as F } from "./tooltip-uEBdD1-5.js";
7
7
  import { u as H } from "./registry-DvAUVLHh.js";
8
8
  const W = T(null);
9
9
  function q() {
@@ -223,4 +223,4 @@ export {
223
223
  W as a,
224
224
  q as u
225
225
  };
226
- //# sourceMappingURL=checkbox--ndmyokr.js.map
226
+ //# sourceMappingURL=checkbox-BjDv-r3o.js.map
@@ -3,7 +3,7 @@ import { forwardRef as O, useId as Q, useMemo as S, useState as T, useRef as W,
3
3
  import { c as Z } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as V } from "react-i18next";
5
5
  import { u as ee } from "./use-controllable-state-BiY4xTzM.js";
6
- import { C as M, a as te } from "./checkbox--ndmyokr.js";
6
+ import { C as M, a as te } from "./checkbox-BjDv-r3o.js";
7
7
  import { u as se } from "./registry-DvAUVLHh.js";
8
8
  import { C as ce } from "./circle-alert-rGDZ73Wh.js";
9
9
  const re = {
@@ -210,4 +210,4 @@ oe.displayName = "CheckboxGroup";
210
210
  export {
211
211
  oe as C
212
212
  };
213
- //# sourceMappingURL=checkbox-group-B0oZHNT3.js.map
213
+ //# sourceMappingURL=checkbox-group-Cw2H5qaq.js.map
@@ -3,11 +3,11 @@ import { forwardRef as T, useId as P, useState as k, useMemo as ee } from "react
3
3
  import { c as z } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as se } from "react-i18next";
5
5
  import { A as ae } from "./avatar-WZY3eGE7.js";
6
- import { B as b } from "./badge-hnBt8o7n.js";
6
+ import { B as b } from "./badge-BUk4RjTS.js";
7
7
  import { C as S } from "./card-BA4Ig_kn.js";
8
8
  import { T as B } from "./timestamp-DPLDWdxA.js";
9
9
  import { SafeHtml as ie } from "../safe-html/index.js";
10
- import { n as te, P as I, F as O, N as re } from "./note-attachment-Bt2cddsZ.js";
10
+ import { n as te, P as I, F as O, N as re } from "./note-attachment-D8V7PUiR.js";
11
11
  import { u as de } from "./use-clamp-overflow-DQE2kwZ9.js";
12
12
  import { u as ne } from "./registry-DvAUVLHh.js";
13
13
  const oe = {
@@ -337,4 +337,4 @@ export {
337
337
  ue as C,
338
338
  oe as c
339
339
  };
340
- //# sourceMappingURL=clinical-note-card-L6FVM9Gx.js.map
340
+ //# sourceMappingURL=clinical-note-card-D2bbWksq.js.map
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as v, useState as g, useCallback as x } from "react";
3
3
  import { c as h } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as b } from "react-i18next";
5
- import { I as y } from "./icon-button-dNE6ENLn.js";
5
+ import { I as y } from "./icon-button-C_1TgRiK.js";
6
6
  import { C } from "./check-DrFSN__t.js";
7
7
  import { C as k } from "./copy-vRpqqHtY.js";
8
8
  function F(e) {
@@ -103,4 +103,4 @@ export {
103
103
  B as C,
104
104
  F as s
105
105
  };
106
- //# sourceMappingURL=code-block-DiC4bg-o.js.map
106
+ //# sourceMappingURL=code-block-vwEv1jEa.js.map
@@ -2,9 +2,9 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
2
  import { forwardRef as k, useMemo as B } from "react";
3
3
  import { useTranslation as A } from "react-i18next";
4
4
  import { C as a } from "./card-BA4Ig_kn.js";
5
- import { B as C } from "./badge-hnBt8o7n.js";
5
+ import { B as C } from "./badge-BUk4RjTS.js";
6
6
  import { B as u } from "./button-D-MQxsA_.js";
7
- import { D as d } from "./description-list-CFEw__MT.js";
7
+ import { D as d } from "./description-list-Q8640NHu.js";
8
8
  import { u as N } from "./registry-DvAUVLHh.js";
9
9
  const w = {
10
10
  id: "connection-status",
@@ -105,4 +105,4 @@ export {
105
105
  K as C,
106
106
  w as c
107
107
  };
108
- //# sourceMappingURL=connection-status-BAnuwayz.js.map
108
+ //# sourceMappingURL=connection-status--wYsgreh.js.map
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as r, Fragment as b } from "react";
3
3
  import { useTranslation as k } from "react-i18next";
4
4
  import { C as o } from "./card-BA4Ig_kn.js";
5
- import { L as p } from "./link-gRw3NtOt.js";
5
+ import { L as p } from "./link-N5_YpLtm.js";
6
6
  import { M as v } from "./map-pin-BaY37-Km.js";
7
7
  function L(s) {
8
8
  return `tel:${s.replace(/\(0\)/g, "").replace(/[^\d+]/g, "")}`;
@@ -118,4 +118,4 @@ const M = Object.assign(f, {
118
118
  export {
119
119
  M as C
120
120
  };
121
- //# sourceMappingURL=contact-card-C8rEsC4Q.js.map
121
+ //# sourceMappingURL=contact-card-Czu60UvU.js.map
@@ -2,10 +2,10 @@ import { jsxs as f, jsx as e, Fragment as T } from "react/jsx-runtime";
2
2
  import { forwardRef as le, useId as se, useMemo as ce } from "react";
3
3
  import { c as de } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as pe } from "react-i18next";
5
- import { B as P } from "./badge-hnBt8o7n.js";
5
+ import { B as P } from "./badge-BUk4RjTS.js";
6
6
  import { C as F } from "./card-BA4Ig_kn.js";
7
- import { K as fe, a as ue } from "./key-value-pair-BNYHAZwD.js";
8
- import { L as d } from "./link-gRw3NtOt.js";
7
+ import { K as fe, a as ue } from "./key-value-pair-BscGwZsJ.js";
8
+ import { L as d } from "./link-N5_YpLtm.js";
9
9
  import { b as me } from "./format-price-BKle6Xwt.js";
10
10
  import { u as he } from "./registry-DvAUVLHh.js";
11
11
  import { S as O } from "./stethoscope-sZXGC43m.js";
@@ -315,4 +315,4 @@ export {
315
315
  ke as b,
316
316
  ge as c
317
317
  };
318
- //# sourceMappingURL=contact-profile-card-JTRbnbxy.js.map
318
+ //# sourceMappingURL=contact-profile-card-B4sjoIqf.js.map
@@ -0,0 +1,416 @@
1
+ import { jsx as M, jsxs as P, Fragment as ho } from "react/jsx-runtime";
2
+ import { useState as D, useCallback as R, useMemo as x, useRef as O, useEffect as oo, useContext as N, useId as yo, createContext as Co, forwardRef as wo } from "react";
3
+ import { useTranslation as Ao } from "react-i18next";
4
+ import { I as F } from "./icon-button-C_1TgRiK.js";
5
+ import { a as Mo } from "./panel-header-BJkaUwnl.js";
6
+ import { T as xo } from "./tool-rail-C-03rH2I.js";
7
+ import { u as W } from "./use-persistent-state-nZwZAnE9.js";
8
+ import { S as ko } from "./star-Bf9L2Uot.js";
9
+ import { X as So } from "./x-B5YnXwCz.js";
10
+ const Vo = {
11
+ id: "control-room-rail",
12
+ capabilities: ["open", "close", "select_single"],
13
+ state: {
14
+ activeToolId: {
15
+ type: "string | null",
16
+ descriptionKey: "ui.toolRail.agent.state.activeToolId",
17
+ 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.",
18
+ read: (e) => e.getActiveToolId()
19
+ },
20
+ panelMode: {
21
+ type: "'docked' | 'overlay' | 'full-screen'",
22
+ descriptionKey: "ui.agent.controlRoomRail.state.panelMode",
23
+ 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.",
24
+ read: (e) => e.getPanelMode()
25
+ }
26
+ },
27
+ actions: {
28
+ open: {
29
+ // Pure ephemeral panel state (open) — no data loss, no external effect.
30
+ safety: "read",
31
+ argsType: "{ id: string }",
32
+ argsSchema: {
33
+ type: "object",
34
+ properties: { id: { type: "string" } },
35
+ required: ["id"]
36
+ },
37
+ idempotent: !0,
38
+ descriptionKey: "ui.toolRail.agent.actions.open",
39
+ description: "Open the given tool's panel.",
40
+ examples: [{ args: { id: "inbox" }, note: "Open the inbox tool panel." }],
41
+ invoke: (e, r) => {
42
+ e.open(r.id);
43
+ }
44
+ },
45
+ close: {
46
+ safety: "read",
47
+ idempotent: !0,
48
+ descriptionKey: "ui.toolRail.agent.actions.close",
49
+ description: "Collapse the rail to its strip (no active tool).",
50
+ invoke: (e) => {
51
+ e.close();
52
+ }
53
+ },
54
+ select_tool: {
55
+ safety: "read",
56
+ argsType: "{ id: string | null }",
57
+ argsSchema: {
58
+ type: "object",
59
+ properties: { id: { type: ["string", "null"] } },
60
+ required: ["id"]
61
+ },
62
+ idempotent: !0,
63
+ descriptionKey: "ui.toolRail.agent.actions.selectTool",
64
+ description: "Set the active tool by id (opens its panel), or pass null to collapse.",
65
+ invoke: (e, r) => {
66
+ e.setActiveTool(r.id);
67
+ }
68
+ }
69
+ },
70
+ domHooks: {
71
+ root: {
72
+ attr: "data-component",
73
+ value: "control-room-rail",
74
+ description: "Marks the ControlRoomRail wrapper."
75
+ },
76
+ instanceId: {
77
+ attr: "data-component-id",
78
+ sourceProp: "id",
79
+ description: "Sourced from the id prop. Required to address a specific rail from the agent."
80
+ },
81
+ item: {
82
+ attr: "data-tool-id",
83
+ description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
84
+ }
85
+ }
86
+ }, jo = 1e3, _ = Co(null);
87
+ function Xo({
88
+ globalTools: e = [],
89
+ children: r
90
+ }) {
91
+ const [u, n] = D(
92
+ () => /* @__PURE__ */ new Map()
93
+ ), f = R(
94
+ (l, d) => {
95
+ n((m) => {
96
+ const b = new Map(m);
97
+ return b.set(l, d), b;
98
+ });
99
+ },
100
+ []
101
+ ), v = R((l) => {
102
+ n((d) => {
103
+ if (!d.has(l)) return d;
104
+ const m = new Map(d);
105
+ return m.delete(l), m;
106
+ });
107
+ }, []), c = x(
108
+ () => Array.from(u.values()).flat(),
109
+ [u]
110
+ ), p = O(null), i = O(null), a = R(() => {
111
+ i.current && clearTimeout(i.current.timer), i.current = null;
112
+ }, []), y = R(
113
+ (l, d = () => !0) => {
114
+ if (l) {
115
+ p.current = { handle: l, hasTool: d };
116
+ const m = i.current;
117
+ m && d(m.id) && (a(), l.setActiveTool(m.id));
118
+ return;
119
+ }
120
+ p.current = null, queueMicrotask(() => {
121
+ p.current || a();
122
+ });
123
+ },
124
+ [a]
125
+ );
126
+ oo(() => a, [a]);
127
+ const T = R(
128
+ (l) => {
129
+ a();
130
+ const d = p.current;
131
+ if (d && d.hasTool(l)) {
132
+ d.handle.setActiveTool(l);
133
+ return;
134
+ }
135
+ i.current = {
136
+ id: l,
137
+ timer: setTimeout(a, jo)
138
+ };
139
+ },
140
+ [a]
141
+ ), j = R(() => {
142
+ var l;
143
+ a(), (l = p.current) == null || l.handle.setActiveTool(null);
144
+ }, [a]), k = x(
145
+ () => ({
146
+ globalTools: e,
147
+ contextualTools: c,
148
+ registerContextualTools: f,
149
+ unregisterContextualTools: v,
150
+ registerRail: y,
151
+ openTool: T,
152
+ closeTool: j
153
+ }),
154
+ [
155
+ e,
156
+ c,
157
+ f,
158
+ v,
159
+ y,
160
+ T,
161
+ j
162
+ ]
163
+ );
164
+ return /* @__PURE__ */ M(_.Provider, { value: k, children: r });
165
+ }
166
+ function $o(e) {
167
+ const r = N(_), u = r == null ? void 0 : r.registerContextualTools, n = r == null ? void 0 : r.unregisterContextualTools, f = yo();
168
+ oo(() => {
169
+ if (!(!u || !n))
170
+ return u(f, e), () => n(f);
171
+ }, [u, n, f, e]);
172
+ }
173
+ function Eo() {
174
+ const e = N(_);
175
+ return x(() => {
176
+ if (!e) return [];
177
+ const r = e.contextualTools.map((n) => ({
178
+ ...n,
179
+ scope: "contextual"
180
+ })), u = e.globalTools.map((n) => ({
181
+ ...n,
182
+ scope: "global"
183
+ }));
184
+ return [...r, ...u];
185
+ }, [e]);
186
+ }
187
+ function Go() {
188
+ const e = N(_), r = R(() => {
189
+ }, []);
190
+ return {
191
+ openTool: (e == null ? void 0 : e.openTool) ?? r,
192
+ closeTool: (e == null ? void 0 : e.closeTool) ?? r
193
+ };
194
+ }
195
+ function Oo() {
196
+ const e = N(_), r = R(() => {
197
+ }, []);
198
+ return (e == null ? void 0 : e.registerRail) ?? r;
199
+ }
200
+ function _o(e, r, u, n) {
201
+ const f = r.includes(e), v = u.includes(e);
202
+ if (!f && v) return { toolId: e, action: "pin" };
203
+ if (f && !v)
204
+ return n != null && n.includes(e) ? void 0 : { toolId: e, action: "unpin" };
205
+ const c = (y) => n != null && n.length ? [...n, ...y.filter((T) => !n.includes(T))] : y, p = c(r), i = c(u);
206
+ return p.length !== i.length || p.some((y, T) => i[T] !== y) ? { toolId: e, action: "reorder" } : void 0;
207
+ }
208
+ function I(e, r, u) {
209
+ const n = new Set(u), f = [], v = /* @__PURE__ */ new Map();
210
+ let c = null;
211
+ for (const i of e)
212
+ r(i) ? n.has(i) && (c = i) : c === null ? f.push(i) : v.set(c, [...v.get(c) ?? [], i]);
213
+ const p = [
214
+ ...f,
215
+ ...u.flatMap((i) => [i, ...v.get(i) ?? []])
216
+ ];
217
+ return Array.from(new Set(p));
218
+ }
219
+ const Jo = wo(function({
220
+ tools: r,
221
+ railLabel: u,
222
+ reorderable: n = !0,
223
+ favoriteIds: f,
224
+ defaultFavoriteIds: v,
225
+ pinnedFavoriteIds: c,
226
+ onFavoriteIdsChange: p,
227
+ persistFavoritesKey: i = "ui.controlRoom.favorites",
228
+ activeToolId: a,
229
+ defaultActiveToolId: y = null,
230
+ onActiveToolChange: T,
231
+ panelWidth: j,
232
+ onPanelWidthChange: k,
233
+ persistPanelWidthKey: l,
234
+ ...d
235
+ }, m) {
236
+ const { t: b } = Ao("ui"), [eo, to] = D(
237
+ a ?? y ?? null
238
+ ), K = a !== void 0 ? a : eo, no = R(
239
+ (o) => {
240
+ a === void 0 && to(o), T == null || T(o);
241
+ },
242
+ [a, T]
243
+ ), ro = Eo(), S = r ?? ro, z = f !== void 0, [so, lo] = W(
244
+ i,
245
+ () => v ?? S.filter((o) => o.scope === "global").map((o) => o.id),
246
+ { disabled: z }
247
+ ), U = z ? f : so, V = x(() => c != null && c.length ? [
248
+ ...c,
249
+ ...U.filter((o) => !c.includes(o))
250
+ ] : U, [c, U]), q = j !== void 0, [io, Q] = W(l ?? "ui.controlRoom.panelWidth.unused", null, {
251
+ disabled: q || !l
252
+ }), co = q ? j : l ? io : void 0, ao = R(
253
+ (o) => {
254
+ !q && l && Q(o), k == null || k(o);
255
+ },
256
+ [
257
+ q,
258
+ l,
259
+ Q,
260
+ k
261
+ ]
262
+ ), h = x(() => {
263
+ const o = /* @__PURE__ */ new Map();
264
+ for (const s of S) o.set(s.id, s);
265
+ return o;
266
+ }, [S]), E = x(
267
+ () => new Set(V.filter((o) => h.has(o))),
268
+ [V, h]
269
+ ), X = (o, s) => {
270
+ const t = (w) => h.has(w), g = V.filter(t), C = s(g);
271
+ z || lo(
272
+ (w) => I(w, t, s(w.filter(t)))
273
+ ), p == null || p(
274
+ I(V, t, C),
275
+ _o(o, g, C, c)
276
+ );
277
+ }, $ = x(() => {
278
+ if (!n) return S;
279
+ const o = V.filter((t) => h.has(t)).map((t) => ({
280
+ ...h.get(t),
281
+ scope: "global",
282
+ reorderable: !0
283
+ })), s = S.filter((t) => !E.has(t.id)).map((t) => ({
284
+ ...t,
285
+ scope: "contextual",
286
+ reorderable: !0
287
+ }));
288
+ return [...o, ...s];
289
+ }, [n, S, V, h, E]), [uo, fo] = D(""), B = O(!1), po = (o, s) => {
290
+ const t = s ? b("controlRoom.pinnedAnnounce", {
291
+ tool: o,
292
+ defaultValue: "Pinned {{tool}} to favourites"
293
+ }) : b("controlRoom.unpinnedAnnounce", {
294
+ tool: o,
295
+ defaultValue: "Removed {{tool}} from favourites"
296
+ });
297
+ B.current = !B.current, fo(B.current ? t : `${t}​`);
298
+ }, mo = (o) => {
299
+ var s;
300
+ po(((s = h.get(o)) == null ? void 0 : s.label) ?? o, !E.has(o)), X(
301
+ o,
302
+ (t) => t.includes(o) ? t.filter((g) => g !== o) : [...t, o]
303
+ );
304
+ }, go = (o, s) => {
305
+ var g;
306
+ const t = (g = $[o]) == null ? void 0 : g.id;
307
+ t !== void 0 && X(t, (C) => {
308
+ const w = C.filter((A) => h.has(A)), H = w.length;
309
+ if (o < H) {
310
+ if (s >= H) return w.filter((bo) => bo !== t);
311
+ const A = w.slice();
312
+ return A.splice(o, 1), A.splice(s, 0, t), A;
313
+ }
314
+ if (s <= H) {
315
+ const A = w.slice();
316
+ return A.splice(Math.min(s, H), 0, t), A;
317
+ }
318
+ return C;
319
+ });
320
+ }, Ro = ({
321
+ tool: o,
322
+ from: s,
323
+ to: t
324
+ }) => {
325
+ const g = E.size, C = s < g;
326
+ return C && t >= g ? b("controlRoom.unpinnedAnnounce", {
327
+ tool: o.label,
328
+ defaultValue: "Removed {{tool}} from favourites"
329
+ }) : !C && t <= g ? b("controlRoom.pinnedAnnounce", {
330
+ tool: o.label,
331
+ defaultValue: "Pinned {{tool}} to favourites"
332
+ }) : C && t < g ? b("controlRoom.reorderAnnounce", {
333
+ tool: o.label,
334
+ to: t + 1,
335
+ total: g,
336
+ defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
337
+ }) : "";
338
+ }, G = O(null), J = Oo(), Y = O(h);
339
+ Y.current = h;
340
+ const Z = R((o) => {
341
+ const s = Y.current.get(o);
342
+ return s !== void 0 && !s.disabled;
343
+ }, []), vo = R(
344
+ (o) => {
345
+ G.current = o, J(o, Z), typeof m == "function" ? m(o) : m && (m.current = o);
346
+ },
347
+ [J, Z, m]
348
+ ), L = K != null ? h.get(K) ?? null : null, To = L ? /* @__PURE__ */ P(ho, { children: [
349
+ n ? (() => {
350
+ const o = E.has(L.id);
351
+ return /* @__PURE__ */ M(
352
+ F,
353
+ {
354
+ icon: /* @__PURE__ */ M(
355
+ ko,
356
+ {
357
+ "aria-hidden": "true",
358
+ fill: o ? "currentColor" : "none",
359
+ className: o ? "ds:text-[color:var(--accent)]" : void 0
360
+ }
361
+ ),
362
+ intent: "ghost",
363
+ size: "sm",
364
+ "aria-pressed": o,
365
+ "aria-label": b("controlRoom.favorite", {
366
+ defaultValue: "Favourite"
367
+ }),
368
+ onClick: () => mo(L.id)
369
+ }
370
+ );
371
+ })() : null,
372
+ /* @__PURE__ */ M(
373
+ F,
374
+ {
375
+ icon: /* @__PURE__ */ M(So, { "aria-hidden": "true" }),
376
+ intent: "ghost",
377
+ size: "sm",
378
+ "aria-label": b("controlRoom.close", { defaultValue: "Close" }),
379
+ onClick: () => {
380
+ var o;
381
+ return (o = G.current) == null ? void 0 : o.close();
382
+ }
383
+ }
384
+ )
385
+ ] }) : null;
386
+ return /* @__PURE__ */ P(Mo, { actions: To, children: [
387
+ /* @__PURE__ */ M(
388
+ xo,
389
+ {
390
+ ref: vo,
391
+ dataComponent: "control-room-rail",
392
+ agentAdapter: Vo,
393
+ tools: $,
394
+ activeToolId: a,
395
+ defaultActiveToolId: y,
396
+ onActiveToolChange: no,
397
+ panelWidth: co,
398
+ onPanelWidthChange: ao,
399
+ railLabel: u ?? b("controlRoom.railLabel", { defaultValue: "Control room" }),
400
+ onReorder: n ? go : void 0,
401
+ formatReorderAnnouncement: n ? Ro : void 0,
402
+ ...d
403
+ }
404
+ ),
405
+ n ? /* @__PURE__ */ M("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: uo }) : null
406
+ ] });
407
+ });
408
+ export {
409
+ Xo as C,
410
+ Jo as a,
411
+ Eo as b,
412
+ Vo as c,
413
+ $o as d,
414
+ Go as u
415
+ };
416
+ //# sourceMappingURL=control-room-rail-DUerqHeo.js.map
@@ -7,7 +7,7 @@ import { F as S } from "./form-field-Ani72sVY.js";
7
7
  import { D as Y } from "./date-picker-BSZuKo13.js";
8
8
  import { N as H } from "./number-input-CVwI1ltI.js";
9
9
  import { C as M } from "./card-BA4Ig_kn.js";
10
- import { B as T } from "./badge-hnBt8o7n.js";
10
+ import { B as T } from "./badge-BUk4RjTS.js";
11
11
  import { I as U } from "./insert-result-h3WL-gMo.js";
12
12
  import { a as m, d as V } from "./date-picker-variants-BnF-sHzq.js";
13
13
  import { C as J } from "./check-DrFSN__t.js";
@@ -422,4 +422,4 @@ export {
422
422
  ie as L,
423
423
  se as p
424
424
  };
425
- //# sourceMappingURL=cycle-calculator-BuFi6ZJa.js.map
425
+ //# sourceMappingURL=cycle-calculator-D-rwX9Pj.js.map