@alfadocs/ui-kit-debug 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 (502) hide show
  1. package/dist/_chunks/{actions-cell-renderer-CZWGQFKV.js → actions-cell-renderer-BXCpK2_0.js} +3 -3
  2. package/dist/_chunks/{actions-cell-renderer-CZWGQFKV.js.map → actions-cell-renderer-BXCpK2_0.js.map} +1 -1
  3. package/dist/_chunks/{agenda-card-DauvvKX6.js → agenda-card-DR9gDdKp.js} +2 -2
  4. package/dist/_chunks/{agenda-card-DauvvKX6.js.map → agenda-card-DR9gDdKp.js.map} +1 -1
  5. package/dist/_chunks/{agenda-tray-DU7O5Z7R.js → agenda-tray-DGB1Zup-.js} +3 -3
  6. package/dist/_chunks/{agenda-tray-DU7O5Z7R.js.map → agenda-tray-DGB1Zup-.js.map} +1 -1
  7. package/dist/_chunks/{ai-credits-notice-MBgQXxsx.js → ai-credits-notice-pK9BOmEz.js} +2 -2
  8. package/dist/_chunks/{ai-credits-notice-MBgQXxsx.js.map → ai-credits-notice-pK9BOmEz.js.map} +1 -1
  9. package/dist/_chunks/{ai-permission-notice-BJHutKLE.js → ai-permission-notice-DpRmZ9Q3.js} +4 -4
  10. package/dist/_chunks/{ai-permission-notice-BJHutKLE.js.map → ai-permission-notice-DpRmZ9Q3.js.map} +1 -1
  11. package/dist/_chunks/{ai-prompt-input-Dzos37rf.js → ai-prompt-input-DSGSe4LH.js} +2 -2
  12. package/dist/_chunks/{ai-prompt-input-Dzos37rf.js.map → ai-prompt-input-DSGSe4LH.js.map} +1 -1
  13. package/dist/_chunks/{alert-BhCstf2h.js → alert-DdDpOi-P.js} +2 -2
  14. package/dist/_chunks/{alert-BhCstf2h.js.map → alert-DdDpOi-P.js.map} +1 -1
  15. package/dist/_chunks/{alia-sidebar-CU3mVL9J.js → alia-sidebar-qe0quZkB.js} +6 -6
  16. package/dist/_chunks/{alia-sidebar-CU3mVL9J.js.map → alia-sidebar-qe0quZkB.js.map} +1 -1
  17. package/dist/_chunks/{anamnesis-card-VjJOUl-t.js → anamnesis-card-CsUBOG32.js} +3 -3
  18. package/dist/_chunks/{anamnesis-card-VjJOUl-t.js.map → anamnesis-card-CsUBOG32.js.map} +1 -1
  19. package/dist/_chunks/{anamnesis-summary-card-cCj7LPh3.js → anamnesis-summary-card-CMzBLTiN.js} +3 -3
  20. package/dist/_chunks/{anamnesis-summary-card-cCj7LPh3.js.map → anamnesis-summary-card-CMzBLTiN.js.map} +1 -1
  21. package/dist/_chunks/{anamnesis-summary-rows-C5F08WT6.js → anamnesis-summary-rows-DFWws7mM.js} +11 -11
  22. package/dist/_chunks/{anamnesis-summary-rows-C5F08WT6.js.map → anamnesis-summary-rows-DFWws7mM.js.map} +1 -1
  23. package/dist/_chunks/{antenatal-schedule-timeline-CfNFrej5.js → antenatal-schedule-timeline-DuaAQj1m.js} +2 -2
  24. package/dist/_chunks/{antenatal-schedule-timeline-CfNFrej5.js.map → antenatal-schedule-timeline-DuaAQj1m.js.map} +1 -1
  25. package/dist/_chunks/app-frame-DUPEwu4E.js +179 -0
  26. package/dist/_chunks/app-frame-DUPEwu4E.js.map +1 -0
  27. package/dist/_chunks/app-frame-context-CPszhDDb.js +10 -0
  28. package/dist/_chunks/app-frame-context-CPszhDDb.js.map +1 -0
  29. package/dist/_chunks/{appointment-card-BXQUZlAJ.js → appointment-card-CL32sux-.js} +3 -3
  30. package/dist/_chunks/{appointment-card-BXQUZlAJ.js.map → appointment-card-CL32sux-.js.map} +1 -1
  31. package/dist/_chunks/{appointment-peek-BvzXHYiD.js → appointment-peek-B5mcDcXt.js} +3 -3
  32. package/dist/_chunks/{appointment-peek-BvzXHYiD.js.map → appointment-peek-B5mcDcXt.js.map} +1 -1
  33. package/dist/_chunks/{appointment-timeline-r-q97cec.js → appointment-timeline-DaHKV81s.js} +4 -4
  34. package/dist/_chunks/{appointment-timeline-r-q97cec.js.map → appointment-timeline-DaHKV81s.js.map} +1 -1
  35. package/dist/_chunks/{appointment-tray-DF_R9ldY.js → appointment-tray-qtpJt8e0.js} +3 -3
  36. package/dist/_chunks/{appointment-tray-DF_R9ldY.js.map → appointment-tray-qtpJt8e0.js.map} +1 -1
  37. package/dist/_chunks/{audio-recorder-Cssm6jVh.js → audio-recorder-DR-u1qbl.js} +3 -3
  38. package/dist/_chunks/{audio-recorder-Cssm6jVh.js.map → audio-recorder-DR-u1qbl.js.map} +1 -1
  39. package/dist/_chunks/{auth-form-parts-CravOf0L.js → auth-form-parts-Cmb41LSQ.js} +2 -2
  40. package/dist/_chunks/{auth-form-parts-CravOf0L.js.map → auth-form-parts-Cmb41LSQ.js.map} +1 -1
  41. package/dist/_chunks/{badge-hnBt8o7n.js → badge-BUk4RjTS.js} +2 -2
  42. package/dist/_chunks/{badge-hnBt8o7n.js.map → badge-BUk4RjTS.js.map} +1 -1
  43. package/dist/_chunks/{balance-badge-cell-DMG06b2C.js → balance-badge-cell-tB4u0Nr4.js} +5 -5
  44. package/dist/_chunks/{balance-badge-cell-DMG06b2C.js.map → balance-badge-cell-tB4u0Nr4.js.map} +1 -1
  45. package/dist/_chunks/{bishop-score-DxfkcxiV.js → bishop-score-CaNTrikJ.js} +2 -2
  46. package/dist/_chunks/{bishop-score-DxfkcxiV.js.map → bishop-score-CaNTrikJ.js.map} +1 -1
  47. package/dist/_chunks/{bmi-calculator-B4kgPqt5.js → bmi-calculator-DjmQ04Ch.js} +4 -4
  48. package/dist/_chunks/{bmi-calculator-B4kgPqt5.js.map → bmi-calculator-DjmQ04Ch.js.map} +1 -1
  49. package/dist/_chunks/{booking-CXaqmdF7.js → booking-CGhOtxad.js} +8 -8
  50. package/dist/_chunks/{booking-CXaqmdF7.js.map → booking-CGhOtxad.js.map} +1 -1
  51. package/dist/_chunks/{button-group-Cfpyu6pc.js → button-group-DCOJhvm3.js} +3 -3
  52. package/dist/_chunks/{button-group-Cfpyu6pc.js.map → button-group-DCOJhvm3.js.map} +1 -1
  53. package/dist/_chunks/{calendar-DNTVaK6b.js → calendar-DCr65Kt1.js} +3 -3
  54. package/dist/_chunks/{calendar-DNTVaK6b.js.map → calendar-DCr65Kt1.js.map} +1 -1
  55. package/dist/_chunks/{calendar-workspace-UL5xcpWa.js → calendar-workspace-BgcqB0PI.js} +29 -29
  56. package/dist/_chunks/{calendar-workspace-UL5xcpWa.js.map → calendar-workspace-BgcqB0PI.js.map} +1 -1
  57. package/dist/_chunks/{care-plan-card-DFQbU_Gd.js → care-plan-card-DJzbwJLl.js} +4 -4
  58. package/dist/_chunks/{care-plan-card-DFQbU_Gd.js.map → care-plan-card-DJzbwJLl.js.map} +1 -1
  59. package/dist/_chunks/{care-plan-entry-card-bj784KRk.js → care-plan-entry-card-DPJcP34v.js} +4 -4
  60. package/dist/_chunks/{care-plan-entry-card-bj784KRk.js.map → care-plan-entry-card-DPJcP34v.js.map} +1 -1
  61. package/dist/_chunks/{care-plan-header-DDhyAfVK.js → care-plan-header-1HzbkYcR.js} +4 -4
  62. package/dist/_chunks/{care-plan-header-DDhyAfVK.js.map → care-plan-header-1HzbkYcR.js.map} +1 -1
  63. package/dist/_chunks/{carousel.agent-Csn24G1k.js → carousel.agent-BaRsN-8H.js} +2 -2
  64. package/dist/_chunks/{carousel.agent-Csn24G1k.js.map → carousel.agent-BaRsN-8H.js.map} +1 -1
  65. package/dist/_chunks/chart-BAeJ7pvD.js +1120 -0
  66. package/dist/_chunks/chart-BAeJ7pvD.js.map +1 -0
  67. package/dist/_chunks/{chat-input-Ck34Pnmp.js → chat-input-HtTbUUD6.js} +2 -2
  68. package/dist/_chunks/{chat-input-Ck34Pnmp.js.map → chat-input-HtTbUUD6.js.map} +1 -1
  69. package/dist/_chunks/{chat-message-DU0X3Xnl.js → chat-message-fRLZ95O5.js} +2 -2
  70. package/dist/_chunks/{chat-message-DU0X3Xnl.js.map → chat-message-fRLZ95O5.js.map} +1 -1
  71. package/dist/_chunks/{checkbox--ndmyokr.js → checkbox-BjDv-r3o.js} +2 -2
  72. package/dist/_chunks/{checkbox--ndmyokr.js.map → checkbox-BjDv-r3o.js.map} +1 -1
  73. package/dist/_chunks/{checkbox-group-B0oZHNT3.js → checkbox-group-Cw2H5qaq.js} +2 -2
  74. package/dist/_chunks/{checkbox-group-B0oZHNT3.js.map → checkbox-group-Cw2H5qaq.js.map} +1 -1
  75. package/dist/_chunks/{clinical-note-card-L6FVM9Gx.js → clinical-note-card-D2bbWksq.js} +3 -3
  76. package/dist/_chunks/{clinical-note-card-L6FVM9Gx.js.map → clinical-note-card-D2bbWksq.js.map} +1 -1
  77. package/dist/_chunks/{code-block-DiC4bg-o.js → code-block-vwEv1jEa.js} +2 -2
  78. package/dist/_chunks/{code-block-DiC4bg-o.js.map → code-block-vwEv1jEa.js.map} +1 -1
  79. package/dist/_chunks/{connection-status-BAnuwayz.js → connection-status--wYsgreh.js} +3 -3
  80. package/dist/_chunks/{connection-status-BAnuwayz.js.map → connection-status--wYsgreh.js.map} +1 -1
  81. package/dist/_chunks/{contact-card-C8rEsC4Q.js → contact-card-Czu60UvU.js} +2 -2
  82. package/dist/_chunks/{contact-card-C8rEsC4Q.js.map → contact-card-Czu60UvU.js.map} +1 -1
  83. package/dist/_chunks/{contact-profile-card-JTRbnbxy.js → contact-profile-card-B4sjoIqf.js} +4 -4
  84. package/dist/_chunks/{contact-profile-card-JTRbnbxy.js.map → contact-profile-card-B4sjoIqf.js.map} +1 -1
  85. package/dist/_chunks/control-room-rail-DUerqHeo.js +416 -0
  86. package/dist/_chunks/control-room-rail-DUerqHeo.js.map +1 -0
  87. package/dist/_chunks/{cycle-calculator-BuFi6ZJa.js → cycle-calculator-D-rwX9Pj.js} +2 -2
  88. package/dist/_chunks/{cycle-calculator-BuFi6ZJa.js.map → cycle-calculator-D-rwX9Pj.js.map} +1 -1
  89. package/dist/_chunks/{dashboard-grid-DRnhIlT-.js → dashboard-grid-B2MB7SRS.js} +627 -603
  90. package/dist/_chunks/dashboard-grid-B2MB7SRS.js.map +1 -0
  91. package/dist/_chunks/{data-table-DAPkhyXO.js → data-table-Ck2rIwWF.js} +6 -6
  92. package/dist/_chunks/{data-table-DAPkhyXO.js.map → data-table-Ck2rIwWF.js.map} +1 -1
  93. package/dist/_chunks/{data-table-tabs-2t0cdk0h.js → data-table-tabs-BfrnefV5.js} +3 -3
  94. package/dist/_chunks/{data-table-tabs-2t0cdk0h.js.map → data-table-tabs-BfrnefV5.js.map} +1 -1
  95. package/dist/_chunks/{dependent-selector-DgaAQc-c.js → dependent-selector-DBr1AhLg.js} +3 -3
  96. package/dist/_chunks/{dependent-selector-DgaAQc-c.js.map → dependent-selector-DBr1AhLg.js.map} +1 -1
  97. package/dist/_chunks/{description-list-CFEw__MT.js → description-list-Q8640NHu.js} +2 -2
  98. package/dist/_chunks/{description-list-CFEw__MT.js.map → description-list-Q8640NHu.js.map} +1 -1
  99. package/dist/_chunks/{dev-bypass-button-dTuUuzsT.js → dev-bypass-button--CPzzRSj.js} +2 -2
  100. package/dist/_chunks/{dev-bypass-button-dTuUuzsT.js.map → dev-bypass-button--CPzzRSj.js.map} +1 -1
  101. package/dist/_chunks/{document-preview-DYX669jE.js → document-preview-B1dQm292.js} +4 -4
  102. package/dist/_chunks/{document-preview-DYX669jE.js.map → document-preview-B1dQm292.js.map} +1 -1
  103. package/dist/_chunks/{document-scanner-C41n4pNq.js → document-scanner-CVPVLK7z.js} +2 -2
  104. package/dist/_chunks/{document-scanner-C41n4pNq.js.map → document-scanner-CVPVLK7z.js.map} +1 -1
  105. package/dist/_chunks/{due-date-calculator-yYvX8Ww_.js → due-date-calculator-DTfxFJCM.js} +5 -5
  106. package/dist/_chunks/{due-date-calculator-yYvX8Ww_.js.map → due-date-calculator-DTfxFJCM.js.map} +1 -1
  107. package/dist/_chunks/{editable-currency-cell-renderer-6LDFAWUE.js → editable-currency-cell-renderer-1ijmzNWh.js} +4 -4
  108. package/dist/_chunks/{editable-currency-cell-renderer-6LDFAWUE.js.map → editable-currency-cell-renderer-1ijmzNWh.js.map} +1 -1
  109. package/dist/_chunks/{editable-description-D9FsTi8e.js → editable-description-ChGNdYY8.js} +2 -2
  110. package/dist/_chunks/{editable-description-D9FsTi8e.js.map → editable-description-ChGNdYY8.js.map} +1 -1
  111. package/dist/_chunks/{editor-overlay-BYkcaLCj.js → editor-overlay-CpVO1-Kk.js} +2 -2
  112. package/dist/_chunks/{editor-overlay-BYkcaLCj.js.map → editor-overlay-CpVO1-Kk.js.map} +1 -1
  113. package/dist/_chunks/{entity-summary-oD_63dlz.js → entity-summary-BQ9_KA8S.js} +5 -5
  114. package/dist/_chunks/{entity-summary-oD_63dlz.js.map → entity-summary-BQ9_KA8S.js.map} +1 -1
  115. package/dist/_chunks/{error-summary-BhM8FEkl.js → error-summary-DrUfuKu1.js} +2 -2
  116. package/dist/_chunks/{error-summary-BhM8FEkl.js.map → error-summary-DrUfuKu1.js.map} +1 -1
  117. package/dist/_chunks/{face-scheme-C-5V3MsY.js → face-scheme-DAD-mXzM.js} +4 -4
  118. package/dist/_chunks/{face-scheme-C-5V3MsY.js.map → face-scheme-DAD-mXzM.js.map} +1 -1
  119. package/dist/_chunks/{fetal-weight-CHv2winC.js → fetal-weight-DycD_Vqr.js} +2 -2
  120. package/dist/_chunks/{fetal-weight-CHv2winC.js.map → fetal-weight-DycD_Vqr.js.map} +1 -1
  121. package/dist/_chunks/{field-array-dSkD_ePA.js → field-array-BJYc1xSu.js} +2 -2
  122. package/dist/_chunks/{field-array-dSkD_ePA.js.map → field-array-BJYc1xSu.js.map} +1 -1
  123. package/dist/_chunks/{file-manager-C8bdHsYy.js → file-manager-k85OOFr4.js} +6 -6
  124. package/dist/_chunks/{file-manager-C8bdHsYy.js.map → file-manager-k85OOFr4.js.map} +1 -1
  125. package/dist/_chunks/{fiscal-code-input-BSWwda0C.js → fiscal-code-input-DwHb2nVW.js} +2 -2
  126. package/dist/_chunks/{fiscal-code-input-BSWwda0C.js.map → fiscal-code-input-DwHb2nVW.js.map} +1 -1
  127. package/dist/_chunks/{forgot-password-form-CGWV5Q1-.js → forgot-password-form-CgZkEvZy.js} +4 -4
  128. package/dist/_chunks/{forgot-password-form-CGWV5Q1-.js.map → forgot-password-form-CgZkEvZy.js.map} +1 -1
  129. package/dist/_chunks/{freemium-paywall-DjjVPC-5.js → freemium-paywall-r-z48YaT.js} +2 -2
  130. package/dist/_chunks/{freemium-paywall-DjjVPC-5.js.map → freemium-paywall-r-z48YaT.js.map} +1 -1
  131. package/dist/_chunks/{gestational-age-calculator-BLccWS_4.js → gestational-age-calculator-BnCAL5a-.js} +5 -5
  132. package/dist/_chunks/{gestational-age-calculator-BLccWS_4.js.map → gestational-age-calculator-BnCAL5a-.js.map} +1 -1
  133. package/dist/_chunks/{hcg-doubling-CnrY2OVu.js → hcg-doubling-DVDiqFyp.js} +2 -2
  134. package/dist/_chunks/{hcg-doubling-CnrY2OVu.js.map → hcg-doubling-DVDiqFyp.js.map} +1 -1
  135. package/dist/_chunks/{header-BVHAt7Fi.js → header-_TppWBpK.js} +2 -2
  136. package/dist/_chunks/{header-BVHAt7Fi.js.map → header-_TppWBpK.js.map} +1 -1
  137. package/dist/_chunks/{header-settings-C200bKyp.js → header-settings-BSH9Gk0J.js} +3 -3
  138. package/dist/_chunks/{header-settings-C200bKyp.js.map → header-settings-BSH9Gk0J.js.map} +1 -1
  139. package/dist/_chunks/{heatmap-CRMr7VWC.js → heatmap-Cp8Gn9q-.js} +4 -4
  140. package/dist/_chunks/{heatmap-CRMr7VWC.js.map → heatmap-Cp8Gn9q-.js.map} +1 -1
  141. package/dist/_chunks/{help-me-write-templates-C9T8-DcT.js → help-me-write-templates-DFmqnsAa.js} +4 -4
  142. package/dist/_chunks/{help-me-write-templates-C9T8-DcT.js.map → help-me-write-templates-DFmqnsAa.js.map} +1 -1
  143. package/dist/_chunks/{hover-card-DbTmj-ea.js → hover-card-CTNhQXWS.js} +2 -2
  144. package/dist/_chunks/{hover-card-DbTmj-ea.js.map → hover-card-CTNhQXWS.js.map} +1 -1
  145. package/dist/_chunks/{icon-button-dNE6ENLn.js → icon-button-C_1TgRiK.js} +2 -2
  146. package/dist/_chunks/{icon-button-dNE6ENLn.js.map → icon-button-C_1TgRiK.js.map} +1 -1
  147. package/dist/_chunks/{icon-button-group-Du8IvZek.js → icon-button-group-NIHji7_y.js} +2 -2
  148. package/dist/_chunks/{icon-button-group-Du8IvZek.js.map → icon-button-group-NIHji7_y.js.map} +1 -1
  149. package/dist/_chunks/{icon-picker-D5NdDbCL.js → icon-picker-Dq4O32K8.js} +2 -2
  150. package/dist/_chunks/{icon-picker-D5NdDbCL.js.map → icon-picker-Dq4O32K8.js.map} +1 -1
  151. package/dist/_chunks/{info-tip-DObdz3w3.js → info-tip-cYszyg6h.js} +2 -2
  152. package/dist/_chunks/{info-tip-DObdz3w3.js.map → info-tip-cYszyg6h.js.map} +1 -1
  153. package/dist/_chunks/{key-value-pair-BNYHAZwD.js → key-value-pair-BscGwZsJ.js} +2 -2
  154. package/dist/_chunks/{key-value-pair-BNYHAZwD.js.map → key-value-pair-BscGwZsJ.js.map} +1 -1
  155. package/dist/_chunks/{kit-extensions-DI2nHVNw.js → kit-extensions-RnddkrXn.js} +6 -6
  156. package/dist/_chunks/{kit-extensions-DI2nHVNw.js.map → kit-extensions-RnddkrXn.js.map} +1 -1
  157. package/dist/_chunks/{link-gRw3NtOt.js → link-N5_YpLtm.js} +7 -6
  158. package/dist/_chunks/link-N5_YpLtm.js.map +1 -0
  159. package/dist/_chunks/{link-cell-renderer-DvhzS6lu.js → link-cell-renderer-dtEYlxi2.js} +6 -6
  160. package/dist/_chunks/{link-cell-renderer-DvhzS6lu.js.map → link-cell-renderer-dtEYlxi2.js.map} +1 -1
  161. package/dist/_chunks/{locale-picker-Bu4YE5b2.js → locale-picker-CeveTnDK.js} +3 -3
  162. package/dist/_chunks/{locale-picker-Bu4YE5b2.js.map → locale-picker-CeveTnDK.js.map} +1 -1
  163. package/dist/_chunks/{login-dev-card-DwWWHclZ.js → login-dev-card-PnADNcI9.js} +3 -3
  164. package/dist/_chunks/{login-dev-card-DwWWHclZ.js.map → login-dev-card-PnADNcI9.js.map} +1 -1
  165. package/dist/_chunks/{marketplace-app-shell-p6hPgVwy.js → marketplace-app-shell-C-2e4eCD.js} +139 -136
  166. package/dist/_chunks/marketplace-app-shell-C-2e4eCD.js.map +1 -0
  167. package/dist/_chunks/{message-card-CvZlo3Fn.js → message-card-A3mJNqfy.js} +2 -2
  168. package/dist/_chunks/{message-card-CvZlo3Fn.js.map → message-card-A3mJNqfy.js.map} +1 -1
  169. package/dist/_chunks/{message-tray-DrS_LOed.js → message-tray-Ft6vSr71.js} +3 -3
  170. package/dist/_chunks/{message-tray-DrS_LOed.js.map → message-tray-Ft6vSr71.js.map} +1 -1
  171. package/dist/_chunks/{multi-select-BT23EnSA.js → multi-select-CMaAQQgb.js} +2 -2
  172. package/dist/_chunks/{multi-select-BT23EnSA.js.map → multi-select-CMaAQQgb.js.map} +1 -1
  173. package/dist/_chunks/{nav-grid-Byx8PxuB.js → nav-grid-Oc4aCPrg.js} +2 -2
  174. package/dist/_chunks/{nav-grid-Byx8PxuB.js.map → nav-grid-Oc4aCPrg.js.map} +1 -1
  175. package/dist/_chunks/{note-attachment-Bt2cddsZ.js → note-attachment-D8V7PUiR.js} +3 -3
  176. package/dist/_chunks/{note-attachment-Bt2cddsZ.js.map → note-attachment-D8V7PUiR.js.map} +1 -1
  177. package/dist/_chunks/{note-timeline-CX9nAgAR.js → note-timeline-CwxPQ2Ak.js} +2 -2
  178. package/dist/_chunks/{note-timeline-CX9nAgAR.js.map → note-timeline-CwxPQ2Ak.js.map} +1 -1
  179. package/dist/_chunks/{notes-panel-6TElt7jQ.js → notes-panel-BRLc2ozF.js} +7 -7
  180. package/dist/_chunks/{notes-panel-6TElt7jQ.js.map → notes-panel-BRLc2ozF.js.map} +1 -1
  181. package/dist/_chunks/{notification-card-Qrs52HIA.js → notification-card-c2oX8j3F.js} +2 -2
  182. package/dist/_chunks/{notification-card-Qrs52HIA.js.map → notification-card-c2oX8j3F.js.map} +1 -1
  183. package/dist/_chunks/{notification-tray-DRm1z97G.js → notification-tray-BR3seWA7.js} +3 -3
  184. package/dist/_chunks/{notification-tray-DRm1z97G.js.map → notification-tray-BR3seWA7.js.map} +1 -1
  185. package/dist/_chunks/{operator-hero-C_Khr5IU.js → operator-hero-3_RG4Dkj.js} +2 -2
  186. package/dist/_chunks/{operator-hero-C_Khr5IU.js.map → operator-hero-3_RG4Dkj.js.map} +1 -1
  187. package/dist/_chunks/{optical-prescription-DLIAhJ6f.js → optical-prescription-CxfMsbxi.js} +2 -2
  188. package/dist/_chunks/{optical-prescription-DLIAhJ6f.js.map → optical-prescription-CxfMsbxi.js.map} +1 -1
  189. package/dist/_chunks/{panel-header-D_mTdhUp.js → panel-header-BJkaUwnl.js} +2 -2
  190. package/dist/_chunks/{panel-header-D_mTdhUp.js.map → panel-header-BJkaUwnl.js.map} +1 -1
  191. package/dist/_chunks/{panel-subview-CjZgdWwO.js → panel-subview-yP4qIbKS.js} +3 -3
  192. package/dist/_chunks/{panel-subview-CjZgdWwO.js.map → panel-subview-yP4qIbKS.js.map} +1 -1
  193. package/dist/_chunks/{patient-details-BjqKBY2x.js → patient-details-BY8Rwwpi.js} +4 -4
  194. package/dist/_chunks/{patient-details-BjqKBY2x.js.map → patient-details-BY8Rwwpi.js.map} +1 -1
  195. package/dist/_chunks/{patient-field-row-BiI0BPPK.js → patient-field-row-C8ymfffP.js} +8 -8
  196. package/dist/_chunks/{patient-field-row-BiI0BPPK.js.map → patient-field-row-C8ymfffP.js.map} +1 -1
  197. package/dist/_chunks/{patient-search-B5R7FyFO.js → patient-search-DOnDUVsl.js} +2 -2
  198. package/dist/_chunks/{patient-search-B5R7FyFO.js.map → patient-search-DOnDUVsl.js.map} +1 -1
  199. package/dist/_chunks/{patient-summary-card-BOgnWKRV.js → patient-summary-card-cmqjIXMk.js} +9 -9
  200. package/dist/_chunks/{patient-summary-card-BOgnWKRV.js.map → patient-summary-card-cmqjIXMk.js.map} +1 -1
  201. package/dist/_chunks/{payment-automation-upsell-39d5ykBi.js → payment-automation-upsell-C8MEu0t6.js} +4 -4
  202. package/dist/_chunks/{payment-automation-upsell-39d5ykBi.js.map → payment-automation-upsell-C8MEu0t6.js.map} +1 -1
  203. package/dist/_chunks/{payment-form-v6zZuV1_.js → payment-form-i90DUuNK.js} +2 -2
  204. package/dist/_chunks/{payment-form-v6zZuV1_.js.map → payment-form-i90DUuNK.js.map} +1 -1
  205. package/dist/_chunks/{payment-request-card-E3G4aVt6.js → payment-request-card-0DjQgVgX.js} +5 -5
  206. package/dist/_chunks/{payment-request-card-E3G4aVt6.js.map → payment-request-card-0DjQgVgX.js.map} +1 -1
  207. package/dist/_chunks/{pdf-viewer-CNQxa4tv.js → pdf-viewer-DJ9VN7cu.js} +2 -2
  208. package/dist/_chunks/{pdf-viewer-CNQxa4tv.js.map → pdf-viewer-DJ9VN7cu.js.map} +1 -1
  209. package/dist/_chunks/{periodontal-chart-BZ1d6S36.js → periodontal-chart-DCcOEYC6.js} +2 -2
  210. package/dist/_chunks/{periodontal-chart-BZ1d6S36.js.map → periodontal-chart-DCcOEYC6.js.map} +1 -1
  211. package/dist/_chunks/{periodontal-chart-card-BE5hiQnn.js → periodontal-chart-card-CxdjXFb3.js} +3 -3
  212. package/dist/_chunks/{periodontal-chart-card-BE5hiQnn.js.map → periodontal-chart-card-CxdjXFb3.js.map} +1 -1
  213. package/dist/_chunks/{periodontal-diagnosis-6wybid_W.js → periodontal-diagnosis-B9YmmVmM.js} +5 -5
  214. package/dist/_chunks/{periodontal-diagnosis-6wybid_W.js.map → periodontal-diagnosis-B9YmmVmM.js.map} +1 -1
  215. package/dist/_chunks/{periodontal-risk-chart-CgLwBj5c.js → periodontal-risk-chart-CPy7CNFe.js} +2 -2
  216. package/dist/_chunks/{periodontal-risk-chart-CgLwBj5c.js.map → periodontal-risk-chart-CPy7CNFe.js.map} +1 -1
  217. package/dist/_chunks/{permission-matrix-DuTkUHxe.js → permission-matrix-BoQjENGV.js} +3 -3
  218. package/dist/_chunks/{permission-matrix-DuTkUHxe.js.map → permission-matrix-BoQjENGV.js.map} +1 -1
  219. package/dist/_chunks/{popover-DQr_tljb.js → popover-4ZVtH_At.js} +2 -2
  220. package/dist/_chunks/{popover-DQr_tljb.js.map → popover-4ZVtH_At.js.map} +1 -1
  221. package/dist/_chunks/{practice-profile-hero-DPbvYfCs.js → practice-profile-hero-Dfc0F60y.js} +2 -2
  222. package/dist/_chunks/{practice-profile-hero-DPbvYfCs.js.map → practice-profile-hero-Dfc0F60y.js.map} +1 -1
  223. package/dist/_chunks/{practice-results-Cktx7KaC.js → practice-results-B8L9ZmtR.js} +4 -4
  224. package/dist/_chunks/{practice-results-Cktx7KaC.js.map → practice-results-B8L9ZmtR.js.map} +1 -1
  225. package/dist/_chunks/{pregnancy-dating-26fcvhAx.js → pregnancy-dating-D2XTELiw.js} +5 -5
  226. package/dist/_chunks/{pregnancy-dating-26fcvhAx.js.map → pregnancy-dating-D2XTELiw.js.map} +1 -1
  227. package/dist/_chunks/{pregnancy-weight-gain-D8q1IUCT.js → pregnancy-weight-gain-BVvyL-j1.js} +4 -4
  228. package/dist/_chunks/{pregnancy-weight-gain-D8q1IUCT.js.map → pregnancy-weight-gain-BVvyL-j1.js.map} +1 -1
  229. package/dist/_chunks/{privacy-lock-BpVgSgMb.js → privacy-lock-CEYJ8ehu.js} +2 -2
  230. package/dist/_chunks/{privacy-lock-BpVgSgMb.js.map → privacy-lock-CEYJ8ehu.js.map} +1 -1
  231. package/dist/_chunks/{privacy-mask-BfMC57ST.js → privacy-mask-Ch7743uk.js} +2 -2
  232. package/dist/_chunks/{privacy-mask-BfMC57ST.js.map → privacy-mask-Ch7743uk.js.map} +1 -1
  233. package/dist/_chunks/{product-hub-panel-CH4B49ij.js → product-hub-panel-C_ZosrBt.js} +3 -3
  234. package/dist/_chunks/{product-hub-panel-CH4B49ij.js.map → product-hub-panel-C_ZosrBt.js.map} +1 -1
  235. package/dist/_chunks/{public-footer-ZWTEG1Rq.js → public-footer-CXOrdAaS.js} +2 -2
  236. package/dist/_chunks/{public-footer-ZWTEG1Rq.js.map → public-footer-CXOrdAaS.js.map} +1 -1
  237. package/dist/_chunks/{public-header.agent-BHTDKMsw.js → public-header.agent-DXRA7ebK.js} +3 -3
  238. package/dist/_chunks/{public-header.agent-BHTDKMsw.js.map → public-header.agent-DXRA7ebK.js.map} +1 -1
  239. package/dist/_chunks/{radio-BBbMdbE_.js → radio-BZQs6_36.js} +2 -2
  240. package/dist/_chunks/{radio-BBbMdbE_.js.map → radio-BZQs6_36.js.map} +1 -1
  241. package/dist/_chunks/{radio-group-DicxWJXP.js → radio-group-ChIKyeSJ.js} +3 -3
  242. package/dist/_chunks/{radio-group-DicxWJXP.js.map → radio-group-ChIKyeSJ.js.map} +1 -1
  243. package/dist/_chunks/{radiograph-panel.agent-DR0gOeSc.js → radiograph-panel.agent-DDNUo4Ul.js} +4 -4
  244. package/dist/_chunks/{radiograph-panel.agent-DR0gOeSc.js.map → radiograph-panel.agent-DDNUo4Ul.js.map} +1 -1
  245. package/dist/_chunks/{registration-form-B8IeB9kd.js → registration-form-BQyT_kBX.js} +5 -5
  246. package/dist/_chunks/{registration-form-B8IeB9kd.js.map → registration-form-BQyT_kBX.js.map} +1 -1
  247. package/dist/_chunks/{resource-chip-DQeCJzJf.js → resource-chip-DB5jDwUO.js} +2 -2
  248. package/dist/_chunks/{resource-chip-DQeCJzJf.js.map → resource-chip-DB5jDwUO.js.map} +1 -1
  249. package/dist/_chunks/{reviews-panel-CHzDqerd.js → reviews-panel-AvsVgtJu.js} +3 -3
  250. package/dist/_chunks/{reviews-panel-CHzDqerd.js.map → reviews-panel-AvsVgtJu.js.map} +1 -1
  251. package/dist/_chunks/{rich-text-editor-BRuTo2hm.js → rich-text-editor-M2gT_E7f.js} +9 -9
  252. package/dist/_chunks/{rich-text-editor-BRuTo2hm.js.map → rich-text-editor-M2gT_E7f.js.map} +1 -1
  253. package/dist/_chunks/{sheet-CqvPYNLn.js → sheet-D2PfJl8n.js} +2 -2
  254. package/dist/_chunks/{sheet-CqvPYNLn.js.map → sheet-D2PfJl8n.js.map} +1 -1
  255. package/dist/_chunks/{sidebar-C9Zof0z1.js → sidebar-BS24EnYd.js} +2 -2
  256. package/dist/_chunks/{sidebar-C9Zof0z1.js.map → sidebar-BS24EnYd.js.map} +1 -1
  257. package/dist/_chunks/{sign-document-D4iHS_Ug.js → sign-document-CY7xTXbm.js} +2 -2
  258. package/dist/_chunks/{sign-document-D4iHS_Ug.js.map → sign-document-CY7xTXbm.js.map} +1 -1
  259. package/dist/_chunks/{signature-request-BH7yKI01.js → signature-request-BMCHy2ZO.js} +5 -5
  260. package/dist/_chunks/{signature-request-BH7yKI01.js.map → signature-request-BMCHy2ZO.js.map} +1 -1
  261. package/dist/_chunks/{signature-status-chip-DP3qRijv.js → signature-status-chip-pIoQjvH8.js} +3 -3
  262. package/dist/_chunks/{signature-status-chip-DP3qRijv.js.map → signature-status-chip-pIoQjvH8.js.map} +1 -1
  263. package/dist/_chunks/{signed-out-frame-eaOWHpDr.js → signed-out-frame-Rg_GVDnl.js} +4 -4
  264. package/dist/_chunks/{signed-out-frame-eaOWHpDr.js.map → signed-out-frame-Rg_GVDnl.js.map} +1 -1
  265. package/dist/_chunks/{slot-grid-DELa2Nwz.js → slot-grid-dj5f6R2w.js} +2 -2
  266. package/dist/_chunks/{slot-grid-DELa2Nwz.js.map → slot-grid-dj5f6R2w.js.map} +1 -1
  267. package/dist/_chunks/{stat-DmjGfXND.js → stat-D2PNJujA.js} +2 -2
  268. package/dist/_chunks/stat-D2PNJujA.js.map +1 -0
  269. package/dist/_chunks/{streaming-text-bPDoG7Y3.js → streaming-text-zFViGexf.js} +2 -2
  270. package/dist/_chunks/{streaming-text-bPDoG7Y3.js.map → streaming-text-zFViGexf.js.map} +1 -1
  271. package/dist/_chunks/{tab-bar-5GppbMGc.js → tab-bar-BEODTG6k.js} +2 -2
  272. package/dist/_chunks/{tab-bar-5GppbMGc.js.map → tab-bar-BEODTG6k.js.map} +1 -1
  273. package/dist/_chunks/{tag-CS5cXpfx.js → tag-DOZGz0fT.js} +2 -2
  274. package/dist/_chunks/{tag-CS5cXpfx.js.map → tag-DOZGz0fT.js.map} +1 -1
  275. package/dist/_chunks/{task-card-zaTU1rQa.js → task-card-BS7Uqevr.js} +2 -2
  276. package/dist/_chunks/{task-card-zaTU1rQa.js.map → task-card-BS7Uqevr.js.map} +1 -1
  277. package/dist/_chunks/{task-editor-CgGcg-2c.js → task-editor-DoiOzNiC.js} +9 -9
  278. package/dist/_chunks/{task-editor-CgGcg-2c.js.map → task-editor-DoiOzNiC.js.map} +1 -1
  279. package/dist/_chunks/{task-tray-DGMwogWu.js → task-tray-eQU4KJcA.js} +3 -3
  280. package/dist/_chunks/{task-tray-DGMwogWu.js.map → task-tray-eQU4KJcA.js.map} +1 -1
  281. package/dist/_chunks/{tasks-panel-xGtiEdcj.js → tasks-panel-8nLwBw6P.js} +7 -7
  282. package/dist/_chunks/{tasks-panel-xGtiEdcj.js.map → tasks-panel-8nLwBw6P.js.map} +1 -1
  283. package/dist/_chunks/{theme-toggle-_cfYEK73.js → theme-toggle-Ctb77x6O.js} +3 -3
  284. package/dist/_chunks/{theme-toggle-_cfYEK73.js.map → theme-toggle-Ctb77x6O.js.map} +1 -1
  285. package/dist/_chunks/{toast-CNUydTgT.js → toast-6T519aLz.js} +2 -2
  286. package/dist/_chunks/{toast-CNUydTgT.js.map → toast-6T519aLz.js.map} +1 -1
  287. package/dist/_chunks/tool-rail-C-03rH2I.js +973 -0
  288. package/dist/_chunks/tool-rail-C-03rH2I.js.map +1 -0
  289. package/dist/_chunks/tooltip-uEBdD1-5.js +178 -0
  290. package/dist/_chunks/tooltip-uEBdD1-5.js.map +1 -0
  291. package/dist/_chunks/{tooth-scheme-05DsRMA5.js → tooth-scheme-Dkh4JwzT.js} +2 -2
  292. package/dist/_chunks/{tooth-scheme-05DsRMA5.js.map → tooth-scheme-Dkh4JwzT.js.map} +1 -1
  293. package/dist/_chunks/{transcript-panel-CjsiDB1K.js → transcript-panel-XudW5l6l.js} +2 -2
  294. package/dist/_chunks/{transcript-panel-CjsiDB1K.js.map → transcript-panel-XudW5l6l.js.map} +1 -1
  295. package/dist/_chunks/{treatment-receipt-BSVOfStA.js → treatment-receipt-BdJ36vNP.js} +3 -3
  296. package/dist/_chunks/{treatment-receipt-BSVOfStA.js.map → treatment-receipt-BdJ36vNP.js.map} +1 -1
  297. package/dist/_chunks/{use-appointment-details-read-BGVthJFx.js → use-appointment-details-read-D6Gb_OuN.js} +16 -16
  298. package/dist/_chunks/{use-appointment-details-read-BGVthJFx.js.map → use-appointment-details-read-D6Gb_OuN.js.map} +1 -1
  299. package/dist/_chunks/use-edge-resize-CBtem0j2.js +171 -0
  300. package/dist/_chunks/use-edge-resize-CBtem0j2.js.map +1 -0
  301. package/dist/_chunks/{voice-control-panel-DyKEaFxt.js → voice-control-panel-C0BfY23Y.js} +4 -4
  302. package/dist/_chunks/{voice-control-panel-DyKEaFxt.js.map → voice-control-panel-C0BfY23Y.js.map} +1 -1
  303. package/dist/_chunks/{warning-stack-CAL9xVo1.js → warning-stack-HYWAytZV.js} +3 -3
  304. package/dist/_chunks/{warning-stack-CAL9xVo1.js.map → warning-stack-HYWAytZV.js.map} +1 -1
  305. package/dist/_chunks/{widget-picker-CkhoG4Rj.js → widget-picker-DlNPGcnu.js} +2 -2
  306. package/dist/_chunks/{widget-picker-CkhoG4Rj.js.map → widget-picker-DlNPGcnu.js.map} +1 -1
  307. package/dist/_chunks/{workflow-map-BUYG1oXU.js → workflow-map-C2B2qIr1.js} +5 -5
  308. package/dist/_chunks/{workflow-map-BUYG1oXU.js.map → workflow-map-C2B2qIr1.js.map} +1 -1
  309. package/dist/agent-catalog.json +13 -1
  310. package/dist/agent-i18n/en.json +10 -0
  311. package/dist/components/_shared/use-apex-legend-scroll.d.ts +11 -0
  312. package/dist/components/_shared/use-apex-legend-scroll.d.ts.map +1 -0
  313. package/dist/components/_shared/use-apex-x-label-spacing.d.ts +11 -0
  314. package/dist/components/_shared/use-apex-x-label-spacing.d.ts.map +1 -0
  315. package/dist/components/agenda-card/index.js +1 -1
  316. package/dist/components/agenda-tray/index.js +1 -1
  317. package/dist/components/ai-credits-notice/index.js +1 -1
  318. package/dist/components/ai-permission-notice/index.js +1 -1
  319. package/dist/components/ai-prompt-input/index.js +1 -1
  320. package/dist/components/alert/index.js +1 -1
  321. package/dist/components/anamnesis-card/index.js +1 -1
  322. package/dist/components/anamnesis-summary-card/index.js +1 -1
  323. package/dist/components/app-frame/app-frame-context.d.ts +19 -0
  324. package/dist/components/app-frame/app-frame-context.d.ts.map +1 -0
  325. package/dist/components/app-frame/app-frame.d.ts +3 -0
  326. package/dist/components/app-frame/app-frame.d.ts.map +1 -1
  327. package/dist/components/app-frame/index.d.ts +2 -0
  328. package/dist/components/app-frame/index.d.ts.map +1 -1
  329. package/dist/components/app-frame/index.js +4 -2
  330. package/dist/components/app-frame/index.js.map +1 -1
  331. package/dist/components/appointment-card/index.js +2 -2
  332. package/dist/components/appointment-details-panel/index.js +1 -1
  333. package/dist/components/appointment-peek/index.js +1 -1
  334. package/dist/components/appointment-timeline/index.js +1 -1
  335. package/dist/components/audio-recorder/index.js +1 -1
  336. package/dist/components/badge/index.js +1 -1
  337. package/dist/components/bishop-score/index.js +1 -1
  338. package/dist/components/bmi-calculator/index.js +1 -1
  339. package/dist/components/booking/index.js +1 -1
  340. package/dist/components/button/index.js +1 -1
  341. package/dist/components/button-group/index.js +1 -1
  342. package/dist/components/calendar/index.js +1 -1
  343. package/dist/components/care-plan-card/index.js +1 -1
  344. package/dist/components/care-plan-entry-card/index.js +1 -1
  345. package/dist/components/care-plan-header/index.js +1 -1
  346. package/dist/components/carousel/index.js +1 -1
  347. package/dist/components/chart/chart.d.ts +3 -1
  348. package/dist/components/chart/chart.d.ts.map +1 -1
  349. package/dist/components/chart/index.js +1 -1
  350. package/dist/components/chat-input/index.js +1 -1
  351. package/dist/components/chat-message/index.js +1 -1
  352. package/dist/components/checkbox/index.js +1 -1
  353. package/dist/components/checkbox-group/index.js +1 -1
  354. package/dist/components/clinical-note-card/index.js +1 -1
  355. package/dist/components/connection-status/index.js +1 -1
  356. package/dist/components/contact-card/index.js +1 -1
  357. package/dist/components/contact-profile-card/index.js +1 -1
  358. package/dist/components/control-room-rail/control-room-context.d.ts +10 -4
  359. package/dist/components/control-room-rail/control-room-context.d.ts.map +1 -1
  360. package/dist/components/control-room-rail/control-room-rail.agent.d.ts.map +1 -1
  361. package/dist/components/control-room-rail/control-room-rail.d.ts.map +1 -1
  362. package/dist/components/control-room-rail/index.js +1 -1
  363. package/dist/components/cycle-calculator/index.js +1 -1
  364. package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -1
  365. package/dist/components/dashboard-grid/index.js +1 -1
  366. package/dist/components/data-table/index.js +4 -4
  367. package/dist/components/data-table-tabs/index.js +1 -1
  368. package/dist/components/dependent-selector/index.js +1 -1
  369. package/dist/components/description-list/index.js +1 -1
  370. package/dist/components/dev-bypass-button/index.js +1 -1
  371. package/dist/components/document-preview/index.js +1 -1
  372. package/dist/components/document-scanner/index.js +1 -1
  373. package/dist/components/due-date-calculator/index.js +2 -2
  374. package/dist/components/editable-description/index.js +1 -1
  375. package/dist/components/editor-overlay/index.js +1 -1
  376. package/dist/components/entity-summary/index.js +1 -1
  377. package/dist/components/error-summary/index.js +1 -1
  378. package/dist/components/face-scheme/index.js +1 -1
  379. package/dist/components/fetal-weight/index.js +1 -1
  380. package/dist/components/field-array/index.js +1 -1
  381. package/dist/components/file-manager/index.js +1 -1
  382. package/dist/components/fiscal-code-input/index.js +1 -1
  383. package/dist/components/freemium-paywall/index.js +1 -1
  384. package/dist/components/gestational-age-calculator/index.js +1 -1
  385. package/dist/components/hcg-doubling/index.js +1 -1
  386. package/dist/components/header/index.js +1 -1
  387. package/dist/components/header-settings/index.js +1 -1
  388. package/dist/components/heatmap/index.js +1 -1
  389. package/dist/components/hover-card/index.js +1 -1
  390. package/dist/components/icon-button/index.js +1 -1
  391. package/dist/components/icon-button-group/index.js +1 -1
  392. package/dist/components/icon-picker/index.js +1 -1
  393. package/dist/components/info-tip/index.js +1 -1
  394. package/dist/components/key-value-pair/index.js +1 -1
  395. package/dist/components/link/index.js +1 -1
  396. package/dist/components/link/link.d.ts.map +1 -1
  397. package/dist/components/locale-picker/index.js +1 -1
  398. package/dist/components/message-card/index.js +1 -1
  399. package/dist/components/message-tray/index.js +1 -1
  400. package/dist/components/multi-select/index.js +1 -1
  401. package/dist/components/nav-grid/index.js +1 -1
  402. package/dist/components/note-timeline/index.js +1 -1
  403. package/dist/components/notes-panel/index.js +1 -1
  404. package/dist/components/notification-card/index.js +1 -1
  405. package/dist/components/notification-tray/index.js +1 -1
  406. package/dist/components/operator-hero/index.js +1 -1
  407. package/dist/components/optical-prescription/index.js +1 -1
  408. package/dist/components/panel-header/index.js +1 -1
  409. package/dist/components/panel-subview/index.js +1 -1
  410. package/dist/components/patient-details/index.js +1 -1
  411. package/dist/components/patient-search/index.js +1 -1
  412. package/dist/components/patient-summary-card/index.js +1 -1
  413. package/dist/components/patient-table/index.js +1 -1
  414. package/dist/components/payment-card/index.js +1 -1
  415. package/dist/components/payment-form/index.js +1 -1
  416. package/dist/components/pdf-viewer/index.js +1 -1
  417. package/dist/components/periodontal-chart/index.js +1 -1
  418. package/dist/components/periodontal-chart-card/index.js +1 -1
  419. package/dist/components/periodontal-diagnosis/index.js +1 -1
  420. package/dist/components/periodontal-risk-chart/index.js +1 -1
  421. package/dist/components/permission-matrix/index.js +1 -1
  422. package/dist/components/popover/index.js +1 -1
  423. package/dist/components/practice-profile-hero/index.js +1 -1
  424. package/dist/components/practice-results/index.js +1 -1
  425. package/dist/components/pregnancy-dating/index.js +1 -1
  426. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  427. package/dist/components/privacy-lock/index.js +1 -1
  428. package/dist/components/product-hub-tray/index.js +1 -1
  429. package/dist/components/public-footer/index.js +1 -1
  430. package/dist/components/public-header/index.js +1 -1
  431. package/dist/components/radio/index.js +1 -1
  432. package/dist/components/radio-group/index.js +2 -2
  433. package/dist/components/radiograph-panel/index.js +1 -1
  434. package/dist/components/resource-chip/index.js +1 -1
  435. package/dist/components/reviews-panel/index.js +1 -1
  436. package/dist/components/rich-text-editor/index.js +2 -2
  437. package/dist/components/sheet/index.js +1 -1
  438. package/dist/components/sidebar/index.js +1 -1
  439. package/dist/components/sign-document/index.js +1 -1
  440. package/dist/components/signature-status-chip/index.js +1 -1
  441. package/dist/components/slot-grid/index.js +1 -1
  442. package/dist/components/stat/index.js +1 -1
  443. package/dist/components/stat/stat.d.ts +7 -2
  444. package/dist/components/stat/stat.d.ts.map +1 -1
  445. package/dist/components/streaming-text/index.js +1 -1
  446. package/dist/components/tab-bar/index.js +1 -1
  447. package/dist/components/tag/index.js +1 -1
  448. package/dist/components/task-card/index.js +1 -1
  449. package/dist/components/task-editor/index.js +1 -1
  450. package/dist/components/task-tray/index.js +1 -1
  451. package/dist/components/tasks-panel/index.js +1 -1
  452. package/dist/components/theme-toggle/index.js +1 -1
  453. package/dist/components/toast/index.js +1 -1
  454. package/dist/components/tool-rail/index.js +1 -1
  455. package/dist/components/tool-rail/tool-rail.agent.d.ts.map +1 -1
  456. package/dist/components/tool-rail/tool-rail.d.ts +7 -0
  457. package/dist/components/tool-rail/tool-rail.d.ts.map +1 -1
  458. package/dist/components/tooltip/index.js +1 -1
  459. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  460. package/dist/components/tooth-scheme/index.js +1 -1
  461. package/dist/components/transcript-panel/index.js +1 -1
  462. package/dist/components/treatment-receipt/index.js +1 -1
  463. package/dist/components/voice-control-panel/index.js +1 -1
  464. package/dist/components/warning-stack/index.js +1 -1
  465. package/dist/components/widget-picker/index.js +1 -1
  466. package/dist/components/workflow/index.js +1 -1
  467. package/dist/hooks/index.js +1 -1
  468. package/dist/hooks/use-edge-resize.d.ts +5 -1
  469. package/dist/hooks/use-edge-resize.d.ts.map +1 -1
  470. package/dist/index.js +781 -779
  471. package/dist/index.js.map +1 -1
  472. package/dist/patterns/alia-assistant/index.js +1 -1
  473. package/dist/patterns/anamnesis/index.js +1 -1
  474. package/dist/patterns/calendar/index.js +1 -1
  475. package/dist/patterns/forgot-password-form/index.js +1 -1
  476. package/dist/patterns/help-me-write-templates/index.js +1 -1
  477. package/dist/patterns/login-form/index.js +1 -1
  478. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  479. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +3 -0
  480. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
  481. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  482. package/dist/patterns/registration-form/index.js +1 -1
  483. package/dist/patterns/signature-request/index.js +1 -1
  484. package/dist/patterns/signed-out-frame/index.js +1 -1
  485. package/dist/tokens.css +10 -1
  486. package/package.json +1 -1
  487. package/dist/_chunks/app-frame-CqmDh2v5.js +0 -134
  488. package/dist/_chunks/app-frame-CqmDh2v5.js.map +0 -1
  489. package/dist/_chunks/chart-D7PbNO_M.js +0 -920
  490. package/dist/_chunks/chart-D7PbNO_M.js.map +0 -1
  491. package/dist/_chunks/control-room-rail-BbBEIdws.js +0 -379
  492. package/dist/_chunks/control-room-rail-BbBEIdws.js.map +0 -1
  493. package/dist/_chunks/dashboard-grid-DRnhIlT-.js.map +0 -1
  494. package/dist/_chunks/link-gRw3NtOt.js.map +0 -1
  495. package/dist/_chunks/marketplace-app-shell-p6hPgVwy.js.map +0 -1
  496. package/dist/_chunks/stat-DmjGfXND.js.map +0 -1
  497. package/dist/_chunks/tool-rail-Blgibz0a.js +0 -816
  498. package/dist/_chunks/tool-rail-Blgibz0a.js.map +0 -1
  499. package/dist/_chunks/tooltip-Cp-PLePW.js +0 -119
  500. package/dist/_chunks/tooltip-Cp-PLePW.js.map +0 -1
  501. package/dist/_chunks/use-edge-resize-DHbyQwu8.js +0 -149
  502. package/dist/_chunks/use-edge-resize-DHbyQwu8.js.map +0 -1
