@alfadocs/ui-kit 1.60.0 → 1.62.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 (369) hide show
  1. package/dist/_chunks/{actions-cell-renderer-CZWGQFKV.js → actions-cell-renderer-BXCpK2_0.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DauvvKX6.js → agenda-card-DR9gDdKp.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-DU7O5Z7R.js → agenda-tray-DGB1Zup-.js} +3 -3
  4. package/dist/_chunks/{ai-credits-notice-MBgQXxsx.js → ai-credits-notice-pK9BOmEz.js} +2 -2
  5. package/dist/_chunks/{ai-permission-notice-BJHutKLE.js → ai-permission-notice-DpRmZ9Q3.js} +4 -4
  6. package/dist/_chunks/{ai-prompt-input-Dzos37rf.js → ai-prompt-input-DSGSe4LH.js} +2 -2
  7. package/dist/_chunks/{alert-BhCstf2h.js → alert-DdDpOi-P.js} +2 -2
  8. package/dist/_chunks/{alia-sidebar-CU3mVL9J.js → alia-sidebar-qe0quZkB.js} +6 -6
  9. package/dist/_chunks/{anamnesis-card-VjJOUl-t.js → anamnesis-card-CsUBOG32.js} +3 -3
  10. package/dist/_chunks/{anamnesis-summary-card-cCj7LPh3.js → anamnesis-summary-card-CMzBLTiN.js} +3 -3
  11. package/dist/_chunks/{anamnesis-summary-rows-C5F08WT6.js → anamnesis-summary-rows-DFWws7mM.js} +11 -11
  12. package/dist/_chunks/{antenatal-schedule-timeline-CfNFrej5.js → antenatal-schedule-timeline-DuaAQj1m.js} +2 -2
  13. package/dist/_chunks/app-frame-DUPEwu4E.js +179 -0
  14. package/dist/_chunks/app-frame-context-CPszhDDb.js +10 -0
  15. package/dist/_chunks/{appointment-card-BXQUZlAJ.js → appointment-card-CL32sux-.js} +3 -3
  16. package/dist/_chunks/{appointment-peek-BvzXHYiD.js → appointment-peek-B5mcDcXt.js} +3 -3
  17. package/dist/_chunks/{appointment-timeline-r-q97cec.js → appointment-timeline-DaHKV81s.js} +4 -4
  18. package/dist/_chunks/{appointment-tray-DF_R9ldY.js → appointment-tray-qtpJt8e0.js} +3 -3
  19. package/dist/_chunks/{audio-recorder-Cssm6jVh.js → audio-recorder-DR-u1qbl.js} +3 -3
  20. package/dist/_chunks/{auth-form-parts-CravOf0L.js → auth-form-parts-Cmb41LSQ.js} +2 -2
  21. package/dist/_chunks/{badge-hnBt8o7n.js → badge-BUk4RjTS.js} +2 -2
  22. package/dist/_chunks/{balance-badge-cell-DMG06b2C.js → balance-badge-cell-F7p_ZKEg.js} +5 -5
  23. package/dist/_chunks/{bishop-score-DxfkcxiV.js → bishop-score-CaNTrikJ.js} +2 -2
  24. package/dist/_chunks/{bmi-calculator-B4kgPqt5.js → bmi-calculator-DjmQ04Ch.js} +4 -4
  25. package/dist/_chunks/{booking-CXaqmdF7.js → booking-CGhOtxad.js} +8 -8
  26. package/dist/_chunks/{button-group-Cfpyu6pc.js → button-group-DCOJhvm3.js} +3 -3
  27. package/dist/_chunks/{calendar-DNTVaK6b.js → calendar-DCr65Kt1.js} +3 -3
  28. package/dist/_chunks/{calendar-workspace-UL5xcpWa.js → calendar-workspace-Dvfl9Vf6.js} +29 -29
  29. package/dist/_chunks/{care-plan-card-DFQbU_Gd.js → care-plan-card-BU3p5cLr.js} +3 -3
  30. package/dist/_chunks/{care-plan-entry-card-bj784KRk.js → care-plan-entry-card-DPJcP34v.js} +4 -4
  31. package/dist/_chunks/{care-plan-header-DDhyAfVK.js → care-plan-header-CgFjQLBd.js} +3 -3
  32. package/dist/_chunks/{carousel.agent-Csn24G1k.js → carousel.agent-BaRsN-8H.js} +2 -2
  33. package/dist/_chunks/chart-DgYHN8Xq.js +991 -0
  34. package/dist/_chunks/{chat-input-Ck34Pnmp.js → chat-input-HtTbUUD6.js} +2 -2
  35. package/dist/_chunks/{chat-message-DU0X3Xnl.js → chat-message-fRLZ95O5.js} +2 -2
  36. package/dist/_chunks/{checkbox--ndmyokr.js → checkbox-BjDv-r3o.js} +2 -2
  37. package/dist/_chunks/{checkbox-group-B0oZHNT3.js → checkbox-group-Cw2H5qaq.js} +2 -2
  38. package/dist/_chunks/{clinical-note-card-L6FVM9Gx.js → clinical-note-card-BgURrgL5.js} +3 -3
  39. package/dist/_chunks/{code-block-DiC4bg-o.js → code-block-vwEv1jEa.js} +2 -2
  40. package/dist/_chunks/{connection-status-BAnuwayz.js → connection-status--wYsgreh.js} +3 -3
  41. package/dist/_chunks/{contact-profile-card-JTRbnbxy.js → contact-profile-card-VTCAmQqj.js} +3 -3
  42. package/dist/_chunks/control-room-rail-DUerqHeo.js +416 -0
  43. package/dist/_chunks/{cycle-calculator-BuFi6ZJa.js → cycle-calculator-D-rwX9Pj.js} +2 -2
  44. package/dist/_chunks/dashboard-grid-B2MB7SRS.js +1428 -0
  45. package/dist/_chunks/{data-table-DAPkhyXO.js → data-table-m7GbLJZy.js} +6 -6
  46. package/dist/_chunks/{data-table-tabs-2t0cdk0h.js → data-table-tabs-BfrnefV5.js} +3 -3
  47. package/dist/_chunks/{dependent-selector-DgaAQc-c.js → dependent-selector-DBr1AhLg.js} +3 -3
  48. package/dist/_chunks/{description-list-CFEw__MT.js → description-list-Q8640NHu.js} +2 -2
  49. package/dist/_chunks/{dev-bypass-button-dTuUuzsT.js → dev-bypass-button--CPzzRSj.js} +2 -2
  50. package/dist/_chunks/{document-preview-DYX669jE.js → document-preview-B1dQm292.js} +4 -4
  51. package/dist/_chunks/{document-scanner-C41n4pNq.js → document-scanner-CVPVLK7z.js} +2 -2
  52. package/dist/_chunks/{due-date-calculator-yYvX8Ww_.js → due-date-calculator-DTfxFJCM.js} +5 -5
  53. package/dist/_chunks/{editable-currency-cell-renderer-6LDFAWUE.js → editable-currency-cell-renderer-1ijmzNWh.js} +4 -4
  54. package/dist/_chunks/{editable-description-D9FsTi8e.js → editable-description-ChGNdYY8.js} +2 -2
  55. package/dist/_chunks/{editor-overlay-BYkcaLCj.js → editor-overlay-CpVO1-Kk.js} +2 -2
  56. package/dist/_chunks/{entity-summary-oD_63dlz.js → entity-summary-DXIr5_x2.js} +4 -4
  57. package/dist/_chunks/{error-summary-BhM8FEkl.js → error-summary-DrUfuKu1.js} +2 -2
  58. package/dist/_chunks/{face-scheme-C-5V3MsY.js → face-scheme-DAD-mXzM.js} +4 -4
  59. package/dist/_chunks/{fetal-weight-CHv2winC.js → fetal-weight-DycD_Vqr.js} +2 -2
  60. package/dist/_chunks/{field-array-dSkD_ePA.js → field-array-BJYc1xSu.js} +2 -2
  61. package/dist/_chunks/{file-manager-C8bdHsYy.js → file-manager-G0t8MWbE.js} +6 -6
  62. package/dist/_chunks/{fiscal-code-input-BSWwda0C.js → fiscal-code-input-DwHb2nVW.js} +2 -2
  63. package/dist/_chunks/{forgot-password-form-CGWV5Q1-.js → forgot-password-form-CgZkEvZy.js} +4 -4
  64. package/dist/_chunks/{freemium-paywall-DjjVPC-5.js → freemium-paywall-r-z48YaT.js} +2 -2
  65. package/dist/_chunks/{gestational-age-calculator-BLccWS_4.js → gestational-age-calculator-BnCAL5a-.js} +5 -5
  66. package/dist/_chunks/{hcg-doubling-CnrY2OVu.js → hcg-doubling-DVDiqFyp.js} +2 -2
  67. package/dist/_chunks/{header-BVHAt7Fi.js → header-_TppWBpK.js} +2 -2
  68. package/dist/_chunks/{header-settings-C200bKyp.js → header-settings-BSH9Gk0J.js} +3 -3
  69. package/dist/_chunks/{heatmap-CRMr7VWC.js → heatmap-Bb0-M88T.js} +4 -4
  70. package/dist/_chunks/{help-me-write-templates-C9T8-DcT.js → help-me-write-templates-DFmqnsAa.js} +4 -4
  71. package/dist/_chunks/{hover-card-DbTmj-ea.js → hover-card-CTNhQXWS.js} +2 -2
  72. package/dist/_chunks/{icon-button-dNE6ENLn.js → icon-button-C_1TgRiK.js} +2 -2
  73. package/dist/_chunks/{icon-button-group-Du8IvZek.js → icon-button-group-NIHji7_y.js} +2 -2
  74. package/dist/_chunks/{icon-picker-D5NdDbCL.js → icon-picker-Dq4O32K8.js} +2 -2
  75. package/dist/_chunks/{info-tip-DObdz3w3.js → info-tip-cYszyg6h.js} +2 -2
  76. package/dist/_chunks/{key-value-pair-BNYHAZwD.js → key-value-pair-BscGwZsJ.js} +2 -2
  77. package/dist/_chunks/{kit-extensions-DI2nHVNw.js → kit-extensions-RnddkrXn.js} +6 -6
  78. package/dist/_chunks/{link-cell-renderer-DvhzS6lu.js → link-cell-renderer-dtEYlxi2.js} +6 -6
  79. package/dist/_chunks/{locale-picker-Bu4YE5b2.js → locale-picker-CeveTnDK.js} +3 -3
  80. package/dist/_chunks/{login-dev-card-DwWWHclZ.js → login-dev-card-PnADNcI9.js} +3 -3
  81. package/dist/_chunks/{marketplace-app-shell-DK2pFMpf.js → marketplace-app-shell-C-2e4eCD.js} +139 -136
  82. package/dist/_chunks/{message-card-CvZlo3Fn.js → message-card-A3mJNqfy.js} +2 -2
  83. package/dist/_chunks/{message-tray-DrS_LOed.js → message-tray-Ft6vSr71.js} +3 -3
  84. package/dist/_chunks/{multi-select-BT23EnSA.js → multi-select-CMaAQQgb.js} +2 -2
  85. package/dist/_chunks/{note-attachment-Bt2cddsZ.js → note-attachment-DoVWvjWR.js} +2 -2
  86. package/dist/_chunks/{note-timeline-CX9nAgAR.js → note-timeline-B7l3t5DZ.js} +2 -2
  87. package/dist/_chunks/{notes-panel-6TElt7jQ.js → notes-panel-CTmvrqQn.js} +7 -7
  88. package/dist/_chunks/{notification-card-Qrs52HIA.js → notification-card-c2oX8j3F.js} +2 -2
  89. package/dist/_chunks/{notification-tray-DRm1z97G.js → notification-tray-BR3seWA7.js} +3 -3
  90. package/dist/_chunks/{operator-hero-C_Khr5IU.js → operator-hero-3_RG4Dkj.js} +2 -2
  91. package/dist/_chunks/{optical-prescription-DLIAhJ6f.js → optical-prescription-CxfMsbxi.js} +2 -2
  92. package/dist/_chunks/{panel-header-D_mTdhUp.js → panel-header-BJkaUwnl.js} +2 -2
  93. package/dist/_chunks/{panel-subview-CjZgdWwO.js → panel-subview-yP4qIbKS.js} +3 -3
  94. package/dist/_chunks/{patient-details-BjqKBY2x.js → patient-details-BNDS69Zx.js} +4 -4
  95. package/dist/_chunks/{patient-field-row-BiI0BPPK.js → patient-field-row-BLBi-PjO.js} +7 -7
  96. package/dist/_chunks/{patient-search-B5R7FyFO.js → patient-search-DOnDUVsl.js} +2 -2
  97. package/dist/_chunks/{patient-summary-card-BOgnWKRV.js → patient-summary-card-T9umuZJF.js} +8 -8
  98. package/dist/_chunks/{payment-automation-upsell-39d5ykBi.js → payment-automation-upsell-C8MEu0t6.js} +4 -4
  99. package/dist/_chunks/{payment-form-v6zZuV1_.js → payment-form-i90DUuNK.js} +2 -2
  100. package/dist/_chunks/{payment-request-card-E3G4aVt6.js → payment-request-card-BmzNMY2a.js} +4 -4
  101. package/dist/_chunks/{pdf-viewer-CNQxa4tv.js → pdf-viewer-DJ9VN7cu.js} +2 -2
  102. package/dist/_chunks/{periodontal-chart-BZ1d6S36.js → periodontal-chart-DCcOEYC6.js} +2 -2
  103. package/dist/_chunks/{periodontal-chart-card-BE5hiQnn.js → periodontal-chart-card-CxdjXFb3.js} +3 -3
  104. package/dist/_chunks/{periodontal-diagnosis-6wybid_W.js → periodontal-diagnosis-B9YmmVmM.js} +5 -5
  105. package/dist/_chunks/{periodontal-risk-chart-CgLwBj5c.js → periodontal-risk-chart-CPy7CNFe.js} +2 -2
  106. package/dist/_chunks/{permission-matrix-DuTkUHxe.js → permission-matrix-BoQjENGV.js} +3 -3
  107. package/dist/_chunks/{popover-DQr_tljb.js → popover-4ZVtH_At.js} +2 -2
  108. package/dist/_chunks/{practice-profile-hero-DPbvYfCs.js → practice-profile-hero-Dfc0F60y.js} +2 -2
  109. package/dist/_chunks/{practice-results-Cktx7KaC.js → practice-results-B8L9ZmtR.js} +4 -4
  110. package/dist/_chunks/{pregnancy-dating-26fcvhAx.js → pregnancy-dating-D2XTELiw.js} +5 -5
  111. package/dist/_chunks/{pregnancy-weight-gain-D8q1IUCT.js → pregnancy-weight-gain-BVvyL-j1.js} +4 -4
  112. package/dist/_chunks/{privacy-lock-BpVgSgMb.js → privacy-lock-CEYJ8ehu.js} +2 -2
  113. package/dist/_chunks/{privacy-mask-BfMC57ST.js → privacy-mask-Ch7743uk.js} +2 -2
  114. package/dist/_chunks/{product-hub-panel-CH4B49ij.js → product-hub-panel-D-UELdo0.js} +2 -2
  115. package/dist/_chunks/{public-header.agent-BHTDKMsw.js → public-header.agent-DXRA7ebK.js} +3 -3
  116. package/dist/_chunks/{radio-BBbMdbE_.js → radio-BZQs6_36.js} +2 -2
  117. package/dist/_chunks/{radio-group-DicxWJXP.js → radio-group-ChIKyeSJ.js} +3 -3
  118. package/dist/_chunks/{radiograph-panel.agent-DR0gOeSc.js → radiograph-panel.agent-DDNUo4Ul.js} +4 -4
  119. package/dist/_chunks/{registration-form-B8IeB9kd.js → registration-form-BQyT_kBX.js} +5 -5
  120. package/dist/_chunks/{resource-chip-DQeCJzJf.js → resource-chip-DB5jDwUO.js} +2 -2
  121. package/dist/_chunks/{reviews-panel-CHzDqerd.js → reviews-panel-AvsVgtJu.js} +3 -3
  122. package/dist/_chunks/{rich-text-editor-BRuTo2hm.js → rich-text-editor-M2gT_E7f.js} +9 -9
  123. package/dist/_chunks/{sheet-CqvPYNLn.js → sheet-D2PfJl8n.js} +2 -2
  124. package/dist/_chunks/{sidebar-DhePV1hE.js → sidebar-BS24EnYd.js} +527 -519
  125. package/dist/_chunks/{sign-document-D4iHS_Ug.js → sign-document-CY7xTXbm.js} +2 -2
  126. package/dist/_chunks/{signature-request-BH7yKI01.js → signature-request-BMCHy2ZO.js} +5 -5
  127. package/dist/_chunks/{signature-status-chip-DP3qRijv.js → signature-status-chip-pIoQjvH8.js} +3 -3
  128. package/dist/_chunks/{signed-out-frame-eaOWHpDr.js → signed-out-frame-D5DzqATh.js} +3 -3
  129. package/dist/_chunks/{slot-grid-DELa2Nwz.js → slot-grid-dj5f6R2w.js} +2 -2
  130. package/dist/_chunks/{stat-DmjGfXND.js → stat-D2PNJujA.js} +2 -2
  131. package/dist/_chunks/{streaming-text-bPDoG7Y3.js → streaming-text-zFViGexf.js} +2 -2
  132. package/dist/_chunks/{tab-bar-5GppbMGc.js → tab-bar-BEODTG6k.js} +2 -2
  133. package/dist/_chunks/{tag-CS5cXpfx.js → tag-DOZGz0fT.js} +2 -2
  134. package/dist/_chunks/{task-card-zaTU1rQa.js → task-card-BS7Uqevr.js} +2 -2
  135. package/dist/_chunks/{task-editor-CgGcg-2c.js → task-editor-DoiOzNiC.js} +9 -9
  136. package/dist/_chunks/{task-tray-DGMwogWu.js → task-tray-eQU4KJcA.js} +3 -3
  137. package/dist/_chunks/{tasks-panel-xGtiEdcj.js → tasks-panel-8nLwBw6P.js} +7 -7
  138. package/dist/_chunks/{theme-toggle-_cfYEK73.js → theme-toggle-Ctb77x6O.js} +3 -3
  139. package/dist/_chunks/{toast-CNUydTgT.js → toast-6T519aLz.js} +2 -2
  140. package/dist/_chunks/tool-rail-C-03rH2I.js +973 -0
  141. package/dist/_chunks/tooltip-uEBdD1-5.js +178 -0
  142. package/dist/_chunks/{tooth-scheme-05DsRMA5.js → tooth-scheme-Dkh4JwzT.js} +2 -2
  143. package/dist/_chunks/{transcript-panel-CjsiDB1K.js → transcript-panel-XudW5l6l.js} +2 -2
  144. package/dist/_chunks/{treatment-receipt-BSVOfStA.js → treatment-receipt-BdJ36vNP.js} +3 -3
  145. package/dist/_chunks/{use-appointment-details-read-BGVthJFx.js → use-appointment-details-read-Gu0ehyxj.js} +16 -16
  146. package/dist/_chunks/use-edge-resize-CBtem0j2.js +171 -0
  147. package/dist/_chunks/{voice-control-panel-DyKEaFxt.js → voice-control-panel-C0BfY23Y.js} +4 -4
  148. package/dist/_chunks/{warning-stack-CAL9xVo1.js → warning-stack-HYWAytZV.js} +3 -3
  149. package/dist/_chunks/{widget-picker-CkhoG4Rj.js → widget-picker-DlNPGcnu.js} +2 -2
  150. package/dist/_chunks/{workflow-map-BUYG1oXU.js → workflow-map-C2B2qIr1.js} +5 -5
  151. package/dist/agent-catalog.json +49 -2
  152. package/dist/agent-i18n/en.json +13 -1
  153. package/dist/components/_shared/use-apex-legend-scroll.d.ts +7 -0
  154. package/dist/components/agenda-card/index.js +1 -1
  155. package/dist/components/agenda-tray/index.js +1 -1
  156. package/dist/components/ai-credits-notice/index.js +1 -1
  157. package/dist/components/ai-permission-notice/index.js +1 -1
  158. package/dist/components/ai-prompt-input/index.js +1 -1
  159. package/dist/components/alert/index.js +1 -1
  160. package/dist/components/anamnesis-card/index.js +1 -1
  161. package/dist/components/anamnesis-summary-card/index.js +1 -1
  162. package/dist/components/app-frame/app-frame-context.d.ts +19 -0
  163. package/dist/components/app-frame/app-frame.d.ts +3 -0
  164. package/dist/components/app-frame/index.d.ts +2 -0
  165. package/dist/components/app-frame/index.js +4 -2
  166. package/dist/components/appointment-card/index.js +2 -2
  167. package/dist/components/appointment-details-panel/index.js +1 -1
  168. package/dist/components/appointment-peek/index.js +1 -1
  169. package/dist/components/appointment-timeline/index.js +1 -1
  170. package/dist/components/audio-recorder/index.js +1 -1
  171. package/dist/components/badge/index.js +1 -1
  172. package/dist/components/bishop-score/index.js +1 -1
  173. package/dist/components/bmi-calculator/index.js +1 -1
  174. package/dist/components/booking/index.js +1 -1
  175. package/dist/components/button/index.js +1 -1
  176. package/dist/components/button-group/index.js +1 -1
  177. package/dist/components/calendar/index.js +1 -1
  178. package/dist/components/care-plan-card/index.js +1 -1
  179. package/dist/components/care-plan-entry-card/index.js +1 -1
  180. package/dist/components/care-plan-header/index.js +1 -1
  181. package/dist/components/carousel/index.js +1 -1
  182. package/dist/components/chart/chart.d.ts +3 -1
  183. package/dist/components/chart/index.js +1 -1
  184. package/dist/components/chat-input/index.js +1 -1
  185. package/dist/components/chat-message/index.js +1 -1
  186. package/dist/components/checkbox/index.js +1 -1
  187. package/dist/components/checkbox-group/index.js +1 -1
  188. package/dist/components/clinical-note-card/index.js +1 -1
  189. package/dist/components/connection-status/index.js +1 -1
  190. package/dist/components/contact-profile-card/index.js +1 -1
  191. package/dist/components/control-room-rail/control-room-context.d.ts +10 -4
  192. package/dist/components/control-room-rail/index.js +1 -1
  193. package/dist/components/cycle-calculator/index.js +1 -1
  194. package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts +16 -4
  195. package/dist/components/dashboard-grid/dashboard-grid.d.ts +42 -2
  196. package/dist/components/dashboard-grid/index.d.ts +1 -1
  197. package/dist/components/dashboard-grid/index.js +1 -1
  198. package/dist/components/data-table/index.js +4 -4
  199. package/dist/components/data-table-tabs/index.js +1 -1
  200. package/dist/components/dependent-selector/index.js +1 -1
  201. package/dist/components/description-list/index.js +1 -1
  202. package/dist/components/dev-bypass-button/index.js +1 -1
  203. package/dist/components/document-preview/index.js +1 -1
  204. package/dist/components/document-scanner/index.js +1 -1
  205. package/dist/components/due-date-calculator/index.js +2 -2
  206. package/dist/components/editable-description/index.js +1 -1
  207. package/dist/components/editor-overlay/index.js +1 -1
  208. package/dist/components/entity-summary/index.js +1 -1
  209. package/dist/components/error-summary/index.js +1 -1
  210. package/dist/components/face-scheme/index.js +1 -1
  211. package/dist/components/fetal-weight/index.js +1 -1
  212. package/dist/components/field-array/index.js +1 -1
  213. package/dist/components/file-manager/index.js +1 -1
  214. package/dist/components/fiscal-code-input/index.js +1 -1
  215. package/dist/components/freemium-paywall/index.js +1 -1
  216. package/dist/components/gestational-age-calculator/index.js +1 -1
  217. package/dist/components/hcg-doubling/index.js +1 -1
  218. package/dist/components/header/index.js +1 -1
  219. package/dist/components/header-settings/index.js +1 -1
  220. package/dist/components/heatmap/index.js +1 -1
  221. package/dist/components/hover-card/index.js +1 -1
  222. package/dist/components/icon-button/index.js +1 -1
  223. package/dist/components/icon-button-group/index.js +1 -1
  224. package/dist/components/icon-picker/index.js +1 -1
  225. package/dist/components/info-tip/index.js +1 -1
  226. package/dist/components/key-value-pair/index.js +1 -1
  227. package/dist/components/locale-picker/index.js +1 -1
  228. package/dist/components/message-card/index.js +1 -1
  229. package/dist/components/message-tray/index.js +1 -1
  230. package/dist/components/multi-select/index.js +1 -1
  231. package/dist/components/note-timeline/index.js +1 -1
  232. package/dist/components/notes-panel/index.js +1 -1
  233. package/dist/components/notification-card/index.js +1 -1
  234. package/dist/components/notification-tray/index.js +1 -1
  235. package/dist/components/operator-hero/index.js +1 -1
  236. package/dist/components/optical-prescription/index.js +1 -1
  237. package/dist/components/panel-header/index.js +1 -1
  238. package/dist/components/panel-subview/index.js +1 -1
  239. package/dist/components/patient-details/index.js +1 -1
  240. package/dist/components/patient-search/index.js +1 -1
  241. package/dist/components/patient-summary-card/index.js +1 -1
  242. package/dist/components/patient-table/index.js +1 -1
  243. package/dist/components/payment-card/index.js +1 -1
  244. package/dist/components/payment-form/index.js +1 -1
  245. package/dist/components/pdf-viewer/index.js +1 -1
  246. package/dist/components/periodontal-chart/index.js +1 -1
  247. package/dist/components/periodontal-chart-card/index.js +1 -1
  248. package/dist/components/periodontal-diagnosis/index.js +1 -1
  249. package/dist/components/periodontal-risk-chart/index.js +1 -1
  250. package/dist/components/permission-matrix/index.js +1 -1
  251. package/dist/components/popover/index.js +1 -1
  252. package/dist/components/practice-profile-hero/index.js +1 -1
  253. package/dist/components/practice-results/index.js +1 -1
  254. package/dist/components/pregnancy-dating/index.js +1 -1
  255. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  256. package/dist/components/privacy-lock/index.js +1 -1
  257. package/dist/components/product-hub-tray/index.js +1 -1
  258. package/dist/components/public-header/index.js +1 -1
  259. package/dist/components/radio/index.js +1 -1
  260. package/dist/components/radio-group/index.js +2 -2
  261. package/dist/components/radiograph-panel/index.js +1 -1
  262. package/dist/components/resource-chip/index.js +1 -1
  263. package/dist/components/reviews-panel/index.js +1 -1
  264. package/dist/components/rich-text-editor/index.js +2 -2
  265. package/dist/components/sheet/index.js +1 -1
  266. package/dist/components/sidebar/index.js +1 -1
  267. package/dist/components/sidebar/sidebar.d.ts +6 -0
  268. package/dist/components/sign-document/index.js +1 -1
  269. package/dist/components/signature-status-chip/index.js +1 -1
  270. package/dist/components/slot-grid/index.js +1 -1
  271. package/dist/components/stat/index.js +1 -1
  272. package/dist/components/stat/stat.d.ts +7 -2
  273. package/dist/components/streaming-text/index.js +1 -1
  274. package/dist/components/tab-bar/index.js +1 -1
  275. package/dist/components/tag/index.js +1 -1
  276. package/dist/components/task-card/index.js +1 -1
  277. package/dist/components/task-editor/index.js +1 -1
  278. package/dist/components/task-tray/index.js +1 -1
  279. package/dist/components/tasks-panel/index.js +1 -1
  280. package/dist/components/theme-toggle/index.js +1 -1
  281. package/dist/components/toast/index.js +1 -1
  282. package/dist/components/tool-rail/index.js +1 -1
  283. package/dist/components/tool-rail/tool-rail.d.ts +7 -0
  284. package/dist/components/tooltip/index.js +1 -1
  285. package/dist/components/tooth-scheme/index.js +1 -1
  286. package/dist/components/transcript-panel/index.js +1 -1
  287. package/dist/components/treatment-receipt/index.js +1 -1
  288. package/dist/components/voice-control-panel/index.js +1 -1
  289. package/dist/components/warning-stack/index.js +1 -1
  290. package/dist/components/widget-picker/index.js +1 -1
  291. package/dist/components/workflow/index.js +1 -1
  292. package/dist/hooks/index.js +1 -1
  293. package/dist/hooks/use-edge-resize.d.ts +5 -1
  294. package/dist/i18n/locales/ar.d.ts +1 -0
  295. package/dist/i18n/locales/ar.js +1 -0
  296. package/dist/i18n/locales/de.d.ts +1 -0
  297. package/dist/i18n/locales/de.js +1 -0
  298. package/dist/i18n/locales/el.d.ts +1 -0
  299. package/dist/i18n/locales/el.js +1 -0
  300. package/dist/i18n/locales/en.d.ts +1 -0
  301. package/dist/i18n/locales/en.js +1 -0
  302. package/dist/i18n/locales/es.d.ts +1 -0
  303. package/dist/i18n/locales/es.js +1 -0
  304. package/dist/i18n/locales/fr.d.ts +1 -0
  305. package/dist/i18n/locales/fr.js +1 -0
  306. package/dist/i18n/locales/hi.d.ts +1 -0
  307. package/dist/i18n/locales/hi.js +1 -0
  308. package/dist/i18n/locales/it.d.ts +1 -0
  309. package/dist/i18n/locales/it.js +1 -0
  310. package/dist/i18n/locales/ja.d.ts +1 -0
  311. package/dist/i18n/locales/ja.js +1 -0
  312. package/dist/i18n/locales/nl.d.ts +1 -0
  313. package/dist/i18n/locales/nl.js +1 -0
  314. package/dist/i18n/locales/pl.d.ts +1 -0
  315. package/dist/i18n/locales/pl.js +1 -0
  316. package/dist/i18n/locales/pt.d.ts +1 -0
  317. package/dist/i18n/locales/pt.js +1 -0
  318. package/dist/i18n/locales/ro.d.ts +1 -0
  319. package/dist/i18n/locales/ro.js +1 -0
  320. package/dist/i18n/locales/ru.d.ts +1 -0
  321. package/dist/i18n/locales/ru.js +1 -0
  322. package/dist/i18n/locales/sq.d.ts +1 -0
  323. package/dist/i18n/locales/sq.js +1 -0
  324. package/dist/i18n/locales/sv.d.ts +1 -0
  325. package/dist/i18n/locales/sv.js +1 -0
  326. package/dist/i18n/locales/tr.d.ts +1 -0
  327. package/dist/i18n/locales/tr.js +1 -0
  328. package/dist/i18n/locales/zh.d.ts +1 -0
  329. package/dist/i18n/locales/zh.js +1 -0
  330. package/dist/index.js +778 -776
  331. package/dist/locales/ar.json +1 -0
  332. package/dist/locales/de.json +1 -0
  333. package/dist/locales/el.json +1 -0
  334. package/dist/locales/en.json +1 -0
  335. package/dist/locales/es.json +1 -0
  336. package/dist/locales/fr.json +1 -0
  337. package/dist/locales/hi.json +1 -0
  338. package/dist/locales/it.json +1 -0
  339. package/dist/locales/ja.json +1 -0
  340. package/dist/locales/nl.json +1 -0
  341. package/dist/locales/pl.json +1 -0
  342. package/dist/locales/pt.json +1 -0
  343. package/dist/locales/ro.json +1 -0
  344. package/dist/locales/ru.json +1 -0
  345. package/dist/locales/sq.json +1 -0
  346. package/dist/locales/sv.json +1 -0
  347. package/dist/locales/tr.json +1 -0
  348. package/dist/locales/zh.json +1 -0
  349. package/dist/patterns/alia-assistant/index.js +1 -1
  350. package/dist/patterns/anamnesis/index.js +1 -1
  351. package/dist/patterns/calendar/index.js +1 -1
  352. package/dist/patterns/forgot-password-form/index.js +1 -1
  353. package/dist/patterns/help-me-write-templates/index.js +1 -1
  354. package/dist/patterns/login-form/index.js +1 -1
  355. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  356. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +3 -0
  357. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  358. package/dist/patterns/registration-form/index.js +1 -1
  359. package/dist/patterns/signature-request/index.js +1 -1
  360. package/dist/patterns/signed-out-frame/index.js +1 -1
  361. package/dist/tokens.css +8 -1
  362. package/package.json +1 -1
  363. package/dist/_chunks/app-frame-CqmDh2v5.js +0 -134
  364. package/dist/_chunks/chart-D7PbNO_M.js +0 -920
  365. package/dist/_chunks/control-room-rail-BbBEIdws.js +0 -379
  366. package/dist/_chunks/dashboard-grid-DeNEltwI.js +0 -933
  367. package/dist/_chunks/tool-rail-Blgibz0a.js +0 -816
  368. package/dist/_chunks/tooltip-Cp-PLePW.js +0 -119
  369. package/dist/_chunks/use-edge-resize-DHbyQwu8.js +0 -149