@@ -1,16 +1,16 @@
1
- import { jsxs as pe, jsx as R } from "react/jsx-runtime";
2
- import { forwardRef as Nt, useRef as k, useState as B, useCallback as A, useMemo as se, useEffect as q, useImperativeHandle as Pt, useContext as Wt, Children as Dt, isValidElement as Ht, Fragment as zt, createContext as Xt, cloneElement as ct } from "react";
3
- import { c as le } from "./index-D2ZczOXr.js";
4
- import { useTranslation as wt } from "react-i18next";
5
- import { I as Xe } from "./icon-button-dNE6ENLn.js";
6
- import { D as Re } from "./dropdown-menu-D1we7oAY.js";
7
- import { T as Ft } from "./tooltip-Cp-PLePW.js";
8
- import { u as te } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
- import { u as Yt } from "./registry-DvAUVLHh.js";
10
- import { P as Ot } from "./plus-DzMQ_c6b.js";
11
- import { X as jt } from "./x-B5YnXwCz.js";
12
- import { G as Vt } from "./grip-vertical-onSb1JXO.js";
13
- import { E as $t } from "./ellipsis-dRo9ouSU.js";
1
+ import { jsxs as ge, jsx as R } from "react/jsx-runtime";
2
+ import { forwardRef as Dt, useRef as S, useState as J, useCallback as L, useMemo as se, useEffect as B, useImperativeHandle as Pt, useContext as Wt, Children as Ht, isValidElement as zt, Fragment as Xt, createContext as Ft, cloneElement as lt } from "react";
3
+ import { c as ue } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as xt } from "react-i18next";
5
+ import { I as Fe } from "./icon-button-C_1TgRiK.js";
6
+ import { D as Ie } from "./dropdown-menu-D1we7oAY.js";
7
+ import { T as Yt } from "./tooltip-uEBdD1-5.js";
8
+ import { u as re } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
+ import { u as Ot } from "./registry-DvAUVLHh.js";
10
+ import { P as jt } from "./plus-DzMQ_c6b.js";
11
+ import { X as Vt } from "./x-B5YnXwCz.js";
12
+ import { G as $t } from "./grip-vertical-onSb1JXO.js";
13
+ import { E as qt } from "./ellipsis-dRo9ouSU.js";
14
14
  import { c as Kt } from "./createLucideIcon-DhHxpK9K.js";