@@ -1,19 +1,19 @@
1
1
  import { jsx as r, jsxs as h, Fragment as Ie } from "react/jsx-runtime";
2
- import { useId as ve, useState as J, useRef as U, useCallback as F, useEffect as te, useMemo as xe, createContext as ie, useContext as re, forwardRef as $, isValidElement as ds } from "react";
3
- import * as be from "@radix-ui/react-dialog";
2
+ import { useId as ve, useState as Z, useRef as U, useCallback as F, useEffect as ne, useMemo as ye, createContext as ie, useContext as oe, forwardRef as $, isValidElement as ds } from "react";
3
+ import * as ge from "@radix-ui/react-dialog";
4
4
  import * as Ee from "@radix-ui/react-collapsible";
5
5
  import * as Ne from "@radix-ui/react-accordion";
6
6
  import * as y from "@radix-ui/react-tooltip";
7
7
  import { a as ls } from "./accordion-Ch3xp0mX.js";
8
8
  import { S as cs } from "./scroll-area-CY5SLYNw.js";
9
9
  import { Slot as Ue, Slottable as us } from "@radix-ui/react-slot";
10
- import { c as ne } from "./index-D2ZczOXr.js";
10
+ import { c as ae } from "./index-D2ZczOXr.js";
11
11
  import { useTranslation as de } from "react-i18next";
12
12
  import { u as fs } from "./registry-DvAUVLHh.js";
13
- import { u as ms } from "./use-edge-resize-DHbyQwu8.js";
13
+ import { u as ms } from "./use-edge-resize-CBtem0j2.js";
14
14
  import { c as $e } from "./compose-refs-C0k0tdqF.js";
15
15
  import { a as ps, b as vs, d as gs } from "./input-surface-iBmxVBfr.js";
16
- import { u as we } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
16
+ import { u as xe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
17
17
  import { i as bs } from "./is-development-CLUAnsU7.js";
18
18
  import { X as He } from "./x-B5YnXwCz.js";
19
19
  import { c as Ce } from "./createLucideIcon-DhHxpK9K.js";
@@ -212,49 +212,49 @@ const Os = {
212
212
  }, Ae = ie({
213
213
  enabled: !1,
214
214
  move: null
215
- }), Te = () => re(Ae), Ye = ie(null), fe = (e, s) => e.sectionId === s.sectionId && e.index === s.index, Ve = "[data-sidebar-item-id]", Ge = "[data-sidebar-section-id]";
216
- function he(e, s) {
215
+ }), Te = () => oe(Ae), Ye = ie(null), fe = (e, s) => e.sectionId === s.sectionId && e.index === s.index, Ve = "[data-sidebar-item-id]", Ge = "[data-sidebar-section-id]";
216
+ function be(e, s) {
217
217
  var i;
218
218
  const t = (i = e.parentElement) == null ? void 0 : i.closest(Ge);
219
219
  return t && s.contains(t) ? t.dataset.sidebarSectionId ?? null : null;
220
220
  }