15
15
  /**
16
16
  * @license lucide-react v1.22.0 - ISC
@@ -22,7 +22,7 @@ const Ut = [
22
22
  ["path", { d: "M19 13v6h-6", key: "1hxl6d" }],
23
23
  ["path", { d: "M5 11V5h6", key: "12e2xe" }],
24
24
  ["path", { d: "m5 5 14 14", key: "11anup" }]
25
- ], qt = Kt("move-diagonal-2", Ut), Bt = {
25
+ ], Bt = Kt("move-diagonal-2", Ut), Jt = {
26
26
  id: "dashboard-grid",
27
27
  // The board's whole purpose is in-place rearrangement of its widgets.
28
28
  // `scroll` is backed by reveal_widget (the catalogue's name heuristic
@@ -83,7 +83,7 @@ const Ut = [
83
83
  ],
84
84
  descriptionKey: "ui.agent.dashboardGrid.actions.revealWidget",
85
85
  description: "Scroll a widget into view (its scrolling ancestor and the window) and highlight it briefly. Works in view and edit mode, and for a widget added a moment ago. Does not move focus.",
86
- invoke: (r, s) => r.revealWidget(s.id)
86
+ invoke: (r, i) => r.revealWidget(i.id)
87
87
  },
88
88
  move_widget: {
89
89
  // Rearranging the board mutates user configuration — a write,
@@ -116,7 +116,7 @@ const Ut = [
116
116
  ],
117
117
  descriptionKey: "ui.agent.dashboardGrid.actions.moveWidget",
118
118
  description: "Move a widget to a cell. Out-of-bounds targets are clamped; colliding widgets are pushed down and the layout re-compacts. Refused while edit mode is off or the board is stacked.",
119
- invoke: (r, s) => r.moveWidgetTo(s.id, s.x, s.y)
119
+ invoke: (r, i) => r.moveWidgetTo(i.id, i.x, i.y)
120
120
  },
121
121
  resize_widget: {
122
122
  safety: "write",
@@ -147,7 +147,7 @@ const Ut = [
147
147
  ],
148
148
  descriptionKey: "ui.agent.dashboardGrid.actions.resizeWidget",
149
149
  description: "Resize a widget to a span. Clamped to the grid and the widget’s min/max; colliding widgets are pushed down. Refused while edit mode is off or the board is stacked.",
150
- invoke: (r, s) => r.resizeWidgetTo(s.id, s.w, s.h)
150
+ invoke: (r, i) => r.resizeWidgetTo(i.id, i.w, i.h)
151
151
  }
152
152
  },
153
153
  domHooks: {
@@ -167,146 +167,146 @@ const Ut = [
167
167
  }
168
168
  }
169
169
  };
170
- function H(r, s) {
171
- return r.x < s.x + s.w && s.x < r.x + r.w && r.y < s.y + s.h && s.y < r.y + r.h;
170
+ function X(r, i) {
171
+ return r.x < i.x + i.w && i.x < r.x + r.w && r.y < i.y + i.h && i.y < r.y + r.h;
172
172
  }
173
- function Ie(r, s) {
174
- const i = Math.max(1, r.minW ?? 1), l = Math.max(1, r.minH ?? 1), g = Math.min(s, r.maxW ?? s), N = r.maxH ?? Number.POSITIVE_INFINITY, m = Math.min(Math.max(r.w, i), g), a = Math.min(Math.max(r.h, l), N), L = Math.min(Math.max(0, r.x), s - m), w = Math.max(0, r.y);
175
- return { ...r, x: L, y: w, w: m, h: a };
173
+ function Ne(r, i) {
174
+ const s = Math.max(1, r.minW ?? 1), l = Math.max(1, r.minH ?? 1), g = Math.min(i, r.maxW ?? i), N = r.maxH ?? Number.POSITIVE_INFINITY, p = Math.min(Math.max(r.w, s), g), a = Math.min(Math.max(r.h, l), N), I = Math.min(Math.max(0, r.x), i - p), W = Math.max(0, r.y);
175
+ return { ...r, x: I, y: W, w: p, h: a };
176
176
  }
177
- function lt(r, s) {
178
- if (s.some((i) => H(i, r))) return !1;
179
- for (let i = r.y; i < r.y + r.h; i += 1)
180
- if (!s.some(
181
- (g) => g.x >= r.x + r.w && i >= g.y && i < g.y + g.h
177
+ function ut(r, i) {
178
+ if (i.some((s) => X(s, r))) return !1;
179
+ for (let s = r.y; s < r.y + r.h; s += 1)
180
+ if (!i.some(
181
+ (g) => g.x >= r.x + r.w && s >= g.y && s < g.y + g.h
182
182
  )) return !1;
183
183
  return !0;
184
184
  }
185
- function ut(r, s, i) {
186
- return Math.abs(r.y * i + r.x - (s.y * i + s.x));
185
+ function ft(r, i, s) {
186
+ return Math.abs(r.y * s + r.x - (i.y * s + i.x));
187
187
  }
188
- function ie(r, s, i, l) {
189
- const g = r.map((o) => Ie(o, s)), N = [...g].sort((o, h) => o.id === i ? -1 : h.id === i ? 1 : o.y - h.y || o.x - h.x), m = [], a = i ? g.find((o) => o.id === i) : void 0, L = /* @__PURE__ */ new Set();
188
+ function oe(r, i, s, l) {
189
+ const g = r.map((o) => Ne(o, i)), N = [...g].sort((o, w) => o.id === s ? -1 : w.id === s ? 1 : o.y - w.y || o.x - w.x), p = [], a = s ? g.find((o) => o.id === s) : void 0, I = /* @__PURE__ */ new Set();
190
190
  for (const o of N) {
191
- if (o.id !== i) {
192
- if (a && H(a, o)) {
193
- const h = { ...o, y: Math.max(0, a.y - o.h) };
194
- !H(a, h) && !m.some((M) => M.id !== i && H(M, h)) && (o.y = h.y);
191
+ if (o.id !== s) {
192
+ if (a && X(a, o)) {
193
+ const w = { ...o, y: Math.max(0, a.y - o.h) };
194
+ !X(a, w) && !p.some((x) => x.id !== s && X(x, w)) && (o.y = w.y);
195
195
  }
196
- if (m.some((h) => H(h, o))) {
197
- L.add(o.id);
198
- const h = g.filter((y) => y.id !== o.id);
199
- let M = o.y;
200
- for (; m.some((y) => H(y, { ...o, y: M })); )
201
- M += 1;
196
+ if (p.some((w) => X(w, o))) {
197
+ I.add(o.id);
198
+ const w = g.filter((k) => k.id !== o.id);
199
+ let x = o.y;
200
+ for (; p.some((k) => X(k, { ...o, y: x })); )
201
+ x += 1;
202
202
  let _ = null;
203
- for (let y = Math.max(0, o.y - o.h); y <= M; y += 1)
204
- for (let S = 0; S <= s - o.w; S += 1) {
205
- const D = { ...o, x: S, y };
206
- (lt(D, h) || l !== void 0 && H(l, D) && !h.some((z) => H(z, D))) && (!_ || ut({ x: S, y }, o, s) < ut(_, o, s)) && (_ = { x: S, y });
203
+ for (let k = Math.max(0, o.y - o.h); k <= x; k += 1)
204
+ for (let E = 0; E <= i - o.w; E += 1) {
205
+ const H = { ...o, x: E, y: k };
206
+ (ut(H, w) || l !== void 0 && X(l, H) && !w.some(($) => X($, H))) && (!_ || ft({ x: E, y: k }, o, i) < ft(_, o, i)) && (_ = { x: E, y: k });
207
207
  }
208
208
  if (_)
209
209
  o.x = _.x, o.y = _.y;
210
210
  else {
211
- o.y = M;
212
- const y = a !== void 0 && a.x < o.x && o.x < a.x + a.w, S = a ? a.x : o.x;
213
- for (; y && o.x > S && !h.some((D) => H(D, { ...o, x: o.x - 1 })); )
211
+ o.y = x;
212
+ const k = a !== void 0 && a.x < o.x && o.x < a.x + a.w, E = a ? a.x : o.x;
213
+ for (; k && o.x > E && !w.some((H) => X(H, { ...o, x: o.x - 1 })); )
214
214
  o.x -= 1;
215
215
  }
216
216
  }
217
- for (; m.some((h) => H(h, o)); )
217
+ for (; p.some((w) => X(w, o)); )
218
218
  o.y += 1;
219
219
  for (; o.y > 0; ) {
220
- const h = { ...o, y: o.y - 1 };
221
- if (m.some((M) => H(M, h))) break;
220
+ const w = { ...o, y: o.y - 1 };
221
+ if (p.some((x) => X(x, w))) break;
222
222
  o.y -= 1;
223
223
  }
224
224
  }
225
- m.push(o);
225
+ p.push(o);
226
226
  }
227
- const w = a ? [...m].sort((o, h) => o.y - h.y || o.x - h.x) : [];
228
- for (const o of w) {
229
- if (o.id === i || L.has(o.id)) continue;
230
- const h = m.filter((_) => _.id !== o.id);
231
- let M = null;
232
- for (let _ = 0; _ < o.y && !M; _ += 1) {
233
- const y = Array.from(
227
+ const W = a ? [...p].sort((o, w) => o.y - w.y || o.x - w.x) : [];
228
+ for (const o of W) {
229
+ if (o.id === s || I.has(o.id)) continue;
230
+ const w = p.filter((_) => _.id !== o.id);
231
+ let x = null;
232
+ for (let _ = 0; _ < o.y && !x; _ += 1) {
233
+ const k = Array.from(
234
234
  { length: 2 * o.w + 1 },
235
- (S, D) => o.x - o.w + D
236
- ).filter((S) => S >= 0 && S <= s - o.w).sort((S, D) => Math.abs(S - o.x) - Math.abs(D - o.x) || S - D);
237
- for (const S of y)
238
- if (lt({ ...o, x: S, y: _ }, h)) {
239
- M = { x: S, y: _ };
235
+ (E, H) => o.x - o.w + H
236
+ ).filter((E) => E >= 0 && E <= i - o.w).sort((E, H) => Math.abs(E - o.x) - Math.abs(H - o.x) || E - H);
237
+ for (const E of k)
238
+ if (ut({ ...o, x: E, y: _ }, w)) {
239
+ x = { x: E, y: _ };
240
240
  break;
241
241
  }
242
242
  }
243
- if (M)
244
- for (o.x = M.x, o.y = M.y; o.y > 0; ) {
243
+ if (x)
244
+ for (o.x = x.x, o.y = x.y; o.y > 0; ) {
245
245
  const _ = { ...o, y: o.y - 1 };
246
- if (h.some((y) => H(y, _))) break;
246
+ if (w.some((k) => X(k, _))) break;
247
247
  o.y -= 1;
248
248
  }
249
249
  }
250
- const T = new Map(m.map((o) => [o.id, o]));
251
- return r.map((o) => T.get(o.id));
250
+ const b = new Map(p.map((o) => [o.id, o]));
251
+ return r.map((o) => b.get(o.id));
252
252
  }
253
- function Jt(r, s, i, l, g) {
253
+ function Qt(r, i, s, l, g) {
254
254
  const N = r.map(
255
- (m) => m.id === s ? Ie({ ...m, x: i, y: l }, g) : m
255
+ (p) => p.id === i ? Ne({ ...p, x: s, y: l }, g) : p
256
256
  );
257
- return ie(
257
+ return oe(
258
258
  N,
259
259
  g,
260
- s,
261
- r.find((m) => m.id === s)
260
+ i,
261
+ r.find((p) => p.id === i)
262
262
  );
263
263
  }
264
- function Qt(r, s, i, l, g) {
264
+ function Zt(r, i, s, l, g) {
265
265
  const N = r.map(
266
- (m) => m.id === s ? (
266
+ (p) => p.id === i ? (
267
267
  // Resizing never moves the widget: the width clamps to the space
268
268
  // between its position and the grid edge (clampRect would slide it).
269
269
  // minW wins over the edge clamp so clampRect cannot re-raise w and
270
270
  // slide x as a side effect.
271
- Ie(
271
+ Ne(
272
272
  {
273
- ...m,
274
- w: Math.max(m.minW ?? 1, Math.min(i, g - m.x)),
273
+ ...p,
274
+ w: Math.max(p.minW ?? 1, Math.min(s, g - p.x)),
275
275
  h: l
276
276
  },
277
277
  g
278
278
  )
279
- ) : m
279
+ ) : p
280
280
  );
281
- return ie(N, g, s);
281
+ return oe(N, g, i);
282
282
  }
283
- function ft(r, s, i, l) {
284
- const g = Math.min(Math.max(1, i), s), N = r.reduce((m, a) => Math.max(m, a.y + a.h), 0);
285
- for (let m = 0; m <= N; m += 1)
286
- for (let a = 0; a <= s - g; a += 1) {
287
- const L = {
283
+ function mt(r, i, s, l) {
284
+ const g = Math.min(Math.max(1, s), i), N = r.reduce((p, a) => Math.max(p, a.y + a.h), 0);
285
+ for (let p = 0; p <= N; p += 1)
286
+ for (let a = 0; a <= i - g; a += 1) {
287
+ const I = {
288
288
  x: a,
289
- y: m,
289
+ y: p,
290
290
  w: g,
291
291
  h: l
292
292
  };
293
- if (!r.some((w) => H(w, L)))
294
- return { x: a, y: m };
293
+ if (!r.some((W) => X(W, I)))
294
+ return { x: a, y: p };
295
295
  }
296
296
  return { x: 0, y: N };
297
297
  }
298
- function yt(r) {
299
- return r.reduce((s, i) => Math.max(s, i.y + i.h), 0);
298
+ function kt(r) {
299
+ return r.reduce((i, s) => Math.max(i, s.y + s.h), 0);
300
300
  }
301
- const Zt = 24;
302
- function mt(r, s, i) {
303
- return s === void 0 || !Number.isFinite(s) || s <= 0 ? !1 : !Number.isFinite(r) || r <= 0 ? i : i ? r < s + Zt : r < s;
301
+ const er = 24;
302
+ function pt(r, i, s) {
303
+ return i === void 0 || !Number.isFinite(i) || i <= 0 ? !1 : !Number.isFinite(r) || r <= 0 ? s : s ? r < i + er : r < i;
304
304
  }
305
- function er(r, s) {
306
- const i = new Map(s.map((l) => [l.id, l]));
307
- return r.map((l, g) => ({ id: l, index: g, entry: i.get(l) })).sort((l, g) => !l.entry || !g.entry ? l.entry ? -1 : g.entry ? 1 : l.index - g.index : l.entry.y - g.entry.y || l.entry.x - g.entry.x || l.index - g.index).map(({ id: l }) => l);
305
+ function tr(r, i) {
306
+ const s = new Map(i.map((l) => [l.id, l]));
307
+ return r.map((l, g) => ({ id: l, index: g, entry: s.get(l) })).sort((l, g) => !l.entry || !g.entry ? l.entry ? -1 : g.entry ? 1 : l.index - g.index : l.entry.y - g.entry.y || l.entry.x - g.entry.x || l.index - g.index).map(({ id: l }) => l);
308
308
  }
309
- const tr = le(
309
+ const rr = ue(
310
310
  [
311
311
  "ds:grid ds:w-full",
312
312
  // A stacking context: a grabbed widget's lift stays inside the board.
@@ -337,7 +337,7 @@ const tr = le(
337
337
  },
338
338
  defaultVariants: { stacked: !1 }
339
339
  }
340
- ), rr = le(
340
+ ), nr = ue(
341
341
  [
342
342
  "ds:relative ds:min-h-0 ds:min-w-0 ds:overflow-hidden",
343
343
  // Its own stacking context: a sticky or raised layer inside a widget
@@ -396,7 +396,7 @@ const tr = le(
396
396
  ],
397
397
  defaultVariants: { stacked: !1, stackedHeight: "grid" }
398
398
  }
399
- ), nr = le(
399
+ ), ir = ue(
400
400
  "ds:ps-[var(--spacing-md)] ds:pt-[var(--spacing-xs)]",
401
401
  {
402
402
  variants: {
@@ -419,7 +419,7 @@ const tr = le(
419
419
  },
420
420
  defaultVariants: { fit: "box", editing: !1 }
421
421
  }
422
- ), sr = le(
422
+ ), sr = ue(
423
423
  [
424
424
  "ds:absolute ds:bottom-[var(--spacing-2xs)] ds:end-[var(--spacing-2xs)]",
425
425
  "ds:inline-flex ds:size-[var(--spacing-lg)] ds:items-center ds:justify-center",
@@ -433,7 +433,7 @@ const tr = le(
433
433
  "ds:before:size-[var(--min-target-size)]",
434
434
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
435
435
  ].join(" ")
436
- ), pt = le(
436
+ ), gt = ue(
437
437
  "ds:items-center ds:gap-[calc(var(--min-target-size)_-_var(--spacing-xl))]",
438
438
  {
439
439
  variants: {
@@ -445,7 +445,7 @@ const tr = le(
445
445
  },
446
446
  defaultVariants: { when: "always" }
447
447
  }
448
- ), Fe = "ds:bg-[var(--card)] ds:data-[component=icon-button]:sm:before:block", ir = le(
448
+ ), Ye = "ds:bg-[var(--card)] ds:data-[component=icon-button]:sm:before:block", or = ue(
449
449
  "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)]",
450
450
  {
451
451
  variants: {
@@ -456,173 +456,187 @@ const tr = le(
456
456
  },
457
457
  defaultVariants: { editing: !1 }
458
458
  }
459
- ), or = le(
459
+ ), dr = ue(
460
460
  [
461
461
  "ds:m-0 ds:min-w-0 ds:flex-1 ds:truncate ds:text-sm ds:font-medium",
462
462
  "ds:rounded-[var(--radius-sm)]",
463
463
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
464
464
  ].join(" ")
465
- ), xt = Xt(
465
+ ), St = Ft(
466
466
  null
467
467
  );
468
- function gt(r) {
468
+ function ht(r) {
469
469
  return r !== void 0 && Number.isFinite(r) && r >= 1 ? Math.floor(r) : void 0;
470
470
  }
471
- function Le(r, s) {
472
- Dt.forEach(r, (i) => {
473
- if (Ht(i)) {
474
- if (i.type === zt) {
471
+ function Le(r, i) {
472
+ Ht.forEach(r, (s) => {
473
+ if (zt(s)) {
474
+ if (s.type === Xt) {
475
475
  Le(
476
- i.props.children,
477
- s
476
+ s.props.children,
477
+ i
478
478
  );
479
479
  return;
480
480
  }
481
- s(i);
481
+ i(s);
482
482
  }
483
483
  });
484
484
  }
485
- function kt({
485
+ function Mt({
486
486
  id: r,
487
- title: s,
488
- minStackedHeight: i,
487
+ title: i,
488
+ minStackedHeight: s,
489
489
  actions: l,
490
490
  actionsSlot: g,
491
491
  children: N
492
492
  }) {
493
- var V, ue, oe;
494
- const { t: m } = wt("ui"), a = Wt(xt), L = k(null), w = a == null ? void 0 : a.layoutById.get(r), [T, o] = B(null), [h, M] = B(!1), [_, y] = B(!1), [S, D] = B(!1);
495
- if (q(() => {
496
- if (!T) return;
497
- const u = () => M(T.scrollWidth > T.clientWidth);
498
- u();
499
- const J = typeof document < "u" ? document.fonts : void 0;
500
- J == null || J.addEventListener("loadingdone", u);
501
- const $ = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(u);
502
- return $ == null || $.observe(T), () => {
503
- J == null || J.removeEventListener("loadingdone", u), $ == null || $.disconnect();
493
+ var fe, de, T;
494
+ const { t: p } = xt("ui"), a = Wt(St), I = S(null), W = S(null), b = a == null ? void 0 : a.layoutById.get(r), [o, w] = J(null), [x, _] = J(!1), [k, E] = J(!1), [H, A] = J(!1);
495
+ if (B(() => {
496
+ if (!o) return;
497
+ const h = () => _(o.scrollWidth > o.clientWidth);
498
+ h();
499
+ const z = typeof document < "u" ? document.fonts : void 0;
500
+ z == null || z.addEventListener("loadingdone", h);
501
+ const q = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(h);
502
+ return q == null || q.observe(o), () => {
503
+ z == null || z.removeEventListener("loadingdone", h), q == null || q.disconnect();
504
504
  };
505
- }, [T, s]), q(() => {
506
- h || D(!1);
507
- }, [h]), te(() => {
508
- const u = L.current;
509
- !u || !w || (u.style.setProperty("--dg-x", String(w.x + 1)), u.style.setProperty("--dg-y", String(w.y + 1)), u.style.setProperty("--dg-w", String(w.w)), u.style.setProperty("--dg-h", String(w.h)), u.style.setProperty(
505
+ }, [o, i]), B(() => {
506
+ x || A(!1);
507
+ }, [x]), re(() => {
508
+ const h = I.current;
509
+ !h || !b || (h.style.setProperty("--dg-x", String(b.x + 1)), h.style.setProperty("--dg-y", String(b.y + 1)), h.style.setProperty("--dg-w", String(b.w)), h.style.setProperty("--dg-h", String(b.h)), h.style.setProperty(
510
510
  "--dg-min-stacked",
511
- i !== void 0 && Number.isFinite(i) && i > 0 ? `${i}px` : "auto"
511
+ s !== void 0 && Number.isFinite(s) && s > 0 ? `${s}px` : "auto"
512
512
  ));
513
- }, [w == null ? void 0 : w.x, w == null ? void 0 : w.y, w == null ? void 0 : w.w, w == null ? void 0 : w.h, w, i]), !a || !w) return null;
514
- const G = ((V = a.grab) == null ? void 0 : V.id) === r, z = a.editing, I = [
513
+ }, [b == null ? void 0 : b.x, b == null ? void 0 : b.y, b == null ? void 0 : b.w, b == null ? void 0 : b.h, b, s]), !a || !b) return null;
514
+ const $ = ((fe = a.grab) == null ? void 0 : fe.id) === r, G = a.editing, M = [
515
515
  ...l ?? [],
516
- ...z && a.canRemove ? [
516
+ ...G && a.canRemove ? [
517
517
  {
518
- id: "__remove__",
519
- label: m("dashboardGrid.remove", { title: s }),
520
- icon: /* @__PURE__ */ R(jt, {}),
518
+ id: bt,
519
+ label: p("dashboardGrid.remove", { title: i }),
520
+ icon: /* @__PURE__ */ R(Vt, {}),
521
521
  onSelect: () => a.requestRemove(r)
522
522
  }
523
523
  ] : []
524
- ], E = I.length > 1, Ae = a.headingLevel ? `h${a.headingLevel}` : "span";
525
- return /* @__PURE__ */ pe(
524
+ ], xe = M.length > 1, Q = a.headingLevel ? `h${a.headingLevel}` : "span";
525
+ return /* @__PURE__ */ ge(
526
526
  "div",
527
527
  {
528
- ref: L,
528
+ ref: I,
529
529
  role: "listitem",
530
- "aria-label": s,
530
+ "aria-label": i,
531
531
  "data-component": "dashboard-grid-widget",
532
532
  "data-widget-id": r,
533
- "data-grabbed": G || void 0,
533
+ "data-grabbed": $ || void 0,
534
534
  "data-selected": a.selectedId === r || void 0,
535
535
  "data-revealed": a.revealedId === r || void 0,
536
536
  "aria-current": a.selectedId === r ? "true" : void 0,
537
- className: rr({
537
+ className: nr({
538
538
  stacked: a.stacked,
539
539
  stackedHeight: a.stackedHeight
540
540
  }),
541
541
  children: [
542
- /* @__PURE__ */ pe(
542
+ /* @__PURE__ */ ge(
543
543
  "div",
544
544
  {
545
- className: ir({ editing: z }),
546
- onPointerDown: z ? (u) => a.startHeaderPress(r, u) : void 0,
545
+ className: or({ editing: G }),
546
+ onPointerDown: G ? (h) => a.startHeaderPress(r, h) : void 0,
547
547
  children: [
548
- z ? /* @__PURE__ */ R(
549
- Xe,
548
+ G ? /* @__PURE__ */ R(
549
+ Fe,
550
550
  {
551
551
  size: "sm",
552
552
  intent: "outline",
553
553
  type: "button",
554
- icon: /* @__PURE__ */ R(Vt, {}),
555
- "aria-label": m("dashboardGrid.move", { title: s }),
556
- "aria-pressed": G && ((ue = a.grab) == null ? void 0 : ue.kind) === "move",
557
- className: `ds:cursor-grab ds:touch-none ${Fe}`,
558
- onPointerDown: (u) => a.startPointerGrab("move", r, u),
559
- onKeyDown: (u) => a.keyboardStep(u, r),
554
+ icon: /* @__PURE__ */ R($t, {}),
555
+ "aria-label": p("dashboardGrid.move", { title: i }),
556
+ "aria-pressed": $ && ((de = a.grab) == null ? void 0 : de.kind) === "move",
557
+ className: `ds:cursor-grab ds:touch-none ${Ye}`,
558
+ onPointerDown: (h) => a.startPointerGrab("move", r, h),
559
+ onKeyDown: (h) => a.keyboardStep(h, r),
560
560
  onClick: () => a.startKeyboardGrab("move", r)
561
561
  }
562
562
  ) : null,
563
563
  /* @__PURE__ */ R(
564
- Ft,
564
+ Yt,
565
565
  {
566
- label: s,
567
- open: h && S,
568
- onOpenChange: (u) => D(u && h),
566
+ label: i,
567
+ open: x && H,
568
+ onOpenChange: (h) => A(h && x),
569
569
  children: /* @__PURE__ */ R(
570
- Ae,
570
+ Q,
571
571
  {
572
- ref: o,
573
- tabIndex: h || _ ? 0 : void 0,
572
+ ref: w,
573
+ tabIndex: x || k ? 0 : void 0,
574
574
  "data-dashboard-grid-title": "",
575
- onFocus: () => y(!0),
576
- onBlur: () => y(!1),
577
- className: or(),
578
- children: s
575
+ onFocus: () => E(!0),
576
+ onBlur: () => E(!1),
577
+ className: dr(),
578
+ children: i
579
579
  }
580
580
  )
581
581
  }
582
582
  ),
583
583
  g,
584
- I.length > 0 ? /* @__PURE__ */ R(
584
+ M.length > 0 ? /* @__PURE__ */ R(
585
585
  "div",
586
586
  {
587
- className: pt({
588
- when: E ? "wide" : "always"
587
+ className: gt({
588
+ when: xe ? "wide" : "always"
589
589
  }),
590
- children: I.map((u) => /* @__PURE__ */ R(
591
- Xe,
590
+ children: M.map((h) => /* @__PURE__ */ R(
591
+ Fe,
592
592
  {
593
593
  size: "sm",
594
594
  intent: "outline",
595
595
  type: "button",
596
- icon: u.icon,
597
- className: Fe,
598
- "aria-label": u.label,
599
- onClick: u.onSelect
596
+ icon: h.icon,
597
+ className: Ye,
598
+ "aria-label": h.label,
599
+ onClick: h.onSelect
600
600
  },
601
- u.id
601
+ h.id
602
602
  ))
603
603
  }
604
604
  ) : null,
605
- E ? /* @__PURE__ */ R("div", { className: pt({ when: "narrow" }), children: /* @__PURE__ */ pe(Re.Root, { modal: !1, children: [
606
- /* @__PURE__ */ R(Re.Trigger, { asChild: !0, children: /* @__PURE__ */ R(
607
- Xe,
605
+ xe ? /* @__PURE__ */ R("div", { className: gt({ when: "narrow" }), children: /* @__PURE__ */ ge(Ie.Root, { modal: !1, children: [
606
+ /* @__PURE__ */ R(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ R(
607
+ Fe,
608
608
  {
609
609
  size: "sm",
610
610
  intent: "outline",
611
611
  type: "button",
612
- icon: /* @__PURE__ */ R($t, {}),
613
- className: Fe,
614
- "aria-label": m("dashboardGrid.moreActions", { title: s })
612
+ icon: /* @__PURE__ */ R(qt, {}),
613
+ className: Ye,
614
+ "aria-label": p("dashboardGrid.moreActions", { title: i })
615
615
  }
616
616
  ) }),
617
- /* @__PURE__ */ R(Re.Content, { align: "end", children: I.map((u) => /* @__PURE__ */ R(
618
- Re.Item,
617
+ /* @__PURE__ */ R(
618
+ Ie.Content,
619
619
  {
620
- startIcon: u.icon,
621
- onSelect: u.onSelect,
622
- children: u.label
623
- },
624
- u.id
625
- )) })
620
+ align: "end",
621
+ onCloseAutoFocus: (h) => {
622
+ const z = W.current;
623
+ if (W.current = null, !z) return;
624
+ const q = document.activeElement;
625
+ z.onSelect(), (z.id === bt || document.activeElement !== q) && h.preventDefault();
626
+ },
627
+ children: M.map((h) => /* @__PURE__ */ R(
628
+ Ie.Item,
629
+ {
630
+ startIcon: h.icon,
631
+ onSelect: () => {
632
+ W.current = h;
633
+ },
634
+ children: h.label
635
+ },
636
+ h.id
637
+ ))
638
+ }
639
+ )
626
640
  ] }) }) : null
627
641
  ]
628
642
  }
@@ -630,32 +644,32 @@ function kt({
630
644
  /* @__PURE__ */ R(
631
645
  "div",
632
646
  {
633
- className: nr({
647
+ className: ir({
634
648
  fit: a.stacked && a.stackedHeight === "content" ? "content" : "box",
635
- editing: z
649
+ editing: G
636
650
  }),
637
651
  children: N
638
652
  }
639
653
  ),
640
- z ? /* @__PURE__ */ R(
654
+ G ? /* @__PURE__ */ R(
641
655
  "button",
642
656
  {
643
657
  type: "button",
644
- "aria-label": m("dashboardGrid.resize", { title: s }),
645
- "aria-pressed": G && ((oe = a.grab) == null ? void 0 : oe.kind) === "resize",
658
+ "aria-label": p("dashboardGrid.resize", { title: i }),
659
+ "aria-pressed": $ && ((T = a.grab) == null ? void 0 : T.kind) === "resize",
646
660
  className: sr(),
647
- onPointerDown: (u) => a.startPointerGrab("resize", r, u),
648
- onKeyDown: (u) => a.keyboardStep(u, r),
661
+ onPointerDown: (h) => a.startPointerGrab("resize", r, h),
662
+ onKeyDown: (h) => a.keyboardStep(h, r),
649
663
  onClick: () => a.startKeyboardGrab("resize", r),
650
- children: /* @__PURE__ */ R(qt, { "aria-hidden": "true" })
664
+ children: /* @__PURE__ */ R(Bt, { "aria-hidden": "true" })
651
665
  }
652
666
  ) : null
653
667
  ]
654
668
  }
655
669
  );
656
670
  }
657
- kt.displayName = "DashboardGrid.Widget";
658
- const ht = 1e3, dr = 1600, ar = [
671
+ Mt.displayName = "DashboardGrid.Widget";
672
+ const vt = 1e3, ar = 1600, cr = [
659
673
  "button",
660
674
  "a",
661
675
  "input",
@@ -667,99 +681,99 @@ const ht = 1e3, dr = 1600, ar = [
667
681
  '[role="button"]',
668
682
  '[role="menuitem"]',
669
683
  "[tabindex]:not([data-dashboard-grid-title])"
670
- ].join(", "), vt = 4, cr = 400, lr = 8, Ye = 48, ur = 18;
671
- function fr(r) {
672
- const s = {
684
+ ].join(", "), bt = "__remove__", wt = 4, lr = 400, ur = 8, Oe = 48, fr = 18;
685
+ function mr(r) {
686
+ const i = {
673
687
  x: null,
674
688
  y: null
675
- }, i = (l) => l === "auto" || l === "scroll" || l === "overlay";
676
- for (let l = r.parentElement; l && l !== document.body && l !== document.documentElement && !(s.x && s.y); l = l.parentElement) {
689
+ }, s = (l) => l === "auto" || l === "scroll" || l === "overlay";
690
+ for (let l = r.parentElement; l && l !== document.body && l !== document.documentElement && !(i.x && i.y); l = l.parentElement) {
677
691
  const g = window.getComputedStyle(l);
678
- !s.y && i(g.overflowY) && l.scrollHeight > l.clientHeight && (s.y = l), !s.x && i(g.overflowX) && l.scrollWidth > l.clientWidth && (s.x = l);
692
+ !i.y && s(g.overflowY) && l.scrollHeight > l.clientHeight && (i.y = l), !i.x && s(g.overflowX) && l.scrollWidth > l.clientWidth && (i.x = l);
679
693
  }
680
- return s;
694
+ return i;
681
695
  }
682
- function me(r, s, i, l, g, N, m = !0) {
683
- const a = r.find((h) => h.id === i);
696
+ function pe(r, i, s, l, g, N, p = !0) {
697
+ const a = r.find((w) => w.id === s);
684
698
  if (!a) return r;
685
- const L = m ? yt(r) + 2 : Number.POSITIVE_INFINITY, w = s === "move" ? Jt(r, i, l, Math.min(g, L - a.h), N) : Qt(r, i, l, Math.min(g, L - a.y), N), T = w.find((h) => h.id === i);
686
- return T !== void 0 && T.x === a.x && T.y === a.y && T.w === a.w && T.h === a.h ? r : w;
699
+ const I = p ? kt(r) + 2 : Number.POSITIVE_INFINITY, W = i === "move" ? Qt(r, s, l, Math.min(g, I - a.h), N) : Zt(r, s, l, Math.min(g, I - a.y), N), b = W.find((w) => w.id === s);
700
+ return b !== void 0 && b.x === a.x && b.y === a.y && b.w === a.w && b.h === a.h ? r : W;
687
701
  }
688
- function bt(r) {
689
- if (r >= Ye) return 0;
690
- const s = (Ye - Math.max(0, r)) / Ye;
691
- return Math.ceil(s * ur);
702
+ function yt(r) {
703
+ if (r >= Oe) return 0;
704
+ const i = (Oe - Math.max(0, r)) / Oe;
705
+ return Math.ceil(i * fr);
692
706
  }
693
- const Mt = Nt(
707
+ const Et = Dt(
694
708
  ({
695
709
  "aria-label": r,
696
- id: s,
697
- cols: i = 12,
710
+ id: i,
711
+ cols: s = 12,
698
712
  rowHeight: l = 96,
699
713
  layout: g,
700
714
  defaultLayout: N,
701
- onLayoutChange: m,
715
+ onLayoutChange: p,
702
716
  editing: a = !1,
703
- onRemoveWidget: L,
704
- onRequestAdd: w,
705
- stackBelow: T,
717
+ onRemoveWidget: I,
718
+ onRequestAdd: W,
719
+ stackBelow: b,
706
720
  onStackedChange: o,
707
- stackedHeight: h = "grid",
708
- selectedId: M,
721
+ stackedHeight: w = "grid",
722
+ selectedId: x,
709
723
  widgetHeadingLevel: _,
710
- children: y,
711
- className: S
712
- }, D) => {
713
- const { t: G } = wt("ui"), z = k(null), I = k(null), [E, Ae] = B(!1), V = k(!1);
714
- V.current = E;
715
- const ue = k(null), oe = A((e) => {
724
+ children: k,
725
+ className: E
726
+ }, H) => {
727
+ const { t: A } = xt("ui"), $ = S(null), G = S(null), [M, xe] = J(!1), Q = S(!1);
728
+ Q.current = M;
729
+ const fe = S(null), de = L((e) => {
716
730
  var d;
717
- if (e === V.current) return;
718
- const t = z.current, n = typeof document < "u" ? document.activeElement : null;
719
- ue.current = t && n instanceof HTMLElement && t.contains(n) ? {
731
+ if (e === Q.current) return;
732
+ const t = $.current, n = typeof document < "u" ? document.activeElement : null;
733
+ fe.current = t && n instanceof HTMLElement && t.contains(n) ? {
720
734
  element: n,
721
735
  widgetId: ((d = n.closest("[data-widget-id]")) == null ? void 0 : d.getAttribute("data-widget-id")) ?? null
722
- } : null, V.current = e, Ae(e);
736
+ } : null, Q.current = e, xe(e);
723
737
  }, []);
724
- te(() => {
725
- const e = z.current;
738
+ re(() => {
739
+ const e = $.current;
726
740
  if (!e) return;
727
- if (T === void 0) {
728
- oe(!1);
741
+ if (b === void 0) {
742
+ de(!1);
729
743
  return;
730
744
  }
731
- if (oe(
732
- mt(e.offsetWidth, T, V.current)
745
+ if (de(
746
+ pt(e.offsetWidth, b, Q.current)
733
747
  ), typeof ResizeObserver > "u") return;
734
748
  const t = new ResizeObserver((n) => {
735
- var c, v;
749
+ var c, m;
736
750
  const d = n[n.length - 1];
737
751
  if (!d) return;
738
- const f = ((v = (c = d.borderBoxSize) == null ? void 0 : c[0]) == null ? void 0 : v.inlineSize) ?? d.contentRect.width;
739
- oe(mt(f, T, V.current));
752
+ const u = ((m = (c = d.borderBoxSize) == null ? void 0 : c[0]) == null ? void 0 : m.inlineSize) ?? d.contentRect.width;
753
+ de(pt(u, b, Q.current));
740
754
  });
741
755
  return t.observe(e), () => t.disconnect();
742
- }, [T, oe]);
743
- const u = a && !E, J = se(() => {
756
+ }, [b, de]);
757
+ const T = a && !M, h = se(() => {
744
758
  const e = [];
745
- return Le(y, (t) => {
759
+ return Le(k, (t) => {
746
760
  t.props.id && e.push(t.props.id);
747
761
  }), e;
748
- }, [y]), $ = se(() => {
762
+ }, [k]), z = se(() => {
749
763
  const e = /* @__PURE__ */ new Map();
750
- return Le(y, (t) => {
764
+ return Le(k, (t) => {
751
765
  t.props.id && e.set(t.props.id, {
752
766
  defaultW: t.props.defaultW ?? 4,
753
767
  defaultH: t.props.defaultH ?? 2,
754
- minW: gt(t.props.minW),
755
- minH: gt(t.props.minH)
768
+ minW: ht(t.props.minW),
769
+ minH: ht(t.props.minH)
756
770
  });
757
771
  }), e;
758
- }, [y]), [St, Gt] = B(() => N ?? []), ye = g ?? St, Oe = k(ye);
759
- Oe.current = ye;
760
- const xe = A(
772
+ }, [k]), [q, Gt] = J(() => N ?? []), ke = g ?? q, je = S(ke);
773
+ je.current = ke;
774
+ const Se = L(
761
775
  (e) => e.map((t) => {
762
- const n = Oe.current.find((v) => v.id === t.id), { minW: d, minH: f, ...c } = t;
776
+ const n = je.current.find((m) => m.id === t.id), { minW: d, minH: u, ...c } = t;
763
777
  return {
764
778
  ...c,
765
779
  ...(n == null ? void 0 : n.minW) !== void 0 ? { minW: n.minW } : {},
@@ -767,237 +781,237 @@ const Mt = Nt(
767
781
  };
768
782
  }),
769
783
  []
770
- ), Q = A(
784
+ ), Z = L(
771
785
  (e) => {
772
- const t = xe(e);
773
- g === void 0 && Gt(t), m == null || m(t);
786
+ const t = Se(e);
787
+ g === void 0 && Gt(t), p == null || p(t);
774
788
  },
775
- [g, m, xe]
776
- ), { resolved: W, autoPlaced: je } = se(() => {
777
- const e = (f) => {
778
- const c = $.get(f.id);
779
- return Ie(
789
+ [g, p, Se]
790
+ ), { resolved: P, autoPlaced: Ve } = se(() => {
791
+ const e = (u) => {
792
+ const c = z.get(u.id);
793
+ return Ne(
780
794
  {
781
- ...f,
782
- ...(c == null ? void 0 : c.minW) !== void 0 ? { minW: Math.max(f.minW ?? 1, c.minW) } : {},
783
- ...(c == null ? void 0 : c.minH) !== void 0 ? { minH: Math.max(f.minH ?? 1, c.minH) } : {}
795
+ ...u,
796
+ ...(c == null ? void 0 : c.minW) !== void 0 ? { minW: Math.max(u.minW ?? 1, c.minW) } : {},
797
+ ...(c == null ? void 0 : c.minH) !== void 0 ? { minH: Math.max(u.minH ?? 1, c.minH) } : {}
784
798
  },
785
- i
799
+ s
786
800
  );
787
- }, t = ye.map(e), n = J.filter(
788
- (f) => !t.some((c) => c.id === f)
801
+ }, t = ke.map(e), n = h.filter(
802
+ (u) => !t.some((c) => c.id === u)
789
803
  );
790
804
  if (n.length === 0)
791
805
  return {
792
806
  resolved: t.some(
793
- (c, v) => t.some((x, p) => p > v && H(c, x))
794
- ) ? ie(t, i) : t,
807
+ (c, m) => t.some((y, f) => f > m && X(c, y))
808
+ ) ? oe(t, s) : t,
795
809
  autoPlaced: !1
796
810
  };
797
811
  const d = [...t];
798
- for (const f of n) {
799
- const c = $.get(f) ?? { defaultW: 4, defaultH: 2 }, v = Math.min(Math.max(c.defaultW, c.minW ?? 1), i), x = Math.max(c.defaultH, c.minH ?? 1), p = ft(d, i, v, x);
800
- d.push(e({ id: f, x: p.x, y: p.y, w: v, h: x }));
812
+ for (const u of n) {
813
+ const c = z.get(u) ?? { defaultW: 4, defaultH: 2 }, m = Math.min(Math.max(c.defaultW, c.minW ?? 1), s), y = Math.max(c.defaultH, c.minH ?? 1), f = mt(d, s, m, y);
814
+ d.push(e({ id: u, x: f.x, y: f.y, w: m, h: y }));
801
815
  }
802
- return { resolved: ie(d, i), autoPlaced: !0 };
803
- }, [ye, J, $, i]), Ve = k("");
804
- q(() => {
805
- if (!je) return;
806
- const e = W.map(
816
+ return { resolved: oe(d, s), autoPlaced: !0 };
817
+ }, [ke, h, z, s]), $e = S("");
818
+ B(() => {
819
+ if (!Ve) return;
820
+ const e = P.map(
807
821
  (t) => `${t.id}:${t.x},${t.y},${t.w},${t.h}`
808
822
  ).join("|");
809
- Ve.current !== e && (Ve.current = e, Q(W));
810
- }, [je, W, Q]);
811
- const [Et, Tt] = B(null), [de, $e] = B(null), [_t, ae] = B(""), Ne = k(null), j = k(null), ce = k(null), Pe = k(!1), ge = k(i);
812
- ge.current = i;
813
- const fe = k(W);
814
- fe.current = W;
815
- const re = A((e) => {
816
- Ne.current = e, Tt(e);
817
- }, []), ke = A(
823
+ $e.current !== e && ($e.current = e, Z(P));
824
+ }, [Ve, P, Z]);
825
+ const [Tt, _t] = J(null), [ae, qe] = J(null), [At, ce] = J(""), De = S(null), V = S(null), le = S(null), Pe = S(!1), he = S(s);
826
+ he.current = s;
827
+ const me = S(P);
828
+ me.current = P;
829
+ const ne = L((e) => {
830
+ De.current = e, _t(e);
831
+ }, []), Me = L(
818
832
  (e, t, n) => {
819
833
  const d = { kind: e, id: t, via: n };
820
- j.current = { ...d, baseLayout: fe.current }, $e(d), re(fe.current);
834
+ V.current = { ...d, baseLayout: me.current }, qe(d), ne(me.current);
821
835
  },
822
- [re]
823
- ), he = Et ?? W, Ke = se(
824
- () => new Map(he.map((e) => [e.id, e])),
825
- [he]
826
- ), Ue = A(
836
+ [ne]
837
+ ), ve = Tt ?? P, Ke = se(
838
+ () => new Map(ve.map((e) => [e.id, e])),
839
+ [ve]
840
+ ), Ue = L(
827
841
  (e, t) => {
828
- ae(
829
- e === "move" ? G("dashboardGrid.movedTo", { col: t.x + 1, row: t.y + 1 }) : G("dashboardGrid.resizedTo", { cols: t.w, rows: t.h })
842
+ ce(
843
+ e === "move" ? A("dashboardGrid.movedTo", { col: t.x + 1, row: t.y + 1 }) : A("dashboardGrid.resizedTo", { cols: t.w, rows: t.h })
830
844
  );
831
845
  },
832
- [G]
833
- ), F = k(null), Y = A(
846
+ [A]
847
+ ), Y = S(null), O = L(
834
848
  (e) => {
835
- var v;
836
- (v = F.current) == null || v.call(F), F.current = null;
837
- const t = Ne.current, n = j.current;
838
- if (j.current = null, ce.current = null, $e(null), re(null), !e || !t || !n) {
839
- ae(G("dashboardGrid.cancelled"));
849
+ var m;
850
+ (m = Y.current) == null || m.call(Y), Y.current = null;
851
+ const t = De.current, n = V.current;
852
+ if (V.current = null, le.current = null, qe(null), ne(null), !e || !t || !n) {
853
+ ce(A("dashboardGrid.cancelled"));
840
854
  return;
841
855
  }
842
- const d = ie(t, ge.current), f = (x) => x.map((p) => `${p.id}:${p.x},${p.y},${p.w},${p.h}`).join("|");
843
- if (f(d) === f(fe.current)) {
844
- ae(G("dashboardGrid.cancelled"));
856
+ const d = oe(t, he.current), u = (y) => y.map((f) => `${f.id}:${f.x},${f.y},${f.w},${f.h}`).join("|");
857
+ if (u(d) === u(me.current)) {
858
+ ce(A("dashboardGrid.cancelled"));
845
859
  return;
846
860
  }
847
- Q(d);
848
- const c = d.find((x) => x.id === n.id);
849
- ae(
850
- c ? G("dashboardGrid.droppedAt", {
861
+ Z(d);
862
+ const c = d.find((y) => y.id === n.id);
863
+ ce(
864
+ c ? A("dashboardGrid.droppedAt", {
851
865
  col: c.x + 1,
852
866
  row: c.y + 1
853
- }) : G("dashboardGrid.cancelled")
867
+ }) : A("dashboardGrid.cancelled")
854
868
  );
855
869
  },
856
- [re, Q, G]
857
- ), We = k(Y);
858
- We.current = Y;
859
- const qe = A(
870
+ [ne, Z, A]
871
+ ), We = S(O);
872
+ We.current = O;
873
+ const Be = L(
860
874
  (e, t) => {
861
- if (!u) return;
875
+ if (!T) return;
862
876
  if (Pe.current) {
863
877
  Pe.current = !1;
864
878
  return;
865
879
  }
866
- const n = j.current;
880
+ const n = V.current;
867
881
  if ((n == null ? void 0 : n.via) !== "pointer") {
868
882
  if (n && n.id === t && n.kind === e) {
869
- Y(!0);
883
+ O(!0);
870
884
  return;
871
885
  }
872
- ke(e, t, "keyboard"), ae(
873
- G(e === "move" ? "dashboardGrid.grabbed" : "dashboardGrid.resizeGrabbed")
886
+ Me(e, t, "keyboard"), ce(
887
+ A(e === "move" ? "dashboardGrid.grabbed" : "dashboardGrid.resizeGrabbed")
874
888
  );
875
889
  }
876
890
  },
877
- [u, ke, Y, G]
878
- ), Be = A(
891
+ [T, Me, O, A]
892
+ ), Je = L(
879
893
  (e, t) => {
880
- const n = j.current;
894
+ const n = V.current;
881
895
  if (!n || n.id !== t || n.via !== "keyboard")
882
896
  return;
883
897
  if (e.key === "Escape") {
884
- e.preventDefault(), Y(!1);
898
+ e.preventDefault(), O(!1);
885
899
  return;
886
900
  }
887
901
  if (!["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(e.key)) return;
888
902
  e.preventDefault();
889
- const f = typeof window < "u" && I.current ? window.getComputedStyle(I.current).direction === "rtl" : !1, c = e.key === "ArrowRight" ? f ? -1 : 1 : e.key === "ArrowLeft" ? f ? 1 : -1 : 0, v = e.key === "ArrowDown" ? 1 : e.key === "ArrowUp" ? -1 : 0, p = (Ne.current ?? n.baseLayout).find((P) => P.id === t);
890
- if (!p) return;
891
- const b = n.kind === "move" ? me(
903
+ const u = typeof window < "u" && G.current ? window.getComputedStyle(G.current).direction === "rtl" : !1, c = e.key === "ArrowRight" ? u ? -1 : 1 : e.key === "ArrowLeft" ? u ? 1 : -1 : 0, m = e.key === "ArrowDown" ? 1 : e.key === "ArrowUp" ? -1 : 0, f = (De.current ?? n.baseLayout).find((D) => D.id === t);
904
+ if (!f) return;
905
+ const v = n.kind === "move" ? pe(
892
906
  n.baseLayout,
893
907
  "move",
894
908
  t,
895
- p.x + c,
896
- p.y + v,
897
- i
898
- ) : me(
909
+ f.x + c,
910
+ f.y + m,
911
+ s
912
+ ) : pe(
899
913
  n.baseLayout,
900
914
  "resize",
901
915
  t,
902
- p.w + c,
903
- p.h + v,
904
- i
916
+ f.w + c,
917
+ f.h + m,
918
+ s
905
919
  );
906
- re(b);
907
- const C = b.find((P) => P.id === t);
920
+ ne(v);
921
+ const C = v.find((D) => D.id === t);
908
922
  C && Ue(n.kind, C);
909
923
  },
910
- [i, Y, re, Ue]
911
- ), ve = A(() => {
912
- const e = ce.current, t = j.current, n = I.current;
924
+ [s, O, ne, Ue]
925
+ ), be = L(() => {
926
+ const e = le.current, t = V.current, n = G.current;
913
927
  if (!e || !t || !n) return;
914
- const d = n.getBoundingClientRect(), f = e.lastClientX - d.left - e.startGridX, c = e.lastClientY - d.top - e.startGridY, v = Math.round(f / e.colStride) * (e.isRtl ? -1 : 1), x = Math.round(c / e.rowStride), { origin: p } = e;
915
- re(
916
- e.kind === "move" ? me(
928
+ const d = n.getBoundingClientRect(), u = e.lastClientX - d.left - e.startGridX, c = e.lastClientY - d.top - e.startGridY, m = Math.round(u / e.colStride) * (e.isRtl ? -1 : 1), y = Math.round(c / e.rowStride), { origin: f } = e;
929
+ ne(
930
+ e.kind === "move" ? pe(
917
931
  t.baseLayout,
918
932
  "move",
919
933
  e.id,
920
- p.x + v,
921
- p.y + x,
922
- ge.current
923
- ) : me(
934
+ f.x + m,
935
+ f.y + y,
936
+ he.current
937
+ ) : pe(
924
938
  t.baseLayout,
925
939
  "resize",
926
940
  e.id,
927
- p.w + v,
928
- p.h + x,
929
- ge.current
941
+ f.w + m,
942
+ f.h + y,
943
+ he.current
930
944
  )
931
945
  );
932
- }, [re]), Me = k(!1), Je = A(() => {
933
- var x;
934
- (x = F.current) == null || x.call(F);
935
- const e = (p) => {
936
- const b = ce.current;
937
- !b || p.pointerId !== b.pointerId || (b.lastClientX = p.clientX, b.lastClientY = p.clientY, b.travelled || (b.travelled = Math.hypot(
938
- p.clientX - b.pressX,
939
- p.clientY - b.pressY
940
- ) > vt), ve());
941
- }, t = (p) => (b) => {
942
- const C = ce.current;
943
- !C || b.pointerId !== C.pointerId || (Pe.current = C.fromHandle, We.current(p));
944
- }, n = t(!0), d = t(!1), f = () => ve();
946
+ }, [ne]), Ee = S(!1), Qe = L(() => {
947
+ var y;
948
+ (y = Y.current) == null || y.call(Y);
949
+ const e = (f) => {
950
+ const v = le.current;
951
+ !v || f.pointerId !== v.pointerId || (v.lastClientX = f.clientX, v.lastClientY = f.clientY, v.travelled || (v.travelled = Math.hypot(
952
+ f.clientX - v.pressX,
953
+ f.clientY - v.pressY
954
+ ) > wt), be());
955
+ }, t = (f) => (v) => {
956
+ const C = le.current;
957
+ !C || v.pointerId !== C.pointerId || (Pe.current = C.fromHandle, We.current(f));
958
+ }, n = t(!0), d = t(!1), u = () => be();
945
959
  let c = 0;
946
- const v = () => {
947
- c = requestAnimationFrame(v);
948
- const p = ce.current;
949
- if (!(p != null && p.travelled)) return;
950
- const b = I.current;
951
- if (!b) return;
952
- const { lastClientX: C, lastClientY: P } = p, K = fr(b), Ce = (U, dt, ee) => {
953
- const ze = ee ? window.innerHeight : window.innerWidth, O = U == null ? void 0 : U.getBoundingClientRect(), Lt = Math.max(
954
- ee ? (O == null ? void 0 : O.top) ?? 0 : (O == null ? void 0 : O.left) ?? 0,
960
+ const m = () => {
961
+ c = requestAnimationFrame(m);
962
+ const f = le.current;
963
+ if (!(f != null && f.travelled)) return;
964
+ const v = G.current;
965
+ if (!v) return;
966
+ const { lastClientX: C, lastClientY: D } = f, K = mr(v), Re = (U, at, te) => {
967
+ const Xe = te ? window.innerHeight : window.innerWidth, j = U == null ? void 0 : U.getBoundingClientRect(), It = Math.max(
968
+ te ? (j == null ? void 0 : j.top) ?? 0 : (j == null ? void 0 : j.left) ?? 0,
955
969
  0
956
- ), It = Math.min(
957
- ee ? (O == null ? void 0 : O.bottom) ?? ze : (O == null ? void 0 : O.right) ?? ze,
958
- ze
959
- ), we = bt(It - dt) - bt(dt - Lt);
960
- if (we === 0) return;
961
- const at = () => U ? ee ? U.scrollTop : U.scrollLeft : ee ? window.scrollY : window.scrollX, At = at();
962
- U == null || U.scrollBy(ee ? 0 : we, ee ? we : 0), (!U || at() === At) && window.scrollBy(ee ? 0 : we, ee ? we : 0);
970
+ ), Lt = Math.min(
971
+ te ? (j == null ? void 0 : j.bottom) ?? Xe : (j == null ? void 0 : j.right) ?? Xe,
972
+ Xe
973
+ ), ye = yt(Lt - at) - yt(at - It);
974
+ if (ye === 0) return;
975
+ const ct = () => U ? te ? U.scrollTop : U.scrollLeft : te ? window.scrollY : window.scrollX, Nt = ct();
976
+ U == null || U.scrollBy(te ? 0 : ye, te ? ye : 0), (!U || ct() === Nt) && window.scrollBy(te ? 0 : ye, te ? ye : 0);
963
977
  };
964
- Ce(K.y, P, !0), Ce(K.x, C, !1);
978
+ Re(K.y, D, !0), Re(K.x, C, !1);
965
979
  };
966
- c = requestAnimationFrame(v), window.addEventListener("pointermove", e), window.addEventListener("pointerup", n), window.addEventListener("pointercancel", d), window.addEventListener("scroll", f, {
980
+ c = requestAnimationFrame(m), window.addEventListener("pointermove", e), window.addEventListener("pointerup", n), window.addEventListener("pointercancel", d), window.addEventListener("scroll", u, {
967
981
  capture: !0,
968
982
  passive: !0
969
- }), F.current = () => {
970
- cancelAnimationFrame(c), Me.current = !1, window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", n), window.removeEventListener("pointercancel", d), window.removeEventListener("scroll", f, { capture: !0 });
983
+ }), Y.current = () => {
984
+ cancelAnimationFrame(c), Ee.current = !1, window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", n), window.removeEventListener("pointercancel", d), window.removeEventListener("scroll", u, { capture: !0 });
971
985
  };
972
- }, [ve]);
973
- q(
986
+ }, [be]);
987
+ B(
974
988
  () => () => {
975
989
  var e;
976
- (e = F.current) == null || e.call(F), F.current = null;
990
+ (e = Y.current) == null || e.call(Y), Y.current = null;
977
991
  },
978
992
  []
979
993
  );
980
- const Se = A(
981
- (e, t, n, d, f) => {
994
+ const Ge = L(
995
+ (e, t, n, d, u) => {
982
996
  var K;
983
- const c = I.current, v = fe.current.find((Ce) => Ce.id === t);
984
- if (!c || !v) return !1;
985
- const x = c.getBoundingClientRect();
986
- if (x.width <= 0) return !1;
987
- const p = window.getComputedStyle(c), b = Number.parseFloat(p.columnGap) || 0, C = Number.parseFloat(p.rowGap) || 0, P = (x.width - b * (i - 1)) / i;
988
- ce.current = {
997
+ const c = G.current, m = me.current.find((Re) => Re.id === t);
998
+ if (!c || !m) return !1;
999
+ const y = c.getBoundingClientRect();
1000
+ if (y.width <= 0) return !1;
1001
+ const f = window.getComputedStyle(c), v = Number.parseFloat(f.columnGap) || 0, C = Number.parseFloat(f.rowGap) || 0, D = (y.width - v * (s - 1)) / s;
1002
+ le.current = {
989
1003
  kind: e,
990
1004
  id: t,
991
1005
  pointerId: n.pointerId,
992
- startGridX: n.clientX - x.left,
993
- startGridY: n.clientY - x.top,
1006
+ startGridX: n.clientX - y.left,
1007
+ startGridY: n.clientY - y.top,
994
1008
  lastClientX: n.clientX,
995
1009
  lastClientY: n.clientY,
996
- origin: v,
997
- colStride: P + b,
1010
+ origin: m,
1011
+ colStride: D + v,
998
1012
  rowStride: l + C,
999
- isRtl: p.direction === "rtl",
1000
- fromHandle: f,
1013
+ isRtl: f.direction === "rtl",
1014
+ fromHandle: u,
1001
1015
  pressX: n.clientX,
1002
1016
  pressY: n.clientY,
1003
1017
  travelled: !1
@@ -1006,108 +1020,108 @@ const Mt = Nt(
1006
1020
  (K = d.setPointerCapture) == null || K.call(d, n.pointerId);
1007
1021
  } catch {
1008
1022
  }
1009
- return ke(e, t, "pointer"), Je(), !0;
1023
+ return Me(e, t, "pointer"), Qe(), !0;
1010
1024
  },
1011
- [i, l, ke, Je]
1012
- ), Qe = A(
1025
+ [s, l, Me, Qe]
1026
+ ), Ze = L(
1013
1027
  (e, t, n) => {
1014
- var d, f;
1015
- u && (j.current || (n.preventDefault(), (f = (d = n.currentTarget).focus) == null || f.call(d), Se(e, t, n, n.currentTarget, !0)));
1028
+ var d, u;
1029
+ T && (V.current || (n.preventDefault(), (u = (d = n.currentTarget).focus) == null || u.call(d), Ge(e, t, n, n.currentTarget, !0)));
1016
1030
  },
1017
- [u, Se]
1018
- ), Z = k(null), ne = A(() => {
1019
- const e = Z.current;
1020
- Z.current = null, e && (e.holdTimer && clearTimeout(e.holdTimer), e.cleanup());
1021
- }, []), Ze = A(
1031
+ [T, Ge]
1032
+ ), ee = S(null), ie = L(() => {
1033
+ const e = ee.current;
1034
+ ee.current = null, e && (e.holdTimer && clearTimeout(e.holdTimer), e.cleanup());
1035
+ }, []), et = L(
1022
1036
  (e, t) => {
1023
- if (!u || j.current || Z.current || t.button !== 0 || !t.isPrimary) return;
1037
+ if (!T || V.current || ee.current || t.button !== 0 || !t.isPrimary) return;
1024
1038
  const n = t.target;
1025
1039
  if (!t.currentTarget.contains(n)) return;
1026
- const d = n.closest(ar);
1040
+ const d = n.closest(cr);
1027
1041
  if (d && t.currentTarget.contains(d)) return;
1028
- const f = t.currentTarget, c = t.pointerType === "touch";
1042
+ const u = t.currentTarget, c = t.pointerType === "touch";
1029
1043
  c || t.preventDefault();
1030
- const v = (b, C) => {
1031
- const P = Z.current;
1032
- if (ne(), !(!P || j.current) && Se(
1044
+ const m = (v, C) => {
1045
+ const D = ee.current;
1046
+ if (ie(), !(!D || V.current) && Ge(
1033
1047
  "move",
1034
- P.id,
1048
+ D.id,
1035
1049
  {
1036
- pointerId: P.pointerId,
1037
- clientX: P.startClientX,
1038
- clientY: P.startClientY
1050
+ pointerId: D.pointerId,
1051
+ clientX: D.startClientX,
1052
+ clientY: D.startClientY
1039
1053
  },
1040
- P.surface,
1054
+ D.surface,
1041
1055
  !1
1042
1056
  )) {
1043
- Me.current = c;
1044
- const K = ce.current;
1045
- K && (K.lastClientX = b, K.lastClientY = C, K.travelled = !c), ve();
1057
+ Ee.current = c;
1058
+ const K = le.current;
1059
+ K && (K.lastClientX = v, K.lastClientY = C, K.travelled = !c), be();
1046
1060
  }
1047
- }, x = (b) => {
1048
- const C = Z.current;
1049
- if (!C || b.pointerId !== C.pointerId) return;
1050
- const P = Math.hypot(
1051
- b.clientX - C.startClientX,
1052
- b.clientY - C.startClientY
1061
+ }, y = (v) => {
1062
+ const C = ee.current;
1063
+ if (!C || v.pointerId !== C.pointerId) return;
1064
+ const D = Math.hypot(
1065
+ v.clientX - C.startClientX,
1066
+ v.clientY - C.startClientY
1053
1067
  );
1054
- c ? P > lr && ne() : P > vt && v(b.clientX, b.clientY);
1055
- }, p = (b) => {
1068
+ c ? D > ur && ie() : D > wt && m(v.clientX, v.clientY);
1069
+ }, f = (v) => {
1056
1070
  var C;
1057
- b.pointerId === ((C = Z.current) == null ? void 0 : C.pointerId) && ne();
1071
+ v.pointerId === ((C = ee.current) == null ? void 0 : C.pointerId) && ie();
1058
1072
  };
1059
- window.addEventListener("pointermove", x), window.addEventListener("pointerup", p), window.addEventListener("pointercancel", p), Z.current = {
1073
+ window.addEventListener("pointermove", y), window.addEventListener("pointerup", f), window.addEventListener("pointercancel", f), ee.current = {
1060
1074
  id: e,
1061
1075
  pointerId: t.pointerId,
1062
1076
  pointerType: t.pointerType,
1063
1077
  startClientX: t.clientX,
1064
1078
  startClientY: t.clientY,
1065
- surface: f,
1079
+ surface: u,
1066
1080
  holdTimer: c ? setTimeout(() => {
1067
- const b = Z.current;
1068
- b && v(b.startClientX, b.startClientY);
1069
- }, cr) : null,
1081
+ const v = ee.current;
1082
+ v && m(v.startClientX, v.startClientY);
1083
+ }, lr) : null,
1070
1084
  cleanup: () => {
1071
- window.removeEventListener("pointermove", x), window.removeEventListener("pointerup", p), window.removeEventListener("pointercancel", p);
1085
+ window.removeEventListener("pointermove", y), window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f);
1072
1086
  }
1073
1087
  };
1074
1088
  },
1075
- [u, Se, ve, ne]
1089
+ [T, Ge, be, ie]
1076
1090
  );
1077
- q(() => {
1078
- u || (ne(), j.current && We.current(!1));
1079
- }, [u, ne]), q(() => ne, [ne]), q(() => {
1080
- const e = I.current;
1081
- if (!u || !e) return;
1091
+ B(() => {
1092
+ T || (ie(), V.current && We.current(!1));
1093
+ }, [T, ie]), B(() => ie, [ie]), B(() => {
1094
+ const e = G.current;
1095
+ if (!T || !e) return;
1082
1096
  const t = (d) => {
1083
- Me.current && d.cancelable && d.preventDefault();
1097
+ Ee.current && d.cancelable && d.preventDefault();
1084
1098
  }, n = (d) => {
1085
- (Z.current || Me.current) && d.preventDefault();
1099
+ (ee.current || Ee.current) && d.preventDefault();
1086
1100
  };
1087
1101
  return e.addEventListener("touchmove", t, { passive: !1 }), e.addEventListener("contextmenu", n), () => {
1088
1102
  e.removeEventListener("touchmove", t), e.removeEventListener("contextmenu", n);
1089
1103
  };
1090
- }, [u]), q(() => {
1091
- if (!de) return;
1104
+ }, [T]), B(() => {
1105
+ if (!ae) return;
1092
1106
  const e = (t) => {
1093
- t.key === "Escape" && Y(!1);
1107
+ t.key === "Escape" && O(!1);
1094
1108
  };
1095
1109
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
1096
- }, [de, Y]), q(() => {
1097
- if (!de || de.via !== "keyboard") return;
1110
+ }, [ae, O]), B(() => {
1111
+ if (!ae || ae.via !== "keyboard") return;
1098
1112
  const e = (n) => {
1099
- var f;
1113
+ var u;
1100
1114
  const d = n.relatedTarget;
1101
- (!d || !((f = I.current) != null && f.contains(d))) && Y(!1);
1102
- }, t = I.current;
1115
+ (!d || !((u = G.current) != null && u.contains(d))) && O(!1);
1116
+ }, t = G.current;
1103
1117
  return t == null || t.addEventListener("focusout", e), () => t == null ? void 0 : t.removeEventListener("focusout", e);
1104
- }, [de, Y]), te(() => {
1105
- E && (j.current && Y(!1), a && ae(G("dashboardGrid.stackedReadOnly")));
1106
- }, [E, a, Y, G]), te(() => {
1107
- var f;
1108
- const e = ue.current;
1109
- ue.current = null;
1110
- const t = z.current;
1118
+ }, [ae, O]), re(() => {
1119
+ M && (V.current && O(!1), a && ce(A("dashboardGrid.stackedReadOnly")));
1120
+ }, [M, a, O, A]), re(() => {
1121
+ var u;
1122
+ const e = fe.current;
1123
+ fe.current = null;
1124
+ const t = $.current;
1111
1125
  if (!e || !t) return;
1112
1126
  const n = document.activeElement;
1113
1127
  if (n === e.element || n !== null && n !== document.body) return;
@@ -1124,251 +1138,261 @@ const Mt = Nt(
1124
1138
  d.setAttribute("tabindex", "-1"), d.focus();
1125
1139
  return;
1126
1140
  }
1127
- (f = I.current) == null || f.focus();
1128
- }, [E]);
1129
- const Ge = k(o);
1130
- Ge.current = o;
1131
- const et = k(!1);
1132
- te(() => {
1141
+ (u = G.current) == null || u.focus();
1142
+ }, [M]);
1143
+ const Te = S(o);
1144
+ Te.current = o;
1145
+ const tt = S(!1);
1146
+ re(() => {
1133
1147
  var e;
1134
- et.current !== E && (et.current = E, (e = Ge.current) == null || e.call(Ge, E));
1135
- }, [E]), te(() => {
1136
- const e = I.current;
1137
- e && (e.style.setProperty("--dg-cols", String(i)), e.style.setProperty("--dg-row", `${l}px`));
1138
- }, [i, l]);
1139
- const tt = yt(he);
1140
- te(() => {
1141
- const e = I.current;
1148
+ tt.current !== M && (tt.current = M, (e = Te.current) == null || e.call(Te, M));
1149
+ }, [M]), re(() => {
1150
+ const e = G.current;
1151
+ e && (e.style.setProperty("--dg-cols", String(s)), e.style.setProperty("--dg-row", `${l}px`));
1152
+ }, [s, l]);
1153
+ const rt = kt(ve);
1154
+ re(() => {
1155
+ const e = G.current;
1142
1156
  e && (e.style.setProperty(
1143
1157
  "--dg-grid-lines",
1144
- `repeating-linear-gradient(to right, color-mix(in srgb, var(--border) 50%, transparent) 0 1px, transparent 1px calc((100% + var(--spacing-md)) / ${i})), repeating-linear-gradient(to bottom, color-mix(in srgb, var(--border) 50%, transparent) 0 1px, transparent 1px calc(${l}px + var(--spacing-md)))`
1158
+ `repeating-linear-gradient(to right, color-mix(in srgb, var(--border) 50%, transparent) 0 1px, transparent 1px calc((100% + var(--spacing-md)) / ${s})), repeating-linear-gradient(to bottom, color-mix(in srgb, var(--border) 50%, transparent) 0 1px, transparent 1px calc(${l}px + var(--spacing-md)))`
1145
1159
  ), e.style.setProperty(
1146
1160
  "--dg-min-block",
1147
- `calc(${tt + 2} * (${l}px + var(--spacing-md)) - var(--spacing-md))`
1161
+ `calc(${rt + 2} * (${l}px + var(--spacing-md)) - var(--spacing-md))`
1148
1162
  ));
1149
- }, [i, l, tt]);
1150
- const rt = k(null), De = u && !!w, Ee = se(
1151
- () => De ? ft(he, i, 2, 2) : null,
1152
- [De, he, i]
1163
+ }, [s, l, rt]);
1164
+ const nt = S(null), He = T && !!W, _e = se(
1165
+ () => He ? mt(ve, s, 2, 2) : null,
1166
+ [He, ve, s]
1153
1167
  );
1154
- te(() => {
1155
- const e = rt.current;
1156
- !e || !Ee || (e.style.setProperty("--dg-x", String(Ee.x + 1)), e.style.setProperty("--dg-y", String(Ee.y + 1)), e.style.setProperty("--dg-w", "2"), e.style.setProperty("--dg-h", "2"));
1157
- }, [Ee]);
1158
- const nt = A(
1168
+ re(() => {
1169
+ const e = nt.current;
1170
+ !e || !_e || (e.style.setProperty("--dg-x", String(_e.x + 1)), e.style.setProperty("--dg-y", String(_e.y + 1)), e.style.setProperty("--dg-w", "2"), e.style.setProperty("--dg-h", "2"));
1171
+ }, [_e]);
1172
+ const it = L(
1159
1173
  (e) => {
1160
- Q(
1161
- ie(
1162
- fe.current.filter((t) => t.id !== e),
1163
- ge.current
1174
+ var u, c;
1175
+ const t = Array.from(
1176
+ ((u = G.current) == null ? void 0 : u.querySelectorAll("[data-widget-id]")) ?? []
1177
+ ), n = t.findIndex(
1178
+ (m) => m.getAttribute("data-widget-id") === e
1179
+ ), d = (c = t[n + 1] ?? t[n - 1]) == null ? void 0 : c.getAttribute(
1180
+ "data-widget-id"
1181
+ );
1182
+ Z(
1183
+ oe(
1184
+ me.current.filter((m) => m.id !== e),
1185
+ he.current
1164
1186
  )
1165
- ), ae(G("dashboardGrid.removed")), L == null || L(e), requestAnimationFrame(() => {
1166
- const t = I.current;
1167
- if (!t) return;
1168
- const n = t.querySelector("button");
1169
- n ? n.focus() : t.focus();
1187
+ ), ce(A("dashboardGrid.removed")), I == null || I(e), requestAnimationFrame(() => {
1188
+ const m = G.current;
1189
+ if (!m) return;
1190
+ const y = Array.from(
1191
+ m.querySelectorAll("[data-widget-id]")
1192
+ ).find((v) => v.getAttribute("data-widget-id") === d), f = (y == null ? void 0 : y.querySelector("button")) ?? m.querySelector("button");
1193
+ f ? f.focus() : m.focus();
1170
1194
  });
1171
1195
  },
1172
- [Q, L, G]
1173
- ), [st, it] = B(null), X = k(null), be = k(null), Te = k(0), _e = A(() => {
1196
+ [Z, I, A]
1197
+ ), [st, ot] = J(null), F = S(null), we = S(null), Ae = S(0), Ce = L(() => {
1174
1198
  var c;
1175
- const e = X.current, t = I.current;
1199
+ const e = F.current, t = G.current;
1176
1200
  if (!e || !t) return !1;
1177
1201
  const n = Array.from(
1178
1202
  t.querySelectorAll("[data-widget-id]")
1179
- ).find((v) => v.getAttribute("data-widget-id") === e.id), d = n == null ? void 0 : n.getBoundingClientRect();
1203
+ ).find((m) => m.getAttribute("data-widget-id") === e.id), d = n == null ? void 0 : n.getBoundingClientRect();
1180
1204
  if (!n || !d || d.height <= 0)
1181
- return performance.now() > e.deadline && (X.current = null, e.resolve(!1)), !1;
1182
- X.current = null;
1183
- const f = ((c = window.matchMedia) == null ? void 0 : c.call(window, "(prefers-reduced-motion: reduce)").matches) || window.getComputedStyle(t).getPropertyValue("--animation-duration").trim() === "0ms";
1205
+ return performance.now() > e.deadline && (F.current = null, e.resolve(!1)), !1;
1206
+ F.current = null;
1207
+ const u = ((c = window.matchMedia) == null ? void 0 : c.call(window, "(prefers-reduced-motion: reduce)").matches) || window.getComputedStyle(t).getPropertyValue("--animation-duration").trim() === "0ms";
1184
1208
  return n.scrollIntoView({
1185
1209
  block: "nearest",
1186
1210
  inline: "nearest",
1187
- behavior: f ? "auto" : "smooth"
1188
- }), it(e.id), be.current && clearTimeout(be.current), be.current = setTimeout(
1189
- () => it(null),
1190
- dr
1211
+ behavior: u ? "auto" : "smooth"
1212
+ }), ot(e.id), we.current && clearTimeout(we.current), we.current = setTimeout(
1213
+ () => ot(null),
1214
+ ar
1191
1215
  ), e.resolve(!0), !0;
1192
- }, []), ot = A(
1216
+ }, []), dt = L(
1193
1217
  (e) => new Promise((t) => {
1194
1218
  var c;
1195
- (c = X.current) == null || c.resolve(!1), cancelAnimationFrame(Te.current);
1219
+ (c = F.current) == null || c.resolve(!1), cancelAnimationFrame(Ae.current);
1196
1220
  const n = setTimeout(() => {
1197
- const v = X.current;
1198
- (v == null ? void 0 : v.resolve) === d && !_e() && X.current === v && (X.current = null, d(!1));
1199
- }, ht), d = (v) => {
1200
- clearTimeout(n), t(v);
1221
+ const m = F.current;
1222
+ (m == null ? void 0 : m.resolve) === d && !Ce() && F.current === m && (F.current = null, d(!1));
1223
+ }, vt), d = (m) => {
1224
+ clearTimeout(n), t(m);
1201
1225
  };
1202
- X.current = {
1226
+ F.current = {
1203
1227
  id: e,
1204
- deadline: performance.now() + ht,
1228
+ deadline: performance.now() + vt,
1205
1229
  resolve: d
1206
1230
  };
1207
- const f = () => {
1208
- X.current && !_e() && X.current && (Te.current = requestAnimationFrame(f));
1231
+ const u = () => {
1232
+ F.current && !Ce() && F.current && (Ae.current = requestAnimationFrame(u));
1209
1233
  };
1210
- Te.current = requestAnimationFrame(f);
1234
+ Ae.current = requestAnimationFrame(u);
1211
1235
  }),
1212
- [_e]
1236
+ [Ce]
1213
1237
  );
1214
- te(() => {
1215
- X.current && _e();
1216
- }), q(
1238
+ re(() => {
1239
+ F.current && Ce();
1240
+ }), B(
1217
1241
  () => () => {
1218
1242
  var e;
1219
- cancelAnimationFrame(Te.current), be.current && clearTimeout(be.current), (e = X.current) == null || e.resolve(!1), X.current = null;
1243
+ cancelAnimationFrame(Ae.current), we.current && clearTimeout(we.current), (e = F.current) == null || e.resolve(!1), F.current = null;
1220
1244
  },
1221
1245
  []
1222
1246
  );
1223
- const He = se(
1247
+ const ze = se(
1224
1248
  () => ({
1225
1249
  moveWidgetTo(e, t, n) {
1226
- if (!u || V.current || !Number.isFinite(t) || !Number.isFinite(n) || !W.some((f) => f.id === e)) return !1;
1227
- const d = me(
1228
- W,
1250
+ if (!T || Q.current || !Number.isFinite(t) || !Number.isFinite(n) || !P.some((u) => u.id === e)) return !1;
1251
+ const d = pe(
1252
+ P,
1229
1253
  "move",
1230
1254
  e,
1231
1255
  Math.round(t),
1232
1256
  Math.round(n),
1233
- i,
1257
+ s,
1234
1258
  !1
1235
1259
  );
1236
- return d !== W && Q(ie(d, i)), !0;
1260
+ return d !== P && Z(oe(d, s)), !0;
1237
1261
  },
1238
1262
  resizeWidgetTo(e, t, n) {
1239
- if (!u || V.current || !Number.isFinite(t) || !Number.isFinite(n) || !W.some((f) => f.id === e)) return !1;
1240
- const d = me(
1241
- W,
1263
+ if (!T || Q.current || !Number.isFinite(t) || !Number.isFinite(n) || !P.some((u) => u.id === e)) return !1;
1264
+ const d = pe(
1265
+ P,
1242
1266
  "resize",
1243
1267
  e,
1244
1268
  Math.round(t),
1245
1269
  Math.round(n),
1246
- i,
1270
+ s,
1247
1271
  !1
1248
1272
  );
1249
- return d !== W && Q(ie(d, i)), !0;
1273
+ return d !== P && Z(oe(d, s)), !0;
1250
1274
  },
1251
- revealWidget: ot,
1275
+ revealWidget: dt,
1252
1276
  getGridState() {
1253
1277
  return {
1254
- cols: i,
1278
+ cols: s,
1255
1279
  editing: a,
1256
- stacked: E,
1257
- layout: xe(W),
1258
- selectedId: M ?? null
1280
+ stacked: M,
1281
+ layout: Se(P),
1282
+ selectedId: x ?? null
1259
1283
  };
1260
1284
  }
1261
1285
  }),
1262
1286
  [
1263
- u,
1287
+ T,
1264
1288
  a,
1265
- E,
1266
- W,
1267
- i,
1268
- Q,
1269
- xe,
1270
- ot,
1271
- M
1289
+ M,
1290
+ P,
1291
+ s,
1292
+ Z,
1293
+ Se,
1294
+ dt,
1295
+ x
1272
1296
  ]
1273
1297
  );
1274
- Pt(D, () => He, [He]), Yt(Bt, He, s);
1298
+ Pt(H, () => ze, [ze]), Ot(Jt, ze, i);
1275
1299
  const Ct = se(
1276
1300
  () => ({
1277
- editing: u,
1278
- stacked: E,
1279
- stackedHeight: h,
1280
- selectedId: M,
1301
+ editing: T,
1302
+ stacked: M,
1303
+ stackedHeight: w,
1304
+ selectedId: x,
1281
1305
  revealedId: st,
1282
1306
  headingLevel: _,
1283
1307
  layoutById: Ke,
1284
- grab: de,
1285
- canRemove: !!L,
1286
- requestRemove: nt,
1287
- startKeyboardGrab: qe,
1288
- keyboardStep: Be,
1289
- startPointerGrab: Qe,
1290
- startHeaderPress: Ze
1308
+ grab: ae,
1309
+ canRemove: !!I,
1310
+ requestRemove: it,
1311
+ startKeyboardGrab: Be,
1312
+ keyboardStep: Je,
1313
+ startPointerGrab: Ze,
1314
+ startHeaderPress: et
1291
1315
  }),
1292
1316
  [
1293
- u,
1294
- E,
1295
- h,
1317
+ T,
1296
1318
  M,
1319
+ w,
1320
+ x,
1297
1321
  st,
1298
1322
  _,
1299
1323
  Ke,
1300
- de,
1301
- L,
1302
- nt,
1303
- qe,
1324
+ ae,
1325
+ I,
1326
+ it,
1304
1327
  Be,
1305
- Qe,
1306
- Ze
1328
+ Je,
1329
+ Ze,
1330
+ et
1307
1331
  ]
1308
1332
  ), Rt = se(() => {
1309
- if (T === void 0) return y;
1333
+ if (b === void 0) return k;
1310
1334
  const e = [], t = /* @__PURE__ */ new Map(), n = [];
1311
- return Le(y, (d) => {
1312
- const f = d.props.id;
1313
- if (f && !t.has(f)) {
1314
- const c = ct(d, {
1315
- key: `widget:${f}:${d.key ?? ""}`
1335
+ return Le(k, (d) => {
1336
+ const u = d.props.id;
1337
+ if (u && !t.has(u)) {
1338
+ const c = lt(d, {
1339
+ key: `widget:${u}:${d.key ?? ""}`
1316
1340
  });
1317
- t.set(f, c), e.push(c);
1341
+ t.set(u, c), e.push(c);
1318
1342
  } else {
1319
- const c = ct(d, {
1343
+ const c = lt(d, {
1320
1344
  key: d.key === null ? `child:at:${n.length}` : `child:key:${d.key}`
1321
1345
  });
1322
1346
  n.push(c), e.push(c);
1323
1347
  }
1324
- }), E ? [
1325
- ...er([...t.keys()], W).map(
1348
+ }), M ? [
1349
+ ...tr([...t.keys()], P).map(
1326
1350
  (d) => t.get(d)
1327
1351
  ),
1328
1352
  ...n
1329
1353
  ] : e;
1330
- }, [T, y, E, W]);
1331
- return /* @__PURE__ */ pe(
1354
+ }, [b, k, M, P]);
1355
+ return /* @__PURE__ */ ge(
1332
1356
  "div",
1333
1357
  {
1334
- ref: z,
1358
+ ref: $,
1335
1359
  "data-component": "dashboard-grid",
1336
- "data-component-id": s,
1337
- "data-editing": u || void 0,
1338
- "data-stacked": E || void 0,
1339
- className: `ds:block ds:w-full ${S ?? ""}`.trim(),
1360
+ "data-component-id": i,
1361
+ "data-editing": T || void 0,
1362
+ "data-stacked": M || void 0,
1363
+ className: `ds:block ds:w-full ${E ?? ""}`.trim(),
1340
1364
  children: [
1341
- /* @__PURE__ */ R("div", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: _t }),
1342
- /* @__PURE__ */ pe(
1365
+ /* @__PURE__ */ R("div", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: At }),
1366
+ /* @__PURE__ */ ge(
1343
1367
  "div",
1344
1368
  {
1345
- ref: I,
1369
+ ref: G,
1346
1370
  role: "list",
1347
1371
  "aria-label": r,
1348
1372
  tabIndex: -1,
1349
- "data-editing": u || void 0,
1350
- "data-stacked": E || void 0,
1351
- className: tr({ stacked: E }),
1373
+ "data-editing": T || void 0,
1374
+ "data-stacked": M || void 0,
1375
+ className: rr({ stacked: M }),
1352
1376
  children: [
1353
- /* @__PURE__ */ R(xt.Provider, { value: Ct, children: Rt }),
1354
- De ? (
1377
+ /* @__PURE__ */ R(St.Provider, { value: Ct, children: Rt }),
1378
+ He ? (
1355
1379
  // role="list" allows only listitem children — the tile wrapper
1356
1380
  // carries the grid placement, the button fills it.
1357
1381
  /* @__PURE__ */ R(
1358
1382
  "div",
1359
1383
  {
1360
- ref: rt,
1384
+ ref: nt,
1361
1385
  role: "listitem",
1362
1386
  className: [
1363
1387
  "ds:flex",
1364
1388
  "ds:[grid-column-start:var(--dg-x)] ds:[grid-column-end:span_var(--dg-w)]",
1365
1389
  "ds:[grid-row-start:var(--dg-y)] ds:[grid-row-end:span_var(--dg-h)]"
1366
1390
  ].join(" "),
1367
- children: /* @__PURE__ */ pe(
1391
+ children: /* @__PURE__ */ ge(
1368
1392
  "button",
1369
1393
  {
1370
1394
  type: "button",
1371
- onClick: w,
1395
+ onClick: W,
1372
1396
  className: [
1373
1397
  "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
1374
1398
  "ds:rounded-[var(--radius-lg)] ds:border ds:border-dashed ds:border-border",
@@ -1377,8 +1401,8 @@ const Mt = Nt(
1377
1401
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring"
1378
1402
  ].join(" "),
1379
1403
  children: [
1380
- /* @__PURE__ */ R(Ot, { "aria-hidden": "true", className: "ds:size-4" }),
1381
- G("dashboardGrid.add")
1404
+ /* @__PURE__ */ R(jt, { "aria-hidden": "true", className: "ds:size-4" }),
1405
+ A("dashboardGrid.add")
1382
1406
  ]
1383
1407
  }
1384
1408
  )
@@ -1393,12 +1417,12 @@ const Mt = Nt(
1393
1417
  );
1394
1418
  }
1395
1419
  );
1396
- Mt.displayName = "DashboardGrid";
1397
- const Tr = Object.assign(Mt, {
1398
- Widget: kt
1420
+ Et.displayName = "DashboardGrid";
1421
+ const _r = Object.assign(Et, {
1422
+ Widget: Mt
1399
1423
  });
1400
1424
  export {
1401
- Tr as D,
1402
- Bt as d
1425
+ _r as D,
1426
+ Jt as d
1403
1427
  };
1404
- //# sourceMappingURL=dashboard-grid-DRnhIlT-.js.map
1428
+ //# sourceMappingURL=dashboard-grid-B2MB7SRS.js.map