221
221
  function Ps(e, s) {
222
- var p;
222
+ var v;
223
223
  const t = e.querySelector("[data-sidebar-body]") ?? e, i = Array.from(
224
224
  t.querySelectorAll(`${Ge},${Ve}`)
225
225
  ), d = /* @__PURE__ */ new Map([[null, []]]), a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
226
226
  let u = null;
227
- for (const v of i) {
228
- const g = v.dataset.sidebarSectionId;
229
- if (g !== void 0) {
230
- d.set(g, []), a.set(g, v.dataset.sidebarSectionOpen !== "false"), n.set(g, v.dataset.sidebarSectionLabel ?? "");
227
+ for (const p of i) {
228
+ const b = p.dataset.sidebarSectionId;
229
+ if (b !== void 0) {
230
+ d.set(b, []), a.set(b, p.dataset.sidebarSectionOpen !== "false"), n.set(b, p.dataset.sidebarSectionLabel ?? "");
231
231
  continue;
232
232
  }
233
- if (v.dataset.sidebarItemId === s) {
234
- u = v;
233
+ if (p.dataset.sidebarItemId === s) {
234
+ u = p;
235
235
  continue;
236
236
  }
237
- const w = he(v, t);
238
- (p = d.get(w)) == null || p.push(v);
237
+ const x = be(p, t);
238
+ (v = d.get(x)) == null || v.push(p);
239
239
  }
240
240
  if (!u) return null;
241
- const c = (v) => {
242
- var g;
243
- return (((g = d.get(v)) == null ? void 0 : g.length) ?? 0) + 1;
244
- }, l = [], x = d.get(null) ?? [], C = x.length === 0 && he(u, t) === null;
245
- for (const v of i) {
246
- const g = v.dataset.sidebarSectionId;
247
- if (g !== void 0) {
248
- const z = d.get(g) ?? [];
249
- (!a.get(g) || z.length === 0) && l.push({
250
- sectionId: g,
251
- index: z.length,
252
- total: c(g),
253
- indicator: { kind: "section", sectionId: g }
241
+ const c = (p) => {
242
+ var b;
243
+ return (((b = d.get(p)) == null ? void 0 : b.length) ?? 0) + 1;
244
+ }, l = [], w = d.get(null) ?? [], C = w.length === 0 && be(u, t) === null;
245
+ for (const p of i) {
246
+ const b = p.dataset.sidebarSectionId;
247
+ if (b !== void 0) {
248
+ const T = d.get(b) ?? [];
249
+ (!a.get(b) || T.length === 0) && l.push({
250
+ sectionId: b,
251
+ index: T.length,
252
+ total: c(b),
253
+ indicator: { kind: "section", sectionId: b }
254
254
  });
255
255
  continue;
256
256
  }
257
- if (v === u) {
257
+ if (p === u) {
258
258
  C && l.push({
259
259
  sectionId: null,
260
260
  index: 0,
@@ -263,43 +263,43 @@ function Ps(e, s) {
263
263
  });
264
264
  continue;
265
265
  }
266
- const w = he(v, t);
267
- if (w !== null && !a.get(w)) continue;
268
- const P = d.get(w) ?? [], _ = P.indexOf(v), j = v.dataset.sidebarItemId ?? "";
266
+ const x = be(p, t);
267
+ if (x !== null && !a.get(x)) continue;
268
+ const P = d.get(x) ?? [], L = P.indexOf(p), A = p.dataset.sidebarItemId ?? "";
269
269
  l.push({
270
- sectionId: w,
271
- index: _,
272
- total: c(w),
273
- indicator: { kind: "item", itemId: j, edge: "before" }
274
- }), _ === P.length - 1 && l.push({
275
- sectionId: w,
276
- index: _ + 1,
277
- total: c(w),
278
- indicator: { kind: "item", itemId: j, edge: "after" }
270
+ sectionId: x,
271
+ index: L,
272
+ total: c(x),
273
+ indicator: { kind: "item", itemId: A, edge: "before" }
274
+ }), L === P.length - 1 && l.push({
275
+ sectionId: x,
276
+ index: L + 1,
277
+ total: c(x),
278
+ indicator: { kind: "item", itemId: A, edge: "after" }
279
279
  });
280
280
  }
281
- x.length === 0 && !C && l.push({
281
+ w.length === 0 && !C && l.push({
282
282
  sectionId: null,
283
283
  index: 0,
284
284
  total: 1,
285
285
  indicator: { kind: "list" }
286
286
  });
287
- const S = he(u, t), A = (d.get(S) ?? []).filter(
288
- (v) => v.compareDocumentPosition(u) & Node.DOCUMENT_POSITION_FOLLOWING
287
+ const I = be(u, t), j = (d.get(I) ?? []).filter(
288
+ (p) => p.compareDocumentPosition(u) & Node.DOCUMENT_POSITION_FOLLOWING
289
289
  ).length;
290
290
  return {
291
291
  places: l,
292
292
  originIndex: l.findIndex(
293
- (v) => fe(v, { sectionId: S, index: A })
293
+ (p) => fe(p, { sectionId: I, index: j })
294
294
  ),
295
- emptySectionIds: [...d.entries()].filter(([v, g]) => v !== null && a.get(v) && !g.length).map(([v]) => v),
296
- listEmpty: x.length === 0 && !C,
295
+ emptySectionIds: [...d.entries()].filter(([p, b]) => p !== null && a.get(p) && !b.length).map(([p]) => p),
296
+ listEmpty: w.length === 0 && !C,
297
297
  sectionLabels: n
298
298
  };
299
299
  }
300
300
  function _s(e, s) {
301
- const t = e.querySelector("[data-sidebar-body]") ?? e, i = he(s, t), d = Array.from(t.querySelectorAll(Ve)).filter(
302
- (a) => a !== s && he(a, t) === i && a.compareDocumentPosition(s) & Node.DOCUMENT_POSITION_FOLLOWING
301
+ const t = e.querySelector("[data-sidebar-body]") ?? e, i = be(s, t), d = Array.from(t.querySelectorAll(Ve)).filter(
302
+ (a) => a !== s && be(a, t) === i && a.compareDocumentPosition(s) & Node.DOCUMENT_POSITION_FOLLOWING
303
303
  ).length;
304
304
  return { sectionId: i, index: d };
305
305
  }
@@ -326,142 +326,142 @@ function Us({
326
326
  rootRef: t,
327
327
  quietFocusRef: i
328
328
  }) {
329
- const { t: d } = de("ui"), a = ve(), [n, u] = J(null), c = U(null), l = U([]), x = U(/* @__PURE__ */ new Map()), C = U(/* @__PURE__ */ new Map()), S = U(null), A = U(e);
330
- A.current = e;
331
- const p = U(null), v = U(null), g = F((o) => {
329
+ const { t: d } = de("ui"), a = ve(), [n, u] = Z(null), c = U(null), l = U([]), w = U(/* @__PURE__ */ new Map()), C = U(/* @__PURE__ */ new Map()), I = U(null), j = U(e);
330
+ j.current = e;
331
+ const v = U(null), p = U(null), b = F((o) => {
332
332
  c.current = o, u(o);
333
- }, []), [w, P] = J(""), _ = U(!1), j = F((o) => {
334
- _.current = !_.current, P(_.current ? o : `${o}​`);
335
- }, []), z = F(
333
+ }, []), [x, P] = Z(""), L = U(!1), A = F((o) => {
334
+ L.current = !L.current, P(L.current ? o : `${o}​`);
335
+ }, []), T = F(
336
336
  (o) => o.sectionId === null ? d("navigation.sidebar.move.inList", {
337
337
  position: o.index + 1,
338
338
  total: o.total
339
339
  }) : d("navigation.sidebar.move.inSection", {
340
- section: x.current.get(o.sectionId) ?? "",
340
+ section: w.current.get(o.sectionId) ?? "",
341
341
  position: o.index + 1,
342
342
  total: o.total
343
343
  }),
344
344
  [d]
345
- ), L = F(
346
- (o, N, T) => {
345
+ ), _ = F(
346
+ (o, S, E) => {
347
347
  var B;
348
348
  const m = t.current;
349
349
  if (!m) return !1;
350
350
  const f = Ps(m, o);
351
351
  if (!f || f.originIndex < 0) return !1;
352
- l.current = f.places, x.current = f.sectionLabels;
353
- const I = f.places[f.originIndex], O = T.getAttribute("aria-label") ?? ((B = T.textContent) == null ? void 0 : B.trim()) ?? "";
354
- return g({
352
+ l.current = f.places, w.current = f.sectionLabels;
353
+ const N = f.places[f.originIndex], D = E.getAttribute("aria-label") ?? ((B = E.textContent) == null ? void 0 : B.trim()) ?? "";
354
+ return b({
355
355
  itemId: o,
356
- label: O,
357
- via: N,
358
- origin: I,
359
- target: I,
356
+ label: D,
357
+ via: S,
358
+ origin: N,
359
+ target: N,
360
360
  emptySectionIds: f.emptySectionIds,
361
361
  listEmpty: f.listEmpty
362
- }), j(
362
+ }), A(
363
363
  d("navigation.sidebar.move.pickedUp", {
364
- item: O,
365
- place: z(I)
364
+ item: D,
365
+ place: T(N)
366
366
  })
367
367
  ), !0;
368
368
  },
369
- [t, g, j, d, z]
369
+ [t, b, A, d, T]
370
370
  ), K = F(
371
- (o, N) => {
372
- const T = c.current;
373
- !T || fe(T.target, o) || (g({ ...T, target: o }), N && (j(z(o)), requestAnimationFrame(() => {
374
- var f, I;
371
+ (o, S) => {
372
+ const E = c.current;
373
+ !E || fe(E.target, o) || (b({ ...E, target: o }), S && (A(T(o)), requestAnimationFrame(() => {
374
+ var f, N;
375
375
  const m = t.current;
376
- m && ((I = (f = qe(m, o)) == null ? void 0 : f.scrollIntoView) == null || I.call(f, { block: "nearest" }));
376
+ m && ((N = (f = qe(m, o)) == null ? void 0 : f.scrollIntoView) == null || N.call(f, { block: "nearest" }));
377
377
  })));
378
378
  },
379
- [g, j, z, t]
380
- ), R = F(() => {
381
- var I, O;
379
+ [b, A, T, t]
380
+ ), Y = F(() => {
381
+ var N, D;
382
382
  const o = c.current;
383
383
  if (!o) return;
384
- g(null), l.current = [];
385
- const { itemId: N, origin: T, target: m, label: f } = o;
386
- fe(T, m) || (S.current = {
387
- itemId: N,
384
+ b(null), l.current = [];
385
+ const { itemId: S, origin: E, target: m, label: f } = o;
386
+ fe(E, m) || (I.current = {
387
+ itemId: S,
388
388
  sectionId: m.sectionId,
389
389
  index: m.index,
390
390
  until: Date.now() + Bs
391
- }, m.sectionId !== null && ((I = C.current.get(m.sectionId)) == null || I()), (O = A.current) == null || O.call(A, {
392
- itemId: N,
391
+ }, m.sectionId !== null && ((N = C.current.get(m.sectionId)) == null || N()), (D = j.current) == null || D.call(j, {
392
+ itemId: S,
393
393
  toSectionId: m.sectionId,
394
394
  index: m.index
395
- })), j(
395
+ })), A(
396
396
  d("navigation.sidebar.move.dropped", {
397
397
  item: f,
398
- place: z(m)
398
+ place: T(m)
399
399
  })
400
400
  );
401
- }, [g, j, d, z]), M = F(() => {
401
+ }, [b, A, d, T]), k = F(() => {
402
402
  const o = c.current;
403
- o && (g(null), l.current = [], j(
403
+ o && (b(null), l.current = [], A(
404
404
  d("navigation.sidebar.move.cancelled", {
405
405
  item: o.label,
406
- place: z(o.origin)
406
+ place: T(o.origin)
407
407
  })
408
408
  ));
409
- }, [g, j, d, z]), k = F(
410
- (o, N) => {
411
- const T = c.current, m = !o.altKey && !o.ctrlKey && !o.metaKey && !o.shiftKey;
412
- if (!T) {
413
- o.key === " " && m && !o.repeat && (o.preventDefault(), L(N, "keyboard", o.currentTarget));
409
+ }, [b, A, d, T]), R = F(
410
+ (o, S) => {
411
+ const E = c.current, m = !o.altKey && !o.ctrlKey && !o.metaKey && !o.shiftKey;
412
+ if (!E) {
413
+ o.key === " " && m && !o.repeat && (o.preventDefault(), _(S, "keyboard", o.currentTarget));
414
414
  return;
415
415
  }
416
- if (T.itemId !== N || T.via !== "keyboard") return;
417
- const f = l.current, I = f.findIndex((B) => fe(B, T.target)), O = (B) => {
418
- const Y = f[Math.max(0, Math.min(f.length - 1, B))];
419
- Y && K(Y, !0);
416
+ if (E.itemId !== S || E.via !== "keyboard") return;
417
+ const f = l.current, N = f.findIndex((B) => fe(B, E.target)), D = (B) => {
418
+ const se = f[Math.max(0, Math.min(f.length - 1, B))];
419
+ se && K(se, !0);
420
420
  };
421
421
  switch (o.key) {
422
422
  case "ArrowDown":
423
- o.preventDefault(), O(I + 1);
423
+ o.preventDefault(), D(N + 1);
424
424
  break;
425
425
  case "ArrowUp":
426
- o.preventDefault(), O(I - 1);
426
+ o.preventDefault(), D(N - 1);
427
427
  break;
428
428
  case "Home":
429
- o.preventDefault(), O(0);
429
+ o.preventDefault(), D(0);
430
430
  break;
431
431
  case "End":
432
- o.preventDefault(), O(f.length - 1);
432
+ o.preventDefault(), D(f.length - 1);
433
433
  break;
434
434
  case " ":
435
435
  case "Enter":
436
- o.preventDefault(), o.repeat || R();
436
+ o.preventDefault(), o.repeat || Y();
437
437
  break;
438
438
  case "Escape":
439
- o.preventDefault(), o.stopPropagation(), M();
439
+ o.preventDefault(), o.stopPropagation(), k();
440
440
  break;
441
441
  case "Tab":
442
- M();
442
+ k();
443
443
  break;
444
444
  }
445
445
  },
446
- [L, K, R, M]
447
- ), D = F(
446
+ [_, K, Y, k]
447
+ ), O = F(
448
448
  (o) => {
449
- const N = c.current;
450
- (N == null ? void 0 : N.via) === "keyboard" && N.itemId === o && M();
449
+ const S = c.current;
450
+ (S == null ? void 0 : S.via) === "keyboard" && S.itemId === o && k();
451
451
  },
452
- [M]
453
- ), b = F(() => {
454
- var N;
455
- const o = p.current;
456
- o != null && o.timer && clearTimeout(o.timer), o != null && o.frame && cancelAnimationFrame(o.frame), p.current = null, (N = v.current) == null || N.call(v), v.current = null;
457
- }, []), H = F(
458
- (o, N) => {
459
- if (c.current || p.current || !o.isPrimary || o.button !== 0) return;
460
- const T = o.pointerType === "touch", m = {
452
+ [k]
453
+ ), g = F(() => {
454
+ var S;
455
+ const o = v.current;
456
+ o != null && o.timer && clearTimeout(o.timer), o != null && o.frame && cancelAnimationFrame(o.frame), v.current = null, (S = p.current) == null || S.call(p), p.current = null;
457
+ }, []), M = F(
458
+ (o, S) => {
459
+ if (c.current || v.current || !o.isPrimary || o.button !== 0) return;
460
+ const E = o.pointerType === "touch", m = {
461
461
  pointerId: o.pointerId,
462
- itemId: N,
462
+ itemId: S,
463
463
  node: o.currentTarget,
464
- touch: T,
464
+ touch: E,
465
465
  startX: o.clientX,
466
466
  startY: o.clientY,
467
467
  dragging: !1,
@@ -469,58 +469,58 @@ function Us({
469
469
  lastY: o.clientY,
470
470
  frame: 0
471
471
  };
472
- p.current = m;
472
+ v.current = m;
473
473
  const f = () => {
474
- var E, Z;
475
- if (!L(m.itemId, "pointer", m.node)) {
476
- b();
474
+ var z, V;
475
+ if (!_(m.itemId, "pointer", m.node)) {
476
+ g();
477
477
  return;
478
478
  }
479
- m.dragging = !0, (Z = (E = window.getSelection) == null ? void 0 : E.call(window)) == null || Z.removeAllRanges();
480
- }, I = (E) => {
481
- const Z = t.current;
482
- if (!Z) return;
483
- let Q = null, ye = Number.POSITIVE_INFINITY;
479
+ m.dragging = !0, (V = (z = window.getSelection) == null ? void 0 : z.call(window)) == null || V.removeAllRanges();
480
+ }, N = (z) => {
481
+ const V = t.current;
482
+ if (!V) return;
483
+ let te = null, he = Number.POSITIVE_INFINITY;
484
484
  for (const ce of l.current) {
485
- const ue = Math.abs(Rs(Z, ce) - E);
486
- ue < ye && (Q = ce, ye = ue);
485
+ const ue = Math.abs(Rs(V, ce) - z);
486
+ ue < he && (te = ce, he = ue);
487
487
  }
488
- Q && K(Q, !1);
489
- }, O = () => {
488
+ te && K(te, !1);
489
+ }, D = () => {
490
490
  var _e, Re;
491
491
  if (m.frame = 0, !m.dragging) return;
492
- const E = (Re = (_e = t.current) == null ? void 0 : _e.querySelector("[data-sidebar-body]")) == null ? void 0 : Re.closest("[data-radix-scroll-area-viewport]");
493
- if (!E) return;
494
- const Z = E.getBoundingClientRect(), Q = Z.top + je - m.lastY, ye = m.lastY - (Z.bottom - je), ce = Math.max(Q, ye);
492
+ const z = (Re = (_e = t.current) == null ? void 0 : _e.querySelector("[data-sidebar-body]")) == null ? void 0 : Re.closest("[data-radix-scroll-area-viewport]");
493
+ if (!z) return;
494
+ const V = z.getBoundingClientRect(), te = V.top + je - m.lastY, he = m.lastY - (V.bottom - je), ce = Math.max(te, he);
495
495
  if (ce <= 0) return;
496
- const ue = Math.ceil(Fs * Math.min(1, ce / je)), Se = E.scrollTop;
497
- E.scrollTop += Q > 0 ? -ue : ue, E.scrollTop !== Se && (I(m.lastY), m.frame = requestAnimationFrame(O));
498
- }, B = (E) => {
499
- if (E.pointerId === m.pointerId) {
496
+ const ue = Math.ceil(Fs * Math.min(1, ce / je)), Se = z.scrollTop;
497
+ z.scrollTop += te > 0 ? -ue : ue, z.scrollTop !== Se && (N(m.lastY), m.frame = requestAnimationFrame(D));
498
+ }, B = (z) => {
499
+ if (z.pointerId === m.pointerId) {
500
500
  if (!m.dragging) {
501
501
  if (Math.hypot(
502
- E.clientX - m.startX,
503
- E.clientY - m.startY
502
+ z.clientX - m.startX,
503
+ z.clientY - m.startY
504
504
  ) < Ms) return;
505
505
  if (m.touch) {
506
- b();
506
+ g();
507
507
  return;
508
508
  }
509
509
  if (f(), !m.dragging) return;
510
510
  }
511
- m.lastY = E.clientY, I(E.clientY), m.frame || (m.frame = requestAnimationFrame(O));
511
+ m.lastY = z.clientY, N(z.clientY), m.frame || (m.frame = requestAnimationFrame(D));
512
512
  }
513
- }, Y = (E) => {
513
+ }, se = (z) => {
514
514
  var ue;
515
- if (E.pointerId !== m.pointerId) return;
516
- const Z = m.dragging;
517
- if (b(), !Z) return;
518
- const Q = (ue = t.current) == null ? void 0 : ue.getBoundingClientRect();
519
- if (!Q || E.clientX < Q.left || E.clientX > Q.right || E.clientY < Q.top || E.clientY > Q.bottom) {
520
- M();
515
+ if (z.pointerId !== m.pointerId) return;
516
+ const V = m.dragging;
517
+ if (g(), !V) return;
518
+ const te = (ue = t.current) == null ? void 0 : ue.getBoundingClientRect();
519
+ if (!te || z.clientX < te.left || z.clientX > te.right || z.clientY < te.top || z.clientY > te.bottom) {
520
+ k();
521
521
  return;
522
522
  }
523
- R();
523
+ Y();
524
524
  const ce = (Se) => {
525
525
  Se.preventDefault(), Se.stopPropagation();
526
526
  };
@@ -528,95 +528,95 @@ function Us({
528
528
  capture: !0,
529
529
  once: !0
530
530
  }), setTimeout(() => window.removeEventListener("click", ce, !0), 0);
531
- }, pe = (E) => {
532
- if (E.pointerId !== m.pointerId) return;
533
- const Z = m.dragging;
534
- b(), Z && M();
535
- }, ae = (E) => E.preventDefault(), ge = (E) => {
536
- E.key !== "Escape" || !m.dragging || (E.preventDefault(), b(), M());
531
+ }, we = (z) => {
532
+ if (z.pointerId !== m.pointerId) return;
533
+ const V = m.dragging;
534
+ g(), V && k();
535
+ }, X = (z) => z.preventDefault(), pe = (z) => {
536
+ z.key !== "Escape" || !m.dragging || (z.preventDefault(), g(), k());
537
537
  };
538
- window.addEventListener("pointermove", B), window.addEventListener("pointerup", Y), window.addEventListener("pointercancel", pe), window.addEventListener("keydown", ge, !0), T && (window.addEventListener("contextmenu", ae, !0), m.timer = setTimeout(() => {
538
+ window.addEventListener("pointermove", B), window.addEventListener("pointerup", se), window.addEventListener("pointercancel", we), window.addEventListener("keydown", pe, !0), E && (window.addEventListener("contextmenu", X, !0), m.timer = setTimeout(() => {
539
539
  m.timer = null, f();
540
- }, Ls)), v.current = () => {
541
- window.removeEventListener("pointermove", B), window.removeEventListener("pointerup", Y), window.removeEventListener("pointercancel", pe), window.removeEventListener("keydown", ge, !0), window.removeEventListener("contextmenu", ae, !0);
540
+ }, Ls)), p.current = () => {
541
+ window.removeEventListener("pointermove", B), window.removeEventListener("pointerup", se), window.removeEventListener("pointercancel", we), window.removeEventListener("keydown", pe, !0), window.removeEventListener("contextmenu", X, !0);
542
542
  };
543
543
  },
544
- [L, K, R, M, b, t]
544
+ [_, K, Y, k, g, t]
545
545
  );
546
- te(() => b, [b]);
547
- const G = U(null), q = F((o) => {
548
- var N;
549
- (N = p.current) != null && N.dragging && o.preventDefault();
550
- }, []), W = F(
546
+ ne(() => g, [g]);
547
+ const G = U(null), W = F((o) => {
548
+ var S;
549
+ (S = v.current) != null && S.dragging && o.preventDefault();
550
+ }, []), q = F(
551
551
  (o) => {
552
- var N;
553
- G.current !== o && ((N = G.current) == null || N.removeEventListener("touchmove", q), G.current = o, o == null || o.addEventListener("touchmove", q, { passive: !1 }));
552
+ var S;
553
+ G.current !== o && ((S = G.current) == null || S.removeEventListener("touchmove", W), G.current = o, o == null || o.addEventListener("touchmove", W, { passive: !1 }));
554
554
  },
555
- [q]
556
- ), X = U(s);
557
- X.current = s;
558
- const oe = F(
559
- (o) => W(o && X.current ? o : null),
560
555
  [W]
556
+ ), J = U(s);
557
+ J.current = s;
558
+ const Q = F(
559
+ (o) => q(o && J.current ? o : null),
560
+ [q]
561
561
  );
562
- te(() => {
563
- W(s ? t.current : null);
564
- }, [s, W, t]), te(() => () => W(null), [W]), te(() => {
565
- !s && c.current && M();
566
- }, [s, M]);
567
- const ee = F((o, N) => (C.current.set(o, N), () => {
568
- C.current.get(o) === N && C.current.delete(o);
569
- }), []), se = F(() => {
570
- const o = S.current, N = t.current;
571
- if (!o || !N) return;
562
+ ne(() => {
563
+ q(s ? t.current : null);
564
+ }, [s, q, t]), ne(() => () => q(null), [q]), ne(() => {
565
+ !s && c.current && k();
566
+ }, [s, k]);
567
+ const ee = F((o, S) => (C.current.set(o, S), () => {
568
+ C.current.get(o) === S && C.current.delete(o);
569
+ }), []), re = F(() => {
570
+ const o = I.current, S = t.current;
571
+ if (!o || !S) return;
572
572
  if (Date.now() > o.until) {
573
- S.current = null;
573
+ I.current = null;
574
574
  return;
575
575
  }
576
- const T = N.querySelector(
576
+ const E = S.querySelector(
577
577
  `[data-sidebar-item-id="${CSS.escape(o.itemId)}"]`
578
578
  );
579
- if (!T) return;
580
- const m = document.activeElement, f = m !== null && m !== document.body && m !== T;
581
- if (!fe(_s(N, T), o)) {
582
- f && (S.current = null);
579
+ if (!E) return;
580
+ const m = document.activeElement, f = m !== null && m !== document.body && m !== E;
581
+ if (!fe(_s(S, E), o)) {
582
+ f && (I.current = null);
583
583
  return;
584
584
  }
585
- S.current = null, !(m === T || f) && (i.current = !0, T.focus(), i.current = !1);
585
+ I.current = null, !(m === E || f) && (i.current = !0, E.focus(), i.current = !1);
586
586
  }, [t, i]);
587
587
  return {
588
- context: xe(
588
+ context: ye(
589
589
  () => s ? {
590
590
  enabled: s,
591
591
  instructionsId: a,
592
592
  move: n,
593
- onItemKeyDown: k,
594
- onItemPointerDown: H,
595
- onItemBlur: D,
593
+ onItemKeyDown: R,
594
+ onItemPointerDown: M,
595
+ onItemBlur: O,
596
596
  registerSection: ee
597
597
  } : { enabled: !1, move: null, registerSection: ee },
598
598
  [
599
599
  s,
600
600
  a,
601
601
  n,
602
- k,
603
- H,
604
- D,
602
+ R,
603
+ M,
604
+ O,
605
605
  ee
606
606
  ]
607
607
  ),
608
- message: w,
608
+ message: x,
609
609
  instructionsId: a,
610
- restoreFocus: se,
611
- touchGuardRef: oe,
610
+ restoreFocus: re,
611
+ touchGuardRef: Q,
612
612
  /** True while any move runs: Escape cancels it, not the drawer. */
613
- cancelIfMoving: () => c.current ? (M(), !0) : !1
613
+ cancelIfMoving: () => c.current ? (k(), !0) : !1
614
614
  };
615
615
  }
616
616
  const De = ie({
617
617
  mode: "expanded",
618
618
  density: "default"
619
- }), V = () => re(De), We = ie(null);
619
+ }), H = () => oe(De), We = ie(null);
620
620
  function $s(e) {
621
621
  const s = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
622
622
  let i = { total: 0, open: 0 };
@@ -642,9 +642,9 @@ function $s(e) {
642
642
  n.filter((l) => l.open !== a).forEach((l) => l.setOpen(a));
643
643
  return;
644
644
  }
645
- n.sort((l, x) => {
646
- const C = l.element(), S = x.element();
647
- return !C || !S ? 0 : C.compareDocumentPosition(S) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
645
+ n.sort((l, w) => {
646
+ const C = l.element(), I = w.element();
647
+ return !C || !I ? 0 : C.compareDocumentPosition(I) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
648
648
  });
649
649
  const c = [];
650
650
  for (const l of n)
@@ -684,7 +684,7 @@ function Ys(e) {
684
684
  } catch {
685
685
  }
686
686
  }
687
- const Le = ne(
687
+ const Le = ae(
688
688
  [
689
689
  "ds:flex ds:flex-col",
690
690
  // `--sidebar-surface`: the page background in light mode (white-on-white
@@ -752,59 +752,59 @@ const Le = ne(
752
752
  onMoveItem: u,
753
753
  onSetAllSectionsOpen: c,
754
754
  "aria-label": l,
755
- className: x,
755
+ className: w,
756
756
  children: C,
757
- id: S,
758
- ...A
759
- }, p) => {
760
- const v = U(c);
761
- v.current = c;
762
- const [g] = J(() => $s(v)), w = /* @__PURE__ */ r(Oe.Provider, { value: g, children: C }), { t: P } = de("ui"), _ = e !== void 0, [j, z] = J(
757
+ id: I,
758
+ ...j
759
+ }, v) => {
760
+ const p = U(c);
761
+ p.current = c;
762
+ const [b] = Z(() => $s(p)), x = /* @__PURE__ */ r(Oe.Provider, { value: b, children: C }), { t: P } = de("ui"), L = e !== void 0, [A, T] = Z(
763
763
  () => Ks(s)
764
- ), L = _ ? e : j;
765
- te(() => {
766
- _ || Ys(j);
767
- }, [j, _]);
764
+ ), _ = L ? e : A;
765
+ ne(() => {
766
+ L || Ys(A);
767
+ }, [A, L]);
768
768
  const K = F(
769
769
  (f) => {
770
- _ || z(f), t == null || t(f);
770
+ L || T(f), t == null || t(f);
771
771
  },
772
- [_, t]
773
- ), R = l ?? P("navigation.sidebar.label"), M = ve(), k = S ?? M, D = U(L);
774
- te(() => {
775
- D.current = L;
776
- }, [L]);
777
- const b = xe(
772
+ [L, t]
773
+ ), Y = l ?? P("navigation.sidebar.label"), k = ve(), R = I ?? k, O = U(_);
774
+ ne(() => {
775
+ O.current = _;
776
+ }, [_]);
777
+ const g = ye(
778
778
  () => ({
779
- getIsCollapsed: () => D.current !== "expanded",
779
+ getIsCollapsed: () => O.current !== "expanded",
780
780
  toggleCollapsed: () => {
781
- const f = D.current === "expanded" ? "icon" : "expanded";
781
+ const f = O.current === "expanded" ? "icon" : "expanded";
782
782
  K(f);
783
783
  },
784
- getAnySectionOpen: () => g.getSnapshot().open > 0,
785
- setAllSectionsOpen: (f) => g.setAll(f)
784
+ getAnySectionOpen: () => b.getSnapshot().open > 0,
785
+ setAllSectionsOpen: (f) => b.setAll(f)
786
786
  }),
787
- [K, g]
787
+ [K, b]
788
788
  );
789
- fs(Os, b, S);
790
- const H = U(null), G = U(null), q = U(!1), [W, X] = J(0), oe = F(() => (X((f) => f + 1), () => X((f) => f - 1)), []), { separatorProps: ee, isResizing: se } = ms({
789
+ fs(Os, g, I);
790
+ const M = U(null), G = U(null), W = U(!1), [q, J] = Z(0), Q = F(() => (J((f) => f + 1), () => J((f) => f - 1)), []), { separatorProps: ee, isResizing: re } = ms({
791
791
  edge: "inline-end",
792
- targetRef: H,
792
+ targetRef: M,
793
793
  cssProperty: "--sidebar-modern-expanded-size",
794
794
  minSize: Vs,
795
795
  maxSize: Gs,
796
796
  defaultSize: qs,
797
- disabled: !n || L !== "expanded"
798
- }), le = n && L === "expanded", o = Us({
797
+ disabled: !n || _ !== "expanded"
798
+ }), le = n && _ === "expanded", o = Us({
799
799
  onMoveItem: u,
800
- enabled: u !== void 0 && L !== "icon",
801
- rootRef: H,
802
- quietFocusRef: q
803
- }), { touchGuardRef: N } = o, T = xe(
804
- () => $e(p, H, N),
805
- [p, N]
800
+ enabled: u !== void 0 && _ !== "icon",
801
+ rootRef: M,
802
+ quietFocusRef: W
803
+ }), { touchGuardRef: S } = o, E = ye(
804
+ () => $e(v, M, S),
805
+ [v, S]
806
806
  );
807
- we(() => o.restoreFocus());
807
+ xe(() => o.restoreFocus());
808
808
  const m = u !== void 0 ? /* @__PURE__ */ h(Ie, { children: [
809
809
  /* @__PURE__ */ r("span", { id: o.instructionsId, hidden: !0, children: P("navigation.sidebar.move.instructions") }),
810
810
  /* @__PURE__ */ r(
@@ -818,19 +818,19 @@ const Le = ne(
818
818
  }
819
819
  )
820
820
  ] }) : null;
821
- return L === "overlay" ? /* @__PURE__ */ r(
821
+ return _ === "overlay" ? /* @__PURE__ */ r(
822
822
  De.Provider,
823
823
  {
824
824
  value: {
825
825
  mode: "overlay",
826
826
  density: i,
827
827
  transitionTo: K,
828
- navElementId: k,
829
- quietFocusRef: q
828
+ navElementId: R,
829
+ quietFocusRef: W
830
830
  },
831
- children: /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: /* @__PURE__ */ r(be.Root, { open: d, onOpenChange: a, children: /* @__PURE__ */ h(be.Portal, { children: [
831
+ children: /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: /* @__PURE__ */ r(ge.Root, { open: d, onOpenChange: a, children: /* @__PURE__ */ h(ge.Portal, { children: [
832
832
  /* @__PURE__ */ r(
833
- be.Overlay,
833
+ ge.Overlay,
834
834
  {
835
835
  className: [
836
836
  "ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
@@ -842,27 +842,27 @@ const Le = ne(
842
842
  }
843
843
  ),
844
844
  /* @__PURE__ */ h(
845
- be.Content,
845
+ ge.Content,
846
846
  {
847
847
  onOpenAutoFocus: (f) => {
848
- var O, B;
848
+ var D, B;
849
849
  G.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
850
- const I = ((O = H.current) == null ? void 0 : O.querySelector(
850
+ const N = ((D = M.current) == null ? void 0 : D.querySelector(
851
851
  '[aria-current="page"]'
852
- )) ?? ((B = H.current) == null ? void 0 : B.querySelector(
852
+ )) ?? ((B = M.current) == null ? void 0 : B.querySelector(
853
853
  'a[href], button:not([disabled]), input:not([disabled]), [tabindex="0"]'
854
854
  ));
855
- q.current = !0, I == null || I.focus(), q.current = !1, I && document.activeElement === I && f.preventDefault();
855
+ W.current = !0, N == null || N.focus(), W.current = !1, N && document.activeElement === N && f.preventDefault();
856
856
  },
857
857
  onCloseAutoFocus: (f) => {
858
- var O;
859
- const I = document.activeElement;
860
- I && I !== document.body || (O = G.current) != null && O.isConnected && (f.preventDefault(), G.current.focus());
858
+ var D;
859
+ const N = document.activeElement;
860
+ N && N !== document.body || (D = G.current) != null && D.isConnected && (f.preventDefault(), G.current.focus());
861
861
  },
862
862
  onEscapeKeyDown: (f) => {
863
863
  o.cancelIfMoving() && f.preventDefault();
864
864
  },
865
- "aria-label": R,
865
+ "aria-label": Y,
866
866
  className: [
867
867
  "ds:fixed ds:z-[var(--z-modal)]",
868
868
  // `start-0`/`top-0` — the `inset-inline-start-0` /
@@ -876,32 +876,32 @@ const Le = ne(
876
876
  "ds:rtl:data-[state=open]:slide-in-from-right ds:rtl:data-[state=closed]:slide-out-to-right",
877
877
  "ds:motion-reduce:animate-none",
878
878
  "ds:focus:outline-none",
879
- x ?? ""
879
+ w ?? ""
880
880
  ].filter(Boolean).join(" "),
881
881
  children: [
882
882
  /* @__PURE__ */ h(
883
883
  "nav",
884
884
  {
885
- ref: T,
886
- id: k,
887
- "aria-label": R,
885
+ ref: E,
886
+ id: R,
887
+ "aria-label": Y,
888
888
  "data-component": "sidebar",
889
- "data-component-id": S,
889
+ "data-component-id": I,
890
890
  className: "ds:flex ds:flex-col ds:h-full",
891
- ...A,
891
+ ...j,
892
892
  children: [
893
893
  /* @__PURE__ */ r(Ae.Provider, { value: o.context, children: /* @__PURE__ */ r(
894
894
  We.Provider,
895
895
  {
896
- value: oe,
897
- children: w
896
+ value: Q,
897
+ children: x
898
898
  }
899
899
  ) }),
900
900
  m
901
901
  ]
902
902
  }
903
903
  ),
904
- W === 0 ? /* @__PURE__ */ r(be.Close, { asChild: !0, children: /* @__PURE__ */ r(
904
+ q === 0 ? /* @__PURE__ */ r(ge.Close, { asChild: !0, children: /* @__PURE__ */ r(
905
905
  "button",
906
906
  {
907
907
  type: "button",
@@ -919,38 +919,38 @@ const Le = ne(
919
919
  De.Provider,
920
920
  {
921
921
  value: {
922
- mode: L,
922
+ mode: _,
923
923
  density: i,
924
924
  transitionTo: K,
925
- navElementId: k,
926
- quietFocusRef: q
925
+ navElementId: R,
926
+ quietFocusRef: W
927
927
  },
928
928
  children: /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: /* @__PURE__ */ h(
929
929
  "nav",
930
930
  {
931
- ref: T,
932
- id: k,
933
- "aria-label": R,
931
+ ref: E,
932
+ id: R,
933
+ "aria-label": Y,
934
934
  "data-component": "sidebar",
935
- "data-component-id": S,
936
- "data-mode": L,
935
+ "data-component-id": I,
936
+ "data-mode": _,
937
937
  "data-density": i,
938
- "data-resizing": se ? "" : void 0,
938
+ "data-resizing": re ? "" : void 0,
939
939
  className: [
940
- Le({ mode: L, density: i }),
940
+ Le({ mode: _, density: i }),
941
941
  i === "compact" ? "ds:density-compact" : "",
942
- x ?? ""
942
+ w ?? ""
943
943
  ].filter(Boolean).join(" "),
944
- ...A,
944
+ ...j,
945
945
  children: [
946
- /* @__PURE__ */ r(Ae.Provider, { value: o.context, children: w }),
946
+ /* @__PURE__ */ r(Ae.Provider, { value: o.context, children: x }),
947
947
  m,
948
948
  le ? /* @__PURE__ */ r(
949
949
  "div",
950
950
  {
951
951
  ...ee,
952
952
  "aria-label": P("navigation.sidebar.resize"),
953
- "data-resizing": se ? "" : void 0,
953
+ "data-resizing": re ? "" : void 0,
954
954
  className: Ws
955
955
  }
956
956
  ) : null
@@ -963,7 +963,7 @@ const Le = ne(
963
963
  );
964
964
  Xs.displayName = "Sidebar";
965
965
  const Zs = $(({ className: e, ...s }, t) => {
966
- const { mode: i } = V();
966
+ const { mode: i } = H();
967
967
  return /* @__PURE__ */ r(
968
968
  "div",
969
969
  {
@@ -991,7 +991,7 @@ const Zs = $(({ className: e, ...s }, t) => {
991
991
  );
992
992
  });
993
993
  Zs.displayName = "SidebarHeader";
994
- const Je = ne(
994
+ const Je = ae(
995
995
  [
996
996
  "ds:min-h-[var(--min-target-size)] ds:rounded-[var(--radius-sm)]",
997
997
  "ds:border ds:border-dashed ds:border-[color:var(--border)]"
@@ -1007,7 +1007,7 @@ const Je = ne(
1007
1007
  }
1008
1008
  ), Js = $(
1009
1009
  ({ className: e, children: s, ...t }, i) => {
1010
- const { navElementId: d } = V(), { enabled: a, move: n } = Te(), u = a && (n != null && n.listEmpty) ? /* @__PURE__ */ r(
1010
+ const { navElementId: d } = H(), { enabled: a, move: n } = Te(), u = a && (n != null && n.listEmpty) ? /* @__PURE__ */ r(
1011
1011
  "div",
1012
1012
  {
1013
1013
  "aria-hidden": "true",
@@ -1050,7 +1050,7 @@ const Je = ne(
1050
1050
  );
1051
1051
  Js.displayName = "SidebarBody";
1052
1052
  const Qs = $(({ className: e, ...s }, t) => {
1053
- const { mode: i } = V();
1053
+ const { mode: i } = H();
1054
1054
  return /* @__PURE__ */ r(
1055
1055
  "div",
1056
1056
  {
@@ -1091,7 +1091,7 @@ const et = [
1091
1091
  "ds:size-4",
1092
1092
  "ds:text-[var(--accent)]",
1093
1093
  "ds:me-[var(--spacing-xs)]"
1094
- ].join(" "), Be = ne(
1094
+ ].join(" "), Be = ae(
1095
1095
  "ds:flex ds:items-center ds:rounded-[var(--radius-sm)]",
1096
1096
  {
1097
1097
  variants: {
@@ -1121,7 +1121,7 @@ function at({
1121
1121
  nameRef: s,
1122
1122
  children: t
1123
1123
  }) {
1124
- const { navElementId: i, quietFocusRef: d } = V(), { move: a } = Te();
1124
+ const { navElementId: i, quietFocusRef: d } = H(), { move: a } = Te();
1125
1125
  if (i === void 0) return t;
1126
1126
  const n = (u) => {
1127
1127
  const c = s.current;
@@ -1161,85 +1161,86 @@ const es = ie(!1), ss = $(
1161
1161
  onOpenChange: a,
1162
1162
  sectionId: n,
1163
1163
  actions: u,
1164
- className: c,
1165
- children: l,
1166
- ...x
1167
- }, C) => {
1168
- const { t: S } = de("ui"), { mode: A } = V(), p = A === "icon", v = ve(), g = ve(), w = U(null), [P, _] = J(
1164
+ headingLevel: c = 3,
1165
+ className: l,
1166
+ children: w,
1167
+ ...C
1168
+ }, I) => {
1169
+ const { t: j } = de("ui"), { mode: v } = H(), p = v === "icon", b = ve(), x = ve(), P = U(null), [L, A] = Z(
1169
1170
  () => /* @__PURE__ */ new Set()
1170
- ), j = F((Y, pe) => {
1171
- _((ae) => {
1172
- if (ae.has(Y) === pe) return ae;
1173
- const ge = new Set(ae);
1174
- return pe ? ge.add(Y) : ge.delete(Y), ge;
1171
+ ), T = F((X, pe) => {
1172
+ A((z) => {
1173
+ if (z.has(X) === pe) return z;
1174
+ const V = new Set(z);
1175
+ return pe ? V.add(X) : V.delete(X), V;
1175
1176
  });
1176
- }, []), z = t && !p && !!e, [L, K] = J(i), R = d ?? L, M = U(R);
1177
- M.current = R;
1178
- const k = F(
1179
- (Y) => {
1180
- d === void 0 && K(Y), a == null || a(Y);
1177
+ }, []), _ = t && !p && !!e, [K, Y] = Z(i), k = d ?? K, R = U(k);
1178
+ R.current = k;
1179
+ const O = F(
1180
+ (X) => {
1181
+ d === void 0 && Y(X), a == null || a(X);
1181
1182
  },
1182
1183
  [d, a]
1183
- ), D = re(Oe), b = ve(), H = U(null), G = xe(
1184
- () => $e(C, H),
1185
- [C]
1184
+ ), g = oe(Oe), M = ve(), G = U(null), W = ye(
1185
+ () => $e(I, G),
1186
+ [I]
1186
1187
  ), q = t && !!e;
1187
- we(() => {
1188
- if (!(!D || !q))
1189
- return () => D.remove(b);
1190
- }, [D, b, q]), we(() => {
1191
- !D || !q || D.set(b, {
1192
- open: R,
1188
+ xe(() => {
1189
+ if (!(!g || !q))
1190
+ return () => g.remove(M);
1191
+ }, [g, M, q]), xe(() => {
1192
+ !g || !q || g.set(M, {
1193
+ open: k,
1193
1194
  sectionId: n,
1194
1195
  controlled: d !== void 0,
1195
- setOpen: k,
1196
- setInner: K,
1197
- element: () => H.current
1196
+ setOpen: O,
1197
+ setInner: Y,
1198
+ element: () => G.current
1198
1199
  });
1199
- }, [D, b, q, R, n, d, k]);
1200
- const { enabled: W, move: X, registerSection: oe } = Te(), ee = re(es);
1201
- te(() => {
1202
- W && n === void 0 && !ee && bs() && console.warn(
1200
+ }, [g, M, q, k, n, d, O]);
1201
+ const { enabled: J, move: Q, registerSection: ee } = Te(), re = oe(es);
1202
+ ne(() => {
1203
+ J && n === void 0 && !re && bs() && console.warn(
1203
1204
  `SidebarSection "${e ?? ""}": moves are on but it has no sectionId, so its items cannot move.`
1204
1205
  );
1205
- }, [W, n, ee, e]), te(() => {
1206
- if (!(n === void 0 || !oe))
1207
- return oe(n, () => {
1208
- M.current || k(!0);
1206
+ }, [J, n, re, e]), ne(() => {
1207
+ if (!(n === void 0 || !ee))
1208
+ return ee(n, () => {
1209
+ R.current || O(!0);
1209
1210
  });
1210
- }, [n, oe, k]);
1211
- const se = W && X !== null && n !== void 0, le = se && X.target.indicator.kind === "section" && X.target.indicator.sectionId === n && !fe(X.target, X.origin), o = se && X.emptySectionIds.includes(n) ? /* @__PURE__ */ r(
1211
+ }, [n, ee, O]);
1212
+ const le = J && Q !== null && n !== void 0, o = le && Q.target.indicator.kind === "section" && Q.target.indicator.sectionId === n && !fe(Q.target, Q.origin), S = le && Q.emptySectionIds.includes(n) ? /* @__PURE__ */ r(
1212
1213
  "div",
1213
1214
  {
1214
1215
  "aria-hidden": "true",
1215
1216
  "data-sidebar-drop-zone": n,
1216
- className: Je({ active: le })
1217
+ className: Je({ active: o })
1217
1218
  }
1218
- ) : null, N = n !== void 0 ? {
1219
+ ) : null, E = n !== void 0 ? {
1219
1220
  "data-sidebar-section-id": n,
1220
1221
  "data-sidebar-section-label": e ?? "",
1221
- "data-sidebar-section-open": String(!z || R)
1222
- } : {}, T = u && !p ? /* @__PURE__ */ r(
1222
+ "data-sidebar-section-open": String(!_ || k)
1223
+ } : {}, m = u && !p ? /* @__PURE__ */ r(
1223
1224
  "span",
1224
1225
  {
1225
1226
  role: "group",
1226
- "aria-label": e ? S("navigation.sidebar.sectionActions", { section: e }) : void 0,
1227
+ "aria-label": e ? j("navigation.sidebar.sectionActions", { section: e }) : void 0,
1227
1228
  className: st,
1228
1229
  children: u
1229
1230
  }
1230
- ) : null, m = z && !R && P.size > 0, f = e && !p ? /* @__PURE__ */ r("p", { "data-sidebar-section-empty": "", className: tt, children: S(W && n !== void 0 ? "navigation.sidebar.section.emptyMove" : "navigation.sidebar.section.empty") }) : null, I = /* @__PURE__ */ r(Ye.Provider, { value: { sectionId: n }, children: /* @__PURE__ */ h(Qe.Provider, { value: j, children: [
1231
- /* @__PURE__ */ r("div", { "data-sidebar-section-items": "", className: "ds:contents", children: l }),
1232
- f,
1233
- o
1234
- ] }) }), O = [
1231
+ ) : null, f = _ && !k && L.size > 0, N = e && !p ? /* @__PURE__ */ r("p", { "data-sidebar-section-empty": "", className: tt, children: j(J && n !== void 0 ? "navigation.sidebar.section.emptyMove" : "navigation.sidebar.section.empty") }) : null, D = /* @__PURE__ */ r(Ye.Provider, { value: { sectionId: n }, children: /* @__PURE__ */ h(Qe.Provider, { value: T, children: [
1232
+ /* @__PURE__ */ r("div", { "data-sidebar-section-items": "", className: "ds:contents", children: w }),
1233
+ N,
1234
+ S
1235
+ ] }) }), B = [
1235
1236
  "ds:flex ds:flex-col",
1236
1237
  "ds:gap-[var(--spacing-xs)]",
1237
1238
  "ds:mt-[var(--spacing-sm)]",
1238
1239
  rt,
1239
- c ?? ""
1240
+ l ?? ""
1240
1241
  ].filter(Boolean).join(" ");
1241
- if (!z) {
1242
- const Y = !!e || !!s, pe = e ? { role: "group", "aria-labelledby": v } : {}, ae = Y ? /* @__PURE__ */ h(
1242
+ if (!_) {
1243
+ const X = !!e || !!s, pe = e ? { role: "group", "aria-labelledby": b } : {}, z = X ? /* @__PURE__ */ h(
1243
1244
  "span",
1244
1245
  {
1245
1246
  className: [
@@ -1248,82 +1249,89 @@ const es = ie(!1), ss = $(
1248
1249
  "ds:text-[var(--muted-foreground)]",
1249
1250
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
1250
1251
  "ds:py-[var(--spacing-xs)]",
1251
- T ? "ds:min-w-0 ds:flex-1" : "",
1252
+ m ? "ds:min-w-0 ds:flex-1" : "",
1252
1253
  p && !s ? "ds:sr-only" : ""
1253
1254
  ].filter(Boolean).join(" "),
1254
1255
  children: [
1255
1256
  s ? /* @__PURE__ */ r("span", { "aria-hidden": "true", className: Me, children: s }) : null,
1256
- e ? /* @__PURE__ */ r("span", { id: v, className: p ? "ds:sr-only" : "", children: e }) : null
1257
+ e ? /* @__PURE__ */ r("span", { id: b, className: p ? "ds:sr-only" : "", children: e }) : null
1257
1258
  ]
1258
1259
  }
1259
1260
  ) : null;
1260
1261
  return /* @__PURE__ */ h(
1261
1262
  "div",
1262
1263
  {
1263
- ref: G,
1264
- className: O,
1264
+ ref: W,
1265
+ className: B,
1265
1266
  ...pe,
1266
- ...N,
1267
- ...x,
1267
+ ...E,
1268
+ ...C,
1268
1269
  children: [
1269
- T ? /* @__PURE__ */ h(
1270
+ m ? /* @__PURE__ */ h(
1270
1271
  "div",
1271
1272
  {
1272
1273
  "data-sidebar-section-heading": "",
1273
1274
  className: Be(),
1274
1275
  children: [
1275
- ae,
1276
- T
1276
+ z,
1277
+ m
1277
1278
  ]
1278
1279
  }
1279
- ) : ae,
1280
- I
1280
+ ) : z,
1281
+ D
1281
1282
  ]
1282
1283
  }
1283
1284
  );
1284
1285
  }
1285
- const B = "section";
1286
+ const se = "section", we = c === !1 ? "div" : `h${c}`;
1286
1287
  return /* @__PURE__ */ r(
1287
1288
  Ne.Root,
1288
1289
  {
1289
1290
  type: "single",
1290
1291
  collapsible: !0,
1291
- value: R ? B : "",
1292
- onValueChange: (Y) => k(Y === B),
1292
+ value: k ? se : "",
1293
+ onValueChange: (X) => O(X === se),
1293
1294
  asChild: !0,
1294
1295
  children: /* @__PURE__ */ r(
1295
1296
  "div",
1296
1297
  {
1297
- ref: G,
1298
- className: O,
1299
- ...N,
1300
- ...x,
1301
- children: /* @__PURE__ */ h(Ne.Item, { value: B, children: [
1298
+ ref: W,
1299
+ className: B,
1300
+ ...E,
1301
+ ...C,
1302
+ children: /* @__PURE__ */ h(Ne.Item, { value: se, children: [
1302
1303
  /* @__PURE__ */ h(
1303
1304
  "div",
1304
1305
  {
1305
1306
  "data-sidebar-section-heading": "",
1306
1307
  className: Be({
1307
- dropInto: le && !R
1308
+ dropInto: o && !k
1308
1309
  }),
1309
1310
  children: [
1310
- /* @__PURE__ */ r(at, { name: e ?? "", nameRef: w, children: /* @__PURE__ */ r("div", { className: "ds:flex ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ r(Ne.Header, { className: "ds:flex ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ h(
1311
+ /* @__PURE__ */ r(at, { name: e ?? "", nameRef: P, children: /* @__PURE__ */ r("div", { className: "ds:flex ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ r(Ne.Header, { asChild: !0, children: /* @__PURE__ */ r(we, { className: "ds:flex ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ h(
1311
1312
  Ne.Trigger,
1312
1313
  {
1313
1314
  className: et,
1314
- "data-holds-current": m ? "" : void 0,
1315
- "aria-describedby": m ? g : void 0,
1315
+ "data-holds-current": f ? "" : void 0,
1316
+ "aria-describedby": f ? x : void 0,
1316
1317
  children: [
1317
- s ? /* @__PURE__ */ r("span", { "aria-hidden": "true", className: Me, children: s }) : null,
1318
+ s ? /* @__PURE__ */ r(
1319
+ "span",
1320
+ {
1321
+ "aria-hidden": "true",
1322
+ className: Me,
1323
+ children: s
1324
+ }
1325
+ ) : null,
1318
1326
  /* @__PURE__ */ r(
1319
1327
  "span",
1320
1328
  {
1321
- ref: w,
1329
+ ref: P,
1322
1330
  className: `ds:flex-1 ds:text-start ${ot}`,
1323
1331
  children: e
1324
1332
  }
1325
1333
  ),
1326
- m ? /* @__PURE__ */ r(
1334
+ f ? /* @__PURE__ */ r(
1327
1335
  "span",
1328
1336
  {
1329
1337
  "aria-hidden": "true",
@@ -1340,11 +1348,11 @@ const es = ie(!1), ss = $(
1340
1348
  )
1341
1349
  ]
1342
1350
  }
1343
- ) }) }) }),
1344
- T,
1345
- m ? (
1351
+ ) }) }) }) }),
1352
+ m,
1353
+ f ? (
1346
1354
  // Hidden, yet still the fold button's description.
1347
- /* @__PURE__ */ r("span", { id: g, hidden: !0, children: S("navigation.sidebar.section.containsCurrent") })
1355
+ /* @__PURE__ */ r("span", { id: x, hidden: !0, children: j("navigation.sidebar.section.containsCurrent") })
1348
1356
  ) : null
1349
1357
  ]
1350
1358
  }
@@ -1360,7 +1368,7 @@ const es = ie(!1), ss = $(
1360
1368
  // Force-mounted content is never hidden by Radix: do it here.
1361
1369
  "ds:data-[state=closed]:hidden"
1362
1370
  ].join(" "),
1363
- children: I
1371
+ children: D
1364
1372
  }
1365
1373
  )
1366
1374
  ] })
@@ -1393,7 +1401,7 @@ const it = [
1393
1401
  onOpenChange: n,
1394
1402
  ...u
1395
1403
  }, c) => {
1396
- const { mode: l } = V();
1404
+ const { mode: l } = H();
1397
1405
  return /* @__PURE__ */ h(
1398
1406
  Ee.Root,
1399
1407
  {
@@ -1455,7 +1463,7 @@ const me = [
1455
1463
  "ds:bg-[var(--foreground)] ds:text-[var(--background)]",
1456
1464
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[length:var(--font-size-xs)]",
1457
1465
  "ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
1458
- ].join(" "), lt = ne(
1466
+ ].join(" "), lt = ae(
1459
1467
  [
1460
1468
  // Every row is a pin-hover parent so inline pin / reorder affordances can
1461
1469
  // fade in on hover of the whole row — keep `group/item` on this selector.
@@ -1521,7 +1529,7 @@ const me = [
1521
1529
  "ds:before:h-[length:var(--focus-ring-width)] ds:before:content-['']",
1522
1530
  "ds:before:rounded-[var(--radius-full)] ds:before:bg-[var(--primary)]",
1523
1531
  "ds:forced-colors:before:bg-[CanvasText]"
1524
- ].join(" "), ct = ne("", {
1532
+ ].join(" "), ct = ae("", {
1525
1533
  variants: {
1526
1534
  movable: {
1527
1535
  true: "ds:select-none ds:[-webkit-touch-callout:none]",
@@ -1547,68 +1555,68 @@ const me = [
1547
1555
  children: u,
1548
1556
  "aria-label": c,
1549
1557
  "aria-describedby": l,
1550
- onKeyDown: x,
1558
+ onKeyDown: w,
1551
1559
  onPointerDown: C,
1552
- onBlur: S,
1553
- ...A
1554
- }, p) => {
1555
- const { mode: v, density: g, quietFocusRef: w, navElementId: P } = V(), _ = e ? Ue : "a", j = d !== void 0 && v !== "icon", z = Te(), L = re(Ye), K = re(Qe), R = ve(), M = s || A["aria-current"] === "page";
1556
- te(() => {
1560
+ onBlur: I,
1561
+ ...j
1562
+ }, v) => {
1563
+ const { mode: p, density: b, quietFocusRef: x, navElementId: P } = H(), L = e ? Ue : "a", A = d !== void 0 && p !== "icon", T = Te(), _ = oe(Ye), K = oe(Qe), Y = ve(), k = s || j["aria-current"] === "page";
1564
+ ne(() => {
1557
1565
  if (K)
1558
- return K(R, M), () => K(R, !1);
1559
- }, [K, R, M]);
1560
- const k = z.enabled && v !== "icon" && t !== void 0 && (L === null || L.sectionId !== void 0) ? t : void 0, D = z.move, b = D && !fe(D.target, D.origin) ? D.target : null, H = k !== void 0 && (b == null ? void 0 : b.indicator.kind) === "item" && b.indicator.itemId === k ? b.indicator.edge : "none", G = k !== void 0 ? {
1561
- "data-sidebar-item-id": k,
1562
- "data-moving": (D == null ? void 0 : D.itemId) === k ? "" : void 0,
1566
+ return K(Y, k), () => K(Y, !1);
1567
+ }, [K, Y, k]);
1568
+ const R = T.enabled && p !== "icon" && t !== void 0 && (_ === null || _.sectionId !== void 0) ? t : void 0, O = T.move, g = O && !fe(O.target, O.origin) ? O.target : null, M = R !== void 0 && (g == null ? void 0 : g.indicator.kind) === "item" && g.indicator.itemId === R ? g.indicator.edge : "none", G = R !== void 0 ? {
1569
+ "data-sidebar-item-id": R,
1570
+ "data-moving": (O == null ? void 0 : O.itemId) === R ? "" : void 0,
1563
1571
  // A link would otherwise start the browser's own link drag.
1564
1572
  draggable: !1,
1565
- "aria-describedby": [l, z.instructionsId].filter(Boolean).join(" "),
1573
+ "aria-describedby": [l, T.instructionsId].filter(Boolean).join(" "),
1566
1574
  // An image inside the item would start its own native drag.
1567
1575
  onDragStart: (f) => f.preventDefault(),
1568
1576
  onKeyDown: (f) => {
1569
- var O, B;
1570
- x == null || x(f);
1571
- const I = f.key === "Escape" && ((O = z.move) == null ? void 0 : O.itemId) === k;
1572
- (!f.defaultPrevented || I) && ((B = z.onItemKeyDown) == null || B.call(z, f, k));
1577
+ var D, B;
1578
+ w == null || w(f);
1579
+ const N = f.key === "Escape" && ((D = T.move) == null ? void 0 : D.itemId) === R;
1580
+ (!f.defaultPrevented || N) && ((B = T.onItemKeyDown) == null || B.call(T, f, R));
1573
1581
  },
1574
1582
  onPointerDown: (f) => {
1575
- var I;
1576
- C == null || C(f), (I = z.onItemPointerDown) == null || I.call(z, f, k);
1583
+ var N;
1584
+ C == null || C(f), (N = T.onItemPointerDown) == null || N.call(T, f, R);
1577
1585
  },
1578
1586
  onBlur: (f) => {
1579
- var I;
1580
- S == null || S(f), (I = z.onItemBlur) == null || I.call(z, k);
1587
+ var N;
1588
+ I == null || I(f), (N = T.onItemBlur) == null || N.call(T, R);
1581
1589
  }
1582
1590
  } : {
1583
1591
  // Keys left out when unset: an undefined one would override the
1584
1592
  // tooltip's own description through Slot.
1585
1593
  ...l !== void 0 ? { "aria-describedby": l } : {},
1586
- ...x ? { onKeyDown: x } : {},
1594
+ ...w ? { onKeyDown: w } : {},
1587
1595
  ...C ? { onPointerDown: C } : {},
1588
- ...S ? { onBlur: S } : {}
1589
- }, q = ct({
1590
- movable: k !== void 0,
1591
- moving: D !== null && D.itemId === k,
1592
- drop: H
1593
- }), [W, X] = J(null), oe = v === "icon" && c != null && W ? `${c}, ${W}` : c, ee = /* @__PURE__ */ r(
1594
- _,
1596
+ ...I ? { onBlur: I } : {}
1597
+ }, W = ct({
1598
+ movable: R !== void 0,
1599
+ moving: O !== null && O.itemId === R,
1600
+ drop: M
1601
+ }), [q, J] = Z(null), Q = p === "icon" && c != null && q ? `${c}, ${q}` : c, ee = /* @__PURE__ */ r(
1602
+ L,
1595
1603
  {
1596
- ref: p,
1604
+ ref: v,
1597
1605
  "aria-current": s ? "page" : void 0,
1598
- "aria-label": oe,
1606
+ "aria-label": Q,
1599
1607
  "data-nav-id": t,
1600
- "data-sidebar-item": j ? void 0 : "",
1608
+ "data-sidebar-item": A ? void 0 : "",
1601
1609
  className: lt({
1602
- mode: v,
1603
- density: g,
1610
+ mode: p,
1611
+ density: b,
1604
1612
  isActive: s,
1605
- className: [j ? "ds:flex-1 ds:min-w-0" : n, q].filter(Boolean).join(" ")
1613
+ className: [A ? "ds:flex-1 ds:min-w-0" : n, W].filter(Boolean).join(" ")
1606
1614
  }),
1607
1615
  ...G,
1608
- ...A,
1616
+ ...j,
1609
1617
  children: u
1610
1618
  }
1611
- ), se = j ? /* @__PURE__ */ h(
1619
+ ), re = A ? /* @__PURE__ */ h(
1612
1620
  "div",
1613
1621
  {
1614
1622
  "data-sidebar-item": "",
@@ -1628,25 +1636,25 @@ const me = [
1628
1636
  )
1629
1637
  ]
1630
1638
  }
1631
- ) : ee, le = U(null), [o, N] = J(), T = (f) => {
1632
- var B, Y;
1633
- const I = (B = le.current) == null ? void 0 : B.querySelector(
1639
+ ) : ee, le = U(null), [o, S] = Z(), E = (f) => {
1640
+ var B, se;
1641
+ const N = (B = le.current) == null ? void 0 : B.querySelector(
1634
1642
  "[data-sidebar-item-label]"
1635
1643
  );
1636
- if (!(I != null && I.scrollWidth > I.clientWidth) || w != null && w.current || z.move !== null) {
1644
+ if (!(N != null && N.scrollWidth > N.clientWidth) || x != null && x.current || T.move !== null) {
1637
1645
  f.preventDefault();
1638
1646
  return;
1639
1647
  }
1640
- N(((Y = I.textContent) == null ? void 0 : Y.trim()) || void 0);
1641
- }, m = v !== "icon" && P !== void 0 ? /* @__PURE__ */ h(y.Root, { children: [
1648
+ S(((se = N.textContent) == null ? void 0 : se.trim()) || void 0);
1649
+ }, m = p !== "icon" && P !== void 0 ? /* @__PURE__ */ h(y.Root, { children: [
1642
1650
  /* @__PURE__ */ r(
1643
1651
  y.Trigger,
1644
1652
  {
1645
1653
  asChild: !0,
1646
1654
  ref: le,
1647
- onPointerMove: T,
1648
- onFocus: T,
1649
- children: se
1655
+ onPointerMove: E,
1656
+ onFocus: E,
1657
+ children: re
1650
1658
  }
1651
1659
  ),
1652
1660
  /* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
@@ -1661,8 +1669,8 @@ const me = [
1661
1669
  ]
1662
1670
  }
1663
1671
  ) })
1664
- ] }) : v === "icon" && c ? /* @__PURE__ */ h(y.Root, { children: [
1665
- /* @__PURE__ */ r(y.Trigger, { asChild: !0, children: se }),
1672
+ ] }) : p === "icon" && c ? /* @__PURE__ */ h(y.Root, { children: [
1673
+ /* @__PURE__ */ r(y.Trigger, { asChild: !0, children: re }),
1666
1674
  /* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
1667
1675
  y.Content,
1668
1676
  {
@@ -1675,8 +1683,8 @@ const me = [
1675
1683
  ]
1676
1684
  }
1677
1685
  ) })
1678
- ] }) : se;
1679
- return /* @__PURE__ */ r(ts.Provider, { value: X, children: m });
1686
+ ] }) : re;
1687
+ return /* @__PURE__ */ r(ts.Provider, { value: J, children: m });
1680
1688
  }
1681
1689
  );
1682
1690
  rs.displayName = "SidebarItem";
@@ -1703,7 +1711,7 @@ const ut = $(({ className: e, children: s, ...t }, i) => /* @__PURE__ */ r(
1703
1711
  ));
1704
1712
  ut.displayName = "SidebarItemIcon";
1705
1713
  const ft = $(({ className: e, children: s, ...t }, i) => {
1706
- const { mode: d } = V();
1714
+ const { mode: d } = H();
1707
1715
  return /* @__PURE__ */ r(
1708
1716
  "span",
1709
1717
  {
@@ -1723,8 +1731,8 @@ const ft = $(({ className: e, children: s, ...t }, i) => {
1723
1731
  });
1724
1732
  ft.displayName = "SidebarItemLabel";
1725
1733
  const mt = $(({ className: e, children: s, ...t }, i) => {
1726
- const { mode: d } = V(), a = d === "icon", n = re(ts);
1727
- return te(() => {
1734
+ const { mode: d } = H(), a = d === "icon", n = oe(ts);
1735
+ return ne(() => {
1728
1736
  if (!n || !a) return;
1729
1737
  const u = s == null || s === !1 ? null : String(s).trim() || null;
1730
1738
  return n(u), () => n(null);
@@ -1758,7 +1766,7 @@ const mt = $(({ className: e, children: s, ...t }, i) => {
1758
1766
  );
1759
1767
  });
1760
1768
  mt.displayName = "SidebarItemBadge";
1761
- const pt = ne(
1769
+ const pt = ae(
1762
1770
  [
1763
1771
  "ds:flex ds:items-center",
1764
1772
  "ds:text-[var(--foreground)]",
@@ -1808,7 +1816,7 @@ const pt = ne(
1808
1816
  }
1809
1817
  ), vt = $(
1810
1818
  ({ logo: e, name: s, showChevron: t = !0, variant: i = "ghost", className: d, ...a }, n) => {
1811
- const { mode: u } = V(), c = u !== "icon";
1819
+ const { mode: u } = H(), c = u !== "icon";
1812
1820
  return /* @__PURE__ */ h(
1813
1821
  "button",
1814
1822
  {
@@ -1887,7 +1895,7 @@ function os({
1887
1895
  slot: e && !s ? /* @__PURE__ */ r(us, { children: t }) : null
1888
1896
  };
1889
1897
  }
1890
- const gt = ne(
1898
+ const gt = ae(
1891
1899
  [
1892
1900
  "ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
1893
1901
  "ds:min-h-[var(--min-target-size)]",
@@ -1933,46 +1941,46 @@ const gt = ne(
1933
1941
  children: u,
1934
1942
  onClickCapture: c,
1935
1943
  onAuxClickCapture: l,
1936
- ...x
1944
+ ...w
1937
1945
  }, C) => {
1938
- const { mode: S } = V(), A = S !== "icon", p = os({
1946
+ const { mode: I } = H(), j = I !== "icon", v = os({
1939
1947
  asChild: i,
1940
1948
  disabled: a,
1941
1949
  children: u,
1942
1950
  onClickCapture: c,
1943
1951
  onAuxClickCapture: l
1944
- }), { Comp: v } = p, g = /* @__PURE__ */ r(
1952
+ }), { Comp: p } = v, b = /* @__PURE__ */ r(
1945
1953
  "span",
1946
1954
  {
1947
1955
  "aria-hidden": "true",
1948
1956
  className: "ds:inline-flex ds:size-4 ds:items-center ds:justify-center",
1949
1957
  children: e
1950
1958
  }
1951
- ), w = A ? /* @__PURE__ */ h(Ie, { children: [
1959
+ ), x = j ? /* @__PURE__ */ h(Ie, { children: [
1952
1960
  /* @__PURE__ */ r("span", { "data-sidebar-primary-label": "", className: "ds:truncate", children: s }),
1953
1961
  t && !a ? /* @__PURE__ */ r("kbd", { className: "ds:ms-auto ds:text-[length:var(--font-size-xs)] ds:font-[family-name:var(--font-mono)] ds:opacity-80", children: t }) : null
1954
1962
  ] }) : null, P = /* @__PURE__ */ h(
1955
- v,
1963
+ p,
1956
1964
  {
1957
1965
  ref: C,
1958
- ...p.props,
1966
+ ...v.props,
1959
1967
  "aria-label": s,
1960
1968
  "aria-keyshortcuts": a ? void 0 : Ke(t),
1961
1969
  "aria-current": d ? "page" : void 0,
1962
1970
  className: [
1963
- gt({ mode: S }),
1964
- p.hostClassName,
1971
+ gt({ mode: I }),
1972
+ v.hostClassName,
1965
1973
  n
1966
1974
  ].filter(Boolean).join(" "),
1967
- ...x,
1975
+ ...w,
1968
1976
  children: [
1969
- g,
1970
- p.slot,
1971
- w
1977
+ b,
1978
+ v.slot,
1979
+ x
1972
1980
  ]
1973
1981
  }
1974
1982
  );
1975
- return A ? P : /* @__PURE__ */ h(y.Root, { children: [
1983
+ return j ? P : /* @__PURE__ */ h(y.Root, { children: [
1976
1984
  /* @__PURE__ */ r(y.Trigger, { asChild: !0, children: P }),
1977
1985
  /* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
1978
1986
  y.Content,
@@ -2013,33 +2021,33 @@ const ht = [
2013
2021
  children: u,
2014
2022
  onClickCapture: c,
2015
2023
  onAuxClickCapture: l,
2016
- ...x
2024
+ ...w
2017
2025
  }, C) => {
2018
- const { mode: S, navElementId: A, quietFocusRef: p } = V(), v = os({
2026
+ const { mode: I, navElementId: j, quietFocusRef: v } = H(), p = os({
2019
2027
  asChild: i,
2020
2028
  disabled: a,
2021
2029
  children: u,
2022
2030
  onClickCapture: c,
2023
2031
  onAuxClickCapture: l
2024
- }), { Comp: g } = v, w = /* @__PURE__ */ h(y.Root, { children: [
2032
+ }), { Comp: b } = p, x = /* @__PURE__ */ h(y.Root, { children: [
2025
2033
  /* @__PURE__ */ r(
2026
2034
  y.Trigger,
2027
2035
  {
2028
2036
  asChild: !0,
2029
2037
  onFocus: (P) => {
2030
- p != null && p.current && P.preventDefault();
2038
+ v != null && v.current && P.preventDefault();
2031
2039
  },
2032
2040
  children: /* @__PURE__ */ h(
2033
- g,
2041
+ b,
2034
2042
  {
2035
2043
  ref: C,
2036
2044
  "data-component": "sidebar-header-action",
2037
- ...v.props,
2045
+ ...p.props,
2038
2046
  "aria-label": s,
2039
2047
  "aria-keyshortcuts": a ? void 0 : Ke(t),
2040
2048
  "aria-current": d ? "page" : void 0,
2041
- className: [ht, v.hostClassName, n].filter(Boolean).join(" "),
2042
- ...x,
2049
+ className: [ht, p.hostClassName, n].filter(Boolean).join(" "),
2050
+ ...w,
2043
2051
  children: [
2044
2052
  /* @__PURE__ */ r(
2045
2053
  "span",
@@ -2049,7 +2057,7 @@ const ht = [
2049
2057
  children: e
2050
2058
  }
2051
2059
  ),
2052
- v.slot
2060
+ p.slot
2053
2061
  ]
2054
2062
  }
2055
2063
  )
@@ -2058,7 +2066,7 @@ const ht = [
2058
2066
  /* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
2059
2067
  y.Content,
2060
2068
  {
2061
- side: S === "icon" ? "right" : "bottom",
2069
+ side: I === "icon" ? "right" : "bottom",
2062
2070
  sideOffset: 6,
2063
2071
  className: me,
2064
2072
  children: [
@@ -2069,32 +2077,32 @@ const ht = [
2069
2077
  }
2070
2078
  ) })
2071
2079
  ] });
2072
- return A !== void 0 ? w : /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: w });
2080
+ return j !== void 0 ? x : /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: x });
2073
2081
  }
2074
2082
  );
2075
2083
  as.displayName = "SidebarHeaderAction";
2076
2084
  const yt = $(({ onClick: e, disabled: s = !1, ...t }, i) => {
2077
- const { t: d } = de("ui"), { mode: a } = V(), n = re(Oe), [{ total: u, open: c }, l] = J(
2085
+ const { t: d } = de("ui"), { mode: a } = H(), n = oe(Oe), [{ total: u, open: c }, l] = Z(
2078
2086
  () => (n == null ? void 0 : n.getSnapshot()) ?? Hs
2079
2087
  );
2080
- if (we(() => {
2088
+ if (xe(() => {
2081
2089
  if (n)
2082
2090
  return l(n.getSnapshot()), n.subscribe(() => l(n.getSnapshot()));
2083
2091
  }, [n]), !n || u === 0) return null;
2084
- const x = c > 0;
2092
+ const w = c > 0;
2085
2093
  return /* @__PURE__ */ r(
2086
2094
  as,
2087
2095
  {
2088
2096
  ref: i,
2089
- icon: x ? /* @__PURE__ */ r(Ss, { "aria-hidden": "true", className: "ds:size-4" }) : /* @__PURE__ */ r(Is, { "aria-hidden": "true", className: "ds:size-4" }),
2097
+ icon: w ? /* @__PURE__ */ r(Ss, { "aria-hidden": "true", className: "ds:size-4" }) : /* @__PURE__ */ r(Is, { "aria-hidden": "true", className: "ds:size-4" }),
2090
2098
  label: d(
2091
- x ? "navigation.sidebar.collapseAllSections" : "navigation.sidebar.expandAllSections"
2099
+ w ? "navigation.sidebar.collapseAllSections" : "navigation.sidebar.expandAllSections"
2092
2100
  ),
2093
- "aria-expanded": x,
2101
+ "aria-expanded": w,
2094
2102
  "data-sidebar-sections-toggle": "",
2095
2103
  disabled: a === "icon" || s,
2096
2104
  onClick: (C) => {
2097
- e == null || e(C), C.defaultPrevented || n.setAll(!x);
2105
+ e == null || e(C), C.defaultPrevented || n.setAll(!w);
2098
2106
  },
2099
2107
  ...t
2100
2108
  }
@@ -2127,7 +2135,7 @@ const xt = [
2127
2135
  "ds:motion-reduce:transition-none"
2128
2136
  ].join(" "), Pe = $(
2129
2137
  ({ isPinned: e, onPinChange: s, label: t, className: i, onClick: d, ...a }, n) => {
2130
- const { t: u } = de("ui"), { mode: c } = V();
2138
+ const { t: u } = de("ui"), { mode: c } = H();
2131
2139
  if (c === "icon") return null;
2132
2140
  const l = e ? u("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: t }) : u("navigation.sidebar.pinItem", "Pin {{label}}", { label: t });
2133
2141
  return /* @__PURE__ */ r(
@@ -2138,8 +2146,8 @@ const xt = [
2138
2146
  "aria-label": l,
2139
2147
  "aria-pressed": e,
2140
2148
  className: [xt, i].filter(Boolean).join(" "),
2141
- onClick: (x) => {
2142
- x.preventDefault(), x.stopPropagation(), s == null || s(!e), d == null || d(x);
2149
+ onClick: (w) => {
2150
+ w.preventDefault(), w.stopPropagation(), s == null || s(!e), d == null || d(w);
2143
2151
  },
2144
2152
  ...a,
2145
2153
  children: /* @__PURE__ */ r(
@@ -2155,13 +2163,13 @@ const xt = [
2155
2163
  }
2156
2164
  );
2157
2165
  Pe.displayName = "SidebarPinButton";
2158
- const is = ie(null), wt = () => re(is), St = $(
2166
+ const is = ie(null), wt = () => oe(is), St = $(
2159
2167
  ({ heading: e, emptyMessage: s, onReorder: t, className: i, children: d, ...a }, n) => {
2160
- const { t: u } = de("ui"), c = e ?? u("navigation.sidebar.favorites", "Favourites"), l = Array.isArray(d) ? d.filter(Boolean) : d ? [d] : [], x = l.length, C = x > 0, [S, A] = J(null), [p, v] = J(""), g = U(!1), w = F((_) => {
2161
- g.current = !g.current, v(g.current ? _ : `${_}​`);
2162
- }, []), P = xe(
2163
- () => ({ onReorder: t, count: x, dragSource: S, setDragSource: A, announce: w }),
2164
- [t, x, S, w]
2168
+ const { t: u } = de("ui"), c = e ?? u("navigation.sidebar.favorites", "Favourites"), l = Array.isArray(d) ? d.filter(Boolean) : d ? [d] : [], w = l.length, C = w > 0, [I, j] = Z(null), [v, p] = Z(""), b = U(!1), x = F((L) => {
2169
+ b.current = !b.current, p(b.current ? L : `${L}​`);
2170
+ }, []), P = ye(
2171
+ () => ({ onReorder: t, count: w, dragSource: I, setDragSource: j, announce: x }),
2172
+ [t, w, I, x]
2165
2173
  );
2166
2174
  return !C && !s ? null : /* @__PURE__ */ r(is.Provider, { value: P, children: /* @__PURE__ */ r(es.Provider, { value: !0, children: /* @__PURE__ */ h(
2167
2175
  ss,
@@ -2172,14 +2180,14 @@ const is = ie(null), wt = () => re(is), St = $(
2172
2180
  ...a,
2173
2181
  children: [
2174
2182
  C ? l : /* @__PURE__ */ r("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: s }),
2175
- /* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: p })
2183
+ /* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: v })
2176
2184
  ]
2177
2185
  }
2178
2186
  ) }) });
2179
2187
  }
2180
2188
  );
2181
2189
  St.displayName = "SidebarFavorites";
2182
- const Nt = ne(
2190
+ const Nt = ae(
2183
2191
  [
2184
2192
  "ds:group/item ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
2185
2193
  "ds:rounded-[var(--radius-sm)]",
@@ -2224,45 +2232,45 @@ const Nt = ne(
2224
2232
  "aria-label": u,
2225
2233
  className: c,
2226
2234
  children: l,
2227
- ...x
2235
+ ...w
2228
2236
  }, C) => {
2229
- const { t: S } = de("ui"), { mode: A } = V(), p = wt(), [v, g] = J(!1), w = !!(p != null && p.onReorder) && A !== "icon", P = i ?? u ?? "", _ = ve(), j = (b, H) => {
2230
- if (!(p != null && p.onReorder)) return;
2231
- const G = Math.max(0, Math.min(p.count - 1, H));
2232
- G !== b && (p.onReorder(b, G), p.announce(
2233
- S(
2237
+ const { t: I } = de("ui"), { mode: j } = H(), v = wt(), [p, b] = Z(!1), x = !!(v != null && v.onReorder) && j !== "icon", P = i ?? u ?? "", L = ve(), A = (g, M) => {
2238
+ if (!(v != null && v.onReorder)) return;
2239
+ const G = Math.max(0, Math.min(v.count - 1, M));
2240
+ G !== g && (v.onReorder(g, G), v.announce(
2241
+ I(
2234
2242
  "navigation.sidebar.reorderAnnounce",
2235
2243
  "{{label}} moved to position {{to}} of {{total}}",
2236
- { label: P, to: G + 1, total: p.count }
2244
+ { label: P, to: G + 1, total: v.count }
2237
2245
  )
2238
2246
  ));
2239
- }, z = (b) => {
2240
- w && (b.altKey && b.key === "ArrowUp" ? (b.preventDefault(), j(e, e - 1)) : b.altKey && b.key === "ArrowDown" ? (b.preventDefault(), j(e, e + 1)) : b.key === "Home" && b.altKey ? (b.preventDefault(), j(e, 0)) : b.key === "End" && b.altKey && (b.preventDefault(), j(e, p.count - 1)));
2241
- }, L = (b) => {
2242
- w && (p == null || p.setDragSource(e), b.dataTransfer && (b.dataTransfer.effectAllowed = "move", b.dataTransfer.setData("ds:text/plain", String(e))));
2247
+ }, T = (g) => {
2248
+ x && (g.altKey && g.key === "ArrowUp" ? (g.preventDefault(), A(e, e - 1)) : g.altKey && g.key === "ArrowDown" ? (g.preventDefault(), A(e, e + 1)) : g.key === "Home" && g.altKey ? (g.preventDefault(), A(e, 0)) : g.key === "End" && g.altKey && (g.preventDefault(), A(e, v.count - 1)));
2249
+ }, _ = (g) => {
2250
+ x && (v == null || v.setDragSource(e), g.dataTransfer && (g.dataTransfer.effectAllowed = "move", g.dataTransfer.setData("ds:text/plain", String(e))));
2243
2251
  }, K = () => {
2244
- p == null || p.setDragSource(null), g(!1);
2245
- }, R = (b) => {
2246
- !w || (p == null ? void 0 : p.dragSource) === null || (b.preventDefault(), b.dataTransfer && (b.dataTransfer.dropEffect = "move"), g(!0));
2247
- }, M = () => g(!1), k = (b) => {
2248
- if (!w) return;
2249
- b.preventDefault();
2250
- const H = p == null ? void 0 : p.dragSource;
2251
- g(!1), !(H == null || H === e) && j(H, e);
2252
- }, D = (p == null ? void 0 : p.dragSource) === e;
2252
+ v == null || v.setDragSource(null), b(!1);
2253
+ }, Y = (g) => {
2254
+ !x || (v == null ? void 0 : v.dragSource) === null || (g.preventDefault(), g.dataTransfer && (g.dataTransfer.dropEffect = "move"), b(!0));
2255
+ }, k = () => b(!1), R = (g) => {
2256
+ if (!x) return;
2257
+ g.preventDefault();
2258
+ const M = v == null ? void 0 : v.dragSource;
2259
+ b(!1), !(M == null || M === e) && A(M, e);
2260
+ }, O = (v == null ? void 0 : v.dragSource) === e;
2253
2261
  return /* @__PURE__ */ h(
2254
2262
  "div",
2255
2263
  {
2256
2264
  className: Nt({
2257
- dragging: D,
2258
- dropTarget: v && !D
2265
+ dragging: O,
2266
+ dropTarget: p && !O
2259
2267
  }),
2260
- draggable: w || void 0,
2261
- onDragStart: w ? L : void 0,
2262
- onDragEnd: w ? K : void 0,
2263
- onDragOver: R,
2264
- onDragLeave: M,
2265
- onDrop: k,
2268
+ draggable: x || void 0,
2269
+ onDragStart: x ? _ : void 0,
2270
+ onDragEnd: x ? K : void 0,
2271
+ onDragOver: Y,
2272
+ onDragLeave: k,
2273
+ onDrop: R,
2266
2274
  children: [
2267
2275
  /* @__PURE__ */ r(
2268
2276
  rs,
@@ -2271,29 +2279,29 @@ const Nt = ne(
2271
2279
  isActive: s,
2272
2280
  asChild: t,
2273
2281
  "aria-label": u,
2274
- "aria-describedby": w ? _ : void 0,
2275
- draggable: w ? !1 : void 0,
2276
- className: [w ? "ds:flex-1 ds:min-w-0" : "", c ?? ""].filter(Boolean).join(" "),
2277
- ...x,
2282
+ "aria-describedby": x ? L : void 0,
2283
+ draggable: x ? !1 : void 0,
2284
+ className: [x ? "ds:flex-1 ds:min-w-0" : "", c ?? ""].filter(Boolean).join(" "),
2285
+ ...w,
2278
2286
  children: l
2279
2287
  }
2280
2288
  ),
2281
- w ? /* @__PURE__ */ r(
2289
+ x ? /* @__PURE__ */ r(
2282
2290
  "button",
2283
2291
  {
2284
2292
  type: "button",
2285
- id: _,
2286
- "aria-label": S(
2293
+ id: L,
2294
+ "aria-label": I(
2287
2295
  "navigation.sidebar.reorderHandle",
2288
2296
  "Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
2289
2297
  { label: P }
2290
2298
  ),
2291
2299
  className: It,
2292
- onKeyDown: z,
2300
+ onKeyDown: T,
2293
2301
  children: /* @__PURE__ */ r(hs, { "aria-hidden": "true", className: "ds:size-4" })
2294
2302
  }
2295
2303
  ) : null,
2296
- a && A !== "icon" ? /* @__PURE__ */ r(
2304
+ a && j !== "icon" ? /* @__PURE__ */ r(
2297
2305
  Pe,
2298
2306
  {
2299
2307
  isPinned: d,
@@ -2307,7 +2315,7 @@ const Nt = ne(
2307
2315
  }
2308
2316
  );
2309
2317
  Ct.displayName = "SidebarFavoriteItem";
2310
- const zt = ne(
2318
+ const zt = ae(
2311
2319
  [
2312
2320
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
2313
2321
  "ds:min-h-[var(--min-target-size)]",
@@ -2321,7 +2329,7 @@ const zt = ne(
2321
2329
  "ds:no-underline"
2322
2330
  ].join(" ")
2323
2331
  ), Tt = $(({ avatar: e, name: s, subtitle: t, subtitleLabel: i, className: d, ...a }, n) => {
2324
- const { mode: u } = V(), c = u !== "icon", l = typeof t == "string" ? t : i;
2332
+ const { mode: u } = H(), c = u !== "icon", l = typeof t == "string" ? t : i;
2325
2333
  return /* @__PURE__ */ h(
2326
2334
  "button",
2327
2335
  {
@@ -2349,22 +2357,22 @@ const zt = ne(
2349
2357
  });
2350
2358
  Tt.displayName = "SidebarProfilePill";
2351
2359
  const Et = $(({ className: e, "aria-label": s, onClick: t, ...i }, d) => {
2352
- const { t: a } = de("ui"), { mode: n, density: u, transitionTo: c } = V();
2360
+ const { t: a } = de("ui"), { mode: n, density: u, transitionTo: c } = H();
2353
2361
  if (n === "overlay") return null;
2354
- const l = n === "expanded", x = l ? [
2362
+ const l = n === "expanded", w = l ? [
2355
2363
  "ds:justify-start",
2356
2364
  u === "compact" ? "ds:ps-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-sm)]"
2357
- ].join(" ") : "ds:justify-center", C = s ?? (l ? a("navigation.sidebar.collapse", "Collapse sidebar") : a("navigation.sidebar.expand", "Expand sidebar")), S = /* @__PURE__ */ r(
2365
+ ].join(" ") : "ds:justify-center", C = s ?? (l ? a("navigation.sidebar.collapse", "Collapse sidebar") : a("navigation.sidebar.expand", "Expand sidebar")), I = /* @__PURE__ */ r(
2358
2366
  "button",
2359
2367
  {
2360
2368
  ref: d,
2361
2369
  type: "button",
2362
2370
  "aria-label": C,
2363
2371
  "aria-expanded": l,
2364
- onClick: (A) => {
2365
- c == null || c(l ? "icon" : "expanded"), t == null || t(A);
2372
+ onClick: (j) => {
2373
+ c == null || c(l ? "icon" : "expanded"), t == null || t(j);
2366
2374
  },
2367
- className: [ns, x, e].filter(Boolean).join(" "),
2375
+ className: [ns, w, e].filter(Boolean).join(" "),
2368
2376
  ...i,
2369
2377
  children: /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:size-5 ds:shrink-0 ds:items-center ds:justify-center", children: l ? /* @__PURE__ */ r(
2370
2378
  zs,
@@ -2382,7 +2390,7 @@ const Et = $(({ className: e, "aria-label": s, onClick: t, ...i }, d) => {
2382
2390
  }
2383
2391
  );
2384
2392
  return /* @__PURE__ */ h(y.Root, { children: [
2385
- /* @__PURE__ */ r(y.Trigger, { asChild: !0, children: S }),
2393
+ /* @__PURE__ */ r(y.Trigger, { asChild: !0, children: I }),
2386
2394
  /* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
2387
2395
  y.Content,
2388
2396
  {
@@ -2399,8 +2407,8 @@ const Et = $(({ className: e, "aria-label": s, onClick: t, ...i }, d) => {
2399
2407
  });
2400
2408
  Et.displayName = "SidebarCollapseTrigger";
2401
2409
  const jt = $(({ className: e, ...s }, t) => {
2402
- const { t: i } = de("ui"), { mode: d, quietFocusRef: a } = V(), n = re(We), u = d === "overlay" && n !== null;
2403
- if (we(() => {
2410
+ const { t: i } = de("ui"), { mode: d, quietFocusRef: a } = H(), n = oe(We), u = d === "overlay" && n !== null;
2411
+ if (xe(() => {
2404
2412
  if (!(!u || !n))
2405
2413
  return n();
2406
2414
  }, [u, n]), !u) return null;
@@ -2413,7 +2421,7 @@ const jt = $(({ className: e, ...s }, t) => {
2413
2421
  onFocus: (l) => {
2414
2422
  a != null && a.current && l.preventDefault();
2415
2423
  },
2416
- children: /* @__PURE__ */ r(be.Close, { asChild: !0, children: /* @__PURE__ */ r(
2424
+ children: /* @__PURE__ */ r(ge.Close, { asChild: !0, children: /* @__PURE__ */ r(
2417
2425
  "button",
2418
2426
  {
2419
2427
  ref: t,
@@ -2441,7 +2449,7 @@ const jt = $(({ className: e, ...s }, t) => {
2441
2449
  ] });
2442
2450
  });
2443
2451
  jt.displayName = "SidebarCloseTrigger";
2444
- const kt = ne(
2452
+ const kt = ae(
2445
2453
  [
2446
2454
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
2447
2455
  "ds:rounded-[var(--radius-md)]",
@@ -2473,7 +2481,7 @@ const kt = ne(
2473
2481
  defaultVariants: { mode: "expanded" }
2474
2482
  }
2475
2483
  ), At = $(({ title: e, description: s, icon: t, className: i, ...d }, a) => {
2476
- const { mode: n } = V(), u = n === "icon", c = (
2484
+ const { mode: n } = H(), u = n === "icon", c = (
2477
2485
  // aria-label only in icon mode (where the copy is hidden) — in
2478
2486
  // expanded mode the accessible name comes from the visible contents
2479
2487
  // so the description isn't excluded from it.
@@ -2558,6 +2566,6 @@ export {
2558
2566
  At as s,
2559
2567
  vt as t,
2560
2568
  Os as u,
2561
- V as v
2569
+ H as v
2562
2570
  };
2563
- //# sourceMappingURL=sidebar-DhePV1hE.js.map
2571
+ //# sourceMappingURL=sidebar-BS24EnYd.js.map