@alfadocs/ui-kit-debug 1.50.1 → 1.51.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 (513) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DMittsR3.js → actions-cell-renderer-DBI33cMp.js} +4 -4
  2. package/dist/_chunks/{actions-cell-renderer-DMittsR3.js.map → actions-cell-renderer-DBI33cMp.js.map} +1 -1
  3. package/dist/_chunks/{agenda-tray-BhZASyJm.js → agenda-tray-CGhEEnFE.js} +3 -3
  4. package/dist/_chunks/{agenda-tray-BhZASyJm.js.map → agenda-tray-CGhEEnFE.js.map} +1 -1
  5. package/dist/_chunks/{ai-credits-notice-C-kz_RrY.js → ai-credits-notice-C9K_ley1.js} +3 -3
  6. package/dist/_chunks/{ai-credits-notice-C-kz_RrY.js.map → ai-credits-notice-C9K_ley1.js.map} +1 -1
  7. package/dist/_chunks/{ai-permission-notice-BRZeS3mT.js → ai-permission-notice-DMG1o4Qa.js} +2 -2
  8. package/dist/_chunks/{ai-permission-notice-BRZeS3mT.js.map → ai-permission-notice-DMG1o4Qa.js.map} +1 -1
  9. package/dist/_chunks/{ai-prompt-input-CxvnXsAs.js → ai-prompt-input-ucwO-z8g.js} +2 -2
  10. package/dist/_chunks/{ai-prompt-input-CxvnXsAs.js.map → ai-prompt-input-ucwO-z8g.js.map} +1 -1
  11. package/dist/_chunks/{alia-sidebar-Dx-oeOV2.js → alia-sidebar-K3gaNH94.js} +7 -7
  12. package/dist/_chunks/{alia-sidebar-Dx-oeOV2.js.map → alia-sidebar-K3gaNH94.js.map} +1 -1
  13. package/dist/_chunks/{anamnesis-card-D8Si-2GV.js → anamnesis-card-CPjry4ur.js} +2 -2
  14. package/dist/_chunks/{anamnesis-card-D8Si-2GV.js.map → anamnesis-card-CPjry4ur.js.map} +1 -1
  15. package/dist/_chunks/{anamnesis-summary-rows-CZirLRuv.js → anamnesis-summary-rows-D9LZZHLw.js} +9 -9
  16. package/dist/_chunks/{anamnesis-summary-rows-CZirLRuv.js.map → anamnesis-summary-rows-D9LZZHLw.js.map} +1 -1
  17. package/dist/_chunks/{appointment-card-BgLpE6T5.js → appointment-card-DETaIfBb.js} +2 -2
  18. package/dist/_chunks/{appointment-card-BgLpE6T5.js.map → appointment-card-DETaIfBb.js.map} +1 -1
  19. package/dist/_chunks/{appointment-peek-Dk11UOVW.js → appointment-peek-B79v56Zc.js} +4 -4
  20. package/dist/_chunks/{appointment-peek-Dk11UOVW.js.map → appointment-peek-B79v56Zc.js.map} +1 -1
  21. package/dist/_chunks/{appointment-timeline-wQ-PdkFV.js → appointment-timeline-tyJJPgVU.js} +5 -5
  22. package/dist/_chunks/{appointment-timeline-wQ-PdkFV.js.map → appointment-timeline-tyJJPgVU.js.map} +1 -1
  23. package/dist/_chunks/{appointment-tray-D7Gt6m8x.js → appointment-tray-Dq4zto_L.js} +4 -4
  24. package/dist/_chunks/{appointment-tray-D7Gt6m8x.js.map → appointment-tray-Dq4zto_L.js.map} +1 -1
  25. package/dist/_chunks/{audio-recorder-DZBtAvLH.js → audio-recorder-Ddlp5rVg.js} +3 -3
  26. package/dist/_chunks/{audio-recorder-DZBtAvLH.js.map → audio-recorder-Ddlp5rVg.js.map} +1 -1
  27. package/dist/_chunks/{balance-badge-cell-klaxFNL_.js → balance-badge-cell-BCEsdEOe.js} +4 -4
  28. package/dist/_chunks/{balance-badge-cell-klaxFNL_.js.map → balance-badge-cell-BCEsdEOe.js.map} +1 -1
  29. package/dist/_chunks/{bishop-score-BMLRvXYF.js → bishop-score-1NAiZh0K.js} +2 -2
  30. package/dist/_chunks/{bishop-score-BMLRvXYF.js.map → bishop-score-1NAiZh0K.js.map} +1 -1
  31. package/dist/_chunks/{bmi-calculator-DUhRyyrA.js → bmi-calculator-ZzzPZhhI.js} +2 -2
  32. package/dist/_chunks/{bmi-calculator-DUhRyyrA.js.map → bmi-calculator-ZzzPZhhI.js.map} +1 -1
  33. package/dist/_chunks/{booking-Cdzd8kyY.js → booking-DmyX24Ls.js} +5 -5
  34. package/dist/_chunks/{booking-Cdzd8kyY.js.map → booking-DmyX24Ls.js.map} +1 -1
  35. package/dist/_chunks/{button-18oBsI3n.js → button-CYPx2xFq.js} +38 -36
  36. package/dist/_chunks/button-CYPx2xFq.js.map +1 -0
  37. package/dist/_chunks/{button-group-BSDqso_C.js → button-group-t9RrsCS6.js} +3 -3
  38. package/dist/_chunks/{button-group-BSDqso_C.js.map → button-group-t9RrsCS6.js.map} +1 -1
  39. package/dist/_chunks/{calendar-E6Yu4lzC.js → calendar-aqzmITxw.js} +542 -510
  40. package/dist/_chunks/calendar-aqzmITxw.js.map +1 -0
  41. package/dist/_chunks/calendar-workspace-BqoPkCUp.js +10597 -0
  42. package/dist/_chunks/calendar-workspace-BqoPkCUp.js.map +1 -0
  43. package/dist/_chunks/{care-plan-card-ciBaaguw.js → care-plan-card-amX33mMF.js} +2 -2
  44. package/dist/_chunks/{care-plan-card-ciBaaguw.js.map → care-plan-card-amX33mMF.js.map} +1 -1
  45. package/dist/_chunks/{care-plan-entry-card-D7A0whiZ.js → care-plan-entry-card-DNkEucjN.js} +2 -2
  46. package/dist/_chunks/{care-plan-entry-card-D7A0whiZ.js.map → care-plan-entry-card-DNkEucjN.js.map} +1 -1
  47. package/dist/_chunks/{care-plan-header-DKV1gLqv.js → care-plan-header-CJi853Rf.js} +2 -2
  48. package/dist/_chunks/{care-plan-header-DKV1gLqv.js.map → care-plan-header-CJi853Rf.js.map} +1 -1
  49. package/dist/_chunks/{carousel.agent-DqDGR2yH.js → carousel.agent-2EhJsAtl.js} +2 -2
  50. package/dist/_chunks/{carousel.agent-DqDGR2yH.js.map → carousel.agent-2EhJsAtl.js.map} +1 -1
  51. package/dist/_chunks/{chart-VjuXDXOZ.js → chart-B2HnwMP5.js} +3 -3
  52. package/dist/_chunks/{chart-VjuXDXOZ.js.map → chart-B2HnwMP5.js.map} +1 -1
  53. package/dist/_chunks/{chat-input-BVho_SqP.js → chat-input-CHUsUFOD.js} +2 -2
  54. package/dist/_chunks/{chat-input-BVho_SqP.js.map → chat-input-CHUsUFOD.js.map} +1 -1
  55. package/dist/_chunks/{chat-message-B4ihjNy3.js → chat-message-DTcRGhNo.js} +3 -3
  56. package/dist/_chunks/{chat-message-B4ihjNy3.js.map → chat-message-DTcRGhNo.js.map} +1 -1
  57. package/dist/_chunks/{code-block-C_eNHWaa.js → code-block-BrwcZNPq.js} +2 -2
  58. package/dist/_chunks/{code-block-C_eNHWaa.js.map → code-block-BrwcZNPq.js.map} +1 -1
  59. package/dist/_chunks/{connection-status-Cfux3TvH.js → connection-status-DMheLE65.js} +3 -3
  60. package/dist/_chunks/{connection-status-Cfux3TvH.js.map → connection-status-DMheLE65.js.map} +1 -1
  61. package/dist/_chunks/{contact-profile-card-Dj4NgBL-.js → contact-profile-card-zQLGGFKG.js} +2 -2
  62. package/dist/_chunks/{contact-profile-card-Dj4NgBL-.js.map → contact-profile-card-zQLGGFKG.js.map} +1 -1
  63. package/dist/_chunks/{control-room-rail-DAO0qfOI.js → control-room-rail-5iuM3jcm.js} +3 -3
  64. package/dist/_chunks/{control-room-rail-DAO0qfOI.js.map → control-room-rail-5iuM3jcm.js.map} +1 -1
  65. package/dist/_chunks/{copy-field-Cm4y5Bff.js → copy-field-C-KvrgOG.js} +2 -2
  66. package/dist/_chunks/{copy-field-Cm4y5Bff.js.map → copy-field-C-KvrgOG.js.map} +1 -1
  67. package/dist/_chunks/{cycle-calculator-B9lBRNiZ.js → cycle-calculator-DQMCeEzn.js} +2 -2
  68. package/dist/_chunks/{cycle-calculator-B9lBRNiZ.js.map → cycle-calculator-DQMCeEzn.js.map} +1 -1
  69. package/dist/_chunks/{dashboard-grid-uX7x1ePj.js → dashboard-grid-H7uph3HO.js} +2 -2
  70. package/dist/_chunks/{dashboard-grid-uX7x1ePj.js.map → dashboard-grid-H7uph3HO.js.map} +1 -1
  71. package/dist/_chunks/{data-table-CrI3_bjH.js → data-table-C4yPR89K.js} +7 -7
  72. package/dist/_chunks/{data-table-CrI3_bjH.js.map → data-table-C4yPR89K.js.map} +1 -1
  73. package/dist/_chunks/{data-table-tabs-CzYYKp2_.js → data-table-tabs-Dd_O1nPY.js} +3 -3
  74. package/dist/_chunks/{data-table-tabs-CzYYKp2_.js.map → data-table-tabs-Dd_O1nPY.js.map} +1 -1
  75. package/dist/_chunks/{description-list-1A2DEbE6.js → description-list-DOPu69Jg.js} +2 -2
  76. package/dist/_chunks/{description-list-1A2DEbE6.js.map → description-list-DOPu69Jg.js.map} +1 -1
  77. package/dist/_chunks/{document-preview-Od2Hz4z5.js → document-preview-Dzh1YAz8.js} +3 -3
  78. package/dist/_chunks/{document-preview-Od2Hz4z5.js.map → document-preview-Dzh1YAz8.js.map} +1 -1
  79. package/dist/_chunks/{document-scanner-p0aGlzCy.js → document-scanner-BSVwMR4V.js} +2 -2
  80. package/dist/_chunks/{document-scanner-p0aGlzCy.js.map → document-scanner-BSVwMR4V.js.map} +1 -1
  81. package/dist/_chunks/dropdown-menu-DIzxr_lp.js +594 -0
  82. package/dist/_chunks/dropdown-menu-DIzxr_lp.js.map +1 -0
  83. package/dist/_chunks/{due-date-calculator-BVqJaxzd.js → due-date-calculator-DUjw4w5O.js} +2 -2
  84. package/dist/_chunks/{due-date-calculator-BVqJaxzd.js.map → due-date-calculator-DUjw4w5O.js.map} +1 -1
  85. package/dist/_chunks/{editable-currency-cell-renderer-D_G2Ap61.js → editable-currency-cell-renderer-Cch3RIJL.js} +3 -3
  86. package/dist/_chunks/{editable-currency-cell-renderer-D_G2Ap61.js.map → editable-currency-cell-renderer-Cch3RIJL.js.map} +1 -1
  87. package/dist/_chunks/{editable-description-B4NVdjvd.js → editable-description-CRQib91p.js} +3 -3
  88. package/dist/_chunks/{editable-description-B4NVdjvd.js.map → editable-description-CRQib91p.js.map} +1 -1
  89. package/dist/_chunks/{editor-overlay-BDiBvQmL.js → editor-overlay-DsA7vR5C.js} +2 -2
  90. package/dist/_chunks/{editor-overlay-BDiBvQmL.js.map → editor-overlay-DsA7vR5C.js.map} +1 -1
  91. package/dist/_chunks/{empty-state-DTBZ1ENT.js → empty-state-Ck1wVWdN.js} +2 -2
  92. package/dist/_chunks/{empty-state-DTBZ1ENT.js.map → empty-state-Ck1wVWdN.js.map} +1 -1
  93. package/dist/_chunks/{entity-summary-CFJfBdVP.js → entity-summary-Cvs21xPr.js} +3 -3
  94. package/dist/_chunks/{entity-summary-CFJfBdVP.js.map → entity-summary-Cvs21xPr.js.map} +1 -1
  95. package/dist/_chunks/{error-boundary-BxTqEXqj.js → error-boundary-C_HAzVLO.js} +2 -2
  96. package/dist/_chunks/{error-boundary-BxTqEXqj.js.map → error-boundary-C_HAzVLO.js.map} +1 -1
  97. package/dist/_chunks/{face-scheme-fku-RShg.js → face-scheme-DVZZTuXT.js} +5 -5
  98. package/dist/_chunks/{face-scheme-fku-RShg.js.map → face-scheme-DVZZTuXT.js.map} +1 -1
  99. package/dist/_chunks/{fetal-weight-B69yOS9W.js → fetal-weight-B-lO-948.js} +2 -2
  100. package/dist/_chunks/{fetal-weight-B69yOS9W.js.map → fetal-weight-B-lO-948.js.map} +1 -1
  101. package/dist/_chunks/{field-array-lIXrFWS0.js → field-array-B3IDOct8.js} +3 -3
  102. package/dist/_chunks/{field-array-lIXrFWS0.js.map → field-array-B3IDOct8.js.map} +1 -1
  103. package/dist/_chunks/{file-manager-C6QQPQV5.js → file-manager-COUb-w8j.js} +7 -7
  104. package/dist/_chunks/{file-manager-C6QQPQV5.js.map → file-manager-COUb-w8j.js.map} +1 -1
  105. package/dist/_chunks/{finished-terminal-B2oqXO0Y.js → finished-terminal-BrAWwfOw.js} +2 -2
  106. package/dist/_chunks/{finished-terminal-B2oqXO0Y.js.map → finished-terminal-BrAWwfOw.js.map} +1 -1
  107. package/dist/_chunks/{fiscal-code-input-BEF8eKIG.js → fiscal-code-input-CwUwhUZy.js} +2 -2
  108. package/dist/_chunks/{fiscal-code-input-BEF8eKIG.js.map → fiscal-code-input-CwUwhUZy.js.map} +1 -1
  109. package/dist/_chunks/floating-action-button-pojvb9gG.js.map +1 -1
  110. package/dist/_chunks/{freemium-paywall-B6JITu4l.js → freemium-paywall-DiPJrL18.js} +2 -2
  111. package/dist/_chunks/{freemium-paywall-B6JITu4l.js.map → freemium-paywall-DiPJrL18.js.map} +1 -1
  112. package/dist/_chunks/{gestational-age-calculator-DsGN6_HS.js → gestational-age-calculator-BVPtrWKf.js} +2 -2
  113. package/dist/_chunks/{gestational-age-calculator-DsGN6_HS.js.map → gestational-age-calculator-BVPtrWKf.js.map} +1 -1
  114. package/dist/_chunks/{hcg-doubling-D2SH-e7t.js → hcg-doubling-CPktiA3H.js} +2 -2
  115. package/dist/_chunks/{hcg-doubling-D2SH-e7t.js.map → hcg-doubling-CPktiA3H.js.map} +1 -1
  116. package/dist/_chunks/{header-CCjp5GvE.js → header-C8NbLgVq.js} +2 -2
  117. package/dist/_chunks/{header-CCjp5GvE.js.map → header-C8NbLgVq.js.map} +1 -1
  118. package/dist/_chunks/header-settings-D0M3WNTS.js +305 -0
  119. package/dist/_chunks/header-settings-D0M3WNTS.js.map +1 -0
  120. package/dist/_chunks/{help-me-write-templates-DQtT1qs_.js → help-me-write-templates-CYAKuXZ3.js} +5 -5
  121. package/dist/_chunks/{help-me-write-templates-DQtT1qs_.js.map → help-me-write-templates-CYAKuXZ3.js.map} +1 -1
  122. package/dist/_chunks/{hover-card-BplP5SzQ.js → hover-card-BM0vNmq4.js} +2 -2
  123. package/dist/_chunks/{hover-card-BplP5SzQ.js.map → hover-card-BM0vNmq4.js.map} +1 -1
  124. package/dist/_chunks/{icon-button-CY7GU_Se.js → icon-button-JAXAkqWC.js} +2 -2
  125. package/dist/_chunks/icon-button-JAXAkqWC.js.map +1 -0
  126. package/dist/_chunks/{icon-button-group-B_426QN_.js → icon-button-group-ud2BLmxe.js} +3 -3
  127. package/dist/_chunks/{icon-button-group-B_426QN_.js.map → icon-button-group-ud2BLmxe.js.map} +1 -1
  128. package/dist/_chunks/{icon-picker-ZLebyB0U.js → icon-picker-B1PwkUHy.js} +3 -3
  129. package/dist/_chunks/{icon-picker-ZLebyB0U.js.map → icon-picker-B1PwkUHy.js.map} +1 -1
  130. package/dist/_chunks/{image-cropper-_HiNN79d.js → image-cropper-DM6hpXUw.js} +2 -2
  131. package/dist/_chunks/{image-cropper-_HiNN79d.js.map → image-cropper-DM6hpXUw.js.map} +1 -1
  132. package/dist/_chunks/{info-tip-laBxZhKu.js → info-tip-CywkQ1NX.js} +2 -2
  133. package/dist/_chunks/{info-tip-laBxZhKu.js.map → info-tip-CywkQ1NX.js.map} +1 -1
  134. package/dist/_chunks/{insert-result-CSuPQyKL.js → insert-result-Fu9AHxR6.js} +2 -2
  135. package/dist/_chunks/{insert-result-CSuPQyKL.js.map → insert-result-Fu9AHxR6.js.map} +1 -1
  136. package/dist/_chunks/{key-value-pair-Dcdl3Gni.js → key-value-pair-BL1J3_Km.js} +2 -2
  137. package/dist/_chunks/{key-value-pair-Dcdl3Gni.js.map → key-value-pair-BL1J3_Km.js.map} +1 -1
  138. package/dist/_chunks/{kit-extensions-BTJSnM_H.js → kit-extensions-B9Qn6VIc.js} +6 -6
  139. package/dist/_chunks/{kit-extensions-BTJSnM_H.js.map → kit-extensions-B9Qn6VIc.js.map} +1 -1
  140. package/dist/_chunks/{link-cell-renderer-CkNbUsBM.js → link-cell-renderer-BcW3F1j9.js} +2 -2
  141. package/dist/_chunks/{link-cell-renderer-CkNbUsBM.js.map → link-cell-renderer-BcW3F1j9.js.map} +1 -1
  142. package/dist/_chunks/{locale-picker-DGkQmhV9.js → locale-picker-Z42P8T-i.js} +218 -213
  143. package/dist/_chunks/locale-picker-Z42P8T-i.js.map +1 -0
  144. package/dist/_chunks/{map-view-Bb7ClKSF.js → map-view-DxYPJjM9.js} +2 -2
  145. package/dist/_chunks/{map-view-Bb7ClKSF.js.map → map-view-DxYPJjM9.js.map} +1 -1
  146. package/dist/_chunks/{marketplace-app-shell-1uKqs4gD.js → marketplace-app-shell-rTTvWRrE.js} +6 -6
  147. package/dist/_chunks/{marketplace-app-shell-1uKqs4gD.js.map → marketplace-app-shell-rTTvWRrE.js.map} +1 -1
  148. package/dist/_chunks/{message-card-C2zsvyj0.js → message-card-CUBPPn4Z.js} +3 -3
  149. package/dist/_chunks/{message-card-C2zsvyj0.js.map → message-card-CUBPPn4Z.js.map} +1 -1
  150. package/dist/_chunks/{message-tray-CMlmxdH2.js → message-tray-uy3DAIbn.js} +4 -4
  151. package/dist/_chunks/{message-tray-CMlmxdH2.js.map → message-tray-uy3DAIbn.js.map} +1 -1
  152. package/dist/_chunks/{muscle-scheme-Co0NIgbU.js → muscle-scheme-CH-vQ7Ch.js} +2 -2
  153. package/dist/_chunks/{muscle-scheme-Co0NIgbU.js.map → muscle-scheme-CH-vQ7Ch.js.map} +1 -1
  154. package/dist/_chunks/{notes-panel-xxpFt-I1.js → notes-panel-Dka4Z2M7.js} +4 -4
  155. package/dist/_chunks/{notes-panel-xxpFt-I1.js.map → notes-panel-Dka4Z2M7.js.map} +1 -1
  156. package/dist/_chunks/{notification-card-DDzBCi8l.js → notification-card-Hy8w3UWx.js} +3 -3
  157. package/dist/_chunks/{notification-card-DDzBCi8l.js.map → notification-card-Hy8w3UWx.js.map} +1 -1
  158. package/dist/_chunks/{notification-tray-PnH2PBlZ.js → notification-tray-VuV3XXB8.js} +4 -4
  159. package/dist/_chunks/{notification-tray-PnH2PBlZ.js.map → notification-tray-VuV3XXB8.js.map} +1 -1
  160. package/dist/_chunks/{optical-prescription-DUufWXfZ.js → optical-prescription-C2n6d0HO.js} +2 -2
  161. package/dist/_chunks/{optical-prescription-DUufWXfZ.js.map → optical-prescription-C2n6d0HO.js.map} +1 -1
  162. package/dist/_chunks/{panel-subview-CzHutkA8.js → panel-subview-DAY-ToM3.js} +2 -2
  163. package/dist/_chunks/{panel-subview-CzHutkA8.js.map → panel-subview-DAY-ToM3.js.map} +1 -1
  164. package/dist/_chunks/{patient-details-tTlvrJSU.js → patient-details-D9sAM3qh.js} +3 -3
  165. package/dist/_chunks/{patient-details-tTlvrJSU.js.map → patient-details-D9sAM3qh.js.map} +1 -1
  166. package/dist/_chunks/{patient-field-row-DElFbpKc.js → patient-field-row-CT04C_lZ.js} +277 -257
  167. package/dist/_chunks/patient-field-row-CT04C_lZ.js.map +1 -0
  168. package/dist/_chunks/{patient-search-DgXdGkhK.js → patient-search-DkIukAMQ.js} +3 -3
  169. package/dist/_chunks/{patient-search-DgXdGkhK.js.map → patient-search-DkIukAMQ.js.map} +1 -1
  170. package/dist/_chunks/{patient-summary-card-DQ__6DR-.js → patient-summary-card-DI0BH-Fe.js} +5 -5
  171. package/dist/_chunks/{patient-summary-card-DQ__6DR-.js.map → patient-summary-card-DI0BH-Fe.js.map} +1 -1
  172. package/dist/_chunks/{payment-automation-upsell-ugi4np1l.js → payment-automation-upsell-vQBIyUky.js} +2 -2
  173. package/dist/_chunks/{payment-automation-upsell-ugi4np1l.js.map → payment-automation-upsell-vQBIyUky.js.map} +1 -1
  174. package/dist/_chunks/{payment-request-card-DMJB57Tv.js → payment-request-card-BSaJzhxz.js} +3 -3
  175. package/dist/_chunks/{payment-request-card-DMJB57Tv.js.map → payment-request-card-BSaJzhxz.js.map} +1 -1
  176. package/dist/_chunks/{periodontal-chart-DbGzKDj7.js → periodontal-chart-BcTcOc79.js} +2 -2
  177. package/dist/_chunks/{periodontal-chart-DbGzKDj7.js.map → periodontal-chart-BcTcOc79.js.map} +1 -1
  178. package/dist/_chunks/{periodontal-chart-card-DvHyP47v.js → periodontal-chart-card-NS_nToBf.js} +2 -2
  179. package/dist/_chunks/{periodontal-chart-card-DvHyP47v.js.map → periodontal-chart-card-NS_nToBf.js.map} +1 -1
  180. package/dist/_chunks/{popover-Dvb40vPH.js → popover-SASSeAdY.js} +2 -2
  181. package/dist/_chunks/{popover-Dvb40vPH.js.map → popover-SASSeAdY.js.map} +1 -1
  182. package/dist/_chunks/{practice-results-EKRiqWtQ.js → practice-results-C3ifcObw.js} +6 -6
  183. package/dist/_chunks/{practice-results-EKRiqWtQ.js.map → practice-results-C3ifcObw.js.map} +1 -1
  184. package/dist/_chunks/{pregnancy-dating-lfjjZVZH.js → pregnancy-dating-CpJ3iYvD.js} +2 -2
  185. package/dist/_chunks/{pregnancy-dating-lfjjZVZH.js.map → pregnancy-dating-CpJ3iYvD.js.map} +1 -1
  186. package/dist/_chunks/{pregnancy-weight-gain-WpNt-S0q.js → pregnancy-weight-gain-kDOhA2vZ.js} +2 -2
  187. package/dist/_chunks/{pregnancy-weight-gain-WpNt-S0q.js.map → pregnancy-weight-gain-kDOhA2vZ.js.map} +1 -1
  188. package/dist/_chunks/{privacy-lock-D6gq0GDg.js → privacy-lock-CEyvNpC8.js} +3 -3
  189. package/dist/_chunks/{privacy-lock-D6gq0GDg.js.map → privacy-lock-CEyvNpC8.js.map} +1 -1
  190. package/dist/_chunks/{privacy-mask-BC5lw2zB.js → privacy-mask-TzMlEu3Q.js} +2 -2
  191. package/dist/_chunks/{privacy-mask-BC5lw2zB.js.map → privacy-mask-TzMlEu3Q.js.map} +1 -1
  192. package/dist/_chunks/{product-hub-panel-CKeSCSeE.js → product-hub-panel-b70i9Hi1.js} +3 -3
  193. package/dist/_chunks/{product-hub-panel-CKeSCSeE.js.map → product-hub-panel-b70i9Hi1.js.map} +1 -1
  194. package/dist/_chunks/{public-header.agent-B9wDmUeB.js → public-header.agent-D0ApOrmx.js} +3 -3
  195. package/dist/_chunks/{public-header.agent-B9wDmUeB.js.map → public-header.agent-D0ApOrmx.js.map} +1 -1
  196. package/dist/_chunks/{radiograph-panel.agent-TmyIvTOa.js → radiograph-panel.agent-jhwaIW8U.js} +4 -4
  197. package/dist/_chunks/{radiograph-panel.agent-TmyIvTOa.js.map → radiograph-panel.agent-jhwaIW8U.js.map} +1 -1
  198. package/dist/_chunks/resource-chip-DQeCJzJf.js +143 -0
  199. package/dist/_chunks/resource-chip-DQeCJzJf.js.map +1 -0
  200. package/dist/_chunks/{reviews-panel-BdwFp_0c.js → reviews-panel-B5QC4FIp.js} +4 -4
  201. package/dist/_chunks/{reviews-panel-BdwFp_0c.js.map → reviews-panel-B5QC4FIp.js.map} +1 -1
  202. package/dist/_chunks/{rich-text-editor-y6ML0KeV.js → rich-text-editor-DoBXdwmx.js} +930 -943
  203. package/dist/_chunks/rich-text-editor-DoBXdwmx.js.map +1 -0
  204. package/dist/_chunks/{session-countdown-ACJyTXH2.js → session-countdown-26XB5u38.js} +2 -2
  205. package/dist/_chunks/{session-countdown-ACJyTXH2.js.map → session-countdown-26XB5u38.js.map} +1 -1
  206. package/dist/_chunks/{sheet-D0Lh0KR2.js → sheet-CwhNzxbr.js} +2 -2
  207. package/dist/_chunks/{sheet-D0Lh0KR2.js.map → sheet-CwhNzxbr.js.map} +1 -1
  208. package/dist/_chunks/{sign-in-with-alfadocs-button-CDyJAIzW.js → sign-in-with-alfadocs-button-jxbze77L.js} +2 -2
  209. package/dist/_chunks/{sign-in-with-alfadocs-button-CDyJAIzW.js.map → sign-in-with-alfadocs-button-jxbze77L.js.map} +1 -1
  210. package/dist/_chunks/{signature-request-BUGeG8oD.js → signature-request-BorHf3CY.js} +4 -4
  211. package/dist/_chunks/{signature-request-BUGeG8oD.js.map → signature-request-BorHf3CY.js.map} +1 -1
  212. package/dist/_chunks/{slot-grid-4fWH3Euk.js → slot-grid-xgf2UKLS.js} +4 -4
  213. package/dist/_chunks/{slot-grid-4fWH3Euk.js.map → slot-grid-xgf2UKLS.js.map} +1 -1
  214. package/dist/_chunks/social-sign-in-button-dlpPI5l7.js.map +1 -1
  215. package/dist/_chunks/{streaming-text-eRiizArc.js → streaming-text-Cos2fVTw.js} +2 -2
  216. package/dist/_chunks/{streaming-text-eRiizArc.js.map → streaming-text-Cos2fVTw.js.map} +1 -1
  217. package/dist/_chunks/{tab-bar-BHFf6knq.js → tab-bar-BrkMUW0c.js} +2 -2
  218. package/dist/_chunks/{tab-bar-BHFf6knq.js.map → tab-bar-BrkMUW0c.js.map} +1 -1
  219. package/dist/_chunks/tabs-tK22Mz7r.js +413 -0
  220. package/dist/_chunks/tabs-tK22Mz7r.js.map +1 -0
  221. package/dist/_chunks/{task-card-jaOhnj_q.js → task-card-CLpHmqEY.js} +2 -2
  222. package/dist/_chunks/{task-card-jaOhnj_q.js.map → task-card-CLpHmqEY.js.map} +1 -1
  223. package/dist/_chunks/{task-editor-DlvTwAfv.js → task-editor-B4UGsU7l.js} +6 -6
  224. package/dist/_chunks/{task-editor-DlvTwAfv.js.map → task-editor-B4UGsU7l.js.map} +1 -1
  225. package/dist/_chunks/{task-tray-HHyxi9ga.js → task-tray-dsmYgjVb.js} +4 -4
  226. package/dist/_chunks/{task-tray-HHyxi9ga.js.map → task-tray-dsmYgjVb.js.map} +1 -1
  227. package/dist/_chunks/{tasks-panel-DbSjq_mz.js → tasks-panel-CwwVw491.js} +6 -6
  228. package/dist/_chunks/{tasks-panel-DbSjq_mz.js.map → tasks-panel-CwwVw491.js.map} +1 -1
  229. package/dist/_chunks/{theme-toggle-LUBxlNDm.js → theme-toggle-jyoyhbJL.js} +4 -4
  230. package/dist/_chunks/{theme-toggle-LUBxlNDm.js.map → theme-toggle-jyoyhbJL.js.map} +1 -1
  231. package/dist/_chunks/{toast-CT8hjr9r.js → toast-FijDyPnv.js} +2 -2
  232. package/dist/_chunks/{toast-CT8hjr9r.js.map → toast-FijDyPnv.js.map} +1 -1
  233. package/dist/_chunks/{token-insert-menu-klwbxVKh.js → token-insert-menu-Cjf99IdN.js} +3 -3
  234. package/dist/_chunks/{token-insert-menu-klwbxVKh.js.map → token-insert-menu-Cjf99IdN.js.map} +1 -1
  235. package/dist/_chunks/{tool-rail-DEeX4PdN.js → tool-rail-DphMl1hX.js} +2 -2
  236. package/dist/_chunks/{tool-rail-DEeX4PdN.js.map → tool-rail-DphMl1hX.js.map} +1 -1
  237. package/dist/_chunks/{tooth-scheme-BkjhkI8g.js → tooth-scheme-BaCJnyg9.js} +663 -718
  238. package/dist/_chunks/tooth-scheme-BaCJnyg9.js.map +1 -0
  239. package/dist/_chunks/{unit-converter-Dp_KDxE6.js → unit-converter-CGpOgarU.js} +2 -2
  240. package/dist/_chunks/{unit-converter-Dp_KDxE6.js.map → unit-converter-CGpOgarU.js.map} +1 -1
  241. package/dist/_chunks/{use-appointment-details-read-5-hV-2xA.js → use-appointment-details-read-uEnJLVfA.js} +14 -14
  242. package/dist/_chunks/{use-appointment-details-read-5-hV-2xA.js.map → use-appointment-details-read-uEnJLVfA.js.map} +1 -1
  243. package/dist/_chunks/wallet-pay-button--dnR6NfJ.js.map +1 -1
  244. package/dist/_chunks/{warning-stack-CEgYkI1z.js → warning-stack-7Hffm7K1.js} +3 -3
  245. package/dist/_chunks/{warning-stack-CEgYkI1z.js.map → warning-stack-7Hffm7K1.js.map} +1 -1
  246. package/dist/_chunks/{workflow-map-qGkQTNvS.js → workflow-map-Jfe9L9Wt.js} +6 -6
  247. package/dist/_chunks/{workflow-map-qGkQTNvS.js.map → workflow-map-Jfe9L9Wt.js.map} +1 -1
  248. package/dist/_chunks/{workflow-status-ClHfz4Kr.js → workflow-status-jHfsIDzi.js} +2 -2
  249. package/dist/_chunks/{workflow-status-ClHfz4Kr.js.map → workflow-status-jHfsIDzi.js.map} +1 -1
  250. package/dist/agent-catalog.json +103 -38
  251. package/dist/agent-i18n/en.json +7 -4
  252. package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
  253. package/dist/components/_shared/field-visibility-cog.d.ts.map +1 -1
  254. package/dist/components/agenda-tray/index.js +1 -1
  255. package/dist/components/ai-credits-notice/index.js +1 -1
  256. package/dist/components/ai-permission-notice/index.js +1 -1
  257. package/dist/components/ai-prompt-input/index.js +1 -1
  258. package/dist/components/anamnesis-card/index.js +1 -1
  259. package/dist/components/anamnesis-summary-card/anamnesis-summary-card.d.ts +1 -1
  260. package/dist/components/appointment-card/index.js +2 -2
  261. package/dist/components/appointment-details-panel/index.js +1 -1
  262. package/dist/components/appointment-peek/index.js +1 -1
  263. package/dist/components/appointment-timeline/index.js +1 -1
  264. package/dist/components/audio-recorder/index.js +1 -1
  265. package/dist/components/bishop-score/index.js +1 -1
  266. package/dist/components/bmi-calculator/index.js +1 -1
  267. package/dist/components/booking/index.js +1 -1
  268. package/dist/components/button/button.d.ts +11 -0
  269. package/dist/components/button/button.d.ts.map +1 -1
  270. package/dist/components/button/icon-button.d.ts +4 -0
  271. package/dist/components/button/icon-button.d.ts.map +1 -1
  272. package/dist/components/button/index.js +2 -2
  273. package/dist/components/button-group/index.js +1 -1
  274. package/dist/components/calendar/calendar.d.ts +5 -3
  275. package/dist/components/calendar/calendar.d.ts.map +1 -1
  276. package/dist/components/calendar/index.js +1 -1
  277. package/dist/components/care-plan-card/index.js +1 -1
  278. package/dist/components/care-plan-entry-card/index.js +1 -1
  279. package/dist/components/care-plan-header/index.js +1 -1
  280. package/dist/components/carousel/index.js +1 -1
  281. package/dist/components/chart/chart.d.ts +1 -1
  282. package/dist/components/chart/index.js +1 -1
  283. package/dist/components/chat-input/index.js +1 -1
  284. package/dist/components/chat-message/index.js +1 -1
  285. package/dist/components/connection-status/index.js +1 -1
  286. package/dist/components/contact-profile-card/index.js +1 -1
  287. package/dist/components/control-room-rail/index.js +1 -1
  288. package/dist/components/copy-field/index.js +1 -1
  289. package/dist/components/cycle-calculator/index.js +1 -1
  290. package/dist/components/dashboard-grid/index.js +1 -1
  291. package/dist/components/data-table/index.js +4 -4
  292. package/dist/components/data-table-tabs/index.js +1 -1
  293. package/dist/components/description-list/index.js +1 -1
  294. package/dist/components/document-preview/index.js +1 -1
  295. package/dist/components/document-scanner/index.js +1 -1
  296. package/dist/components/dropdown-menu/dropdown-menu.agent.d.ts.map +1 -1
  297. package/dist/components/dropdown-menu/dropdown-menu.d.ts +52 -2
  298. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  299. package/dist/components/dropdown-menu/index.d.ts +1 -1
  300. package/dist/components/dropdown-menu/index.d.ts.map +1 -1
  301. package/dist/components/dropdown-menu/index.js +1 -1
  302. package/dist/components/due-date-calculator/index.js +1 -1
  303. package/dist/components/editable-description/index.js +1 -1
  304. package/dist/components/editor-overlay/index.js +1 -1
  305. package/dist/components/empty-state/index.js +1 -1
  306. package/dist/components/entity-summary/index.js +1 -1
  307. package/dist/components/error-boundary/index.js +1 -1
  308. package/dist/components/face-scheme/index.js +1 -1
  309. package/dist/components/fetal-weight/index.js +1 -1
  310. package/dist/components/field-array/index.js +1 -1
  311. package/dist/components/file-manager/index.js +1 -1
  312. package/dist/components/finished-terminal/index.js +1 -1
  313. package/dist/components/fiscal-code-input/index.js +1 -1
  314. package/dist/components/floating-action-button/floating-action-button.d.ts.map +1 -1
  315. package/dist/components/freemium-paywall/index.js +1 -1
  316. package/dist/components/gestational-age-calculator/index.js +1 -1
  317. package/dist/components/hcg-doubling/index.js +1 -1
  318. package/dist/components/header/index.js +1 -1
  319. package/dist/components/header-settings/header-settings.d.ts +3 -3
  320. package/dist/components/header-settings/header-settings.d.ts.map +1 -1
  321. package/dist/components/header-settings/index.js +1 -1
  322. package/dist/components/hover-card/index.js +1 -1
  323. package/dist/components/icon-button/index.js +1 -1
  324. package/dist/components/icon-button-group/index.js +1 -1
  325. package/dist/components/icon-picker/index.js +1 -1
  326. package/dist/components/image-cropper/index.js +1 -1
  327. package/dist/components/info-tip/index.js +1 -1
  328. package/dist/components/key-value-pair/index.js +1 -1
  329. package/dist/components/locale-picker/index.js +1 -1
  330. package/dist/components/locale-picker/locale-picker.d.ts +7 -0
  331. package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
  332. package/dist/components/map-view/index.js +1 -1
  333. package/dist/components/message-card/index.js +1 -1
  334. package/dist/components/message-tray/index.js +1 -1
  335. package/dist/components/muscle-scheme/index.js +1 -1
  336. package/dist/components/notes-panel/index.js +1 -1
  337. package/dist/components/notification-card/index.js +1 -1
  338. package/dist/components/notification-tray/index.js +1 -1
  339. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  340. package/dist/components/optical-prescription/index.js +1 -1
  341. package/dist/components/panel-subview/index.js +1 -1
  342. package/dist/components/patient-details/index.js +1 -1
  343. package/dist/components/patient-details/patient-details.d.ts +1 -1
  344. package/dist/components/patient-search/index.js +1 -1
  345. package/dist/components/patient-summary-card/index.js +1 -1
  346. package/dist/components/patient-summary-card/patient-summary-card.d.ts +1 -1
  347. package/dist/components/patient-table/index.js +1 -1
  348. package/dist/components/payment-card/index.js +1 -1
  349. package/dist/components/periodontal-chart/index.js +1 -1
  350. package/dist/components/periodontal-chart-card/index.js +1 -1
  351. package/dist/components/popover/index.js +1 -1
  352. package/dist/components/practice-results/index.js +1 -1
  353. package/dist/components/pregnancy-dating/index.js +1 -1
  354. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  355. package/dist/components/privacy-lock/index.js +1 -1
  356. package/dist/components/product-hub-tray/index.js +1 -1
  357. package/dist/components/public-header/index.js +1 -1
  358. package/dist/components/radiograph-panel/index.js +1 -1
  359. package/dist/components/resource-chip/index.d.ts +1 -1
  360. package/dist/components/resource-chip/index.d.ts.map +1 -1
  361. package/dist/components/resource-chip/index.js +3 -2
  362. package/dist/components/resource-chip/resource-chip.d.ts +20 -0
  363. package/dist/components/resource-chip/resource-chip.d.ts.map +1 -1
  364. package/dist/components/reviews-panel/index.js +1 -1
  365. package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
  366. package/dist/components/rich-text-editor/index.js +2 -2
  367. package/dist/components/session-countdown/index.js +1 -1
  368. package/dist/components/sheet/index.js +1 -1
  369. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  370. package/dist/components/skeleton-scheme/index.js +1 -1
  371. package/dist/components/slot-grid/index.js +1 -1
  372. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts.map +1 -1
  373. package/dist/components/streaming-text/index.js +1 -1
  374. package/dist/components/tab-bar/index.js +1 -1
  375. package/dist/components/tabs/index.js +1 -1
  376. package/dist/components/tabs/tabs.d.ts.map +1 -1
  377. package/dist/components/task-card/index.js +1 -1
  378. package/dist/components/task-editor/index.js +1 -1
  379. package/dist/components/task-tray/index.js +1 -1
  380. package/dist/components/tasks-panel/index.js +1 -1
  381. package/dist/components/theme-toggle/index.js +1 -1
  382. package/dist/components/toast/index.js +1 -1
  383. package/dist/components/token-insert-menu/index.js +1 -1
  384. package/dist/components/tool-rail/index.js +1 -1
  385. package/dist/components/tooth-scheme/index.js +1 -1
  386. package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -2
  387. package/dist/components/tooth-scheme/tooth-scheme.d.ts.map +1 -1
  388. package/dist/components/unit-converter/index.js +1 -1
  389. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts.map +1 -1
  390. package/dist/components/warning-stack/index.js +1 -1
  391. package/dist/components/workflow/index.js +1 -1
  392. package/dist/components/workflow/workflow-card.d.ts +1 -1
  393. package/dist/components/workflow-status/index.js +1 -1
  394. package/dist/i18n/locales/ar.d.ts +5 -0
  395. package/dist/i18n/locales/ar.d.ts.map +1 -1
  396. package/dist/i18n/locales/ar.js +5 -0
  397. package/dist/i18n/locales/ar.js.map +1 -1
  398. package/dist/i18n/locales/de.d.ts +5 -0
  399. package/dist/i18n/locales/de.d.ts.map +1 -1
  400. package/dist/i18n/locales/de.js +5 -0
  401. package/dist/i18n/locales/de.js.map +1 -1
  402. package/dist/i18n/locales/el.d.ts +5 -0
  403. package/dist/i18n/locales/el.d.ts.map +1 -1
  404. package/dist/i18n/locales/el.js +5 -0
  405. package/dist/i18n/locales/el.js.map +1 -1
  406. package/dist/i18n/locales/en.d.ts +5 -0
  407. package/dist/i18n/locales/en.d.ts.map +1 -1
  408. package/dist/i18n/locales/en.js +5 -0
  409. package/dist/i18n/locales/en.js.map +1 -1
  410. package/dist/i18n/locales/es.d.ts +5 -0
  411. package/dist/i18n/locales/es.d.ts.map +1 -1
  412. package/dist/i18n/locales/es.js +5 -0
  413. package/dist/i18n/locales/es.js.map +1 -1
  414. package/dist/i18n/locales/fr.d.ts +5 -0
  415. package/dist/i18n/locales/fr.d.ts.map +1 -1
  416. package/dist/i18n/locales/fr.js +5 -0
  417. package/dist/i18n/locales/fr.js.map +1 -1
  418. package/dist/i18n/locales/hi.d.ts +5 -0
  419. package/dist/i18n/locales/hi.d.ts.map +1 -1
  420. package/dist/i18n/locales/hi.js +5 -0
  421. package/dist/i18n/locales/hi.js.map +1 -1
  422. package/dist/i18n/locales/it.d.ts +5 -0
  423. package/dist/i18n/locales/it.d.ts.map +1 -1
  424. package/dist/i18n/locales/it.js +5 -0
  425. package/dist/i18n/locales/it.js.map +1 -1
  426. package/dist/i18n/locales/ja.d.ts +5 -0
  427. package/dist/i18n/locales/ja.d.ts.map +1 -1
  428. package/dist/i18n/locales/ja.js +5 -0
  429. package/dist/i18n/locales/ja.js.map +1 -1
  430. package/dist/i18n/locales/nl.d.ts +5 -0
  431. package/dist/i18n/locales/nl.d.ts.map +1 -1
  432. package/dist/i18n/locales/nl.js +5 -0
  433. package/dist/i18n/locales/nl.js.map +1 -1
  434. package/dist/i18n/locales/pl.d.ts +5 -0
  435. package/dist/i18n/locales/pl.d.ts.map +1 -1
  436. package/dist/i18n/locales/pl.js +5 -0
  437. package/dist/i18n/locales/pl.js.map +1 -1
  438. package/dist/i18n/locales/pt.d.ts +5 -0
  439. package/dist/i18n/locales/pt.d.ts.map +1 -1
  440. package/dist/i18n/locales/pt.js +5 -0
  441. package/dist/i18n/locales/pt.js.map +1 -1
  442. package/dist/i18n/locales/ro.d.ts +5 -0
  443. package/dist/i18n/locales/ro.d.ts.map +1 -1
  444. package/dist/i18n/locales/ro.js +5 -0
  445. package/dist/i18n/locales/ro.js.map +1 -1
  446. package/dist/i18n/locales/ru.d.ts +5 -0
  447. package/dist/i18n/locales/ru.d.ts.map +1 -1
  448. package/dist/i18n/locales/ru.js +5 -0
  449. package/dist/i18n/locales/ru.js.map +1 -1
  450. package/dist/i18n/locales/sq.d.ts +5 -0
  451. package/dist/i18n/locales/sq.d.ts.map +1 -1
  452. package/dist/i18n/locales/sq.js +5 -0
  453. package/dist/i18n/locales/sq.js.map +1 -1
  454. package/dist/i18n/locales/sv.d.ts +5 -0
  455. package/dist/i18n/locales/sv.d.ts.map +1 -1
  456. package/dist/i18n/locales/sv.js +5 -0
  457. package/dist/i18n/locales/sv.js.map +1 -1
  458. package/dist/i18n/locales/tr.d.ts +5 -0
  459. package/dist/i18n/locales/tr.d.ts.map +1 -1
  460. package/dist/i18n/locales/tr.js +5 -0
  461. package/dist/i18n/locales/tr.js.map +1 -1
  462. package/dist/i18n/locales/zh.d.ts +5 -0
  463. package/dist/i18n/locales/zh.d.ts.map +1 -1
  464. package/dist/i18n/locales/zh.js +5 -0
  465. package/dist/i18n/locales/zh.js.map +1 -1
  466. package/dist/index.js +477 -476
  467. package/dist/locales/ar.json +5 -0
  468. package/dist/locales/de.json +5 -0
  469. package/dist/locales/el.json +5 -0
  470. package/dist/locales/en.json +5 -0
  471. package/dist/locales/es.json +5 -0
  472. package/dist/locales/fr.json +5 -0
  473. package/dist/locales/hi.json +5 -0
  474. package/dist/locales/it.json +5 -0
  475. package/dist/locales/ja.json +5 -0
  476. package/dist/locales/nl.json +5 -0
  477. package/dist/locales/pl.json +5 -0
  478. package/dist/locales/pt.json +5 -0
  479. package/dist/locales/ro.json +5 -0
  480. package/dist/locales/ru.json +5 -0
  481. package/dist/locales/sq.json +5 -0
  482. package/dist/locales/sv.json +5 -0
  483. package/dist/locales/tr.json +5 -0
  484. package/dist/locales/zh.json +5 -0
  485. package/dist/patterns/alia-assistant/index.js +1 -1
  486. package/dist/patterns/anamnesis/index.js +1 -1
  487. package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
  488. package/dist/patterns/calendar/calendar.surface.d.ts +4 -1
  489. package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
  490. package/dist/patterns/calendar/index.js +1 -1
  491. package/dist/patterns/help-me-write-templates/index.js +1 -1
  492. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  493. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  494. package/dist/patterns/signature-request/index.js +1 -1
  495. package/dist/tokens.css +2 -1
  496. package/package.json +1 -1
  497. package/dist/_chunks/button-18oBsI3n.js.map +0 -1
  498. package/dist/_chunks/calendar-E6Yu4lzC.js.map +0 -1
  499. package/dist/_chunks/calendar-workspace-DjbGFjg1.js +0 -10584
  500. package/dist/_chunks/calendar-workspace-DjbGFjg1.js.map +0 -1
  501. package/dist/_chunks/dropdown-menu-C8PaW3lR.js +0 -369
  502. package/dist/_chunks/dropdown-menu-C8PaW3lR.js.map +0 -1
  503. package/dist/_chunks/header-settings-ZXa6hXuu.js +0 -335
  504. package/dist/_chunks/header-settings-ZXa6hXuu.js.map +0 -1
  505. package/dist/_chunks/icon-button-CY7GU_Se.js.map +0 -1
  506. package/dist/_chunks/locale-picker-DGkQmhV9.js.map +0 -1
  507. package/dist/_chunks/patient-field-row-DElFbpKc.js.map +0 -1
  508. package/dist/_chunks/resource-chip-DYTG0IQQ.js +0 -83
  509. package/dist/_chunks/resource-chip-DYTG0IQQ.js.map +0 -1
  510. package/dist/_chunks/rich-text-editor-y6ML0KeV.js.map +0 -1
  511. package/dist/_chunks/tabs-CFsuMQ5H.js +0 -409
  512. package/dist/_chunks/tabs-CFsuMQ5H.js.map +0 -1
  513. package/dist/_chunks/tooth-scheme-BkjhkI8g.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { jsx as t, jsxs as C, Fragment as Ee } from "react/jsx-runtime";
2
- import { useId as Oe, useState as E, useRef as A, useCallback as y, useEffect as _, Fragment as ft, forwardRef as Wo, useMemo as Je, useImperativeHandle as Xo } from "react";
1
+ import { jsx as t, jsxs as C, Fragment as He } from "react/jsx-runtime";
2
+ import { useId as Oe, useState as N, useRef as A, useCallback as v, useEffect as L, Fragment as ft, forwardRef as Wo, useMemo as Je, useImperativeHandle as Xo } from "react";
3
3
  import { c as Dn } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ne } from "react-i18next";
5
5
  import { SafeHtml as Uo, sanitiseHtml as Zo } from "../safe-html/index.js";
@@ -7,28 +7,28 @@ import { u as Qo } from "./registry-DvAUVLHh.js";
7
7
  import { u as Yo } from "./use-ai-sparkle-Cf4yVTLB.js";
8
8
  import { S as On } from "./spinner-hbwuKwMf.js";
9
9
  import { A as Jo } from "./ai-sparkle-D23NT8Z_.js";
10
- import { B as Te } from "./button-18oBsI3n.js";
11
- import { I as j } from "./icon-button-CY7GU_Se.js";
12
- import { A as ea } from "./ai-permission-notice-BRZeS3mT.js";
10
+ import { B as Te } from "./button-CYPx2xFq.js";
11
+ import { I as j } from "./icon-button-JAXAkqWC.js";
12
+ import { A as ea } from "./ai-permission-notice-DMG1o4Qa.js";
13
13
  import { T as ta } from "./text-area-Bt3p7Pt0.js";
14
- import { E as Rn } from "./editor-overlay-BDiBvQmL.js";
14
+ import { E as Rn } from "./editor-overlay-DsA7vR5C.js";
15
15
  import { X as Mr } from "./x-B5YnXwCz.js";
16
16
  import { R as na } from "./rotate-ccw-BBQnIVTr.js";
17
17
  import { C as ra } from "./check-DrFSN__t.js";
18
18
  import { S as Ct } from "./square-DASBRZ0U.js";
19
19
  import { M as zn } from "./mic-CUklMZGF.js";
20
20
  import { S as oa } from "./send-C5kDJ-Mz.js";
21
- import { D as te } from "./dropdown-menu-C8PaW3lR.js";
21
+ import { D as X } from "./dropdown-menu-DIzxr_lp.js";
22
22
  import * as Xt from "@radix-ui/react-popover";
23
23
  import { V as jr } from "./variables-menu-aJLKJ_cu.js";
24
24
  import { a as qn } from "./tooltip-Cp-PLePW.js";
25
- import { P as ee } from "./popover-Dvb40vPH.js";
25
+ import { P as te } from "./popover-SASSeAdY.js";
26
26
  import { D as ie } from "./dialog-BJiLqhx6.js";
27
27
  import { C as Bn } from "./color-picker-Bl5f0iK1.js";
28
28
  import { T as Yt } from "./text-input-CUvCb6ST.js";
29
29
  import { C as aa } from "./checkbox-CZkipDn7.js";
30
30
  import { F as ia } from "./file-upload-B242a_Y1.js";
31
- import { c as H } from "./createLucideIcon-DhHxpK9K.js";
31
+ import { c as I } from "./createLucideIcon-DhHxpK9K.js";
32
32
  import { E as sa } from "./ellipsis-dRo9ouSU.js";
33
33
  import { H as la, U as ca } from "./undo-2-CYNAzclj.js";
34
34
  import { I as da } from "./image-B_5MNK0x.js";
@@ -36,8 +36,8 @@ import { C as Gr } from "./chevron-down-DWE7GSq9.js";
36
36
  import { P as ua } from "./plus-DzMQ_c6b.js";
37
37
  import { S as ma } from "./settings-d25ju_6L.js";
38
38
  import { T as fa } from "./trash-2-uumy3fy1.js";
39
- import { H as _n, u as ga } from "./hover-card-BplP5SzQ.js";
40
- import { A as ha } from "./ai-credits-notice-C-kz_RrY.js";
39
+ import { H as _n, u as ha } from "./hover-card-BM0vNmq4.js";
40
+ import { A as ga } from "./ai-credits-notice-C9K_ley1.js";
41
41
  /**
42
42
  * @license lucide-react v1.22.0 - ISC
43
43
  *
@@ -48,7 +48,7 @@ const pa = [
48
48
  ["path", { d: "M4 20h16", key: "14thso" }],
49
49
  ["path", { d: "m6 16 6-12 6 12", key: "1b4byz" }],
50
50
  ["path", { d: "M8 12h8", key: "1wcyev" }]
51
- ], ba = H("baseline", pa);
51
+ ], ba = I("baseline", pa);
52
52
  /**
53
53
  * @license lucide-react v1.22.0 - ISC
54
54
  *
@@ -59,7 +59,7 @@ const va = [
59
59
  ["rect", { width: "13", height: "7", x: "3", y: "3", rx: "1", key: "11xb64" }],
60
60
  ["path", { d: "m22 15-3-3 3-3", key: "26chmm" }],
61
61
  ["rect", { width: "13", height: "7", x: "3", y: "14", rx: "1", key: "k6ky7n" }]
62
- ], ya = H("between-horizontal-end", va);
62
+ ], ya = I("between-horizontal-end", va);
63
63
  /**
64
64
  * @license lucide-react v1.22.0 - ISC
65
65
  *
@@ -70,7 +70,7 @@ const wa = [
70
70
  ["rect", { width: "13", height: "7", x: "8", y: "3", rx: "1", key: "pkso9a" }],
71
71
  ["path", { d: "m2 9 3 3-3 3", key: "1agib5" }],
72
72
  ["rect", { width: "13", height: "7", x: "8", y: "14", rx: "1", key: "1q5fc1" }]
73
- ], ka = H("between-horizontal-start", wa);
73
+ ], ka = I("between-horizontal-start", wa);
74
74
  /**
75
75
  * @license lucide-react v1.22.0 - ISC
76
76
  *
@@ -81,7 +81,7 @@ const xa = [
81
81
  ["rect", { width: "7", height: "13", x: "3", y: "3", rx: "1", key: "1fdu0f" }],
82
82
  ["path", { d: "m9 22 3-3 3 3", key: "17z65a" }],
83
83
  ["rect", { width: "7", height: "13", x: "14", y: "3", rx: "1", key: "1squn4" }]
84
- ], Ca = H("between-vertical-end", xa);
84
+ ], Ca = I("between-vertical-end", xa);
85
85
  /**
86
86
  * @license lucide-react v1.22.0 - ISC
87
87
  *
@@ -92,14 +92,14 @@ const Aa = [
92
92
  ["rect", { width: "7", height: "13", x: "3", y: "8", rx: "1", key: "1fjrkv" }],
93
93
  ["path", { d: "m15 2-3 3-3-3", key: "1uh6eb" }],
94
94
  ["rect", { width: "7", height: "13", x: "14", y: "8", rx: "1", key: "w3fjg8" }]
95
- ], Na = H("between-vertical-start", Aa);
95
+ ], Ea = I("between-vertical-start", Aa);
96
96
  /**
97
97
  * @license lucide-react v1.22.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
101
  */
102
- const Ea = [
102
+ const Ta = [
103
103
  [
104
104
  "path",
105
105
  {
@@ -108,19 +108,19 @@ const Ea = [
108
108
  }
109
109
  ],
110
110
  ["rect", { x: "14", y: "2", width: "8", height: "8", rx: "1", key: "88lufb" }]
111
- ], Sn = H("blocks", Ea);
111
+ ], Sn = I("blocks", Ta);
112
112
  /**
113
113
  * @license lucide-react v1.22.0 - ISC
114
114
  *
115
115
  * This source code is licensed under the ISC license.
116
116
  * See the LICENSE file in the root directory of this source tree.
117
117
  */
118
- const Ta = [
118
+ const Na = [
119
119
  [
120
120
  "path",
121
121
  { d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8", key: "mg9rjx" }
122
122
  ]
123
- ], Ma = H("bold", Ta);
123
+ ], Ma = I("bold", Na);
124
124
  /**
125
125
  * @license lucide-react v1.22.0 - ISC
126
126
  *
@@ -139,7 +139,7 @@ const Ra = [
139
139
  key: "e1hn23"
140
140
  }
141
141
  ]
142
- ], za = H("braces", Ra);
142
+ ], za = I("braces", Ra);
143
143
  /**
144
144
  * @license lucide-react v1.22.0 - ISC
145
145
  *
@@ -149,7 +149,7 @@ const Ra = [
149
149
  const _a = [
150
150
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
151
151
  ["path", { d: "M12 3v18", key: "108xh3" }]
152
- ], Sa = H("columns-2", _a);
152
+ ], Sa = I("columns-2", _a);
153
153
  /**
154
154
  * @license lucide-react v1.22.0 - ISC
155
155
  *
@@ -161,7 +161,7 @@ const La = [
161
161
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
162
162
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
163
163
  ["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
164
- ], Ha = H("heading-2", La);
164
+ ], Ha = I("heading-2", La);
165
165
  /**
166
166
  * @license lucide-react v1.22.0 - ISC
167
167
  *
@@ -174,7 +174,7 @@ const Ia = [
174
174
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
175
175
  ["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
176
176
  ["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
177
- ], $a = H("heading-3", Ia);
177
+ ], $a = I("heading-3", Ia);
178
178
  /**
179
179
  * @license lucide-react v1.22.0 - ISC
180
180
  *
@@ -185,7 +185,7 @@ const Da = [
185
185
  ["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
186
186
  ["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
187
187
  ["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
188
- ], Oa = H("italic", Da);
188
+ ], Oa = I("italic", Da);
189
189
  /**
190
190
  * @license lucide-react v1.22.0 - ISC
191
191
  *
@@ -195,7 +195,7 @@ const Da = [
195
195
  const qa = [
196
196
  ["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
197
197
  ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
198
- ], Ba = H("link", qa);
198
+ ], Ba = I("link", qa);
199
199
  /**
200
200
  * @license lucide-react v1.22.0 - ISC
201
201
  *
@@ -209,7 +209,7 @@ const Pa = [
209
209
  ["path", { d: "M4 4h1v5", key: "10yrso" }],
210
210
  ["path", { d: "M4 9h2", key: "r1h2o0" }],
211
211
  ["path", { d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02", key: "xtkcd5" }]
212
- ], Fa = H("list-ordered", Pa);
212
+ ], Fa = I("list-ordered", Pa);
213
213
  /**
214
214
  * @license lucide-react v1.22.0 - ISC
215
215
  *
@@ -223,7 +223,7 @@ const ja = [
223
223
  ["path", { d: "M8 5h13", key: "1pao27" }],
224
224
  ["path", { d: "M8 12h13", key: "1za7za" }],
225
225
  ["path", { d: "M8 19h13", key: "m83p4d" }]
226
- ], Ga = H("list", ja);
226
+ ], Ga = I("list", ja);
227
227
  /**
228
228
  * @license lucide-react v1.22.0 - ISC
229
229
  *
@@ -247,7 +247,7 @@ const Ka = [
247
247
  key: "1nk1rd"
248
248
  }
249
249
  ]
250
- ], Va = H("paint-bucket", Ka);
250
+ ], Va = I("paint-bucket", Ka);
251
251
  /**
252
252
  * @license lucide-react v1.22.0 - ISC
253
253
  *
@@ -258,7 +258,7 @@ const Wa = [
258
258
  ["rect", { width: "16", height: "6", x: "2", y: "2", rx: "2", key: "jcyz7m" }],
259
259
  ["path", { d: "M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2", key: "1b9h7c" }],
260
260
  ["rect", { width: "4", height: "6", x: "8", y: "16", rx: "1", key: "d6e7yl" }]
261
- ], Xa = H("paint-roller", Wa);
261
+ ], Xa = I("paint-roller", Wa);
262
262
  /**
263
263
  * @license lucide-react v1.22.0 - ISC
264
264
  *
@@ -277,7 +277,7 @@ const Ua = [
277
277
  ["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
278
278
  ["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
279
279
  ["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
280
- ], Za = H("palette", Ua);
280
+ ], Za = I("palette", Ua);
281
281
  /**
282
282
  * @license lucide-react v1.22.0 - ISC
283
283
  *
@@ -287,7 +287,7 @@ const Ua = [
287
287
  const Qa = [
288
288
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
289
289
  ["path", { d: "M9 3v18", key: "fh3hqa" }]
290
- ], Ya = H("panel-left", Qa);
290
+ ], Ya = I("panel-left", Qa);
291
291
  /**
292
292
  * @license lucide-react v1.22.0 - ISC
293
293
  *
@@ -297,7 +297,7 @@ const Qa = [
297
297
  const Ja = [
298
298
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
299
299
  ["path", { d: "M15 3v18", key: "14nvp0" }]
300
- ], ei = H("panel-right", Ja);
300
+ ], ei = I("panel-right", Ja);
301
301
  /**
302
302
  * @license lucide-react v1.22.0 - ISC
303
303
  *
@@ -310,7 +310,7 @@ const ti = [
310
310
  ["path", { d: "M19 9h2", key: "te2zfg" }],
311
311
  ["path", { d: "M3 9h2", key: "1h4ldw" }],
312
312
  ["path", { d: "M9 9h1", key: "15jzuz" }]
313
- ], ni = H("panel-top-dashed", ti);
313
+ ], ni = I("panel-top-dashed", ti);
314
314
  /**
315
315
  * @license lucide-react v1.22.0 - ISC
316
316
  *
@@ -320,7 +320,7 @@ const ti = [
320
320
  const ri = [
321
321
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
322
322
  ["path", { d: "M3 9h18", key: "1pudct" }]
323
- ], oi = H("panel-top", ri);
323
+ ], oi = I("panel-top", ri);
324
324
  /**
325
325
  * @license lucide-react v1.22.0 - ISC
326
326
  *
@@ -342,7 +342,7 @@ const ai = [
342
342
  ["path", { d: "M4 5v4", key: "13jjxc" }],
343
343
  ["path", { d: "M6 7H2", key: "8zbtv0" }],
344
344
  ["path", { d: "M9 2v2", key: "165o2o" }]
345
- ], Rr = H("pencil-sparkles", ai);
345
+ ], Rr = I("pencil-sparkles", ai);
346
346
  /**
347
347
  * @license lucide-react v1.22.0 - ISC
348
348
  *
@@ -353,7 +353,7 @@ const ii = [
353
353
  ["path", { d: "M13 4v16", key: "8vvj80" }],
354
354
  ["path", { d: "M17 4v16", key: "7dpous" }],
355
355
  ["path", { d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13", key: "sh4n9v" }]
356
- ], si = H("pilcrow", ii);
356
+ ], si = I("pilcrow", ii);
357
357
  /**
358
358
  * @license lucide-react v1.22.0 - ISC
359
359
  *
@@ -375,7 +375,7 @@ const li = [
375
375
  key: "1ymkrd"
376
376
  }
377
377
  ]
378
- ], ci = H("quote", li);
378
+ ], ci = I("quote", li);
379
379
  /**
380
380
  * @license lucide-react v1.22.0 - ISC
381
381
  *
@@ -385,7 +385,7 @@ const li = [
385
385
  const di = [
386
386
  ["path", { d: "m15 14 5-5-5-5", key: "12vg1m" }],
387
387
  ["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13", key: "6uklza" }]
388
- ], ui = H("redo-2", di);
388
+ ], ui = I("redo-2", di);
389
389
  /**
390
390
  * @license lucide-react v1.22.0 - ISC
391
391
  *
@@ -395,29 +395,29 @@ const di = [
395
395
  const mi = [
396
396
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
397
397
  ["path", { d: "M3 12h18", key: "1i2n21" }]
398
- ], fi = H("rows-2", mi);
398
+ ], fi = I("rows-2", mi);
399
399
  /**
400
400
  * @license lucide-react v1.22.0 - ISC
401
401
  *
402
402
  * This source code is licensed under the ISC license.
403
403
  * See the LICENSE file in the root directory of this source tree.
404
404
  */
405
- const gi = [
405
+ const hi = [
406
406
  ["path", { d: "m6 16 6-12 6 12", key: "1b4byz" }],
407
407
  ["path", { d: "M8 12h8", key: "1wcyev" }],
408
408
  ["path", { d: "m16 20 2 2 4-4", key: "13tcca" }]
409
- ], zr = H("spell-check", gi);
409
+ ], zr = I("spell-check", hi);
410
410
  /**
411
411
  * @license lucide-react v1.22.0 - ISC
412
412
  *
413
413
  * This source code is licensed under the ISC license.
414
414
  * See the LICENSE file in the root directory of this source tree.
415
415
  */
416
- const hi = [
416
+ const gi = [
417
417
  ["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
418
418
  ["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
419
419
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
420
- ], pi = H("strikethrough", hi);
420
+ ], pi = I("strikethrough", gi);
421
421
  /**
422
422
  * @license lucide-react v1.22.0 - ISC
423
423
  *
@@ -429,7 +429,7 @@ const bi = [
429
429
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
430
430
  ["path", { d: "M3 9h18", key: "1pudct" }],
431
431
  ["path", { d: "M3 15h18", key: "5xshup" }]
432
- ], vi = H("table", bi);
432
+ ], vi = I("table", bi);
433
433
  /**
434
434
  * @license lucide-react v1.22.0 - ISC
435
435
  *
@@ -440,7 +440,7 @@ const yi = [
440
440
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
441
441
  ["path", { d: "M17 12H7", key: "16if0g" }],
442
442
  ["path", { d: "M19 19H5", key: "vjpgq2" }]
443
- ], wi = H("text-align-center", yi);
443
+ ], wi = I("text-align-center", yi);
444
444
  /**
445
445
  * @license lucide-react v1.22.0 - ISC
446
446
  *
@@ -451,7 +451,7 @@ const ki = [
451
451
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
452
452
  ["path", { d: "M21 12H9", key: "dn1m92" }],
453
453
  ["path", { d: "M21 19H7", key: "4cu937" }]
454
- ], xi = H("text-align-end", ki);
454
+ ], xi = I("text-align-end", ki);
455
455
  /**
456
456
  * @license lucide-react v1.22.0 - ISC
457
457
  *
@@ -462,28 +462,28 @@ const Ci = [
462
462
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
463
463
  ["path", { d: "M15 12H3", key: "6jk70r" }],
464
464
  ["path", { d: "M17 19H3", key: "z6ezky" }]
465
- ], Ai = H("text-align-start", Ci);
465
+ ], Ai = I("text-align-start", Ci);
466
466
  /**
467
467
  * @license lucide-react v1.22.0 - ISC
468
468
  *
469
469
  * This source code is licensed under the ISC license.
470
470
  * See the LICENSE file in the root directory of this source tree.
471
471
  */
472
- const Ni = [
472
+ const Ei = [
473
473
  ["rect", { width: "18", height: "12", x: "3", y: "8", rx: "1", key: "158fvp" }],
474
474
  ["path", { d: "M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3", key: "s0042v" }],
475
475
  ["path", { d: "M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3", key: "9wmeh2" }]
476
- ], Ln = H("toy-brick", Ni);
476
+ ], Ln = I("toy-brick", Ei);
477
477
  /**
478
478
  * @license lucide-react v1.22.0 - ISC
479
479
  *
480
480
  * This source code is licensed under the ISC license.
481
481
  * See the LICENSE file in the root directory of this source tree.
482
482
  */
483
- const Ei = [
483
+ const Ti = [
484
484
  ["path", { d: "M6 4v6a6 6 0 0 0 12 0V4", key: "9kb039" }],
485
485
  ["line", { x1: "4", x2: "20", y1: "20", y2: "20", key: "nun2al" }]
486
- ], Ti = H("underline", Ei);
486
+ ], Ni = I("underline", Ti);
487
487
  /**
488
488
  * @license lucide-react v1.22.0 - ISC
489
489
  *
@@ -505,7 +505,7 @@ const Mi = [
505
505
  ["path", { d: "M7 8H3", key: "zfb6yr" }],
506
506
  ["path", { d: "M21 16h-4", key: "1cnmox" }],
507
507
  ["path", { d: "M11 3H9", key: "1obp7u" }]
508
- ], _r = H("wand-sparkles", Mi), Ri = {
508
+ ], _r = I("wand-sparkles", Mi), Ri = {
509
509
  id: "rich-text-editor",
510
510
  capabilities: ["edit_inline"],
511
511
  state: {
@@ -684,63 +684,63 @@ function Li({
684
684
  onClose: i,
685
685
  onRequestAiDraft: c,
686
686
  onInsert: s,
687
- previewAsHtml: g = !0,
688
- privacyNotice: m,
689
- onDictate: f
687
+ previewAsHtml: f = !0,
688
+ privacyNotice: u,
689
+ onDictate: m
690
690
  }) {
691
- const { t: d } = ne(), v = Oe(), w = Oe(), [k, L] = E(""), [T, I] = E(!1), [B, b] = E(!1), [u, h] = E(null), z = A(null), [M, q] = E(!1), [V, $] = E(""), [P, N] = E(""), X = A(null), F = y(() => {
691
+ const { t: h } = ne(), y = Oe(), k = Oe(), [w, _] = N(""), [E, S] = N(!1), [q, b] = N(!1), [d, g] = N(null), z = A(null), [M, B] = N(!1), [V, $] = N(""), [P, T] = N(""), U = A(null), F = v(() => {
692
692
  var R;
693
- (R = X.current) == null || R.abort();
694
- }, []), Z = y(() => {
695
- if (!f) return;
693
+ (R = U.current) == null || R.abort();
694
+ }, []), Q = v(() => {
695
+ if (!m) return;
696
696
  const R = new AbortController();
697
- X.current = R, q(!0), $(""), N(d("editor.ai.listening")), f({
697
+ U.current = R, B(!0), $(""), T(h("editor.ai.listening")), m({
698
698
  signal: R.signal,
699
699
  onPartialTranscript: (K) => {
700
700
  R.signal.aborted || $(K);
701
701
  },
702
702
  onFinalTranscript: (K) => {
703
703
  if (R.signal.aborted) return;
704
- const Y = K.trim();
705
- $(""), Y && (L((se) => Lr(se, Y)), N(Y));
704
+ const J = K.trim();
705
+ $(""), J && (_((se) => Lr(se, J)), T(J));
706
706
  }
707
707
  }).catch(() => {
708
708
  }).finally(() => {
709
- $(""), X.current === R && (X.current = null, q(!1), N(""));
709
+ $(""), U.current === R && (U.current = null, B(!1), T(""));
710
710
  });
711
- }, [f, d]), pe = y(() => {
712
- M ? F() : Z();
713
- }, [M, Z, F]);
714
- _(() => {
711
+ }, [m, h]), pe = v(() => {
712
+ M ? F() : Q();
713
+ }, [M, Q, F]);
714
+ L(() => {
715
715
  var R, K;
716
- o ? (L(""), I(!1), b(!1), h(null), $(""), N("")) : ((R = z.current) == null || R.abort(), z.current = null, (K = X.current) == null || K.abort());
717
- }, [o]), _(
716
+ o ? (_(""), S(!1), b(!1), g(null), $(""), T("")) : ((R = z.current) == null || R.abort(), z.current = null, (K = U.current) == null || K.abort());
717
+ }, [o]), L(
718
718
  () => () => {
719
719
  var R, K;
720
- (R = z.current) == null || R.abort(), (K = X.current) == null || K.abort();
720
+ (R = z.current) == null || R.abort(), (K = U.current) == null || K.abort();
721
721
  },
722
722
  []
723
723
  );
724
- const Q = y(() => {
725
- var Y;
726
- const R = k.trim();
727
- if (!R || T) return;
728
- F(), (Y = z.current) == null || Y.abort();
724
+ const Y = v(() => {
725
+ var J;
726
+ const R = w.trim();
727
+ if (!R || E) return;
728
+ F(), (J = z.current) == null || J.abort();
729
729
  const K = new AbortController();
730
- z.current = K, b(!1), I(!0), c({ prompt: R, signal: K.signal }).then((se) => {
731
- K.signal.aborted || (h(se), I(!1));
730
+ z.current = K, b(!1), S(!0), c({ prompt: R, signal: K.signal }).then((se) => {
731
+ K.signal.aborted || (g(se), S(!1));
732
732
  }).catch((se) => {
733
- K.signal.aborted || se && typeof se == "object" && "name" in se && se.name === "AbortError" || (b(!0), I(!1));
733
+ K.signal.aborted || se && typeof se == "object" && "name" in se && se.name === "AbortError" || (b(!0), S(!1));
734
734
  });
735
- }, [k, T, c, F]), Me = y(() => {
736
- u != null && (s(u), i());
737
- }, [u, s, i]), G = u != null, re = M ? Lr(k, V) : k;
735
+ }, [w, E, c, F]), Ne = v(() => {
736
+ d != null && (s(d), i());
737
+ }, [d, s, i]), G = d != null, re = M ? Lr(w, V) : w;
738
738
  return /* @__PURE__ */ t(
739
739
  Rn,
740
740
  {
741
741
  open: o,
742
742
  onClose: i,
743
- ariaLabel: d("editor.ai.dialogTitle"),
743
+ ariaLabel: h("editor.ai.dialogTitle"),
744
744
  children: G ? /* @__PURE__ */ C("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
745
745
  /* @__PURE__ */ t(
746
746
  j,
@@ -749,18 +749,18 @@ function Li({
749
749
  intent: "outline",
750
750
  className: et,
751
751
  icon: /* @__PURE__ */ t(Mr, {}),
752
- "aria-label": d("common.close"),
752
+ "aria-label": h("common.close"),
753
753
  onClick: i
754
754
  }
755
755
  ),
756
- /* @__PURE__ */ t("div", { className: "ds:min-w-0 ds:flex-1", children: g ? /* @__PURE__ */ t(
756
+ /* @__PURE__ */ t("div", { className: "ds:min-w-0 ds:flex-1", children: f ? /* @__PURE__ */ t(
757
757
  Uo,
758
758
  {
759
- html: u,
759
+ html: d,
760
760
  profile: "rich-text",
761
761
  className: Sr,
762
762
  tabIndex: 0,
763
- "aria-label": d("editor.ai.dialogTitle")
763
+ "aria-label": h("editor.ai.dialogTitle")
764
764
  }
765
765
  ) : (
766
766
  // Focusable so a keyboard user can scroll a long draft preview
@@ -768,7 +768,7 @@ function Li({
768
768
  // tabIndex allowlist doesn't cover a scrollable, non-interactive
769
769
  // text region.
770
770
  // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
771
- /* @__PURE__ */ t("p", { className: Sr, tabIndex: 0, children: u })
771
+ /* @__PURE__ */ t("p", { className: Sr, tabIndex: 0, children: d })
772
772
  ) }),
773
773
  /* @__PURE__ */ t(
774
774
  j,
@@ -777,8 +777,8 @@ function Li({
777
777
  intent: "outline",
778
778
  className: `${et} ds:rounded-full`,
779
779
  icon: /* @__PURE__ */ t(na, {}),
780
- "aria-label": d("editor.ai.retry"),
781
- onClick: () => h(null)
780
+ "aria-label": h("editor.ai.retry"),
781
+ onClick: () => g(null)
782
782
  }
783
783
  ),
784
784
  /* @__PURE__ */ t(
@@ -788,11 +788,11 @@ function Li({
788
788
  intent: "primary",
789
789
  className: `${et} ds:bg-[image:var(--gradient-brand)] ds:rounded-full`,
790
790
  icon: /* @__PURE__ */ t(ra, {}),
791
- "aria-label": d("common.confirm"),
792
- onClick: Me
791
+ "aria-label": h("common.confirm"),
792
+ onClick: Ne
793
793
  }
794
794
  )
795
- ] }) : /* @__PURE__ */ C(Ee, { children: [
795
+ ] }) : /* @__PURE__ */ C(He, { children: [
796
796
  /* @__PURE__ */ C("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
797
797
  /* @__PURE__ */ t(
798
798
  j,
@@ -801,28 +801,28 @@ function Li({
801
801
  intent: "outline",
802
802
  className: et,
803
803
  icon: /* @__PURE__ */ t(Mr, {}),
804
- "aria-label": d("common.close"),
804
+ "aria-label": h("common.close"),
805
805
  onClick: i
806
806
  }
807
807
  ),
808
808
  /* @__PURE__ */ t("div", { className: "ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ t(
809
809
  ta,
810
810
  {
811
- id: v,
811
+ id: y,
812
812
  size: "md",
813
813
  value: re,
814
- onChange: (R) => L(R.target.value),
815
- placeholder: d("editor.ai.promptPlaceholder"),
816
- "aria-label": d("editor.ai.promptLabel"),
814
+ onChange: (R) => _(R.target.value),
815
+ placeholder: h("editor.ai.promptPlaceholder"),
816
+ "aria-label": h("editor.ai.promptLabel"),
817
817
  autoResize: !0,
818
818
  minRows: 1,
819
819
  maxRows: 3,
820
820
  readOnly: M,
821
- tone: B ? "error" : "default",
822
- "aria-describedby": B ? w : void 0
821
+ tone: q ? "error" : "default",
822
+ "aria-describedby": q ? k : void 0
823
823
  }
824
824
  ) }),
825
- f ? /* @__PURE__ */ t(
825
+ m ? /* @__PURE__ */ t(
826
826
  j,
827
827
  {
828
828
  size: "md",
@@ -830,7 +830,7 @@ function Li({
830
830
  className: M ? `${et} ${zi}` : et,
831
831
  icon: M ? /* @__PURE__ */ t(Ct, { className: "ds:fill-current" }) : /* @__PURE__ */ t(zn, {}),
832
832
  "aria-pressed": M,
833
- "aria-label": d(M ? "editor.ai.dictateStop" : "editor.ai.dictateStart"),
833
+ "aria-label": h(M ? "editor.ai.dictateStop" : "editor.ai.dictateStart"),
834
834
  onClick: pe
835
835
  }
836
836
  ) : null,
@@ -839,17 +839,17 @@ function Li({
839
839
  {
840
840
  size: "md",
841
841
  intent: "primary",
842
- icon: T ? /* @__PURE__ */ t(On, { size: "sm", variant: "pulse" }) : /* @__PURE__ */ t(oa, {}),
842
+ icon: E ? /* @__PURE__ */ t(On, { size: "sm", variant: "pulse" }) : /* @__PURE__ */ t(oa, {}),
843
843
  className: `${et} ds:bg-[image:var(--gradient-brand)] ds:rounded-full`,
844
- disabled: T || !k.trim(),
845
- "aria-busy": T || void 0,
846
- "aria-label": d("editor.ai.generate"),
847
- onClick: Q
844
+ disabled: E || !w.trim(),
845
+ "aria-busy": E || void 0,
846
+ "aria-label": h("editor.ai.generate"),
847
+ onClick: Y
848
848
  }
849
849
  )
850
850
  ] }),
851
- f ? /* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: P }) : null,
852
- B ? /* @__PURE__ */ t(Kr, { id: w }) : m ? /* @__PURE__ */ t("p", { className: _i, children: m }) : null
851
+ m ? /* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: P }) : null,
852
+ q ? /* @__PURE__ */ t(Kr, { id: k }) : u ? /* @__PURE__ */ t("p", { className: _i, children: u }) : null
853
853
  ] })
854
854
  }
855
855
  );
@@ -888,7 +888,7 @@ const Wr = {
888
888
  },
889
889
  underline: {
890
890
  id: "underline",
891
- icon: /* @__PURE__ */ t(Ti, {}),
891
+ icon: /* @__PURE__ */ t(Ni, {}),
892
892
  label: ["editor.underline", "Underline"],
893
893
  command: ["module.inline.format", { tag: "u" }],
894
894
  toggle: "underline"
@@ -914,7 +914,7 @@ const Wr = {
914
914
  command: ["module.list.toggle", "ol"],
915
915
  toggle: "ol"
916
916
  }
917
- }, Tn = [
917
+ }, Nn = [
918
918
  {
919
919
  id: "paragraph",
920
920
  tag: "p",
@@ -981,7 +981,7 @@ const Wr = {
981
981
  {
982
982
  id: "colLeft",
983
983
  command: "plugin.table.addColumnLeft",
984
- icon: /* @__PURE__ */ t(Na, {}),
984
+ icon: /* @__PURE__ */ t(Ea, {}),
985
985
  label: ["editor.table.columnLeft", "Add column left"]
986
986
  },
987
987
  {
@@ -1038,23 +1038,23 @@ function Di({
1038
1038
  insertVariable: c,
1039
1039
  saveSelection: s
1040
1040
  }) {
1041
- const { t: g } = ne(), [m, f] = E(!1), [d, v] = E(""), w = A(null), k = A(!1), L = o;
1041
+ const { t: f } = ne(), [u, m] = N(!1), [h, y] = N(""), k = A(null), w = A(!1), _ = o;
1042
1042
  return /* @__PURE__ */ C(
1043
1043
  Xt.Root,
1044
1044
  {
1045
- open: m,
1046
- onOpenChange: (T) => {
1047
- T && s(), f(T), T && v("");
1045
+ open: u,
1046
+ onOpenChange: (E) => {
1047
+ E && s(), m(E), E && y("");
1048
1048
  },
1049
1049
  children: [
1050
1050
  /* @__PURE__ */ t(Xt.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1051
1051
  j,
1052
1052
  {
1053
- ref: w,
1053
+ ref: k,
1054
1054
  size: "sm",
1055
1055
  intent: "ghost",
1056
1056
  icon: /* @__PURE__ */ t(za, {}),
1057
- "aria-label": g("editor.insertVariable", "Insert variable")
1057
+ "aria-label": f("editor.insertVariable", "Insert variable")
1058
1058
  }
1059
1059
  ) }),
1060
1060
  /* @__PURE__ */ t(Xt.Portal, { children: /* @__PURE__ */ t(
@@ -1063,22 +1063,22 @@ function Di({
1063
1063
  align: "start",
1064
1064
  sideOffset: 4,
1065
1065
  className: "ds:z-[var(--z-popover)]",
1066
- onCloseAutoFocus: (T) => {
1067
- k.current && (T.preventDefault(), k.current = !1);
1066
+ onCloseAutoFocus: (E) => {
1067
+ w.current && (E.preventDefault(), w.current = !1);
1068
1068
  },
1069
1069
  children: /* @__PURE__ */ t(
1070
1070
  jr,
1071
1071
  {
1072
- variables: L,
1072
+ variables: _,
1073
1073
  recentTokens: i,
1074
- query: d,
1075
- onQueryChange: v,
1074
+ query: h,
1075
+ onQueryChange: y,
1076
1076
  searchFocusable: !0,
1077
- "aria-label": g("editor.insertVariable", "Insert variable"),
1078
- onSelect: (T) => {
1079
- k.current = !0, c(T.token), f(!1);
1077
+ "aria-label": f("editor.insertVariable", "Insert variable"),
1078
+ onSelect: (E) => {
1079
+ w.current = !0, c(E.token), m(!1);
1080
1080
  },
1081
- onClose: () => f(!1)
1081
+ onClose: () => m(!1)
1082
1082
  }
1083
1083
  )
1084
1084
  }
@@ -1092,31 +1092,31 @@ function Oi({
1092
1092
  active: i,
1093
1093
  onTriggerDown: c
1094
1094
  }) {
1095
- const { t: s } = ne(), g = Tn.find((m) => i.has(m.id)) ?? Tn[0];
1096
- return /* @__PURE__ */ C(te.Root, { children: [
1097
- /* @__PURE__ */ t(te.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1095
+ const { t: s } = ne(), f = Nn.find((u) => i.has(u.id)) ?? Nn[0];
1096
+ return /* @__PURE__ */ C(X.Root, { children: [
1097
+ /* @__PURE__ */ t(X.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1098
1098
  Te,
1099
1099
  {
1100
1100
  size: "sm",
1101
1101
  intent: "ghost",
1102
- startIcon: g.icon,
1102
+ startIcon: f.icon,
1103
1103
  endIcon: /* @__PURE__ */ t(Gr, {}),
1104
1104
  "aria-label": `${s("editor.format", "Paragraph style")}: ${s(
1105
- g.label[0],
1106
- g.label[1]
1105
+ f.label[0],
1106
+ f.label[1]
1107
1107
  )}`,
1108
1108
  onMouseDown: c,
1109
- children: /* @__PURE__ */ t("span", { className: "ds:hidden ds:@[448px]/toolbar:inline", children: s(g.label[0], g.label[1]) })
1109
+ children: /* @__PURE__ */ t("span", { className: "ds:hidden ds:@[448px]/toolbar:inline", children: s(f.label[0], f.label[1]) })
1110
1110
  }
1111
1111
  ) }),
1112
- /* @__PURE__ */ t(te.Content, { align: "start", children: Tn.map((m) => /* @__PURE__ */ t(
1113
- te.Item,
1112
+ /* @__PURE__ */ t(X.Content, { align: "start", children: Nn.map((u) => /* @__PURE__ */ t(
1113
+ X.Item,
1114
1114
  {
1115
- startIcon: m.icon,
1116
- onSelect: () => o("module.block.format", { tag: m.tag }),
1117
- children: s(m.label[0], m.label[1])
1115
+ startIcon: u.icon,
1116
+ onSelect: () => o("module.block.format", { tag: u.tag }),
1117
+ children: s(u.label[0], u.label[1])
1118
1118
  },
1119
- m.id
1119
+ u.id
1120
1120
  )) })
1121
1121
  ] });
1122
1122
  }
@@ -1126,69 +1126,69 @@ function qi({
1126
1126
  restoreSelection: c,
1127
1127
  getSelectedText: s
1128
1128
  }) {
1129
- const { t: g } = ne(), [m, f] = E(!1), [d, v] = E(""), [w, k] = E(""), [L, T] = E(!1), I = Oe(), B = Oe(), b = () => {
1130
- v(""), k(""), T(!1);
1131
- }, u = () => {
1132
- const h = d.trim();
1133
- if (!h) return;
1134
- const z = w.trim() || h, M = L ? ' target="_blank" rel="noopener noreferrer"' : "", q = `<a href="${Jt(h)}"${M}>${Jt(z)}</a>`;
1135
- f(!1), b(), window.requestAnimationFrame(() => {
1136
- c(), o(q);
1129
+ const { t: f } = ne(), [u, m] = N(!1), [h, y] = N(""), [k, w] = N(""), [_, E] = N(!1), S = Oe(), q = Oe(), b = () => {
1130
+ y(""), w(""), E(!1);
1131
+ }, d = () => {
1132
+ const g = h.trim();
1133
+ if (!g) return;
1134
+ const z = k.trim() || g, M = _ ? ' target="_blank" rel="noopener noreferrer"' : "", B = `<a href="${Jt(g)}"${M}>${Jt(z)}</a>`;
1135
+ m(!1), b(), window.requestAnimationFrame(() => {
1136
+ c(), o(B);
1137
1137
  });
1138
1138
  };
1139
- return /* @__PURE__ */ C(ie.Root, { open: m, onOpenChange: f, children: [
1139
+ return /* @__PURE__ */ C(ie.Root, { open: u, onOpenChange: m, children: [
1140
1140
  /* @__PURE__ */ t(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1141
1141
  j,
1142
1142
  {
1143
1143
  size: "sm",
1144
1144
  intent: "ghost",
1145
1145
  icon: /* @__PURE__ */ t(Ba, {}),
1146
- "aria-label": g("editor.link.insert", "Insert link"),
1146
+ "aria-label": f("editor.link.insert", "Insert link"),
1147
1147
  onMouseDown: () => {
1148
- i(), k(s());
1148
+ i(), w(s());
1149
1149
  }
1150
1150
  }
1151
1151
  ) }),
1152
1152
  /* @__PURE__ */ C(ie.Content, { children: [
1153
- /* @__PURE__ */ t(ie.Header, { children: /* @__PURE__ */ t(ie.Title, { children: g("editor.link.insert", "Insert link") }) }),
1153
+ /* @__PURE__ */ t(ie.Header, { children: /* @__PURE__ */ t(ie.Title, { children: f("editor.link.insert", "Insert link") }) }),
1154
1154
  /* @__PURE__ */ C(ie.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1155
1155
  /* @__PURE__ */ C("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1156
- /* @__PURE__ */ t("label", { htmlFor: I, className: At, children: g("editor.link.url", "URL") }),
1156
+ /* @__PURE__ */ t("label", { htmlFor: S, className: At, children: f("editor.link.url", "URL") }),
1157
1157
  /* @__PURE__ */ t(
1158
1158
  Yt,
1159
1159
  {
1160
- id: I,
1160
+ id: S,
1161
1161
  type: "url",
1162
- value: d,
1163
- onChange: (h) => v(h.target.value),
1162
+ value: h,
1163
+ onChange: (g) => y(g.target.value),
1164
1164
  placeholder: "https://…"
1165
1165
  }
1166
1166
  )
1167
1167
  ] }),
1168
1168
  /* @__PURE__ */ C("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1169
- /* @__PURE__ */ t("label", { htmlFor: B, className: At, children: g("editor.link.text", "Text to display") }),
1169
+ /* @__PURE__ */ t("label", { htmlFor: q, className: At, children: f("editor.link.text", "Text to display") }),
1170
1170
  /* @__PURE__ */ t(
1171
1171
  Yt,
1172
1172
  {
1173
- id: B,
1174
- value: w,
1175
- onChange: (h) => k(h.target.value),
1176
- placeholder: g("editor.link.textPlaceholder", "Link text")
1173
+ id: q,
1174
+ value: k,
1175
+ onChange: (g) => w(g.target.value),
1176
+ placeholder: f("editor.link.textPlaceholder", "Link text")
1177
1177
  }
1178
1178
  )
1179
1179
  ] }),
1180
1180
  /* @__PURE__ */ t(
1181
1181
  aa,
1182
1182
  {
1183
- checked: L,
1184
- onCheckedChange: (h) => T(h === !0),
1185
- label: g("editor.link.newTab", "Open in new tab")
1183
+ checked: _,
1184
+ onCheckedChange: (g) => E(g === !0),
1185
+ label: f("editor.link.newTab", "Open in new tab")
1186
1186
  }
1187
1187
  )
1188
1188
  ] }),
1189
1189
  /* @__PURE__ */ C(ie.Footer, { children: [
1190
- /* @__PURE__ */ t(ie.Close, { asChild: !0, children: /* @__PURE__ */ t(Te, { intent: "secondary", children: g("common.cancel") }) }),
1191
- /* @__PURE__ */ t(Te, { onClick: u, disabled: !d.trim(), children: g("editor.link.insertAction", "Insert") })
1190
+ /* @__PURE__ */ t(ie.Close, { asChild: !0, children: /* @__PURE__ */ t(Te, { intent: "secondary", children: f("common.cancel") }) }),
1191
+ /* @__PURE__ */ t(Te, { onClick: d, disabled: !h.trim(), children: f("editor.link.insertAction", "Insert") })
1192
1192
  ] })
1193
1193
  ] })
1194
1194
  ] });
@@ -1199,31 +1199,31 @@ function Bi({
1199
1199
  restoreSelection: c,
1200
1200
  uploadImage: s
1201
1201
  }) {
1202
- const { t: g } = ne(), [m, f] = E(!1), [d, v] = E(""), [w, k] = E(""), L = Oe(), T = Oe(), I = (b, u) => {
1203
- const h = `<img src="${Jt(b)}" alt="${Jt(u)}" loading="lazy">`;
1204
- f(!1), v(""), k(""), window.requestAnimationFrame(() => {
1205
- c(), o(h);
1202
+ const { t: f } = ne(), [u, m] = N(!1), [h, y] = N(""), [k, w] = N(""), _ = Oe(), E = Oe(), S = (b, d) => {
1203
+ const g = `<img src="${Jt(b)}" alt="${Jt(d)}" loading="lazy">`;
1204
+ m(!1), y(""), w(""), window.requestAnimationFrame(() => {
1205
+ c(), o(g);
1206
1206
  });
1207
- }, B = () => {
1208
- const b = d.trim();
1209
- b && I(b, w.trim());
1207
+ }, q = () => {
1208
+ const b = h.trim();
1209
+ b && S(b, k.trim());
1210
1210
  };
1211
- return /* @__PURE__ */ C(ie.Root, { open: m, onOpenChange: f, children: [
1211
+ return /* @__PURE__ */ C(ie.Root, { open: u, onOpenChange: m, children: [
1212
1212
  /* @__PURE__ */ t(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1213
1213
  j,
1214
1214
  {
1215
1215
  size: "sm",
1216
1216
  intent: "ghost",
1217
1217
  icon: /* @__PURE__ */ t(da, {}),
1218
- "aria-label": g("editor.image.insert", "Insert image"),
1218
+ "aria-label": f("editor.image.insert", "Insert image"),
1219
1219
  onMouseDown: () => i()
1220
1220
  }
1221
1221
  ) }),
1222
1222
  /* @__PURE__ */ C(ie.Content, { children: [
1223
- /* @__PURE__ */ t(ie.Header, { children: /* @__PURE__ */ t(ie.Title, { children: g("editor.image.insert", "Insert image") }) }),
1223
+ /* @__PURE__ */ t(ie.Header, { children: /* @__PURE__ */ t(ie.Title, { children: f("editor.image.insert", "Insert image") }) }),
1224
1224
  /* @__PURE__ */ C(ie.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1225
1225
  s ? /* @__PURE__ */ C("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1226
- /* @__PURE__ */ t("span", { className: At, children: g("editor.image.upload", "Upload") }),
1226
+ /* @__PURE__ */ t("span", { className: At, children: f("editor.image.upload", "Upload") }),
1227
1227
  /* @__PURE__ */ t(
1228
1228
  ia,
1229
1229
  {
@@ -1232,36 +1232,36 @@ function Bi({
1232
1232
  "image/*": [".png", ".jpg", ".jpeg", ".gif", ".webp", ".svg"]
1233
1233
  },
1234
1234
  maxFiles: 1,
1235
- onUpload: async (b, { signal: u }) => {
1236
- const h = await s(b, u);
1237
- I(h, b.name);
1235
+ onUpload: async (b, { signal: d }) => {
1236
+ const g = await s(b, d);
1237
+ S(g, b.name);
1238
1238
  }
1239
1239
  }
1240
1240
  ),
1241
- /* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", children: g("editor.image.orUrl", "Or paste an image URL") })
1241
+ /* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", children: f("editor.image.orUrl", "Or paste an image URL") })
1242
1242
  ] }) : null,
1243
1243
  /* @__PURE__ */ C("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1244
- /* @__PURE__ */ t("label", { htmlFor: L, className: At, children: g("editor.image.url", "Image URL") }),
1244
+ /* @__PURE__ */ t("label", { htmlFor: _, className: At, children: f("editor.image.url", "Image URL") }),
1245
1245
  /* @__PURE__ */ t(
1246
1246
  Yt,
1247
1247
  {
1248
- id: L,
1248
+ id: _,
1249
1249
  type: "url",
1250
- value: d,
1251
- onChange: (b) => v(b.target.value),
1250
+ value: h,
1251
+ onChange: (b) => y(b.target.value),
1252
1252
  placeholder: "https://…"
1253
1253
  }
1254
1254
  )
1255
1255
  ] }),
1256
1256
  /* @__PURE__ */ C("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1257
- /* @__PURE__ */ t("label", { htmlFor: T, className: At, children: g("editor.image.alt", "Alt text") }),
1257
+ /* @__PURE__ */ t("label", { htmlFor: E, className: At, children: f("editor.image.alt", "Alt text") }),
1258
1258
  /* @__PURE__ */ t(
1259
1259
  Yt,
1260
1260
  {
1261
- id: T,
1262
- value: w,
1263
- onChange: (b) => k(b.target.value),
1264
- placeholder: g(
1261
+ id: E,
1262
+ value: k,
1263
+ onChange: (b) => w(b.target.value),
1264
+ placeholder: f(
1265
1265
  "editor.image.altPlaceholder",
1266
1266
  "Describe the image"
1267
1267
  )
@@ -1270,8 +1270,8 @@ function Bi({
1270
1270
  ] })
1271
1271
  ] }),
1272
1272
  /* @__PURE__ */ C(ie.Footer, { children: [
1273
- /* @__PURE__ */ t(ie.Close, { asChild: !0, children: /* @__PURE__ */ t(Te, { intent: "secondary", children: g("common.cancel") }) }),
1274
- /* @__PURE__ */ t(Te, { onClick: B, disabled: !d.trim(), children: g("editor.image.insertAction", "Insert") })
1273
+ /* @__PURE__ */ t(ie.Close, { asChild: !0, children: /* @__PURE__ */ t(Te, { intent: "secondary", children: f("common.cancel") }) }),
1274
+ /* @__PURE__ */ t(Te, { onClick: q, disabled: !h.trim(), children: f("editor.image.insertAction", "Insert") })
1275
1275
  ] })
1276
1276
  ] })
1277
1277
  ] });
@@ -1281,40 +1281,40 @@ function Pi({
1281
1281
  saveSelection: i,
1282
1282
  restoreSelection: c
1283
1283
  }) {
1284
- const { t: s } = ne(), [g, m] = E("#1f2a5c"), f = (v) => {
1285
- m(v), c(), o("module.inline.format", {
1284
+ const { t: s } = ne(), [f, u] = N("#1f2a5c"), m = (y) => {
1285
+ u(y), c(), o("module.inline.format", {
1286
1286
  tag: "span",
1287
- style: { color: v },
1287
+ style: { color: y },
1288
1288
  type: "toggle"
1289
1289
  });
1290
- }, d = () => {
1290
+ }, h = () => {
1291
1291
  c(), o("module.inline.remove", { style: "color" });
1292
1292
  };
1293
- return /* @__PURE__ */ C(ee, { onOpenChange: (v) => v && i(), children: [
1294
- /* @__PURE__ */ t(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1293
+ return /* @__PURE__ */ C(te, { onOpenChange: (y) => y && i(), children: [
1294
+ /* @__PURE__ */ t(te.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1295
1295
  j,
1296
1296
  {
1297
1297
  size: "sm",
1298
1298
  intent: "ghost",
1299
1299
  icon: /* @__PURE__ */ t(Za, {}),
1300
1300
  "aria-label": s("editor.textColor", "Text colour"),
1301
- onMouseDown: (v) => {
1302
- v.preventDefault(), i();
1301
+ onMouseDown: (y) => {
1302
+ y.preventDefault(), i();
1303
1303
  }
1304
1304
  }
1305
1305
  ) }),
1306
- /* @__PURE__ */ C(ee.Content, { side: "bottom", align: "start", children: [
1307
- /* @__PURE__ */ t(ee.Heading, { children: s("editor.textColor", "Text colour") }),
1306
+ /* @__PURE__ */ C(te.Content, { side: "bottom", align: "start", children: [
1307
+ /* @__PURE__ */ t(te.Heading, { children: s("editor.textColor", "Text colour") }),
1308
1308
  /* @__PURE__ */ t("div", { className: "ds:pt-[var(--spacing-sm)]", children: /* @__PURE__ */ t(
1309
1309
  Bn,
1310
1310
  {
1311
1311
  variant: "inline",
1312
1312
  size: "sm",
1313
- value: g,
1314
- onChange: f
1313
+ value: f,
1314
+ onChange: m
1315
1315
  }
1316
1316
  ) }),
1317
- /* @__PURE__ */ t("div", { className: "ds:mt-[var(--spacing-sm)] ds:flex ds:items-center ds:justify-end", children: /* @__PURE__ */ t(Te, { size: "sm", intent: "secondary", onClick: d, children: s("editor.color.remove", "Remove colour") }) })
1317
+ /* @__PURE__ */ t("div", { className: "ds:mt-[var(--spacing-sm)] ds:flex ds:items-center ds:justify-end", children: /* @__PURE__ */ t(Te, { size: "sm", intent: "secondary", onClick: h, children: s("editor.color.remove", "Remove colour") }) })
1318
1318
  ] })
1319
1319
  ] });
1320
1320
  }
@@ -1323,40 +1323,40 @@ function Fi({
1323
1323
  saveSelection: i,
1324
1324
  restoreSelection: c
1325
1325
  }) {
1326
- const { t: s } = ne(), [g, m] = E("#fff3a3"), f = (v) => {
1327
- m(v), c(), o("module.inline.format", {
1326
+ const { t: s } = ne(), [f, u] = N("#fff3a3"), m = (y) => {
1327
+ u(y), c(), o("module.inline.format", {
1328
1328
  tag: "span",
1329
- style: { "background-color": v },
1329
+ style: { "background-color": y },
1330
1330
  type: "toggle"
1331
1331
  });
1332
- }, d = () => {
1332
+ }, h = () => {
1333
1333
  c(), o("module.inline.remove", { style: "background-color" });
1334
1334
  };
1335
- return /* @__PURE__ */ C(ee, { onOpenChange: (v) => v && i(), children: [
1336
- /* @__PURE__ */ t(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1335
+ return /* @__PURE__ */ C(te, { onOpenChange: (y) => y && i(), children: [
1336
+ /* @__PURE__ */ t(te.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1337
1337
  j,
1338
1338
  {
1339
1339
  size: "sm",
1340
1340
  intent: "ghost",
1341
1341
  icon: /* @__PURE__ */ t(la, {}),
1342
1342
  "aria-label": s("editor.highlightColor", "Highlight"),
1343
- onMouseDown: (v) => {
1344
- v.preventDefault(), i();
1343
+ onMouseDown: (y) => {
1344
+ y.preventDefault(), i();
1345
1345
  }
1346
1346
  }
1347
1347
  ) }),
1348
- /* @__PURE__ */ C(ee.Content, { side: "bottom", align: "start", children: [
1349
- /* @__PURE__ */ t(ee.Heading, { children: s("editor.highlightColor", "Highlight") }),
1348
+ /* @__PURE__ */ C(te.Content, { side: "bottom", align: "start", children: [
1349
+ /* @__PURE__ */ t(te.Heading, { children: s("editor.highlightColor", "Highlight") }),
1350
1350
  /* @__PURE__ */ t("div", { className: "ds:pt-[var(--spacing-sm)]", children: /* @__PURE__ */ t(
1351
1351
  Bn,
1352
1352
  {
1353
1353
  variant: "inline",
1354
1354
  size: "sm",
1355
- value: g,
1356
- onChange: f
1355
+ value: f,
1356
+ onChange: m
1357
1357
  }
1358
1358
  ) }),
1359
- /* @__PURE__ */ t("div", { className: "ds:mt-[var(--spacing-sm)] ds:flex ds:items-center ds:justify-end", children: /* @__PURE__ */ t(Te, { size: "sm", intent: "secondary", onClick: d, children: s("editor.highlight.remove", "Remove highlight") }) })
1359
+ /* @__PURE__ */ t("div", { className: "ds:mt-[var(--spacing-sm)] ds:flex ds:items-center ds:justify-end", children: /* @__PURE__ */ t(Te, { size: "sm", intent: "secondary", onClick: h, children: s("editor.highlight.remove", "Remove highlight") }) })
1360
1360
  ] })
1361
1361
  ] });
1362
1362
  }
@@ -1369,75 +1369,62 @@ function Gi({
1369
1369
  insertTable: i,
1370
1370
  active: c
1371
1371
  }) {
1372
- const { t: s } = ne(), [g, m] = E({ r: 0, c: 0 }), f = c.has("table");
1373
- return /* @__PURE__ */ C(ee, { onOpenChange: (d) => !d && m({ r: 0, c: 0 }), children: [
1374
- /* @__PURE__ */ t(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1375
- j,
1372
+ const { t: s } = ne(), [f, u] = N({ r: 0, c: 0 }), [m, h] = N(!1), y = c.has("table") || m, k = /* @__PURE__ */ t(
1373
+ j,
1374
+ {
1375
+ size: "sm",
1376
+ intent: "ghost",
1377
+ icon: /* @__PURE__ */ t(vi, {}),
1378
+ "aria-label": s("editor.table.insert", "Insert table"),
1379
+ onMouseDown: (w) => w.preventDefault()
1380
+ }
1381
+ );
1382
+ return y ? /* @__PURE__ */ C(X.Root, { open: m, onOpenChange: h, children: [
1383
+ /* @__PURE__ */ t(X.Trigger, { asChild: !0, children: k }),
1384
+ /* @__PURE__ */ t(X.Content, { side: "bottom", align: "start", children: Xr.map((w) => /* @__PURE__ */ t(
1385
+ X.Item,
1376
1386
  {
1377
- size: "sm",
1378
- intent: "ghost",
1379
- icon: /* @__PURE__ */ t(vi, {}),
1380
- "aria-label": s("editor.table.insert", "Insert table"),
1381
- onMouseDown: (d) => d.preventDefault()
1382
- }
1383
- ) }),
1384
- /* @__PURE__ */ t(ee.Content, { side: "bottom", align: "start", children: f ? (
1385
- // Caret is already inside a table — offer the manage ops only, never
1386
- // a nested-table insert (mirrors Redactor's native dropdown, which
1387
- // disables "insert table" while the caret is in a table).
1388
- /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: Xr.map((d) => /* @__PURE__ */ C(
1389
- "button",
1390
- {
1391
- type: "button",
1392
- onClick: () => o(d.command),
1393
- className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-2xs)] ds:text-start ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--foreground)] ds:hover:bg-[var(--muted)]",
1394
- children: [
1395
- /* @__PURE__ */ t(
1396
- "span",
1397
- {
1398
- "aria-hidden": "true",
1399
- className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center ds:text-[color:var(--muted-foreground)]",
1400
- children: d.icon
1401
- }
1402
- ),
1403
- s(d.label[0], d.label[1])
1404
- ]
1405
- },
1406
- d.id
1407
- )) })
1408
- ) : /* @__PURE__ */ C(Ee, { children: [
1409
- /* @__PURE__ */ t(ee.Heading, { children: s("editor.table.insert", "Insert table") }),
1387
+ startIcon: w.icon,
1388
+ onSelect: () => o(w.command),
1389
+ children: s(w.label[0], w.label[1])
1390
+ },
1391
+ w.id
1392
+ )) })
1393
+ ] }) : /* @__PURE__ */ C(te, { onOpenChange: (w) => !w && u({ r: 0, c: 0 }), children: [
1394
+ /* @__PURE__ */ t(te.Trigger, { asChild: !0, children: k }),
1395
+ /* @__PURE__ */ C(te.Content, { side: "bottom", align: "start", children: [
1396
+ /* @__PURE__ */ t(te.Heading, { children: s("editor.table.insert", "Insert table") }),
1410
1397
  /* @__PURE__ */ t(
1411
1398
  "div",
1412
1399
  {
1413
1400
  role: "group",
1414
1401
  "aria-label": s("editor.table.sizePicker", "Table size"),
1415
1402
  className: "ds:mt-[var(--spacing-sm)] ds:grid ds:w-fit ds:grid-cols-6 ds:gap-[var(--spacing-2xs)]",
1416
- onMouseLeave: () => m({ r: 0, c: 0 }),
1417
- children: Array.from({ length: Ut * Ut }, (d, v) => {
1418
- const w = Math.floor(v / Ut) + 1, k = v % Ut + 1, L = w <= g.r && k <= g.c;
1403
+ onMouseLeave: () => u({ r: 0, c: 0 }),
1404
+ children: Array.from({ length: Ut * Ut }, (w, _) => {
1405
+ const E = Math.floor(_ / Ut) + 1, S = _ % Ut + 1, q = E <= f.r && S <= f.c;
1419
1406
  return /* @__PURE__ */ t(
1420
1407
  "button",
1421
1408
  {
1422
1409
  type: "button",
1423
1410
  "aria-label": s("editor.table.sizeCell", "{{r}}×{{c}}", {
1424
- r: w,
1425
- c: k
1411
+ r: E,
1412
+ c: S
1426
1413
  }),
1427
- onMouseEnter: () => m({ r: w, c: k }),
1428
- onClick: () => i(ji(w, k)),
1429
- className: `ds:size-5 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ${L ? "ds:bg-[var(--primary)]" : "ds:bg-[var(--muted)]"}`
1414
+ onMouseEnter: () => u({ r: E, c: S }),
1415
+ onClick: () => i(ji(E, S)),
1416
+ className: `ds:size-5 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ${q ? "ds:bg-[var(--primary)]" : "ds:bg-[var(--muted)]"}`
1430
1417
  },
1431
- v
1418
+ _
1432
1419
  );
1433
1420
  })
1434
1421
  }
1435
1422
  ),
1436
- /* @__PURE__ */ t("p", { className: "ds:mt-[var(--spacing-xs)] ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", children: g.r > 0 ? s("editor.table.sizeCell", "{{r}}×{{c}}", {
1437
- r: g.r,
1438
- c: g.c
1423
+ /* @__PURE__ */ t("p", { className: "ds:mt-[var(--spacing-xs)] ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", children: f.r > 0 ? s("editor.table.sizeCell", "{{r}}×{{c}}", {
1424
+ r: f.r,
1425
+ c: f.c
1439
1426
  }) : s("editor.table.sizeHint", "Pick a size") })
1440
- ] }) })
1427
+ ] })
1441
1428
  ] });
1442
1429
  }
1443
1430
  const Ki = Object.fromEntries(Xr.map((o) => [o.id, o])), Vi = [
@@ -1451,36 +1438,36 @@ function Hr({
1451
1438
  icon: i,
1452
1439
  label: c,
1453
1440
  onOpenChange: s,
1454
- saveTableCell: g,
1455
- applyTableBackground: m
1441
+ saveTableCell: f,
1442
+ applyTableBackground: u
1456
1443
  }) {
1457
- const { t: f } = ne(), [d, v] = E(Wi);
1444
+ const { t: m } = ne(), [h, y] = N(Wi);
1458
1445
  return /* @__PURE__ */ C(
1459
- ee,
1446
+ te,
1460
1447
  {
1461
- onOpenChange: (w) => {
1462
- s(w), w && g();
1448
+ onOpenChange: (k) => {
1449
+ s(k), k && f();
1463
1450
  },
1464
1451
  children: [
1465
- /* @__PURE__ */ t(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1452
+ /* @__PURE__ */ t(te.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
1466
1453
  j,
1467
1454
  {
1468
1455
  size: "sm",
1469
1456
  intent: "ghost",
1470
1457
  icon: i,
1471
1458
  tooltip: c,
1472
- onMouseDown: (w) => w.preventDefault()
1459
+ onMouseDown: (k) => k.preventDefault()
1473
1460
  }
1474
1461
  ) }),
1475
- /* @__PURE__ */ C(ee.Content, { side: "bottom", align: "center", children: [
1462
+ /* @__PURE__ */ C(te.Content, { side: "bottom", align: "center", children: [
1476
1463
  /* @__PURE__ */ t(
1477
1464
  Bn,
1478
1465
  {
1479
1466
  variant: "inline",
1480
1467
  size: "sm",
1481
- value: d,
1482
- onChange: (w) => {
1483
- v(w), m(o, w);
1468
+ value: h,
1469
+ onChange: (k) => {
1470
+ y(k), u(o, k);
1484
1471
  }
1485
1472
  }
1486
1473
  ),
@@ -1490,8 +1477,8 @@ function Hr({
1490
1477
  size: "sm",
1491
1478
  intent: "ghost",
1492
1479
  className: "ds:mt-[var(--spacing-xs)] ds:w-full",
1493
- onClick: () => m(o, null),
1494
- children: f("editor.table.clearColor", "Clear colour")
1480
+ onClick: () => u(o, null),
1481
+ children: m("editor.table.clearColor", "Clear colour")
1495
1482
  }
1496
1483
  )
1497
1484
  ] })
@@ -1504,42 +1491,42 @@ function Xi({
1504
1491
  run: i,
1505
1492
  areaRef: c,
1506
1493
  getActiveTableEl: s,
1507
- enableColor: g = !1,
1508
- saveTableCell: m,
1509
- applyTableBackground: f
1494
+ enableColor: f = !1,
1495
+ saveTableCell: u,
1496
+ applyTableBackground: m
1510
1497
  }) {
1511
- const { t: d } = ne(), v = o.has("table"), [w, k] = E(null), L = A(0), [T, I] = E(!1), B = y((u) => {
1512
- L.current = Math.max(
1498
+ const { t: h } = ne(), y = o.has("table"), [k, w] = N(null), _ = A(0), [E, S] = N(!1), q = v((d) => {
1499
+ _.current = Math.max(
1513
1500
  0,
1514
- L.current + (u ? 1 : -1)
1515
- ), I(L.current > 0);
1501
+ _.current + (d ? 1 : -1)
1502
+ ), S(_.current > 0);
1516
1503
  }, []);
1517
- if (_(() => {
1518
- if (T) return;
1519
- if (!v || typeof window > "u") {
1520
- k(null);
1504
+ if (L(() => {
1505
+ if (E) return;
1506
+ if (!y || typeof window > "u") {
1507
+ w(null);
1521
1508
  return;
1522
1509
  }
1523
- const u = () => {
1524
- const q = c.current, V = s();
1525
- if (!q || !V) {
1526
- k(null);
1510
+ const d = () => {
1511
+ const B = c.current, V = s();
1512
+ if (!B || !V) {
1513
+ w(null);
1527
1514
  return;
1528
1515
  }
1529
- const $ = q.getBoundingClientRect(), P = V.getBoundingClientRect(), N = getComputedStyle(q).direction === "rtl", X = Math.max(0, P.top - $.top - 44), F = N ? $.right - P.right + P.width / 2 : P.left - $.left + P.width / 2;
1530
- k({ top: X, start: Math.max(0, F), rtl: N });
1516
+ const $ = B.getBoundingClientRect(), P = V.getBoundingClientRect(), T = getComputedStyle(B).direction === "rtl", U = Math.max(0, P.top - $.top - 44), F = T ? $.right - P.right + P.width / 2 : P.left - $.left + P.width / 2;
1517
+ w({ top: U, start: Math.max(0, F), rtl: T });
1531
1518
  };
1532
- u();
1533
- const h = new ResizeObserver(u), z = c.current, M = s();
1534
- return z && h.observe(z), M && h.observe(M), window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
1535
- h.disconnect(), window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
1519
+ d();
1520
+ const g = new ResizeObserver(d), z = c.current, M = s();
1521
+ return z && g.observe(z), M && g.observe(M), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
1522
+ g.disconnect(), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
1536
1523
  };
1537
- }, [v, T, c, s]), !v && !T || !w) return null;
1524
+ }, [y, E, c, s]), !y && !E || !k) return null;
1538
1525
  const b = [
1539
1526
  ["rowAbove", "rowBelow"],
1540
1527
  ["colLeft", "colRight"],
1541
1528
  ["addHead"],
1542
- ...g ? ["colour"] : [],
1529
+ ...f ? ["colour"] : [],
1543
1530
  ["deleteRow", "deleteColumn"],
1544
1531
  ["deleteTable"]
1545
1532
  ];
@@ -1551,24 +1538,24 @@ function Xi({
1551
1538
  "div",
1552
1539
  {
1553
1540
  role: "group",
1554
- "aria-label": d("editor.table.toolbar", "Table tools"),
1555
- className: `${Vi} ${w.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
1541
+ "aria-label": h("editor.table.toolbar", "Table tools"),
1542
+ className: `${Vi} ${k.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
1556
1543
  style: {
1557
- "--rte-tt-top": `${w.top}px`,
1558
- "--rte-tt-start": `${w.start}px`
1544
+ "--rte-tt-top": `${k.top}px`,
1545
+ "--rte-tt-start": `${k.start}px`
1559
1546
  },
1560
- children: b.map((u, h) => /* @__PURE__ */ C(ft, { children: [
1561
- h > 0 ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className: en }) : null,
1562
- u === "colour" ? /* @__PURE__ */ C(Ee, { children: [
1547
+ children: b.map((d, g) => /* @__PURE__ */ C(ft, { children: [
1548
+ g > 0 ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className: en }) : null,
1549
+ d === "colour" ? /* @__PURE__ */ C(He, { children: [
1563
1550
  /* @__PURE__ */ t(
1564
1551
  Hr,
1565
1552
  {
1566
1553
  scope: "cell",
1567
1554
  icon: /* @__PURE__ */ t(Va, {}),
1568
- label: d("editor.table.cellColor", "Cell colour"),
1569
- onOpenChange: B,
1570
- saveTableCell: m,
1571
- applyTableBackground: f
1555
+ label: h("editor.table.cellColor", "Cell colour"),
1556
+ onOpenChange: q,
1557
+ saveTableCell: u,
1558
+ applyTableBackground: m
1572
1559
  }
1573
1560
  ),
1574
1561
  /* @__PURE__ */ t(
@@ -1576,13 +1563,13 @@ function Xi({
1576
1563
  {
1577
1564
  scope: "row",
1578
1565
  icon: /* @__PURE__ */ t(Xa, {}),
1579
- label: d("editor.table.rowColor", "Row colour"),
1580
- onOpenChange: B,
1581
- saveTableCell: m,
1582
- applyTableBackground: f
1566
+ label: h("editor.table.rowColor", "Row colour"),
1567
+ onOpenChange: q,
1568
+ saveTableCell: u,
1569
+ applyTableBackground: m
1583
1570
  }
1584
1571
  )
1585
- ] }) : u.map((z) => {
1572
+ ] }) : d.map((z) => {
1586
1573
  const M = Ki[z];
1587
1574
  return /* @__PURE__ */ t(
1588
1575
  j,
@@ -1590,14 +1577,14 @@ function Xi({
1590
1577
  size: "sm",
1591
1578
  intent: "ghost",
1592
1579
  icon: M.icon,
1593
- tooltip: d(M.label[0], M.label[1]),
1594
- onMouseDown: (q) => q.preventDefault(),
1580
+ tooltip: h(M.label[0], M.label[1]),
1581
+ onMouseDown: (B) => B.preventDefault(),
1595
1582
  onClick: () => i(M.command)
1596
1583
  },
1597
1584
  z
1598
1585
  );
1599
1586
  })
1600
- ] }, u === "colour" ? "colour" : u[0]))
1587
+ ] }, d === "colour" ? "colour" : d[0]))
1601
1588
  }
1602
1589
  ) })
1603
1590
  );
@@ -1616,9 +1603,9 @@ function Ir(o, i) {
1616
1603
  }
1617
1604
  function Ui(o) {
1618
1605
  const i = o.closest(".redactor-in"), c = i instanceof HTMLElement ? i.clientWidth : 0, s = o.getBoundingClientRect().width;
1619
- return c <= 0 || s <= 0 ? Nt : Math.round(Math.min(Nt, s / c * 100));
1606
+ return c <= 0 || s <= 0 ? Et : Math.round(Math.min(Et, s / c * 100));
1620
1607
  }
1621
- const In = 10, Nt = 100, Zi = 5, Qi = 10, $r = (o) => Math.min(Nt, Math.max(In, Math.round(o))), Yi = [
1608
+ const In = 10, Et = 100, Zi = 5, Qi = 10, $r = (o) => Math.min(Et, Math.max(In, Math.round(o))), Yi = [
1622
1609
  {
1623
1610
  id: "wysiwyg-img-inline",
1624
1611
  icon: /* @__PURE__ */ t(ba, {}),
@@ -1711,35 +1698,35 @@ function os({
1711
1698
  applyImageClass: c,
1712
1699
  setImageWidth: s
1713
1700
  }) {
1714
- const { t: g } = ne(), [m, f] = E(null), d = A(null);
1715
- _(() => {
1701
+ const { t: f } = ne(), [u, m] = N(null), h = A(null);
1702
+ L(() => {
1716
1703
  if (!i || typeof window > "u") {
1717
- f(null);
1704
+ m(null);
1718
1705
  return;
1719
1706
  }
1720
1707
  const b = () => {
1721
- const q = o.current;
1722
- if (!q) {
1723
- f(null);
1708
+ const B = o.current;
1709
+ if (!B) {
1710
+ m(null);
1724
1711
  return;
1725
1712
  }
1726
- const V = q.getBoundingClientRect(), $ = i.getBoundingClientRect(), P = getComputedStyle(q).direction === "rtl", N = $.top - V.top, X = P ? V.right - $.right : $.left - V.left, F = X + $.width / 2, Z = Math.max(0, N - 44);
1727
- f({
1728
- top: N,
1729
- start: Math.max(0, X),
1713
+ const V = B.getBoundingClientRect(), $ = i.getBoundingClientRect(), P = getComputedStyle(B).direction === "rtl", T = $.top - V.top, U = P ? V.right - $.right : $.left - V.left, F = U + $.width / 2, Q = Math.max(0, T - 44);
1714
+ m({
1715
+ top: T,
1716
+ start: Math.max(0, U),
1730
1717
  width: $.width,
1731
1718
  height: $.height,
1732
1719
  center: Math.max(0, F),
1733
- barTop: Z,
1720
+ barTop: Q,
1734
1721
  pct: Ui(i),
1735
1722
  rtl: P
1736
1723
  });
1737
1724
  };
1738
1725
  b();
1739
- const u = new ResizeObserver(b);
1740
- u.observe(i);
1741
- const h = o.current;
1742
- h && u.observe(h);
1726
+ const d = new ResizeObserver(b);
1727
+ d.observe(i);
1728
+ const g = o.current;
1729
+ g && d.observe(g);
1743
1730
  const z = i.closest(".redactor-in");
1744
1731
  let M = null;
1745
1732
  return z && (M = new MutationObserver(b), M.observe(z, {
@@ -1749,97 +1736,97 @@ function os({
1749
1736
  attributes: !0,
1750
1737
  attributeFilter: ["class", "style", "width", "height", "src"]
1751
1738
  })), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b), () => {
1752
- u.disconnect(), M == null || M.disconnect(), window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
1739
+ d.disconnect(), M == null || M.disconnect(), window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
1753
1740
  };
1754
1741
  }, [i, o]);
1755
- const v = y(
1756
- (b) => (u) => {
1757
- !u.isPrimary || !m || (u.preventDefault(), u.currentTarget.setPointerCapture(u.pointerId), d.current = {
1758
- pointerId: u.pointerId,
1759
- startX: u.clientX,
1760
- startPct: m.pct,
1761
- sign: b.sign * (m.rtl ? -1 : 1)
1742
+ const y = v(
1743
+ (b) => (d) => {
1744
+ !d.isPrimary || !u || (d.preventDefault(), d.currentTarget.setPointerCapture(d.pointerId), h.current = {
1745
+ pointerId: d.pointerId,
1746
+ startX: d.clientX,
1747
+ startPct: u.pct,
1748
+ sign: b.sign * (u.rtl ? -1 : 1)
1762
1749
  });
1763
1750
  },
1764
- [m]
1765
- ), w = y(
1751
+ [u]
1752
+ ), k = v(
1766
1753
  (b) => {
1767
- const u = d.current;
1768
- if (!u || b.pointerId !== u.pointerId || !i) return;
1769
- const h = i.closest(".redactor-in"), z = h instanceof HTMLElement ? h.clientWidth : 0;
1754
+ const d = h.current;
1755
+ if (!d || b.pointerId !== d.pointerId || !i) return;
1756
+ const g = i.closest(".redactor-in"), z = g instanceof HTMLElement ? g.clientWidth : 0;
1770
1757
  if (z <= 0) return;
1771
- const M = u.sign * (b.clientX - u.startX) / z * 100;
1772
- s($r(u.startPct + M));
1758
+ const M = d.sign * (b.clientX - d.startX) / z * 100;
1759
+ s($r(d.startPct + M));
1773
1760
  },
1774
1761
  [i, s]
1775
- ), k = y(
1762
+ ), w = v(
1776
1763
  (b) => {
1777
- const u = d.current;
1778
- !u || b.pointerId !== u.pointerId || (b.currentTarget.releasePointerCapture(b.pointerId), d.current = null);
1764
+ const d = h.current;
1765
+ !d || b.pointerId !== d.pointerId || (b.currentTarget.releasePointerCapture(b.pointerId), h.current = null);
1779
1766
  },
1780
1767
  []
1781
- ), L = y(
1768
+ ), _ = v(
1782
1769
  (b) => {
1783
- if (!m) return;
1784
- let u = null;
1785
- const h = b.shiftKey ? Qi : Zi;
1770
+ if (!u) return;
1771
+ let d = null;
1772
+ const g = b.shiftKey ? Qi : Zi;
1786
1773
  switch (b.key) {
1787
1774
  // Up / right always grow; down / left always shrink — independent of
1788
1775
  // which corner has focus, so the gesture reads the same everywhere.
1789
1776
  case "ArrowRight":
1790
1777
  case "ArrowUp":
1791
- u = m.pct + h;
1778
+ d = u.pct + g;
1792
1779
  break;
1793
1780
  case "ArrowLeft":
1794
1781
  case "ArrowDown":
1795
- u = m.pct - h;
1782
+ d = u.pct - g;
1796
1783
  break;
1797
1784
  case "Home":
1798
- u = In;
1785
+ d = In;
1799
1786
  break;
1800
1787
  case "End":
1801
- u = Nt;
1788
+ d = Et;
1802
1789
  break;
1803
1790
  default:
1804
1791
  return;
1805
1792
  }
1806
- b.preventDefault(), s($r(u));
1793
+ b.preventDefault(), s($r(d));
1807
1794
  },
1808
- [m, s]
1795
+ [u, s]
1809
1796
  );
1810
- if (!i || !m) return null;
1811
- const T = Ir(i, Hn), I = Ir(i, Zr), B = g("editor.image.widthAnnounce", {
1812
- width: m.pct,
1797
+ if (!i || !u) return null;
1798
+ const E = Ir(i, Hn), S = Ir(i, Zr), q = f("editor.image.widthAnnounce", {
1799
+ width: u.pct,
1813
1800
  defaultValue: "{{width}} percent"
1814
1801
  });
1815
- return /* @__PURE__ */ C(Ee, { children: [
1802
+ return /* @__PURE__ */ C(He, { children: [
1816
1803
  /* @__PURE__ */ t(
1817
1804
  "div",
1818
1805
  {
1819
1806
  className: ts,
1820
1807
  style: {
1821
- "--rte-img-top": `${m.top}px`,
1822
- "--rte-img-start": `${m.start}px`,
1823
- "--rte-img-width": `${m.width}px`,
1824
- "--rte-img-height": `${m.height}px`
1808
+ "--rte-img-top": `${u.top}px`,
1809
+ "--rte-img-start": `${u.start}px`,
1810
+ "--rte-img-width": `${u.width}px`,
1811
+ "--rte-img-height": `${u.height}px`
1825
1812
  },
1826
1813
  children: es.map((b) => /* @__PURE__ */ t(
1827
1814
  "div",
1828
1815
  {
1829
1816
  role: "slider",
1830
1817
  tabIndex: 0,
1831
- "aria-label": g(b.labelKey, b.labelFallback),
1818
+ "aria-label": f(b.labelKey, b.labelFallback),
1832
1819
  "aria-orientation": "horizontal",
1833
1820
  "aria-valuemin": In,
1834
- "aria-valuemax": Nt,
1835
- "aria-valuenow": m.pct,
1836
- "aria-valuetext": B,
1821
+ "aria-valuemax": Et,
1822
+ "aria-valuenow": u.pct,
1823
+ "aria-valuetext": q,
1837
1824
  className: `${ns} ${b.pos} ${b.cursor}`,
1838
- onPointerDown: v(b),
1839
- onPointerMove: w,
1840
- onPointerUp: k,
1841
- onPointerCancel: k,
1842
- onKeyDown: L
1825
+ onPointerDown: y(b),
1826
+ onPointerMove: k,
1827
+ onPointerUp: w,
1828
+ onPointerCancel: w,
1829
+ onKeyDown: _
1843
1830
  },
1844
1831
  b.id
1845
1832
  ))
@@ -1849,31 +1836,31 @@ function os({
1849
1836
  "div",
1850
1837
  {
1851
1838
  role: "group",
1852
- "aria-label": g("editor.image.toolbar", "Image tools"),
1853
- className: `${rs} ${m.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
1839
+ "aria-label": f("editor.image.toolbar", "Image tools"),
1840
+ className: `${rs} ${u.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
1854
1841
  style: {
1855
- "--rte-img-bar-top": `${m.barTop}px`,
1856
- "--rte-img-center": `${m.center}px`
1842
+ "--rte-img-bar-top": `${u.barTop}px`,
1843
+ "--rte-img-center": `${u.center}px`
1857
1844
  },
1858
- children: [Yi, Ji].map((b, u) => /* @__PURE__ */ C(ft, { children: [
1859
- u > 0 ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className: en }) : null,
1860
- b.map((h) => {
1861
- const z = u === 0 ? T === h.id : I === h.id;
1845
+ children: [Yi, Ji].map((b, d) => /* @__PURE__ */ C(ft, { children: [
1846
+ d > 0 ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className: en }) : null,
1847
+ b.map((g) => {
1848
+ const z = d === 0 ? E === g.id : S === g.id;
1862
1849
  return /* @__PURE__ */ t(
1863
1850
  j,
1864
1851
  {
1865
1852
  size: "sm",
1866
1853
  intent: "ghost",
1867
- icon: h.icon,
1854
+ icon: g.icon,
1868
1855
  "aria-pressed": z,
1869
- tooltip: g(h.label[0], h.label[1]),
1856
+ tooltip: f(g.label[0], g.label[1]),
1870
1857
  onMouseDown: (M) => M.preventDefault(),
1871
- onClick: () => c(h.id)
1858
+ onClick: () => c(g.id)
1872
1859
  },
1873
- h.id
1860
+ g.id
1874
1861
  );
1875
1862
  })
1876
- ] }, u === 0 ? "flow" : "align"))
1863
+ ] }, d === 0 ? "flow" : "align"))
1877
1864
  }
1878
1865
  ) })
1879
1866
  ] });
@@ -1883,58 +1870,58 @@ function as({
1883
1870
  onPick: i,
1884
1871
  onManage: c,
1885
1872
  noteEmpty: s,
1886
- onOpenChange: g,
1887
- trigger: m,
1888
- side: f = "top"
1873
+ onOpenChange: f,
1874
+ trigger: u,
1875
+ side: m = "top"
1889
1876
  }) {
1890
- const { t: d } = ne(), v = Oe();
1891
- return /* @__PURE__ */ C(te.Root, { onOpenChange: g, children: [
1892
- /* @__PURE__ */ t(te.Trigger, { asChild: !0, children: m }),
1893
- /* @__PURE__ */ C(te.Content, { side: f, align: "end", sideOffset: 8, children: [
1894
- /* @__PURE__ */ t(te.Label, { children: o.length > 0 ? d("editor.ai.templatesGroup") : d("editor.ai.noTemplates") }),
1895
- o.map((w) => /* @__PURE__ */ t(
1896
- te.Item,
1877
+ const { t: h } = ne(), y = Oe();
1878
+ return /* @__PURE__ */ C(X.Root, { onOpenChange: f, children: [
1879
+ /* @__PURE__ */ t(X.Trigger, { asChild: !0, children: u }),
1880
+ /* @__PURE__ */ C(X.Content, { side: m, align: "end", sideOffset: 8, children: [
1881
+ /* @__PURE__ */ t(X.Label, { children: o.length > 0 ? h("editor.ai.templatesGroup") : h("editor.ai.noTemplates") }),
1882
+ o.map((k) => /* @__PURE__ */ t(
1883
+ X.Item,
1897
1884
  {
1898
1885
  startIcon: /* @__PURE__ */ t(Sn, {}),
1899
- description: w.description || void 0,
1886
+ description: k.description || void 0,
1900
1887
  "aria-disabled": s || void 0,
1901
- "aria-describedby": s ? v : void 0,
1888
+ "aria-describedby": s ? y : void 0,
1902
1889
  className: "ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-not-allowed",
1903
- onSelect: (k) => {
1890
+ onSelect: (w) => {
1904
1891
  if (s) {
1905
- k.preventDefault();
1892
+ w.preventDefault();
1906
1893
  return;
1907
1894
  }
1908
- i(w);
1895
+ i(k);
1909
1896
  },
1910
- children: w.name
1897
+ children: k.name
1911
1898
  },
1912
- w.id
1899
+ k.id
1913
1900
  )),
1914
1901
  s && o.length > 0 ? /* @__PURE__ */ t(
1915
1902
  "p",
1916
1903
  {
1917
- id: v,
1904
+ id: y,
1918
1905
  className: "ds:m-0 ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-2xs)] ds:text-[length:var(--font-size-xs)] ds:text-[color:var(--muted-foreground)]",
1919
- children: d("editor.ai.templatesNoteEmpty")
1906
+ children: h("editor.ai.templatesNoteEmpty")
1920
1907
  }
1921
1908
  ) : null,
1922
1909
  c && o.length === 0 ? /* @__PURE__ */ t(
1923
- te.Item,
1910
+ X.Item,
1924
1911
  {
1925
1912
  startIcon: /* @__PURE__ */ t(ua, {}),
1926
1913
  onSelect: () => c("create"),
1927
- children: d("editor.ai.createFirstTemplate")
1914
+ children: h("editor.ai.createFirstTemplate")
1928
1915
  }
1929
1916
  ) : null,
1930
- c && o.length > 0 ? /* @__PURE__ */ C(Ee, { children: [
1931
- /* @__PURE__ */ t(te.Separator, {}),
1917
+ c && o.length > 0 ? /* @__PURE__ */ C(He, { children: [
1918
+ /* @__PURE__ */ t(X.Separator, {}),
1932
1919
  /* @__PURE__ */ t(
1933
- te.Item,
1920
+ X.Item,
1934
1921
  {
1935
1922
  startIcon: /* @__PURE__ */ t(ma, {}),
1936
1923
  onSelect: () => c("list"),
1937
- children: d("editor.ai.manageTemplates")
1924
+ children: h("editor.ai.manageTemplates")
1938
1925
  }
1939
1926
  )
1940
1927
  ] }) : null
@@ -1953,94 +1940,94 @@ function ls({
1953
1940
  run: i,
1954
1941
  areaRef: c,
1955
1942
  getEditorRoot: s,
1956
- suppressed: g = !1,
1957
- holdOpen: m = !1,
1958
- children: f
1943
+ suppressed: f = !1,
1944
+ holdOpen: u = !1,
1945
+ children: m
1959
1946
  }) {
1960
- const { t: d } = ne(), v = A(null), [w, k] = E(null), L = A(m);
1961
- return _(() => {
1962
- L.current = m;
1963
- }, [m]), _(() => {
1964
- if (g || typeof window > "u") {
1965
- k(null);
1947
+ const { t: h } = ne(), y = A(null), [k, w] = N(null), _ = A(u);
1948
+ return L(() => {
1949
+ _.current = u;
1950
+ }, [u]), L(() => {
1951
+ if (f || typeof window > "u") {
1952
+ w(null);
1966
1953
  return;
1967
1954
  }
1968
- let T = !1, I = 0, B = !1, b = !1;
1969
- const u = () => {
1970
- var Y;
1971
- if (L.current || T) return;
1955
+ let E = !1, S = 0, q = !1, b = !1;
1956
+ const d = () => {
1957
+ var J;
1958
+ if (_.current || E) return;
1972
1959
  if (b) {
1973
- k(null);
1960
+ w(null);
1974
1961
  return;
1975
1962
  }
1976
- const $ = c.current, P = s(), N = window.getSelection();
1977
- if (!$ || !P || !N || N.rangeCount === 0 || N.isCollapsed || !$.contains(document.activeElement)) {
1978
- k(null);
1963
+ const $ = c.current, P = s(), T = window.getSelection();
1964
+ if (!$ || !P || !T || T.rangeCount === 0 || T.isCollapsed || !$.contains(document.activeElement)) {
1965
+ w(null);
1979
1966
  return;
1980
1967
  }
1981
- const X = N.getRangeAt(0);
1982
- if (!P.contains(X.commonAncestorContainer)) {
1983
- k(null);
1968
+ const U = T.getRangeAt(0);
1969
+ if (!P.contains(U.commonAncestorContainer)) {
1970
+ w(null);
1984
1971
  return;
1985
1972
  }
1986
- if (!X.toString().trim()) {
1987
- k(null);
1973
+ if (!U.toString().trim()) {
1974
+ w(null);
1988
1975
  return;
1989
1976
  }
1990
- const F = $.getBoundingClientRect(), Z = X.getBoundingClientRect(), pe = getComputedStyle($).direction === "rtl", Q = Z.top - F.top - 48, Me = Q >= 0 ? Q : Z.bottom - F.top + 8, G = ((Y = v.current) == null ? void 0 : Y.offsetWidth) ?? 0, re = pe ? F.right - Z.right + Z.width / 2 : Z.left - F.left + Z.width / 2, R = G / 2, K = Math.min(
1977
+ const F = $.getBoundingClientRect(), Q = U.getBoundingClientRect(), pe = getComputedStyle($).direction === "rtl", Y = Q.top - F.top - 48, Ne = Y >= 0 ? Y : Q.bottom - F.top + 8, G = ((J = y.current) == null ? void 0 : J.offsetWidth) ?? 0, re = pe ? F.right - Q.right + Q.width / 2 : Q.left - F.left + Q.width / 2, R = G / 2, K = Math.min(
1991
1978
  Math.max(re, R),
1992
1979
  Math.max(R, F.width - R)
1993
1980
  );
1994
- k({ top: Me, start: K, rtl: pe }), G === 0 && !B && (B = !0, I = requestAnimationFrame(u));
1995
- }, h = () => {
1996
- cancelAnimationFrame(I), I = requestAnimationFrame(u);
1981
+ w({ top: Ne, start: K, rtl: pe }), G === 0 && !q && (q = !0, S = requestAnimationFrame(d));
1982
+ }, g = () => {
1983
+ cancelAnimationFrame(S), S = requestAnimationFrame(d);
1997
1984
  }, z = ($) => {
1998
1985
  const P = s();
1999
- P && $.target instanceof Node && P.contains($.target) && (T = !0, k(null));
1986
+ P && $.target instanceof Node && P.contains($.target) && (E = !0, w(null));
2000
1987
  }, M = () => {
2001
- T && (T = !1, h());
2002
- }, q = ($) => {
1988
+ E && (E = !1, g());
1989
+ }, B = ($) => {
2003
1990
  if ($.key !== "Escape") return;
2004
1991
  const P = c.current;
2005
- !P || !P.contains(document.activeElement) || (b = !0, k(null));
1992
+ !P || !P.contains(document.activeElement) || (b = !0, w(null));
2006
1993
  }, V = () => {
2007
- b = !1, h();
1994
+ b = !1, g();
2008
1995
  };
2009
- return document.addEventListener("selectionchange", V), document.addEventListener("focusin", h), document.addEventListener("keydown", q, !0), document.addEventListener("pointerdown", z, !0), document.addEventListener("pointerup", M, !0), document.addEventListener("pointercancel", M, !0), window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), h(), () => {
2010
- cancelAnimationFrame(I), document.removeEventListener("selectionchange", V), document.removeEventListener("focusin", h), document.removeEventListener("keydown", q, !0), document.removeEventListener("pointerdown", z, !0), document.removeEventListener("pointerup", M, !0), document.removeEventListener("pointercancel", M, !0), window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
1996
+ return document.addEventListener("selectionchange", V), document.addEventListener("focusin", g), document.addEventListener("keydown", B, !0), document.addEventListener("pointerdown", z, !0), document.addEventListener("pointerup", M, !0), document.addEventListener("pointercancel", M, !0), window.addEventListener("scroll", g, !0), window.addEventListener("resize", g), g(), () => {
1997
+ cancelAnimationFrame(S), document.removeEventListener("selectionchange", V), document.removeEventListener("focusin", g), document.removeEventListener("keydown", B, !0), document.removeEventListener("pointerdown", z, !0), document.removeEventListener("pointerup", M, !0), document.removeEventListener("pointercancel", M, !0), window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
2011
1998
  };
2012
- }, [g, c, s]), g || !w ? null : /* @__PURE__ */ t(qn, { children: /* @__PURE__ */ C(
1999
+ }, [f, c, s]), f || !k ? null : /* @__PURE__ */ t(qn, { children: /* @__PURE__ */ C(
2013
2000
  "div",
2014
2001
  {
2015
- ref: v,
2002
+ ref: y,
2016
2003
  role: "group",
2017
- "aria-label": d("editor.ai.selectionTools"),
2004
+ "aria-label": h("editor.ai.selectionTools"),
2018
2005
  "data-component-part": "selection-toolbar",
2019
- className: `${is} ${w.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
2006
+ className: `${is} ${k.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
2020
2007
  style: {
2021
- "--rte-sel-top": `${w.top}px`,
2022
- "--rte-sel-start": `${w.start}px`
2008
+ "--rte-sel-top": `${k.top}px`,
2009
+ "--rte-sel-start": `${k.start}px`
2023
2010
  },
2024
2011
  children: [
2025
- ss.map((T) => {
2026
- const I = Wr[T];
2012
+ ss.map((E) => {
2013
+ const S = Wr[E];
2027
2014
  return /* @__PURE__ */ t(
2028
2015
  j,
2029
2016
  {
2030
2017
  size: "sm",
2031
2018
  intent: "ghost",
2032
- icon: I.icon,
2033
- tooltip: d(I.label[0], I.label[1]),
2034
- "aria-pressed": I.toggle ? o.has(I.toggle) : void 0,
2035
- onMouseDown: (B) => B.preventDefault(),
2036
- onClick: () => i(...I.command)
2019
+ icon: S.icon,
2020
+ tooltip: h(S.label[0], S.label[1]),
2021
+ "aria-pressed": S.toggle ? o.has(S.toggle) : void 0,
2022
+ onMouseDown: (q) => q.preventDefault(),
2023
+ onClick: () => i(...S.command)
2037
2024
  },
2038
- T
2025
+ E
2039
2026
  );
2040
2027
  }),
2041
- f ? /* @__PURE__ */ C(Ee, { children: [
2028
+ m ? /* @__PURE__ */ C(He, { children: [
2042
2029
  /* @__PURE__ */ t("span", { "aria-hidden": "true", className: en }),
2043
- f
2030
+ m
2044
2031
  ] }) : null
2045
2032
  ]
2046
2033
  }
@@ -2051,21 +2038,21 @@ function cs({
2051
2038
  active: i,
2052
2039
  preset: c,
2053
2040
  insertHtml: s,
2054
- insertTable: g,
2055
- saveSelection: m,
2056
- restoreSelection: f,
2057
- getSelectedText: d,
2058
- uploadImage: v,
2059
- enableColor: w = !1,
2060
- enableImage: k = !1,
2061
- enableTable: L = !1,
2062
- showExtensions: T = !1,
2063
- extensionControl: I,
2064
- variables: B,
2041
+ insertTable: f,
2042
+ saveSelection: u,
2043
+ restoreSelection: m,
2044
+ getSelectedText: h,
2045
+ uploadImage: y,
2046
+ enableColor: k = !1,
2047
+ enableImage: w = !1,
2048
+ enableTable: _ = !1,
2049
+ showExtensions: E = !1,
2050
+ extensionControl: S,
2051
+ variables: q,
2065
2052
  recentVariableTokens: b,
2066
- insertVariable: u
2053
+ insertVariable: d
2067
2054
  }) {
2068
- const { t: h } = ne(), z = (re) => re.preventDefault(), M = (re) => Hi[c].includes(re), q = (re) => {
2055
+ const { t: g } = ne(), z = (re) => re.preventDefault(), M = (re) => Hi[c].includes(re), B = (re) => {
2069
2056
  if (!M(re)) return null;
2070
2057
  const R = Wr[re];
2071
2058
  return /* @__PURE__ */ t(
@@ -2074,92 +2061,92 @@ function cs({
2074
2061
  size: "sm",
2075
2062
  intent: "ghost",
2076
2063
  icon: R.icon,
2077
- "aria-label": h(R.label[0], R.label[1]),
2064
+ "aria-label": g(R.label[0], R.label[1]),
2078
2065
  "aria-pressed": R.toggle ? i.has(R.toggle) : void 0,
2079
2066
  onMouseDown: z,
2080
2067
  onClick: () => o(...R.command)
2081
2068
  },
2082
2069
  R.id
2083
2070
  );
2084
- }, V = () => /* @__PURE__ */ t("span", { "aria-hidden": "true", className: en }), $ = M("format"), P = [q("undo"), q("redo")].filter(Boolean), N = [
2085
- q("bold"),
2086
- q("italic"),
2087
- q("underline"),
2088
- q("strike"),
2089
- w ? /* @__PURE__ */ t(
2071
+ }, V = () => /* @__PURE__ */ t("span", { "aria-hidden": "true", className: en }), $ = M("format"), P = [B("undo"), B("redo")].filter(Boolean), T = [
2072
+ B("bold"),
2073
+ B("italic"),
2074
+ B("underline"),
2075
+ B("strike"),
2076
+ k ? /* @__PURE__ */ t(
2090
2077
  Pi,
2091
2078
  {
2092
2079
  run: o,
2093
- saveSelection: m,
2094
- restoreSelection: f
2080
+ saveSelection: u,
2081
+ restoreSelection: m
2095
2082
  },
2096
2083
  "colour"
2097
2084
  ) : null,
2098
- w ? /* @__PURE__ */ t(
2085
+ k ? /* @__PURE__ */ t(
2099
2086
  Fi,
2100
2087
  {
2101
2088
  run: o,
2102
- saveSelection: m,
2103
- restoreSelection: f
2089
+ saveSelection: u,
2090
+ restoreSelection: m
2104
2091
  },
2105
2092
  "highlight"
2106
2093
  ) : null
2107
- ].filter(Boolean), X = P.length > 0 || $ || N.length > 0, F = [q("ul"), q("ol")].filter(Boolean), Z = [
2094
+ ].filter(Boolean), U = P.length > 0 || $ || T.length > 0, F = [B("ul"), B("ol")].filter(Boolean), Q = [
2108
2095
  M("link") ? /* @__PURE__ */ t(
2109
2096
  qi,
2110
2097
  {
2111
2098
  insertHtml: s,
2112
- saveSelection: m,
2113
- restoreSelection: f,
2114
- getSelectedText: d
2099
+ saveSelection: u,
2100
+ restoreSelection: m,
2101
+ getSelectedText: h
2115
2102
  },
2116
2103
  "link"
2117
2104
  ) : null,
2118
- k ? /* @__PURE__ */ t(
2105
+ w ? /* @__PURE__ */ t(
2119
2106
  Bi,
2120
2107
  {
2121
2108
  insertHtml: s,
2122
- saveSelection: m,
2123
- restoreSelection: f,
2124
- uploadImage: v
2109
+ saveSelection: u,
2110
+ restoreSelection: m,
2111
+ uploadImage: y
2125
2112
  },
2126
2113
  "image"
2127
2114
  ) : null,
2128
- L ? /* @__PURE__ */ t(
2115
+ _ ? /* @__PURE__ */ t(
2129
2116
  Gi,
2130
2117
  {
2131
2118
  run: o,
2132
- insertTable: g,
2119
+ insertTable: f,
2133
2120
  active: i
2134
2121
  },
2135
2122
  "table"
2136
2123
  ) : null,
2137
- B && B.length > 0 && u ? /* @__PURE__ */ t(
2124
+ q && q.length > 0 && d ? /* @__PURE__ */ t(
2138
2125
  Di,
2139
2126
  {
2140
- variables: B,
2127
+ variables: q,
2141
2128
  recentVariableTokens: b,
2142
- insertVariable: u,
2143
- saveSelection: m
2129
+ insertVariable: d,
2130
+ saveSelection: u
2144
2131
  },
2145
2132
  "variables"
2146
2133
  ) : null
2147
- ].filter(Boolean), pe = I ? [/* @__PURE__ */ t(ft, { children: I }, "extensions")] : T ? [
2134
+ ].filter(Boolean), pe = S ? [/* @__PURE__ */ t(ft, { children: S }, "extensions")] : E ? [
2148
2135
  /* @__PURE__ */ t(
2149
2136
  j,
2150
2137
  {
2151
2138
  size: "sm",
2152
2139
  intent: "ghost",
2153
2140
  icon: /* @__PURE__ */ t(Ln, {}),
2154
- "aria-label": h("editor.extensions", "Editor extensions"),
2141
+ "aria-label": g("editor.extensions", "Editor extensions"),
2155
2142
  disabled: !0,
2156
2143
  onMouseDown: z
2157
2144
  },
2158
2145
  "extensions"
2159
2146
  )
2160
- ] : [], Q = [F, Z, pe].filter(
2147
+ ] : [], Y = [F, Q, pe].filter(
2161
2148
  (re) => re.length > 0
2162
- ), Me = Q.length > 0, G = (re) => Q.map((R, K) => /* @__PURE__ */ C(ft, { children: [
2149
+ ), Ne = Y.length > 0, G = (re) => Y.map((R, K) => /* @__PURE__ */ C(ft, { children: [
2163
2150
  K > 0 || re ? /* @__PURE__ */ t(V, {}) : null,
2164
2151
  R
2165
2152
  ] }, K));
@@ -2171,30 +2158,30 @@ function cs({
2171
2158
  "div",
2172
2159
  {
2173
2160
  role: "group",
2174
- "aria-label": h("editor.toolbarLabel"),
2161
+ "aria-label": g("editor.toolbarLabel"),
2175
2162
  className: $i,
2176
2163
  children: [
2177
2164
  P,
2178
- P.length > 0 && ($ || N.length > 0) ? /* @__PURE__ */ t(V, {}) : null,
2165
+ P.length > 0 && ($ || T.length > 0) ? /* @__PURE__ */ t(V, {}) : null,
2179
2166
  $ ? /* @__PURE__ */ t(Oi, { run: o, active: i, onTriggerDown: z }) : null,
2180
- $ && N.length > 0 ? /* @__PURE__ */ t(V, {}) : null,
2181
- N,
2182
- Me ? /* @__PURE__ */ C(Ee, { children: [
2183
- /* @__PURE__ */ t("div", { className: "ds:hidden ds:@[384px]/toolbar:contents", children: G(X) }),
2167
+ $ && T.length > 0 ? /* @__PURE__ */ t(V, {}) : null,
2168
+ T,
2169
+ Ne ? /* @__PURE__ */ C(He, { children: [
2170
+ /* @__PURE__ */ t("div", { className: "ds:hidden ds:@[384px]/toolbar:contents", children: G(U) }),
2184
2171
  /* @__PURE__ */ C("div", { className: "ds:contents ds:@[384px]/toolbar:hidden", children: [
2185
- X ? /* @__PURE__ */ t(V, {}) : null,
2186
- /* @__PURE__ */ C(ee, { children: [
2187
- /* @__PURE__ */ t(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
2172
+ U ? /* @__PURE__ */ t(V, {}) : null,
2173
+ /* @__PURE__ */ C(te, { children: [
2174
+ /* @__PURE__ */ t(te.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
2188
2175
  j,
2189
2176
  {
2190
2177
  size: "sm",
2191
2178
  intent: "ghost",
2192
2179
  icon: /* @__PURE__ */ t(sa, {}),
2193
- "aria-label": h("editor.more", "More options"),
2180
+ "aria-label": g("editor.more", "More options"),
2194
2181
  onMouseDown: z
2195
2182
  }
2196
2183
  ) }),
2197
- /* @__PURE__ */ t(ee.Content, { side: "bottom", align: "end", children: /* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: G(!1) }) })
2184
+ /* @__PURE__ */ t(te.Content, { side: "bottom", align: "end", children: /* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: G(!1) }) })
2198
2185
  ] })
2199
2186
  ] })
2200
2187
  ] }) : null
@@ -2250,7 +2237,7 @@ function Br(o) {
2250
2237
  function Pr(o) {
2251
2238
  return o.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, "").replace(/[\s\u200B\uFEFF]+/g, "");
2252
2239
  }
2253
- function gs(o) {
2240
+ function hs(o) {
2254
2241
  const i = window.getSelection();
2255
2242
  if (!i || i.rangeCount === 0) return null;
2256
2243
  const c = i.getRangeAt(0);
@@ -2258,60 +2245,60 @@ function gs(o) {
2258
2245
  const s = document.createRange();
2259
2246
  return s.selectNodeContents(o), s.setEnd(c.startContainer, c.startOffset), s.toString().length;
2260
2247
  }
2261
- function hs(o, i) {
2262
- var m;
2248
+ function gs(o, i) {
2249
+ var u;
2263
2250
  const c = window.getSelection();
2264
2251
  if (!c) return;
2265
2252
  const s = document.createTreeWalker(o, NodeFilter.SHOW_TEXT);
2266
- let g = 0;
2267
- for (let f = s.nextNode(); f; f = s.nextNode()) {
2268
- const d = f;
2269
- if (g + d.data.length >= i) {
2270
- const v = document.createRange(), w = (m = d.parentElement) == null ? void 0 : m.closest(
2253
+ let f = 0;
2254
+ for (let m = s.nextNode(); m; m = s.nextNode()) {
2255
+ const h = m;
2256
+ if (f + h.data.length >= i) {
2257
+ const y = document.createRange(), k = (u = h.parentElement) == null ? void 0 : u.closest(
2271
2258
  '[data-redactor-type="variable"]'
2272
2259
  );
2273
- w ? v.setStartAfter(w) : v.setStart(d, i - g), v.collapse(!0), c.removeAllRanges(), c.addRange(v);
2260
+ k ? y.setStartAfter(k) : y.setStart(h, i - f), y.collapse(!0), c.removeAllRanges(), c.addRange(y);
2274
2261
  return;
2275
2262
  }
2276
- g += d.data.length;
2263
+ f += h.data.length;
2277
2264
  }
2278
2265
  }
2279
2266
  function Fr(o) {
2280
2267
  return `<span data-redactor-type="variable">[[${o}]]</span>`;
2281
2268
  }
2282
2269
  function ut(o, i) {
2283
- var f;
2270
+ var m;
2284
2271
  if (i.size === 0 || !o.includes("[[") || typeof DOMParser > "u")
2285
2272
  return o;
2286
2273
  const c = new DOMParser().parseFromString(
2287
2274
  `<body>${o}</body>`,
2288
2275
  "text/html"
2289
- ), s = c.createTreeWalker(c.body, NodeFilter.SHOW_TEXT), g = [];
2290
- for (let d = s.nextNode(); d; d = s.nextNode()) {
2291
- const v = d;
2292
- (f = v.parentElement) != null && f.closest('[data-redactor-type="variable"]') || v.data.includes("[[") && g.push(v);
2276
+ ), s = c.createTreeWalker(c.body, NodeFilter.SHOW_TEXT), f = [];
2277
+ for (let h = s.nextNode(); h; h = s.nextNode()) {
2278
+ const y = h;
2279
+ (m = y.parentElement) != null && m.closest('[data-redactor-type="variable"]') || y.data.includes("[[") && f.push(y);
2293
2280
  }
2294
- let m = !1;
2295
- for (const d of g) {
2296
- const v = c.createDocumentFragment();
2297
- let w = 0;
2298
- for (const k of d.data.matchAll(Qr)) {
2299
- const L = i.get(k[1].toLowerCase());
2300
- if (!L || k.index === void 0) continue;
2301
- v.append(d.data.slice(w, k.index));
2302
- const T = c.createElement("span");
2303
- T.setAttribute("data-redactor-type", "variable"), T.textContent = `[[${L}]]`, v.append(T), w = k.index + k[0].length;
2281
+ let u = !1;
2282
+ for (const h of f) {
2283
+ const y = c.createDocumentFragment();
2284
+ let k = 0;
2285
+ for (const w of h.data.matchAll(Qr)) {
2286
+ const _ = i.get(w[1].toLowerCase());
2287
+ if (!_ || w.index === void 0) continue;
2288
+ y.append(h.data.slice(k, w.index));
2289
+ const E = c.createElement("span");
2290
+ E.setAttribute("data-redactor-type", "variable"), E.textContent = `[[${_}]]`, y.append(E), k = w.index + w[0].length;
2304
2291
  }
2305
- w !== 0 && (v.append(d.data.slice(w)), d.replaceWith(v), m = !0);
2292
+ k !== 0 && (y.append(h.data.slice(k)), h.replaceWith(y), u = !0);
2306
2293
  }
2307
- return m ? c.body.innerHTML : o;
2294
+ return u ? c.body.innerHTML : o;
2308
2295
  }
2309
2296
  function ps(o) {
2310
2297
  if (!o || typeof o != "object") return;
2311
2298
  const i = o, c = (s) => {
2312
2299
  if (s && typeof s == "object" && "url" in s) {
2313
- const g = s.url;
2314
- return typeof g == "string" ? g : void 0;
2300
+ const f = s.url;
2301
+ return typeof f == "string" ? f : void 0;
2315
2302
  }
2316
2303
  };
2317
2304
  return typeof i.url == "string" ? i.url : c(i.file) ?? c(i.data) ?? Object.values(i).map(c).find(Boolean);
@@ -2367,15 +2354,15 @@ const ks = Dn(
2367
2354
  "ds:focus-visible:outline-solid",
2368
2355
  "ds:focus-visible:outline-[var(--primary-foreground)]",
2369
2356
  "ds:focus-visible:[outline-offset:calc(var(--focus-ring-width)*-1)]"
2370
- ].join(" "), As = `${Yr} ds:hover:bg-[color-mix(in_srgb,var(--primary-foreground)_15%,transparent)]`, Ns = `${Yr} ds:bg-[var(--destructive)] ds:hover:bg-[color-mix(in_srgb,var(--destructive)_88%,var(--primary-foreground))]`;
2371
- function Es({
2357
+ ].join(" "), As = `${Yr} ds:hover:bg-[color-mix(in_srgb,var(--primary-foreground)_15%,transparent)]`, Es = `${Yr} ds:bg-[var(--destructive)] ds:hover:bg-[color-mix(in_srgb,var(--destructive)_88%,var(--primary-foreground))]`;
2358
+ function Ts({
2372
2359
  notice: o,
2373
2360
  children: i
2374
2361
  }) {
2375
- const [c, s] = E(!1);
2362
+ const [c, s] = N(!1);
2376
2363
  return /* @__PURE__ */ C(_n, { open: c, onOpenChange: s, children: [
2377
2364
  /* @__PURE__ */ t(
2378
- Ts,
2365
+ Ns,
2379
2366
  {
2380
2367
  onOpen: () => s(!0),
2381
2368
  onPress: () => s(!1),
@@ -2389,40 +2376,40 @@ function Es({
2389
2376
  align: "start",
2390
2377
  size: "sm",
2391
2378
  collisionPadding: 8,
2392
- children: /* @__PURE__ */ t(ha, { ...o })
2379
+ children: /* @__PURE__ */ t(ga, { ...o })
2393
2380
  }
2394
2381
  )
2395
2382
  ] });
2396
2383
  }
2397
- function Ts({
2384
+ function Ns({
2398
2385
  onOpen: o,
2399
2386
  onPress: i,
2400
2387
  children: c
2401
2388
  }) {
2402
- const { cancelClose: s, closeWithDelay: g } = ga(), m = A(null), f = y(() => {
2403
- m.current && (clearTimeout(m.current), m.current = null);
2389
+ const { cancelClose: s, closeWithDelay: f } = ha(), u = A(null), m = v(() => {
2390
+ u.current && (clearTimeout(u.current), u.current = null);
2404
2391
  }, []);
2405
- _(() => f, [f]);
2406
- const d = y(() => {
2407
- f(), s(), m.current = setTimeout(o, 300);
2408
- }, [f, s, o]), v = y(() => {
2409
- f(), g();
2410
- }, [f, g]), w = A(!1), k = y(() => {
2411
- w.current = !0, f(), i();
2412
- }, [f, i]);
2413
- _(() => {
2414
- const T = () => {
2415
- w.current = !1;
2392
+ L(() => m, [m]);
2393
+ const h = v(() => {
2394
+ m(), s(), u.current = setTimeout(o, 300);
2395
+ }, [m, s, o]), y = v(() => {
2396
+ m(), f();
2397
+ }, [m, f]), k = A(!1), w = v(() => {
2398
+ k.current = !0, m(), i();
2399
+ }, [m, i]);
2400
+ L(() => {
2401
+ const E = () => {
2402
+ k.current = !1;
2416
2403
  };
2417
- return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
2404
+ return document.addEventListener("keydown", E), () => document.removeEventListener("keydown", E);
2418
2405
  }, []);
2419
- const L = y(() => {
2420
- if (w.current) {
2421
- w.current = !1;
2406
+ const _ = v(() => {
2407
+ if (k.current) {
2408
+ k.current = !1;
2422
2409
  return;
2423
2410
  }
2424
- f(), s(), o();
2425
- }, [f, s, o]);
2411
+ m(), s(), o();
2412
+ }, [m, s, o]);
2426
2413
  return (
2427
2414
  // `ds:inline-flex` — NOT `ds:contents` — so this span has a real box
2428
2415
  // that hugs the button and Floating UI has a real rect to measure.
@@ -2434,18 +2421,18 @@ function Ts({
2434
2421
  "span",
2435
2422
  {
2436
2423
  className: "ds:inline-flex",
2437
- onMouseEnter: d,
2438
- onMouseLeave: v,
2439
- onPointerDown: k,
2440
- onFocusCapture: L,
2441
- onBlurCapture: v,
2424
+ onMouseEnter: h,
2425
+ onMouseLeave: y,
2426
+ onPointerDown: w,
2427
+ onFocusCapture: _,
2428
+ onBlurCapture: y,
2442
2429
  children: c
2443
2430
  }
2444
2431
  ) })
2445
2432
  );
2446
2433
  }
2447
2434
  function mt(o, i) {
2448
- return i ? /* @__PURE__ */ t(Es, { notice: i, children: o }) : o;
2435
+ return i ? /* @__PURE__ */ t(Ts, { notice: i, children: o }) : o;
2449
2436
  }
2450
2437
  function Qt(o, i) {
2451
2438
  return i ? { "aria-label": o } : { tooltip: o };
@@ -2456,87 +2443,87 @@ function Ms({
2456
2443
  showExtensionGroups: i,
2457
2444
  extensionPending: c,
2458
2445
  extensionSession: s,
2459
- extensionError: g,
2460
- openExtension: m,
2461
- closeExtension: f,
2462
- saveSelection: d,
2463
- closeSignal: v,
2464
- restoreFocusOnCloseRef: w
2446
+ extensionError: f,
2447
+ openExtension: u,
2448
+ closeExtension: m,
2449
+ saveSelection: h,
2450
+ closeSignal: y,
2451
+ restoreFocusOnCloseRef: k
2465
2452
  }) {
2466
- const { t: k } = ne(), [L, T] = E(!1), I = A(null), B = A(!1);
2467
- return _(() => {
2468
- T(!1);
2469
- }, [v]), _(() => {
2470
- B.current && !s && (B.current = !1, w.current && window.requestAnimationFrame(() => {
2453
+ const { t: w } = ne(), [_, E] = N(!1), S = A(null), q = A(!1);
2454
+ return L(() => {
2455
+ E(!1);
2456
+ }, [y]), L(() => {
2457
+ q.current && !s && (q.current = !1, k.current && window.requestAnimationFrame(() => {
2471
2458
  var b;
2472
- return (b = I.current) == null ? void 0 : b.focus();
2459
+ return (b = S.current) == null ? void 0 : b.focus();
2473
2460
  }));
2474
- }, [s, w]), /* @__PURE__ */ C(
2475
- te.Root,
2461
+ }, [s, k]), /* @__PURE__ */ C(
2462
+ X.Root,
2476
2463
  {
2477
- open: L,
2464
+ open: _,
2478
2465
  onOpenChange: (b) => {
2479
- b ? (d(), T(!0)) : (T(!1), c && f());
2466
+ b ? (h(), E(!0)) : (E(!1), c && m());
2480
2467
  },
2481
2468
  children: [
2482
- /* @__PURE__ */ t(te.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
2469
+ /* @__PURE__ */ t(X.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
2483
2470
  j,
2484
2471
  {
2485
- ref: I,
2472
+ ref: S,
2486
2473
  "data-component-part": "extensions-trigger",
2487
2474
  size: "sm",
2488
2475
  intent: "ghost",
2489
2476
  icon: /* @__PURE__ */ t(Ln, {}),
2490
- "aria-label": k("editor.extensions"),
2491
- onPointerDown: () => d()
2477
+ "aria-label": w("editor.extensions"),
2478
+ onPointerDown: () => h()
2492
2479
  }
2493
2480
  ) }),
2494
2481
  /* @__PURE__ */ t(
2495
- te.Content,
2482
+ X.Content,
2496
2483
  {
2497
2484
  align: "end",
2498
2485
  onCloseAutoFocus: (b) => {
2499
- (s == null ? void 0 : s.extension.kind) === "panel" && !g && b.preventDefault();
2486
+ (s == null ? void 0 : s.extension.kind) === "panel" && !f && b.preventDefault();
2500
2487
  },
2501
2488
  children: o.map(
2502
- (b, u) => b.length > 0 ? /* @__PURE__ */ C(ft, { children: [
2503
- i ? /* @__PURE__ */ t(te.Label, { children: k(
2504
- u === 0 ? "editor.extensionsKit" : "editor.extensionsMarketplace"
2489
+ (b, d) => b.length > 0 ? /* @__PURE__ */ C(ft, { children: [
2490
+ i ? /* @__PURE__ */ t(X.Label, { children: w(
2491
+ d === 0 ? "editor.extensionsKit" : "editor.extensionsMarketplace"
2505
2492
  ) }) : null,
2506
- b.map((h) => {
2493
+ b.map((g) => {
2507
2494
  var z;
2508
2495
  return /* @__PURE__ */ C(
2509
- te.Item,
2496
+ X.Item,
2510
2497
  {
2511
- "data-extension-id": h.id,
2512
- disabled: c && (s == null ? void 0 : s.extension.id) !== h.id,
2513
- "aria-busy": c && (s == null ? void 0 : s.extension.id) === h.id || void 0,
2498
+ "data-extension-id": g.id,
2499
+ disabled: c && (s == null ? void 0 : s.extension.id) !== g.id,
2500
+ "aria-busy": c && (s == null ? void 0 : s.extension.id) === g.id || void 0,
2514
2501
  onSelect: (M) => {
2515
- h.kind === "action" && M.preventDefault(), B.current = !0, m(h);
2502
+ g.kind === "action" && M.preventDefault(), q.current = !0, u(g);
2516
2503
  },
2517
2504
  children: [
2518
- c && (s == null ? void 0 : s.extension.id) === h.id ? /* @__PURE__ */ t(On, { size: "sm" }) : h.icon ?? /* @__PURE__ */ t(Ln, {}),
2505
+ c && (s == null ? void 0 : s.extension.id) === g.id ? /* @__PURE__ */ t(On, { size: "sm" }) : g.icon ?? /* @__PURE__ */ t(Ln, {}),
2519
2506
  /* @__PURE__ */ C("span", { className: "ds:flex ds:min-w-0 ds:flex-col ds:text-start", children: [
2520
- /* @__PURE__ */ t("span", { children: Vr(k, h.label) }),
2521
- h.description ? /* @__PURE__ */ t("span", { className: "type-meta ds:text-muted-foreground", children: h.description }) : null,
2522
- ((z = h.source) == null ? void 0 : z.kind) === "marketplace" ? /* @__PURE__ */ C("span", { className: "type-meta ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-muted-foreground", children: [
2523
- h.source.appIconUrl ? /* @__PURE__ */ t(
2507
+ /* @__PURE__ */ t("span", { children: Vr(w, g.label) }),
2508
+ g.description ? /* @__PURE__ */ t("span", { className: "type-meta ds:text-muted-foreground", children: g.description }) : null,
2509
+ ((z = g.source) == null ? void 0 : z.kind) === "marketplace" ? /* @__PURE__ */ C("span", { className: "type-meta ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-muted-foreground", children: [
2510
+ g.source.appIconUrl ? /* @__PURE__ */ t(
2524
2511
  "img",
2525
2512
  {
2526
- src: h.source.appIconUrl,
2513
+ src: g.source.appIconUrl,
2527
2514
  alt: "",
2528
2515
  className: "ds:size-[var(--spacing-md)]"
2529
2516
  }
2530
2517
  ) : null,
2531
- h.source.appName
2518
+ g.source.appName
2532
2519
  ] }) : null
2533
2520
  ] })
2534
2521
  ]
2535
2522
  },
2536
- h.id
2523
+ g.id
2537
2524
  );
2538
2525
  })
2539
- ] }, Jr[u]) : null
2526
+ ] }, Jr[d]) : null
2540
2527
  )
2541
2528
  }
2542
2529
  )
@@ -2550,72 +2537,72 @@ const Rs = Wo(
2550
2537
  defaultValue: i,
2551
2538
  value: c,
2552
2539
  onChange: s,
2553
- toolbar: g = "standard",
2554
- placeholder: m,
2555
- readOnly: f = !1,
2556
- ariaLabel: d,
2557
- minHeight: v,
2558
- showExtensions: w,
2559
- extensions: k,
2560
- extensionContext: L,
2561
- onExtensionRun: T,
2562
- className: I,
2563
- redactor: B,
2540
+ toolbar: f = "standard",
2541
+ placeholder: u,
2542
+ readOnly: m = !1,
2543
+ ariaLabel: h,
2544
+ minHeight: y,
2545
+ showExtensions: k,
2546
+ extensions: w,
2547
+ extensionContext: _,
2548
+ onExtensionRun: E,
2549
+ className: S,
2550
+ redactor: q,
2564
2551
  options: b,
2565
- plugins: u,
2566
- lang: h,
2552
+ plugins: d,
2553
+ lang: g,
2567
2554
  imageUploadUrl: z,
2568
2555
  onUploadImage: M,
2569
- onKeyDown: q,
2556
+ onKeyDown: B,
2570
2557
  onRequestAiDraft: V,
2571
2558
  aiDraftFormat: $ = "html",
2572
2559
  aiPrivacyNotice: P,
2573
- aiConsent: N,
2574
- aiConsentHeadingLevel: X,
2560
+ aiConsent: T,
2561
+ aiConsentHeadingLevel: U,
2575
2562
  onDictate: F,
2576
- onProofread: Z,
2563
+ onProofread: Q,
2577
2564
  onAutoFormat: pe,
2578
- aiTemplates: Q,
2579
- onAiApplied: Me,
2565
+ aiTemplates: Y,
2566
+ onAiApplied: Ne,
2580
2567
  aiSparkle: G = !0,
2581
2568
  selectionToolbar: re,
2582
2569
  variables: R,
2583
2570
  recentVariableTokens: K,
2584
- onVariableInserted: Y,
2571
+ onVariableInserted: J,
2585
2572
  validateVariable: se,
2586
2573
  onVariableValidityChange: tn,
2587
2574
  renderHelpMeWrite: qe,
2588
2575
  onAiCreditsExhausted: nn,
2589
2576
  aiCreditsNotice: Ie
2590
2577
  }, eo) => {
2591
- var Er, Tr;
2578
+ var Tr, Nr;
2592
2579
  const { t: O, i18n: to } = ne(), Pn = Oe(), tt = Je(
2593
2580
  () => `rte-${Pn.replace(/[^a-zA-Z0-9-_]/g, "")}`,
2594
2581
  [Pn]
2595
- ), D = `#${tt}`, J = A(null), oe = A(null), rn = A(!1), Et = A(f), W = A(null), gt = A(null), [ue, Fn] = E(!1), [ht, $e] = E(!1), [be, jn] = E(null), [on, Gn] = E(!1), [an, sn] = E(!1), pt = A(null), Tt = A(T);
2596
- Tt.current = T;
2597
- const Be = A(null), [no, ro] = E(0), Kn = A(!0), ln = y((e = !0) => {
2582
+ ), D = `#${tt}`, ee = A(null), oe = A(null), rn = A(!1), Tt = A(m), W = A(null), ht = A(null), [ue, Fn] = N(!1), [gt, $e] = N(!1), [be, jn] = N(null), [on, Gn] = N(!1), [an, sn] = N(!1), pt = A(null), Nt = A(E);
2583
+ Nt.current = E;
2584
+ const Be = A(null), [no, ro] = N(0), Kn = A(!0), ln = v((e = !0) => {
2598
2585
  Kn.current = e, ro((n) => n + 1);
2599
- }, []), cn = y(() => {
2586
+ }, []), cn = v(() => {
2600
2587
  var e, n;
2601
2588
  (e = pt.current) == null || e.abort(), pt.current = null, (n = Be.current) == null || n.call(Be, { status: "aborted" }), jn(null), sn(!1), Gn(!1);
2602
- }, []), Re = y(
2589
+ }, []), Me = v(
2603
2590
  (e = !0) => {
2604
2591
  cn(), ln(e);
2605
2592
  },
2606
2593
  [cn, ln]
2607
2594
  );
2608
- _(
2595
+ L(
2609
2596
  () => () => {
2610
2597
  var e, n;
2611
2598
  (e = pt.current) == null || e.abort(), (n = Be.current) == null || n.call(Be, { status: "aborted" });
2612
2599
  },
2613
2600
  []
2614
2601
  );
2615
- const [oo, ao] = E(""), [io, so] = E(
2602
+ const [oo, ao] = N(""), [io, so] = N(
2616
2603
  "document"
2617
- ), [lo, dn] = E(!1), Pe = A(nn), un = A(qe);
2618
- _(() => {
2604
+ ), [lo, dn] = N(!1), Pe = A(nn), un = A(qe);
2605
+ L(() => {
2619
2606
  Pe.current = nn, un.current = qe;
2620
2607
  }, [nn, qe]);
2621
2608
  const Mt = A(null), me = Je(
@@ -2631,40 +2618,40 @@ const Rs = Wo(
2631
2618
  ),
2632
2619
  [R]
2633
2620
  ), nt = A(me);
2634
- _(() => {
2621
+ L(() => {
2635
2622
  nt.current = me;
2636
2623
  }, [me]);
2637
2624
  const Wn = Je(
2638
2625
  () => (R ?? []).filter((e) => Mn.test(e.token)),
2639
2626
  [R]
2640
2627
  ), mn = A(se);
2641
- _(() => {
2628
+ L(() => {
2642
2629
  mn.current = se;
2643
2630
  }, [se]);
2644
- const fn = se !== void 0, gn = y(
2631
+ const fn = se !== void 0, hn = v(
2645
2632
  (e) => fn && mn.current ? mn.current(e) : me.has(e.toLowerCase()),
2646
2633
  [fn, me]
2647
- ), rt = me.size > 0 || fn, [ot, Xn] = E([]), Fe = A(tn);
2648
- _(() => {
2634
+ ), rt = me.size > 0 || fn, [ot, Xn] = N([]), Fe = A(tn);
2635
+ L(() => {
2649
2636
  Fe.current = tn;
2650
2637
  }, [tn]);
2651
- const ze = A(() => {
2652
- }), [hn, co] = E(
2638
+ const Re = A(() => {
2639
+ }), [gn, co] = N(
2653
2640
  () => /* @__PURE__ */ new Set()
2654
- ), Rt = A(null), [uo, mo] = E(
2641
+ ), Rt = A(null), [uo, mo] = N(
2655
2642
  null
2656
- ), zt = y((e) => {
2643
+ ), zt = v((e) => {
2657
2644
  Rt.current = e, mo(e);
2658
- }, []), bt = A(null), _t = A(null), fe = A(s), St = A(q);
2659
- _(() => {
2660
- fe.current = s, St.current = q;
2661
- }, [s, q]);
2645
+ }, []), bt = A(null), _t = A(null), fe = A(s), St = A(B);
2646
+ L(() => {
2647
+ fe.current = s, St.current = B;
2648
+ }, [s, B]);
2662
2649
  const fo = A(
2663
2650
  (() => {
2664
2651
  const e = c ?? i ?? "";
2665
2652
  return e ? xe(e) : "";
2666
2653
  })()
2667
- ), le = y(() => {
2654
+ ), le = v(() => {
2668
2655
  var n;
2669
2656
  const e = oe.current;
2670
2657
  if (e)
@@ -2673,10 +2660,10 @@ const Rs = Wo(
2673
2660
  if (typeof r == "string") return Or(r);
2674
2661
  } catch {
2675
2662
  }
2676
- return ((n = J.current) == null ? void 0 : n.value) ?? "";
2663
+ return ((n = ee.current) == null ? void 0 : n.value) ?? "";
2677
2664
  }, [D]);
2678
- _(() => {
2679
- ze.current = () => {
2665
+ L(() => {
2666
+ Re.current = () => {
2680
2667
  var r;
2681
2668
  if (!rt) {
2682
2669
  Xn((a) => a.length ? [] : a);
@@ -2686,41 +2673,41 @@ const Rs = Wo(
2686
2673
  e == null || e.querySelectorAll('[data-redactor-type="variable"]').forEach((a) => {
2687
2674
  const l = /^\[\[([A-Za-z0-9_]+)\]\]$/.exec(
2688
2675
  a.textContent ?? ""
2689
- ), p = !l || !gn(l[1]);
2676
+ ), p = !l || !hn(l[1]);
2690
2677
  a.classList.contains($n) !== p && a.classList.toggle($n, p);
2691
2678
  const x = l ? Vn.get(l[1].toLowerCase()) ?? l[1] : a.textContent ?? "";
2692
2679
  a.getAttribute("data-label") !== x && a.setAttribute("data-label", x);
2693
- const S = a.textContent ?? "";
2694
- a.getAttribute("title") !== S && a.setAttribute("title", S);
2680
+ const H = a.textContent ?? "";
2681
+ a.getAttribute("title") !== H && a.setAttribute("title", H);
2695
2682
  });
2696
2683
  const n = Array.from(
2697
2684
  new Set(
2698
2685
  us(le()).filter(
2699
- (a) => !gn(a)
2686
+ (a) => !hn(a)
2700
2687
  )
2701
2688
  )
2702
2689
  );
2703
2690
  Xn(
2704
2691
  (a) => a.length === n.length && a.every((l, p) => l === n[p]) ? a : n
2705
2692
  );
2706
- }, ze.current();
2707
- }, [rt, gn, Vn, le]), _(() => {
2693
+ }, Re.current();
2694
+ }, [rt, hn, Vn, le]), L(() => {
2708
2695
  var r;
2709
- const n = ((r = W.current) == null ? void 0 : r.querySelector(".redactor-in")) ?? J.current;
2696
+ const n = ((r = W.current) == null ? void 0 : r.querySelector(".redactor-in")) ?? ee.current;
2710
2697
  n && (ot.length > 0 ? (n.setAttribute("aria-invalid", "true"), n.setAttribute("aria-describedby", `${tt}-variables-error`)) : (n.removeAttribute("aria-invalid"), n.removeAttribute("aria-describedby")));
2711
2698
  }, [ot, tt, ue]);
2712
2699
  const pn = A(!1);
2713
- _(() => {
2700
+ L(() => {
2714
2701
  var e, n;
2715
2702
  rt ? (pn.current = !0, (e = Fe.current) == null || e.call(Fe, ot)) : pn.current && (pn.current = !1, (n = Fe.current) == null || n.call(Fe, []));
2716
- }, [ot, rt]), _(() => {
2717
- se && ze.current();
2703
+ }, [ot, rt]), L(() => {
2704
+ se && Re.current();
2718
2705
  }, [se]);
2719
- const ce = y(
2706
+ const ce = v(
2720
2707
  (e, ...n) => {
2721
2708
  const r = oe.current;
2722
2709
  if (!r) return !1;
2723
- const a = Et.current;
2710
+ const a = Tt.current;
2724
2711
  if (a)
2725
2712
  try {
2726
2713
  r(D, "disableReadOnly");
@@ -2739,24 +2726,24 @@ const Rs = Wo(
2739
2726
  }
2740
2727
  },
2741
2728
  [D]
2742
- ), de = y(
2729
+ ), de = v(
2743
2730
  (e, n) => {
2744
- var ge;
2731
+ var he;
2745
2732
  const r = (n == null ? void 0 : n.asHtml) ?? !0, a = r ? xe(e) : e;
2746
2733
  if (ce(r ? "insertion.insertHtml" : "insertion.insertText", a)) return;
2747
- const p = J.current;
2734
+ const p = ee.current;
2748
2735
  if (!p) return;
2749
- const x = p.selectionStart ?? p.value.length, S = p.selectionEnd ?? p.value.length;
2750
- p.value = p.value.slice(0, x) + a + p.value.slice(S);
2751
- const U = x + a.length;
2736
+ const x = p.selectionStart ?? p.value.length, H = p.selectionEnd ?? p.value.length;
2737
+ p.value = p.value.slice(0, x) + a + p.value.slice(H);
2738
+ const Z = x + a.length;
2752
2739
  try {
2753
- p.setSelectionRange(U, U);
2740
+ p.setSelectionRange(Z, Z);
2754
2741
  } catch {
2755
2742
  }
2756
- (ge = fe.current) == null || ge.call(fe, { html: xe(p.value), markdown: "" });
2743
+ (he = fe.current) == null || he.call(fe, { html: xe(p.value), markdown: "" });
2757
2744
  },
2758
2745
  [ce]
2759
- ), ve = A(null), ye = y(() => {
2746
+ ), ve = A(null), ye = v(() => {
2760
2747
  var a;
2761
2748
  const e = (a = W.current) == null ? void 0 : a.querySelector(".redactor-in"), n = typeof window < "u" ? window.getSelection() : null, r = /* @__PURE__ */ new Set();
2762
2749
  if (e && n && n.anchorNode && e.contains(n.anchorNode) && typeof document.queryCommandState == "function") {
@@ -2775,13 +2762,13 @@ const Rs = Wo(
2775
2762
  co(
2776
2763
  (l) => l.size === r.size && [...r].every((p) => l.has(p)) ? l : r
2777
2764
  );
2778
- }, []), je = y(
2765
+ }, []), je = v(
2779
2766
  (e, ...n) => {
2780
2767
  ce(e, ...n), typeof window < "u" ? window.requestAnimationFrame(() => ye()) : ye();
2781
2768
  },
2782
2769
  [ce, ye]
2783
2770
  );
2784
- _(() => {
2771
+ L(() => {
2785
2772
  const e = W.current;
2786
2773
  if (!e) return;
2787
2774
  const n = {
@@ -2793,68 +2780,68 @@ const Rs = Wo(
2793
2780
  const l = n[a.key.toLowerCase()];
2794
2781
  if (!l) return;
2795
2782
  const p = e.querySelector(".redactor-in");
2796
- !p || !(a.target instanceof Node) || !p.contains(a.target) || Et.current || (a.preventDefault(), a.stopImmediatePropagation(), je(...l));
2783
+ !p || !(a.target instanceof Node) || !p.contains(a.target) || Tt.current || (a.preventDefault(), a.stopImmediatePropagation(), je(...l));
2797
2784
  };
2798
2785
  return e.addEventListener("keydown", r, !0), () => e.removeEventListener("keydown", r, !0);
2799
2786
  }, [je]);
2800
- const Ge = y(
2787
+ const Ge = v(
2801
2788
  (e) => {
2802
2789
  de(e, { asHtml: !0 }), typeof window < "u" && window.requestAnimationFrame(() => ye());
2803
2790
  },
2804
2791
  [de, ye]
2805
- ), [at, bn] = E(null), Lt = A(null), vn = `${tt}-variables`, Un = A(null), [yn, go] = E(void 0), Ce = y(() => {
2792
+ ), [at, bn] = N(null), Lt = A(null), vn = `${tt}-variables`, Un = A(null), [yn, ho] = N(void 0), Ce = v(() => {
2806
2793
  Lt.current = null, bn(null);
2807
- }, []), Ht = y(
2794
+ }, []), Ht = v(
2808
2795
  (e, n) => {
2809
2796
  const r = window.getSelection();
2810
2797
  if (!r) return;
2811
2798
  const a = document.createRange();
2812
- a.setStart(n.node, n.start), a.setEnd(n.node, n.end), r.removeAllRanges(), r.addRange(a), Ge(Fr(e)), window.requestAnimationFrame(() => ze.current());
2799
+ a.setStart(n.node, n.start), a.setEnd(n.node, n.end), r.removeAllRanges(), r.addRange(a), Ge(Fr(e)), window.requestAnimationFrame(() => Re.current());
2813
2800
  },
2814
2801
  [Ge]
2815
2802
  );
2816
- _(() => {
2803
+ L(() => {
2817
2804
  const e = W.current;
2818
2805
  if (!e || !rt) return;
2819
2806
  const n = () => {
2820
- var He;
2807
+ var Le;
2821
2808
  const l = e.querySelector(".redactor-in"), p = window.getSelection();
2822
2809
  if (!l || !p || p.rangeCount === 0 || !p.isCollapsed) {
2823
2810
  Ce();
2824
2811
  return;
2825
2812
  }
2826
- const { startContainer: x, startOffset: S } = p.getRangeAt(0);
2827
- if (x.nodeType !== Node.TEXT_NODE || !l.contains(x) || (((He = x.parentElement) == null ? void 0 : He.closest(
2813
+ const { startContainer: x, startOffset: H } = p.getRangeAt(0);
2814
+ if (x.nodeType !== Node.TEXT_NODE || !l.contains(x) || (((Le = x.parentElement) == null ? void 0 : Le.closest(
2828
2815
  '[data-redactor-type="variable"]'
2829
2816
  )) ?? null) !== null) {
2830
2817
  Ce();
2831
2818
  return;
2832
2819
  }
2833
- const U = x, ge = U.data.slice(0, S), Ne = /\[\[([A-Za-z0-9_]+)\]\]$/.exec(ge);
2834
- if (Ne) {
2820
+ const Z = x, he = Z.data.slice(0, H), Ee = /\[\[([A-Za-z0-9_]+)\]\]$/.exec(he);
2821
+ if (Ee) {
2835
2822
  Ce(), Ht(
2836
- me.get(Ne[1].toLowerCase()) ?? Ne[1],
2837
- { node: U, start: S - Ne[0].length, end: S }
2823
+ me.get(Ee[1].toLowerCase()) ?? Ee[1],
2824
+ { node: Z, start: H - Ee[0].length, end: H }
2838
2825
  );
2839
2826
  return;
2840
2827
  }
2841
- const ct = /\[\[([A-Za-z0-9_ ]{0,40})$/.exec(ge), ae = gt.current;
2828
+ const ct = /\[\[([A-Za-z0-9_ ]{0,40})$/.exec(he), ae = ht.current;
2842
2829
  if (!ct || !ae || (R ?? []).length === 0) {
2843
2830
  Ce();
2844
2831
  return;
2845
2832
  }
2846
- const Le = {
2847
- node: U,
2848
- start: S - ct[0].length,
2849
- end: S
2833
+ const Se = {
2834
+ node: Z,
2835
+ start: H - ct[0].length,
2836
+ end: H
2850
2837
  };
2851
- Lt.current = Le;
2838
+ Lt.current = Se;
2852
2839
  const dt = document.createRange();
2853
- dt.setStart(U, Le.start), dt.setEnd(U, Le.end);
2854
- const Ye = dt.getBoundingClientRect(), xt = ae.getBoundingClientRect(), En = getComputedStyle(ae).direction === "rtl";
2840
+ dt.setStart(Z, Se.start), dt.setEnd(Z, Se.end);
2841
+ const Ye = dt.getBoundingClientRect(), xt = ae.getBoundingClientRect(), Tn = getComputedStyle(ae).direction === "rtl";
2855
2842
  bn({
2856
2843
  query: ct[1],
2857
- left: En ? xt.right - Ye.right : Ye.left - xt.left,
2844
+ left: Tn ? xt.right - Ye.right : Ye.left - xt.left,
2858
2845
  top: Ye.bottom - xt.top + 4
2859
2846
  });
2860
2847
  }, r = (l) => {
@@ -2874,22 +2861,22 @@ const Rs = Wo(
2874
2861
  R,
2875
2862
  Ht,
2876
2863
  Ce
2877
- ]), _(() => {
2864
+ ]), L(() => {
2878
2865
  var n;
2879
2866
  const e = (n = W.current) == null ? void 0 : n.querySelector(".redactor-in");
2880
2867
  e && (at ? (e.setAttribute("aria-expanded", "true"), e.setAttribute("aria-controls", `${vn}-list`), yn ? e.setAttribute("aria-activedescendant", yn) : e.removeAttribute("aria-activedescendant")) : (e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls"), e.removeAttribute("aria-activedescendant")));
2881
2868
  }, [at, vn, yn]);
2882
- const ho = y(
2869
+ const go = v(
2883
2870
  (e) => {
2884
2871
  const n = Lt.current;
2885
- Ce(), n && Ht(e.token, n), Y == null || Y(e.token);
2872
+ Ce(), n && Ht(e.token, n), J == null || J(e.token);
2886
2873
  },
2887
- [Ce, Ht, Y]
2888
- ), po = y(() => {
2874
+ [Ce, Ht, J]
2875
+ ), po = v(() => {
2889
2876
  Ce();
2890
- }, [Ce]), bo = y((e) => {
2877
+ }, [Ce]), bo = v((e) => {
2891
2878
  bn((n) => n && { ...n, query: e });
2892
- }, []), it = y(() => {
2879
+ }, []), it = v(() => {
2893
2880
  var n;
2894
2881
  if (typeof window < "u") {
2895
2882
  const r = (n = W.current) == null ? void 0 : n.querySelector(".redactor-in"), a = window.getSelection();
@@ -2901,7 +2888,7 @@ const Rs = Wo(
2901
2888
  e(D, "selection.save");
2902
2889
  } catch {
2903
2890
  }
2904
- }, [D]), he = y(() => {
2891
+ }, [D]), ge = v(() => {
2905
2892
  const e = oe.current;
2906
2893
  if (!e) return;
2907
2894
  const n = ve.current;
@@ -2922,28 +2909,28 @@ const Rs = Wo(
2922
2909
  e(D, "selection.restore");
2923
2910
  } catch {
2924
2911
  }
2925
- }, [D]), vo = y(() => {
2912
+ }, [D]), vo = v(() => {
2926
2913
  var r;
2927
2914
  if (typeof window > "u") return "";
2928
2915
  const e = (r = W.current) == null ? void 0 : r.querySelector(".redactor-in"), n = window.getSelection();
2929
2916
  return !e || !n || !n.anchorNode || !e.contains(n.anchorNode) ? "" : n.toString();
2930
- }, []), yo = y(() => {
2917
+ }, []), yo = v(() => {
2931
2918
  var l;
2932
2919
  if (typeof window > "u") return null;
2933
2920
  const e = (l = W.current) == null ? void 0 : l.querySelector(".redactor-in"), n = window.getSelection();
2934
2921
  if (!e || !n || n.rangeCount === 0) return null;
2935
2922
  const r = n.anchorNode, a = r && r.nodeType === Node.TEXT_NODE ? r.parentElement : r;
2936
2923
  return !a || !e.contains(a) ? null : a.closest("table");
2937
- }, []), Zn = A(null), It = y(() => {
2924
+ }, []), Zn = A(null), It = v(() => {
2938
2925
  var l;
2939
2926
  if (typeof window > "u") return null;
2940
2927
  const e = (l = W.current) == null ? void 0 : l.querySelector(".redactor-in"), n = window.getSelection();
2941
2928
  if (!e || !n || n.rangeCount === 0) return null;
2942
2929
  const r = n.anchorNode, a = r && r.nodeType === Node.TEXT_NODE ? r.parentElement : r;
2943
2930
  return !a || !e.contains(a) ? null : a.closest("td,th");
2944
- }, []), wo = y(() => {
2931
+ }, []), wo = v(() => {
2945
2932
  Zn.current = It();
2946
- }, [It]), ko = y(
2933
+ }, [It]), ko = v(
2947
2934
  (e, n) => {
2948
2935
  var p;
2949
2936
  const r = Zn.current ?? It();
@@ -2967,15 +2954,15 @@ const Rs = Wo(
2967
2954
  },
2968
2955
  [It, D, ye]
2969
2956
  );
2970
- _(() => {
2957
+ L(() => {
2971
2958
  const e = W.current;
2972
2959
  if (typeof window > "u" || !e) return;
2973
2960
  const n = (l) => {
2974
2961
  const p = e.querySelector(".redactor-in"), x = l.target;
2975
2962
  if (!p || !(x instanceof Node) || !p.contains(x))
2976
2963
  return;
2977
- const S = x instanceof Element ? x.closest("img") : null;
2978
- zt(S && p.contains(S) ? S : null);
2964
+ const H = x instanceof Element ? x.closest("img") : null;
2965
+ zt(H && p.contains(H) ? H : null);
2979
2966
  }, r = (l) => {
2980
2967
  l.key === "Escape" && Rt.current && zt(null);
2981
2968
  }, a = (l) => {
@@ -2986,7 +2973,7 @@ const Rs = Wo(
2986
2973
  e.removeEventListener("click", n), e.removeEventListener("keydown", r), e.removeEventListener("focusout", a);
2987
2974
  };
2988
2975
  }, [zt]);
2989
- const xo = y(
2976
+ const xo = v(
2990
2977
  (e) => {
2991
2978
  const n = Rt.current;
2992
2979
  if (!n) return;
@@ -3007,7 +2994,7 @@ const Rs = Wo(
3007
2994
  typeof window < "u" && window.requestAnimationFrame(() => ye());
3008
2995
  },
3009
2996
  [D, ye]
3010
- ), Co = y(
2997
+ ), Co = v(
3011
2998
  (e) => {
3012
2999
  const n = Rt.current;
3013
3000
  if (!n) return;
@@ -3025,15 +3012,15 @@ const Rs = Wo(
3025
3012
  typeof window < "u" && window.requestAnimationFrame(() => ye());
3026
3013
  },
3027
3014
  [D, ye]
3028
- ), Ao = y(
3015
+ ), Ao = v(
3029
3016
  (e) => {
3030
3017
  var r;
3031
3018
  const n = oe.current;
3032
3019
  if (n && typeof window < "u") {
3033
- const a = (r = W.current) == null ? void 0 : r.querySelector(".redactor-in"), l = window.getSelection(), p = l == null ? void 0 : l.anchorNode, x = p && p.nodeType === Node.TEXT_NODE ? p.parentElement : p, S = x && (a != null && a.contains(x)) ? x.closest("ul,ol") : null;
3034
- if (S)
3020
+ const a = (r = W.current) == null ? void 0 : r.querySelector(".redactor-in"), l = window.getSelection(), p = l == null ? void 0 : l.anchorNode, x = p && p.nodeType === Node.TEXT_NODE ? p.parentElement : p, H = x && (a != null && a.contains(x)) ? x.closest("ul,ol") : null;
3021
+ if (H)
3035
3022
  try {
3036
- n(D, "caret.setAfter", S);
3023
+ n(D, "caret.setAfter", H);
3037
3024
  } catch {
3038
3025
  }
3039
3026
  }
@@ -3043,14 +3030,14 @@ const Rs = Wo(
3043
3030
  a == null || a.querySelectorAll("table td, table th").forEach((p) => {
3044
3031
  let x = p.lastChild;
3045
3032
  for (; x && x.nodeType === Node.TEXT_NODE && !(x.textContent ?? "").trim(); ) {
3046
- const S = x.previousSibling;
3047
- p.removeChild(x), x = S;
3033
+ const H = x.previousSibling;
3034
+ p.removeChild(x), x = H;
3048
3035
  }
3049
3036
  });
3050
3037
  });
3051
3038
  },
3052
3039
  [Ge, D]
3053
- ), Qn = y(
3040
+ ), Qn = v(
3054
3041
  async (e, n) => {
3055
3042
  if (M) return M(e, n);
3056
3043
  if (!z) throw new Error("No image upload URL configured.");
@@ -3070,12 +3057,12 @@ const Rs = Wo(
3070
3057
  [z, M]
3071
3058
  ), Ke = Yo({ enabled: G }), {
3072
3059
  start: st,
3073
- land: _e,
3060
+ land: ze,
3074
3061
  reset: lt
3075
- } = Ke, vt = A(null), $t = A(null), [we, Yn] = E(!1), [No, Jn] = E(!1), [Eo, Dt] = E(""), Ot = y(() => {
3062
+ } = Ke, vt = A(null), $t = A(null), [we, Yn] = N(!1), [Eo, Jn] = N(!1), [To, Dt] = N(""), Ot = v(() => {
3076
3063
  const e = $t.current;
3077
3064
  e != null && e.parentNode && e.parentNode.removeChild(e), $t.current = null;
3078
- }, []), er = y((e) => {
3065
+ }, []), er = v((e) => {
3079
3066
  var a;
3080
3067
  const n = (a = W.current) == null ? void 0 : a.querySelector(
3081
3068
  ".redactor-in"
@@ -3093,10 +3080,10 @@ const Rs = Wo(
3093
3080
  $t.current = r;
3094
3081
  }
3095
3082
  r.textContent = e;
3096
- }, []), qt = y(() => {
3083
+ }, []), qt = v(() => {
3097
3084
  var e;
3098
3085
  (e = vt.current) == null || e.abort();
3099
- }, []), tr = y(() => {
3086
+ }, []), tr = v(() => {
3100
3087
  var p;
3101
3088
  if (typeof window > "u") return !1;
3102
3089
  const e = window.getSelection(), n = (p = W.current) == null ? void 0 : p.querySelector(".redactor-in");
@@ -3106,7 +3093,7 @@ const Rs = Wo(
3106
3093
  return !1;
3107
3094
  const l = r.data.charAt(a - 1);
3108
3095
  return /\S/.test(l) && l !== " ";
3109
- }, []), ke = N !== void 0 && !N.granted, wn = A(null), Bt = y(() => {
3096
+ }, []), ke = T !== void 0 && !T.granted, wn = A(null), Bt = v(() => {
3110
3097
  if (!F || ke) return;
3111
3098
  const e = new AbortController();
3112
3099
  vt.current = e, Jn(!1), Yn(!0), Dt(O("editor.ai.listening")), G && st(), Ot(), F({
@@ -3123,11 +3110,11 @@ const Rs = Wo(
3123
3110
  if (r) {
3124
3111
  const a = wn.current;
3125
3112
  if (a) {
3126
- wn.current = null, ve.current = a, he(), de(`${r} `, { asHtml: !1 }), G && _e(), Dt(r);
3113
+ wn.current = null, ve.current = a, ge(), de(`${r} `, { asHtml: !1 }), G && ze(), Dt(r);
3127
3114
  return;
3128
3115
  }
3129
3116
  const l = tr() ? " " : "";
3130
- de(`${l}${r} `, { asHtml: !1 }), G && _e(), Dt(r);
3117
+ de(`${l}${r} `, { asHtml: !1 }), G && ze(), Dt(r);
3131
3118
  }
3132
3119
  }
3133
3120
  }).catch((n) => {
@@ -3140,48 +3127,48 @@ const Rs = Wo(
3140
3127
  Jn(!0);
3141
3128
  }
3142
3129
  }).finally(() => {
3143
- Ot(), vt.current === e && (vt.current = null, Yn(!1), Dt(""), G && !Se.current && lt());
3130
+ Ot(), vt.current === e && (vt.current = null, Yn(!1), Dt(""), G && !_e.current && lt());
3144
3131
  });
3145
3132
  }, [
3146
3133
  F,
3147
3134
  ke,
3148
3135
  de,
3149
- he,
3136
+ ge,
3150
3137
  Ot,
3151
3138
  er,
3152
3139
  tr,
3153
3140
  G,
3154
3141
  st,
3155
- _e,
3142
+ ze,
3156
3143
  lt,
3157
3144
  O
3158
3145
  ]);
3159
- _(() => () => {
3146
+ L(() => () => {
3160
3147
  var e;
3161
3148
  return (e = vt.current) == null ? void 0 : e.abort();
3162
3149
  }, []);
3163
- const [Pt, yt] = E(null), Ve = A(null), Ft = A(null), [To, nr] = E(!1), Mo = ((N == null ? void 0 : N.pending) ?? !1) || To, jt = A(!1), kn = y(() => {
3150
+ const [Pt, yt] = N(null), Ve = A(null), Ft = A(null), [No, nr] = N(!1), Mo = ((T == null ? void 0 : T.pending) ?? !1) || No, jt = A(!1), kn = v(() => {
3164
3151
  Ve.current = null, Ft.current = null, jt.current = !1, yt(null);
3165
- }, []), Ro = y(() => {
3152
+ }, []), Ro = v(() => {
3166
3153
  var n;
3167
3154
  jt.current = !0;
3168
- const e = (n = N == null ? void 0 : N.onGrant) == null ? void 0 : n.call(N);
3155
+ const e = (n = T == null ? void 0 : T.onGrant) == null ? void 0 : n.call(T);
3169
3156
  e && typeof e.then == "function" && (nr(!0), Promise.resolve(e).catch(() => {
3170
3157
  }).finally(() => nr(!1)));
3171
- }, [N]), rr = A((N == null ? void 0 : N.granted) ?? !0);
3172
- _(() => {
3158
+ }, [T]), rr = A((T == null ? void 0 : T.granted) ?? !0);
3159
+ L(() => {
3173
3160
  const e = rr.current;
3174
- if (rr.current = (N == null ? void 0 : N.granted) ?? !0, !e && (N != null && N.granted) && Ve.current) {
3161
+ if (rr.current = (T == null ? void 0 : T.granted) ?? !0, !e && (T != null && T.granted) && Ve.current) {
3175
3162
  const n = Ve.current, r = jt.current;
3176
3163
  Ve.current = null, jt.current = !1, yt(null);
3177
3164
  const a = Ft.current;
3178
3165
  if (Ft.current = null, !r) return;
3179
- n === "write" ? $e(!0) : n === "action" ? a == null || a() : (he(), Bt());
3166
+ n === "write" ? $e(!0) : n === "action" ? a == null || a() : (ge(), Bt());
3180
3167
  }
3181
- }, [N == null ? void 0 : N.granted, he, Bt]), _(() => {
3168
+ }, [T == null ? void 0 : T.granted, ge, Bt]), L(() => {
3182
3169
  ke && ($e(!1), we && qt());
3183
3170
  }, [ke, we, qt]);
3184
- const or = y(
3171
+ const or = v(
3185
3172
  (e = "document") => {
3186
3173
  if (we) {
3187
3174
  qt();
@@ -3196,7 +3183,7 @@ const Rs = Wo(
3196
3183
  Bt();
3197
3184
  },
3198
3185
  [we, qt, ke, it, Bt]
3199
- ), ar = y(
3186
+ ), ar = v(
3200
3187
  (e = "document") => {
3201
3188
  it();
3202
3189
  const n = ve.current, r = n ? n.cloneRange() : null, a = e === "selection" && !!(r && !r.collapsed);
@@ -3207,22 +3194,22 @@ const Rs = Wo(
3207
3194
  $e(!0);
3208
3195
  },
3209
3196
  [it, ke]
3210
- ), ir = Je(() => N != null && N.granted ? /* @__PURE__ */ C(Ee, { children: [
3197
+ ), ir = Je(() => T != null && T.granted ? /* @__PURE__ */ C(He, { children: [
3211
3198
  O(
3212
3199
  "editor.ai.consentRecorded",
3213
3200
  "AI assistance consent has been recorded."
3214
3201
  ),
3215
- P ? /* @__PURE__ */ C(Ee, { children: [
3202
+ P ? /* @__PURE__ */ C(He, { children: [
3216
3203
  " ",
3217
3204
  P
3218
3205
  ] }) : null
3219
- ] }) : P, [N, P, O]), [We, xn] = E(null), [zo, Gt] = E(!1), [sr, lr] = E(!1), [_o, Xe] = E(""), cr = A(null), Se = A(null), Kt = A(Me);
3220
- _(() => {
3221
- Kt.current = Me;
3222
- }, [Me]), _(() => {
3206
+ ] }) : P, [T, P, O]), [We, xn] = N(null), [zo, Gt] = N(!1), [sr, lr] = N(!1), [_o, Xe] = N(""), cr = A(null), _e = A(null), Kt = A(Ne);
3207
+ L(() => {
3208
+ Kt.current = Ne;
3209
+ }, [Ne]), L(() => {
3223
3210
  G && (!we && We === null || Ke.state === null && st());
3224
3211
  }, [G, we, We, Ke.state, st]);
3225
- const wt = (e) => e.preventDefault(), dr = y(
3212
+ const wt = (e) => e.preventDefault(), dr = v(
3226
3213
  (e) => {
3227
3214
  var r;
3228
3215
  const n = oe.current;
@@ -3234,30 +3221,30 @@ const Rs = Wo(
3234
3221
  }
3235
3222
  },
3236
3223
  [D]
3237
- ), ur = A(!1), Ue = y(
3224
+ ), ur = A(!1), Ue = v(
3238
3225
  (e) => {
3239
3226
  const n = oe.current;
3240
3227
  if (!n || ur.current === e) return;
3241
3228
  ur.current = e;
3242
- const r = e || f;
3243
- Et.current = r;
3229
+ const r = e || m;
3230
+ Tt.current = r;
3244
3231
  try {
3245
3232
  n(D, r ? "enableReadOnly" : "disableReadOnly");
3246
3233
  } catch {
3247
3234
  }
3248
3235
  },
3249
- [D, f]
3250
- ), Cn = y(
3236
+ [D, m]
3237
+ ), Cn = v(
3251
3238
  (e) => {
3252
3239
  var r;
3253
3240
  const n = ut(
3254
3241
  xe(e),
3255
3242
  nt.current
3256
3243
  );
3257
- !ce("source.setCode", n) && J.current && (J.current.value = n), (r = fe.current) == null || r.call(fe, { html: n, markdown: "" });
3244
+ !ce("source.setCode", n) && ee.current && (ee.current.value = n), (r = fe.current) == null || r.call(fe, { html: n, markdown: "" });
3258
3245
  },
3259
3246
  [ce]
3260
- ), Ze = y(
3247
+ ), Ze = v(
3261
3248
  (e) => {
3262
3249
  var l;
3263
3250
  const n = (l = W.current) == null ? void 0 : l.querySelector(".redactor-in"), r = typeof window < "u" ? window.getSelection() : null;
@@ -3278,11 +3265,11 @@ const Rs = Wo(
3278
3265
  return { scope: "document", range: null, html: a, text: Br(a) };
3279
3266
  },
3280
3267
  [le]
3281
- ), An = y(
3268
+ ), An = v(
3282
3269
  (e, n, r, a) => {
3283
- if (Se.current || !r.text.trim()) return;
3270
+ if (_e.current || !r.text.trim()) return;
3284
3271
  const l = new AbortController();
3285
- Se.current = l, xn(e), lr(!1), cr.current = e, Xe(O("editor.ai.generating")), Gt(!1), G && st();
3272
+ _e.current = l, xn(e), lr(!1), cr.current = e, Xe(O("editor.ai.generating")), Gt(!1), G && st();
3286
3273
  const p = le();
3287
3274
  Ue(!0), Promise.resolve(
3288
3275
  n({
@@ -3292,15 +3279,15 @@ const Rs = Wo(
3292
3279
  signal: l.signal
3293
3280
  })
3294
3281
  ).then((x) => {
3295
- var U;
3282
+ var Z;
3296
3283
  if (l.signal.aborted) return;
3297
3284
  Ue(!1);
3298
- const S = String(x ?? "");
3285
+ const H = String(x ?? "");
3299
3286
  if (le() !== p) {
3300
3287
  lr(!0), Xe("");
3301
3288
  return;
3302
3289
  }
3303
- if (!Br(S)) {
3290
+ if (!Br(H)) {
3304
3291
  Gt(!0), Xe("");
3305
3292
  return;
3306
3293
  }
@@ -3309,15 +3296,15 @@ const Rs = Wo(
3309
3296
  Gt(!0), Xe("");
3310
3297
  return;
3311
3298
  }
3312
- ve.current = r.range, he();
3313
- const ge = ut(
3314
- xe(S),
3299
+ ve.current = r.range, ge();
3300
+ const he = ut(
3301
+ xe(H),
3315
3302
  nt.current
3316
3303
  );
3317
- ce("insertion.insertHtml", ge) || de(S, { asHtml: !0 });
3304
+ ce("insertion.insertHtml", he) || de(H, { asHtml: !0 });
3318
3305
  } else
3319
- Cn(S);
3320
- G && _e(), Xe(O("editor.ai.actionDone")), (U = Kt.current) == null || U.call(Kt, {
3306
+ Cn(H);
3307
+ G && ze(), Xe(O("editor.ai.actionDone")), (Z = Kt.current) == null || Z.call(Kt, {
3321
3308
  action: e,
3322
3309
  template: a,
3323
3310
  scope: r.scope,
@@ -3325,33 +3312,33 @@ const Rs = Wo(
3325
3312
  undo: () => Cn(p)
3326
3313
  });
3327
3314
  }).catch((x) => {
3328
- var S;
3315
+ var H;
3329
3316
  if (Ue(!1), !(l.signal.aborted || ms(x))) {
3330
- if (qr(x) && ((S = Pe.current) == null || S.call(Pe), un.current)) {
3317
+ if (qr(x) && ((H = Pe.current) == null || H.call(Pe), un.current)) {
3331
3318
  dn(!0), $e(!0);
3332
3319
  return;
3333
3320
  }
3334
3321
  Gt(!0), Xe("");
3335
3322
  }
3336
3323
  }).finally(() => {
3337
- Se.current === l && (Se.current = null, Ue(!1), xn(null), lt());
3324
+ _e.current === l && (_e.current = null, Ue(!1), xn(null), lt());
3338
3325
  });
3339
3326
  },
3340
3327
  [
3341
3328
  G,
3342
3329
  st,
3343
- _e,
3330
+ ze,
3344
3331
  lt,
3345
3332
  Ue,
3346
3333
  le,
3347
- he,
3334
+ ge,
3348
3335
  ce,
3349
3336
  de,
3350
3337
  Cn,
3351
3338
  dr,
3352
3339
  O
3353
3340
  ]
3354
- ), kt = y(
3341
+ ), kt = v(
3355
3342
  (e, n, r, a) => {
3356
3343
  if (ke) {
3357
3344
  Ft.current = () => An(e, n, r, a), Ve.current = "action", yt("action");
@@ -3360,9 +3347,9 @@ const Rs = Wo(
3360
3347
  An(e, n, r, a);
3361
3348
  },
3362
3349
  [ke, An]
3363
- ), mr = y(
3350
+ ), mr = v(
3364
3351
  (e, n) => {
3365
- const r = Q == null ? void 0 : Q.onRun;
3352
+ const r = Y == null ? void 0 : Y.onRun;
3366
3353
  r && kt(
3367
3354
  "template",
3368
3355
  (a) => r({ ...a, template: e }),
@@ -3370,40 +3357,40 @@ const Rs = Wo(
3370
3357
  e
3371
3358
  );
3372
3359
  },
3373
- [Q, kt]
3374
- ), fr = y(() => {
3360
+ [Y, kt]
3361
+ ), fr = v(() => {
3375
3362
  var e;
3376
- (e = Se.current) == null || e.abort(), Se.current = null, Ue(!1), xn(null), Xe(""), lt();
3377
- }, [Ue, lt]), gr = A(null);
3378
- _(() => {
3363
+ (e = _e.current) == null || e.abort(), _e.current = null, Ue(!1), xn(null), Xe(""), lt();
3364
+ }, [Ue, lt]), hr = A(null);
3365
+ L(() => {
3379
3366
  const e = We ?? cr.current;
3380
3367
  if (!e) return;
3381
3368
  const n = e === "template" ? "ai-templates" : `ai-${e}`, r = requestAnimationFrame(() => {
3382
3369
  var l, p;
3383
3370
  const a = document.activeElement;
3384
- a && a !== document.body && a.isConnected || (p = (l = gr.current) == null ? void 0 : l.querySelector(`[data-component-part="${n}"]`)) == null || p.focus();
3371
+ a && a !== document.body && a.isConnected || (p = (l = hr.current) == null ? void 0 : l.querySelector(`[data-component-part="${n}"]`)) == null || p.focus();
3385
3372
  });
3386
3373
  return () => cancelAnimationFrame(r);
3387
- }, [We]), _(() => () => {
3374
+ }, [We]), L(() => () => {
3388
3375
  var e;
3389
- return (e = Se.current) == null ? void 0 : e.abort();
3390
- }, []), _(() => {
3391
- const e = J.current;
3376
+ return (e = _e.current) == null ? void 0 : e.abort();
3377
+ }, []), L(() => {
3378
+ const e = ee.current;
3392
3379
  if (!e) return;
3393
- e.value = fo.current, ze.current();
3394
- const n = bs(B);
3380
+ e.value = fo.current, Re.current();
3381
+ const n = bs(q);
3395
3382
  if (!n) {
3396
3383
  Fn(!0);
3397
3384
  return;
3398
3385
  }
3399
3386
  oe.current = n, e.value = ut(e.value, nt.current);
3400
3387
  const r = {
3401
- lang: h ?? ws(to.language || "en"),
3388
+ lang: g ?? ws(to.language || "en"),
3402
3389
  // The kit renders its OWN toolbar (EditorToolbar) and drives Redactor
3403
3390
  // via the command API, so Redactor's native toolbar is suppressed.
3404
3391
  toolbar: !1,
3405
- plugins: u ?? [],
3406
- placeholder: m ?? O("editor.placeholder"),
3392
+ plugins: d ?? [],
3393
+ placeholder: u ?? O("editor.placeholder"),
3407
3394
  toolbarFixed: !1,
3408
3395
  // Platform parity (RedactorWysiwyg.js:84): no inline shortcode expansion.
3409
3396
  shortcodes: !1,
@@ -3425,22 +3412,22 @@ const Rs = Wo(
3425
3412
  callbacks: {
3426
3413
  ...l,
3427
3414
  changed(x) {
3428
- ze.current();
3429
- const S = Zt(
3415
+ Re.current();
3416
+ const H = Zt(
3430
3417
  Dr(Or(x))
3431
- ), U = xe(S), ge = pr.current;
3432
- if (ge && Date.now() < ge.until && Pr(U) === ge.text) {
3433
- _t.current = U;
3418
+ ), Z = xe(H), he = pr.current;
3419
+ if (he && Date.now() < he.until && Pr(Z) === he.text) {
3420
+ _t.current = Z;
3434
3421
  return;
3435
3422
  }
3436
- U !== _t.current && (_t.current = U, rn.current = !0, fe.current && (bt.current && clearTimeout(bt.current), bt.current = setTimeout(() => {
3437
- var Ne;
3438
- (Ne = fe.current) == null || Ne.call(fe, { html: U, markdown: "" });
3423
+ Z !== _t.current && (_t.current = Z, rn.current = !0, fe.current && (bt.current && clearTimeout(bt.current), bt.current = setTimeout(() => {
3424
+ var Ee;
3425
+ (Ee = fe.current) == null || Ee.call(fe, { html: Z, markdown: "" });
3439
3426
  }, 100)));
3440
3427
  },
3441
3428
  keydown(x) {
3442
- var S;
3443
- (S = St.current) == null || S.call(St, x);
3429
+ var H;
3430
+ (H = St.current) == null || H.call(St, x);
3444
3431
  },
3445
3432
  observe() {
3446
3433
  ye();
@@ -3450,7 +3437,7 @@ const Rs = Wo(
3450
3437
  try {
3451
3438
  if (n(D, p), _t.current = xe(
3452
3439
  Zt(Dr(le()))
3453
- ), ze.current(), f)
3440
+ ), Re.current(), m)
3454
3441
  try {
3455
3442
  n(D, "enableReadOnly");
3456
3443
  } catch {
@@ -3467,24 +3454,24 @@ const Rs = Wo(
3467
3454
  oe.current = null;
3468
3455
  };
3469
3456
  }, []);
3470
- const hr = A(me), pr = A(
3457
+ const gr = A(me), pr = A(
3471
3458
  null
3472
3459
  );
3473
- _(() => {
3460
+ L(() => {
3474
3461
  var r, a;
3475
- if (hr.current === me || (hr.current = me, !oe.current || me.size === 0)) return;
3462
+ if (gr.current === me || (gr.current = me, !oe.current || me.size === 0)) return;
3476
3463
  const e = le(), n = ut(e, me);
3477
3464
  if (n !== e) {
3478
- const l = (r = W.current) == null ? void 0 : r.querySelector(".redactor-in"), x = l != null && l.contains(document.activeElement) && l ? gs(l) : null;
3465
+ const l = (r = W.current) == null ? void 0 : r.querySelector(".redactor-in"), x = l != null && l.contains(document.activeElement) && l ? hs(l) : null;
3479
3466
  pr.current = {
3480
3467
  text: Pr(e),
3481
3468
  until: Date.now() + 1e3
3482
3469
  }, ce("source.setCode", n);
3483
- const S = (a = W.current) == null ? void 0 : a.querySelector(".redactor-in");
3484
- x !== null && S && hs(S, x);
3470
+ const H = (a = W.current) == null ? void 0 : a.querySelector(".redactor-in");
3471
+ x !== null && H && gs(H, x);
3485
3472
  }
3486
- window.requestAnimationFrame(() => ze.current());
3487
- }, [me, le, ce]), _(() => {
3473
+ window.requestAnimationFrame(() => Re.current());
3474
+ }, [me, le, ce]), L(() => {
3488
3475
  if (!oe.current || c === void 0) return;
3489
3476
  if (rn.current) {
3490
3477
  rn.current = !1;
@@ -3495,17 +3482,17 @@ const Rs = Wo(
3495
3482
  nt.current
3496
3483
  );
3497
3484
  Zt(le()) !== e && ce("source.setCode", e);
3498
- }, [c, le, ce]), _(() => {
3499
- Et.current = f;
3485
+ }, [c, le, ce]), L(() => {
3486
+ Tt.current = m;
3500
3487
  const e = oe.current;
3501
3488
  if (e)
3502
3489
  try {
3503
- e(D, f ? "enableReadOnly" : "disableReadOnly");
3490
+ e(D, m ? "enableReadOnly" : "disableReadOnly");
3504
3491
  } catch {
3505
3492
  }
3506
- }, [f, D]), _(() => {
3493
+ }, [m, D]), L(() => {
3507
3494
  if (!ue || c === void 0) return;
3508
- const e = J.current;
3495
+ const e = ee.current;
3509
3496
  if (!e) return;
3510
3497
  const n = xe(c);
3511
3498
  e.value !== n && document.activeElement !== e && (e.value = n);
@@ -3522,14 +3509,14 @@ const Rs = Wo(
3522
3509
  return "";
3523
3510
  },
3524
3511
  isAiBusy() {
3525
- return Se.current !== null;
3512
+ return _e.current !== null;
3526
3513
  },
3527
3514
  setContent(e) {
3528
3515
  const n = xe(e);
3529
3516
  ce(
3530
3517
  "source.setCode",
3531
3518
  ut(n, nt.current)
3532
- ) || J.current && (J.current.value = n);
3519
+ ) || ee.current && (ee.current.value = n);
3533
3520
  },
3534
3521
  insertAtCursor: de,
3535
3522
  applyFormat(e) {
@@ -3545,26 +3532,26 @@ const Rs = Wo(
3545
3532
  return;
3546
3533
  } catch {
3547
3534
  }
3548
- (n = J.current) == null || n.focus();
3535
+ (n = ee.current) == null || n.focus();
3549
3536
  },
3550
3537
  clear() {
3551
- ce("source.setCode", "") || J.current && (J.current.value = "");
3538
+ ce("source.setCode", "") || ee.current && (ee.current.value = "");
3552
3539
  }
3553
3540
  }),
3554
3541
  [D, le, ce, de, je]
3555
3542
  );
3556
3543
  Xo(eo, () => De, [De]), Qo(Ri, De, o);
3557
- const So = y(
3544
+ const So = v(
3558
3545
  (e) => {
3559
3546
  var n;
3560
- ze.current(), (n = fe.current) == null || n.call(fe, {
3547
+ Re.current(), (n = fe.current) == null || n.call(fe, {
3561
3548
  html: xe(e.target.value),
3562
3549
  markdown: ""
3563
3550
  });
3564
3551
  },
3565
3552
  []
3566
- ), Vt = d ?? O("editor.regionLabel"), Lo = m ?? O("editor.placeholder");
3567
- _(() => {
3553
+ ), Vt = h ?? O("editor.regionLabel"), Lo = u ?? O("editor.placeholder");
3554
+ L(() => {
3568
3555
  var a;
3569
3556
  if (ue) return;
3570
3557
  const e = (a = W.current) == null ? void 0 : a.querySelector(".redactor-in");
@@ -3579,28 +3566,28 @@ const Rs = Wo(
3579
3566
  attributeFilter: ["role", "aria-labelledby"]
3580
3567
  }), () => r.disconnect();
3581
3568
  }, [ue, Vt]);
3582
- const Wt = We !== null, Ho = y(
3569
+ const Wt = We !== null, Ho = v(
3583
3570
  (e) => {
3584
- Mn.test(e) && (ue ? de(`[[${e}]]`, { asHtml: !1 }) : (he(), Ge(Fr(e))), Y == null || Y(e));
3571
+ Mn.test(e) && (ue ? de(`[[${e}]]`, { asHtml: !1 }) : (ge(), Ge(Fr(e))), J == null || J(e));
3585
3572
  },
3586
3573
  [
3587
3574
  ue,
3588
3575
  de,
3589
- he,
3576
+ ge,
3590
3577
  Ge,
3591
- Y
3578
+ J
3592
3579
  ]
3593
- ), Nn = A(null), [Io, $o] = E(!1), [Do, Oo] = E(!1), qo = y(
3580
+ ), En = A(null), [Io, $o] = N(!1), [Do, Oo] = N(!1), qo = v(
3594
3581
  (e, n) => {
3595
3582
  if (Oo(e), !e) return;
3596
3583
  const r = Ze(n);
3597
- Nn.current = r, $o(!r.text.trim());
3584
+ En.current = r, $o(!r.text.trim());
3598
3585
  },
3599
3586
  [Ze]
3600
- ), Bo = y(
3587
+ ), Bo = v(
3601
3588
  (e) => {
3602
- const n = Nn.current ?? Ze("document");
3603
- Nn.current = null, mr(e, n);
3589
+ const n = En.current ?? Ze("document");
3590
+ En.current = null, mr(e, n);
3604
3591
  },
3605
3592
  [Ze, mr]
3606
3593
  ), br = (e, n) => {
@@ -3615,7 +3602,7 @@ const Rs = Wo(
3615
3602
  onClick: r ? fr : () => kt(e, n, Ze("document")),
3616
3603
  running: r
3617
3604
  };
3618
- }, [vr, Po] = E(() => /* @__PURE__ */ new Set()), Ae = Je(() => {
3605
+ }, [vr, Po] = N(() => /* @__PURE__ */ new Set()), Ae = Je(() => {
3619
3606
  if (!Ie || vr.has(Ie.mode)) return;
3620
3607
  if (!Ie.onDismiss) return Ie;
3621
3608
  const e = Ie.onDismiss, n = Ie.mode;
@@ -3632,7 +3619,7 @@ const Rs = Wo(
3632
3619
  label: O(we ? "editor.ai.dictateStop" : "editor.ai.dictateStart"),
3633
3620
  onClick: () => or("document"),
3634
3621
  recording: we
3635
- }), Q) {
3622
+ }), Y) {
3636
3623
  const e = We === "template";
3637
3624
  Qe.push({
3638
3625
  key: "templates",
@@ -3643,7 +3630,7 @@ const Rs = Wo(
3643
3630
  menu: !e
3644
3631
  });
3645
3632
  }
3646
- const yr = br("proofread", Z);
3633
+ const yr = br("proofread", Q);
3647
3634
  yr && Qe.push(yr);
3648
3635
  const wr = br("format", pe);
3649
3636
  wr && Qe.push(wr), (V || qe) && Qe.push({
@@ -3652,86 +3639,86 @@ const Rs = Wo(
3652
3639
  label: O("editor.ai.helpMeWrite"),
3653
3640
  onClick: () => ar("document")
3654
3641
  });
3655
- const kr = (e, n) => Q ? /* @__PURE__ */ t(
3642
+ const kr = (e, n) => Y ? /* @__PURE__ */ t(
3656
3643
  as,
3657
3644
  {
3658
3645
  side: n === "document" ? "top" : "bottom",
3659
- templates: Q.templates,
3646
+ templates: Y.templates,
3660
3647
  onPick: Bo,
3661
- onManage: Q.onManage,
3648
+ onManage: Y.onManage,
3662
3649
  noteEmpty: Io,
3663
3650
  onOpenChange: (r) => qo(r, n),
3664
3651
  trigger: e
3665
3652
  }
3666
- ) : null, xr = (k ?? []).filter(
3667
- (e) => !e.contexts || L !== void 0 && e.contexts.includes(L)
3653
+ ) : null, xr = (w ?? []).filter(
3654
+ (e) => !e.contexts || _ !== void 0 && e.contexts.includes(_)
3668
3655
  );
3669
- _(() => {
3670
- (ht || Pt !== null || f) && Re(!1);
3671
- }, [ht, Pt, f, Re]), _(() => {
3672
- be && !(k ?? []).some(
3673
- (e) => e.id === be.extension.id && (!e.contexts || L !== void 0 && e.contexts.includes(L))
3674
- ) && Re();
3675
- }, [k, L, be, Re]);
3656
+ L(() => {
3657
+ (gt || Pt !== null || m) && Me(!1);
3658
+ }, [gt, Pt, m, Me]), L(() => {
3659
+ be && !(w ?? []).some(
3660
+ (e) => e.id === be.extension.id && (!e.contexts || _ !== void 0 && e.contexts.includes(_))
3661
+ ) && Me();
3662
+ }, [w, _, be, Me]);
3676
3663
  const Fo = (e) => {
3677
- var Ne, ct;
3664
+ var Ee, ct;
3678
3665
  if (an) return;
3679
3666
  cn(), $e(!1), kn();
3680
3667
  const n = new AbortController();
3681
3668
  pt.current = n;
3682
- const r = (Ne = ve.current) == null ? void 0 : Ne.cloneRange(), a = J.current ? [
3683
- J.current.selectionStart,
3684
- J.current.selectionEnd
3685
- ] : null, l = (r == null ? void 0 : r.toString()) ?? (a ? (((ct = J.current) == null ? void 0 : ct.value) ?? "").slice(...a) : "");
3669
+ const r = (Ee = ve.current) == null ? void 0 : Ee.cloneRange(), a = ee.current ? [
3670
+ ee.current.selectionStart,
3671
+ ee.current.selectionEnd
3672
+ ] : null, l = (r == null ? void 0 : r.toString()) ?? (a ? (((ct = ee.current) == null ? void 0 : ct.value) ?? "").slice(...a) : "");
3686
3673
  let p = !1;
3687
3674
  const x = (ae) => {
3688
- var Le;
3689
- p || (p = !0, (Le = Tt.current) == null || Le.call(Tt, e.id, ae));
3675
+ var Se;
3676
+ p || (p = !0, (Se = Nt.current) == null || Se.call(Nt, e.id, ae));
3690
3677
  };
3691
3678
  Be.current = x;
3692
- const S = () => {
3679
+ const H = () => {
3693
3680
  n.signal.aborted || (x({ status: "error" }), n.abort(), sn(!1), Gn(!0), ln());
3694
- }, U = async (ae) => {
3681
+ }, Z = async (ae) => {
3695
3682
  var dt;
3696
3683
  if (n.signal.aborted) return;
3697
- let Le = ae.mode === "image" ? "" : ae.html;
3684
+ let Se = ae.mode === "image" ? "" : ae.html;
3698
3685
  if (ae.mode !== "text") {
3699
3686
  const Ye = await ae.pngDataUri();
3700
3687
  if (n.signal.aborted) return;
3701
- const xt = await (await fetch(Ye.dataUri, { signal: n.signal })).blob(), En = await Qn(
3688
+ const xt = await (await fetch(Ye.dataUri, { signal: n.signal })).blob(), Tn = await Qn(
3702
3689
  new File([xt], "extension-result.png", { type: "image/png" }),
3703
3690
  n.signal
3704
3691
  );
3705
3692
  if (n.signal.aborted) return;
3706
- const He = document.createElement("img");
3707
- He.src = En, He.alt = ae.text, He.width = Ye.width, He.height = Ye.height, He.loading = "lazy", Le += He.outerHTML;
3693
+ const Le = document.createElement("img");
3694
+ Le.src = Tn, Le.alt = ae.text, Le.width = Ye.width, Le.height = Ye.height, Le.loading = "lazy", Se += Le.outerHTML;
3708
3695
  }
3709
- n.signal.aborted || (r && (ve.current = r.cloneRange()), a && ((dt = J.current) == null || dt.setSelectionRange(...a)), he(), de(Le, { asHtml: !0 }), x({ status: "success" }), Re());
3710
- }, ge = {
3696
+ n.signal.aborted || (r && (ve.current = r.cloneRange()), a && ((dt = ee.current) == null || dt.setSelectionRange(...a)), ge(), de(Se, { asHtml: !0 }), x({ status: "success" }), Me());
3697
+ }, he = {
3711
3698
  html: De.getHTML(),
3712
3699
  text: De.getText(),
3713
3700
  selectionText: l,
3714
3701
  scope: l ? "selection" : "document",
3715
3702
  signal: n.signal,
3716
3703
  close: () => {
3717
- pt.current === n && Re();
3704
+ pt.current === n && Me();
3718
3705
  },
3719
3706
  insert: async (ae) => {
3720
3707
  try {
3721
- await U(ae);
3708
+ await Z(ae);
3722
3709
  } catch {
3723
- S();
3710
+ H();
3724
3711
  }
3725
3712
  }
3726
3713
  };
3727
- jn({ extension: e, context: ge }), e.kind === "action" && (sn(!0), (async () => {
3714
+ jn({ extension: e, context: he }), e.kind === "action" && (sn(!0), (async () => {
3728
3715
  try {
3729
3716
  if (!e.run) throw new Error("Missing extension run");
3730
- const ae = await e.run(ge);
3717
+ const ae = await e.run(he);
3731
3718
  if (n.signal.aborted) return;
3732
- ae ? await U(ae) : (x({ status: "success" }), Re());
3719
+ ae ? await Z(ae) : (x({ status: "success" }), Me());
3733
3720
  } catch {
3734
- S();
3721
+ H();
3735
3722
  }
3736
3723
  })());
3737
3724
  }, Cr = Jr.map(
@@ -3752,12 +3739,12 @@ const Rs = Wo(
3752
3739
  extensionSession: be,
3753
3740
  extensionError: on,
3754
3741
  openExtension: Fo,
3755
- closeExtension: Re,
3742
+ closeExtension: Me,
3756
3743
  saveSelection: it,
3757
3744
  closeSignal: no,
3758
3745
  restoreFocusOnCloseRef: Kn
3759
3746
  }
3760
- ) : void 0, Ar = !!(V || qe), Nr = !!(Q || Z || pe || Ar || F), Ko = !ue && !f && (re ?? Nr), Vo = y(
3747
+ ) : void 0, Ar = !!(V || qe), Er = !!(Y || Q || pe || Ar || F), Ko = !ue && !m && (re ?? Er), Vo = v(
3761
3748
  () => {
3762
3749
  var e;
3763
3750
  return ((e = W.current) == null ? void 0 : e.querySelector(".redactor-in")) ?? null;
@@ -3768,45 +3755,45 @@ const Rs = Wo(
3768
3755
  "div",
3769
3756
  {
3770
3757
  ref: W,
3771
- className: [ks(), I].filter(Boolean).join(" "),
3758
+ className: [ks(), S].filter(Boolean).join(" "),
3772
3759
  "data-component": "rich-text-editor",
3773
3760
  "data-component-id": o,
3774
- "data-min-height": v,
3761
+ "data-min-height": y,
3775
3762
  children: [
3776
- !ue && !f ? /* @__PURE__ */ t(
3763
+ !ue && !m ? /* @__PURE__ */ t(
3777
3764
  cs,
3778
3765
  {
3779
3766
  run: je,
3780
- active: hn,
3781
- preset: g,
3767
+ active: gn,
3768
+ preset: f,
3782
3769
  insertHtml: Ge,
3783
3770
  insertTable: Ao,
3784
3771
  saveSelection: it,
3785
- restoreSelection: he,
3772
+ restoreSelection: ge,
3786
3773
  getSelectedText: vo,
3787
3774
  uploadImage: z || M ? Qn : void 0,
3788
- enableColor: (u == null ? void 0 : u.includes("fontcolor")) ?? !1,
3775
+ enableColor: (d == null ? void 0 : d.includes("fontcolor")) ?? !1,
3789
3776
  enableImage: !!(z || M),
3790
- enableTable: (u == null ? void 0 : u.includes("table")) ?? !1,
3791
- showExtensions: w,
3777
+ enableTable: (d == null ? void 0 : d.includes("table")) ?? !1,
3778
+ showExtensions: k,
3792
3779
  extensionControl: Go,
3793
3780
  variables: Wn,
3794
3781
  recentVariableTokens: K,
3795
3782
  insertVariable: Ho
3796
3783
  }
3797
3784
  ) : null,
3798
- /* @__PURE__ */ C("div", { className: "ds:relative", ref: gt, children: [
3785
+ /* @__PURE__ */ C("div", { className: "ds:relative", ref: ht, children: [
3799
3786
  /* @__PURE__ */ t(
3800
3787
  "textarea",
3801
3788
  {
3802
- ref: J,
3789
+ ref: ee,
3803
3790
  id: tt,
3804
3791
  "aria-label": Vt,
3805
3792
  "aria-multiline": "true",
3806
3793
  "aria-busy": Wt || void 0,
3807
3794
  placeholder: Lo,
3808
3795
  onChange: ue ? So : void 0,
3809
- readOnly: ue ? f : void 0,
3796
+ readOnly: ue ? m : void 0,
3810
3797
  className: ue ? Cs() : void 0
3811
3798
  }
3812
3799
  ),
@@ -3822,7 +3809,7 @@ const Rs = Wo(
3822
3809
  Qe.length > 0 ? /* @__PURE__ */ C(
3823
3810
  "div",
3824
3811
  {
3825
- ref: gr,
3812
+ ref: hr,
3826
3813
  className: "ds:absolute ds:[inset-block-end:var(--spacing-md)] ds:[inset-inline-end:var(--spacing-md)] ds:z-10",
3827
3814
  "data-ai-sparkle": Ke.props["data-ai-sparkle"],
3828
3815
  children: [
@@ -3839,7 +3826,7 @@ const Rs = Wo(
3839
3826
  "data-component-part": `ai-${e.key}`,
3840
3827
  disabled: Wt && !e.running || void 0,
3841
3828
  "aria-label": e.label,
3842
- className: e.recording ? Ns : As,
3829
+ className: e.recording ? Es : As,
3843
3830
  children: e.icon
3844
3831
  }
3845
3832
  );
@@ -3873,16 +3860,16 @@ const Rs = Wo(
3873
3860
  Rn,
3874
3861
  {
3875
3862
  open: !!(be && (!an || on)),
3876
- onClose: Re,
3863
+ onClose: Me,
3877
3864
  title: be ? Vr(O, be.extension.label) : void 0,
3878
- children: on ? /* @__PURE__ */ t(Kr, {}) : /* @__PURE__ */ t("div", { className: "ds:overflow-y-auto ds:[max-block-size:min(60dvh,calc(var(--rich-text-editor-min-block-size)*3))]", children: (Tr = be == null ? void 0 : (Er = be.extension).render) == null ? void 0 : Tr.call(
3879
- Er,
3865
+ children: on ? /* @__PURE__ */ t(Kr, {}) : /* @__PURE__ */ t("div", { className: "ds:overflow-y-auto ds:[max-block-size:min(60dvh,calc(var(--rich-text-editor-min-block-size)*3))]", children: (Nr = be == null ? void 0 : (Tr = be.extension).render) == null ? void 0 : Nr.call(
3866
+ Tr,
3880
3867
  be.context
3881
3868
  ) })
3882
3869
  }
3883
3870
  ),
3884
3871
  qe ? qe({
3885
- open: ht && !ke,
3872
+ open: gt && !ke,
3886
3873
  onClose: () => {
3887
3874
  $e(!1), dn(!1);
3888
3875
  },
@@ -3894,7 +3881,7 @@ const Rs = Wo(
3894
3881
  // All three write seams put AI output into the note, so
3895
3882
  // each one is an action landing and sparkles the pill.
3896
3883
  insertAtSelection: (e) => {
3897
- Mt.current && (ve.current = Mt.current.cloneRange()), he(), de(e, { asHtml: !0 }), G && _e();
3884
+ Mt.current && (ve.current = Mt.current.cloneRange()), ge(), de(e, { asHtml: !0 }), G && ze();
3898
3885
  },
3899
3886
  insertAfterSelection: (e) => {
3900
3887
  const n = Mt.current ?? ve.current;
@@ -3902,28 +3889,28 @@ const Rs = Wo(
3902
3889
  const r = n.cloneRange();
3903
3890
  r.collapse(!1), ve.current = r;
3904
3891
  }
3905
- he(), de(e, { asHtml: !0 }), G && _e();
3892
+ ge(), de(e, { asHtml: !0 }), G && ze();
3906
3893
  },
3907
3894
  setContent: (e) => {
3908
- De.setContent(e), G && _e();
3895
+ De.setContent(e), G && ze();
3909
3896
  },
3910
3897
  onDictate: F,
3911
3898
  privacyNotice: ir
3912
3899
  }) : V ? /* @__PURE__ */ t(
3913
3900
  Li,
3914
3901
  {
3915
- open: ht && !ke,
3902
+ open: gt && !ke,
3916
3903
  onClose: () => $e(!1),
3917
3904
  onRequestAiDraft: V,
3918
3905
  onInsert: (e) => {
3919
- he(), de(e, { asHtml: $ !== "text" }), G && _e();
3906
+ ge(), de(e, { asHtml: $ !== "text" }), G && ze();
3920
3907
  },
3921
3908
  previewAsHtml: $ !== "text",
3922
3909
  privacyNotice: ir,
3923
3910
  onDictate: F
3924
3911
  }
3925
3912
  ) : null,
3926
- N ? /* @__PURE__ */ t(
3913
+ T ? /* @__PURE__ */ t(
3927
3914
  Rn,
3928
3915
  {
3929
3916
  open: Pt !== null,
@@ -3936,13 +3923,13 @@ const Rs = Wo(
3936
3923
  children: /* @__PURE__ */ t(
3937
3924
  ea,
3938
3925
  {
3939
- granted: N.granted,
3940
- grantedAt: N.grantedAt,
3941
- grantedBy: N.grantedBy,
3942
- canGrant: (N.canGrant ?? !0) && N.onGrant !== void 0,
3926
+ granted: T.granted,
3927
+ grantedAt: T.grantedAt,
3928
+ grantedBy: T.grantedBy,
3929
+ canGrant: (T.canGrant ?? !0) && T.onGrant !== void 0,
3943
3930
  pending: Mo,
3944
3931
  onGrantConsent: Ro,
3945
- headingLevel: X,
3932
+ headingLevel: U,
3946
3933
  "aria-label": O(
3947
3934
  "editor.ai.consentRegionLabel",
3948
3935
  "AI assistance consent for this document"
@@ -3952,22 +3939,22 @@ const Rs = Wo(
3952
3939
  }
3953
3940
  ) : null
3954
3941
  ] }),
3955
- !ue && !f && ((u == null ? void 0 : u.includes("table")) ?? !1) ? /* @__PURE__ */ t(
3942
+ !ue && !m && ((d == null ? void 0 : d.includes("table")) ?? !1) ? /* @__PURE__ */ t(
3956
3943
  Xi,
3957
3944
  {
3958
- active: hn,
3945
+ active: gn,
3959
3946
  run: je,
3960
- areaRef: gt,
3947
+ areaRef: ht,
3961
3948
  getActiveTableEl: yo,
3962
- enableColor: (u == null ? void 0 : u.includes("fontcolor")) ?? !1,
3949
+ enableColor: (d == null ? void 0 : d.includes("fontcolor")) ?? !1,
3963
3950
  saveTableCell: wo,
3964
3951
  applyTableBackground: ko
3965
3952
  }
3966
3953
  ) : null,
3967
- !ue && !f ? /* @__PURE__ */ t(
3954
+ !ue && !m ? /* @__PURE__ */ t(
3968
3955
  os,
3969
3956
  {
3970
- areaRef: gt,
3957
+ areaRef: ht,
3971
3958
  activeImageEl: uo,
3972
3959
  applyImageClass: xo,
3973
3960
  setImageWidth: Co
@@ -3976,13 +3963,13 @@ const Rs = Wo(
3976
3963
  Ko ? /* @__PURE__ */ t(
3977
3964
  ls,
3978
3965
  {
3979
- active: hn,
3966
+ active: gn,
3980
3967
  run: je,
3981
- areaRef: gt,
3968
+ areaRef: ht,
3982
3969
  getEditorRoot: Vo,
3983
- suppressed: Wt || ht || Pt !== null || be !== null,
3970
+ suppressed: Wt || gt || Pt !== null || be !== null,
3984
3971
  holdOpen: Do,
3985
- children: Nr ? /* @__PURE__ */ C(Ee, { children: [
3972
+ children: Er ? /* @__PURE__ */ C(He, { children: [
3986
3973
  F ? mt(
3987
3974
  /* @__PURE__ */ t(
3988
3975
  j,
@@ -4002,7 +3989,7 @@ const Rs = Wo(
4002
3989
  ),
4003
3990
  Ae
4004
3991
  ) : null,
4005
- Q ? mt(
3992
+ Y ? mt(
4006
3993
  kr(
4007
3994
  /* @__PURE__ */ t(
4008
3995
  Te,
@@ -4020,7 +4007,7 @@ const Rs = Wo(
4020
4007
  ),
4021
4008
  Ae
4022
4009
  ) : null,
4023
- Z ? mt(
4010
+ Q ? mt(
4024
4011
  /* @__PURE__ */ t(
4025
4012
  j,
4026
4013
  {
@@ -4035,7 +4022,7 @@ const Rs = Wo(
4035
4022
  ),
4036
4023
  onClick: () => kt(
4037
4024
  "proofread",
4038
- Z,
4025
+ Q,
4039
4026
  Ze("selection")
4040
4027
  )
4041
4028
  }
@@ -4102,16 +4089,16 @@ const Rs = Wo(
4102
4089
  recentTokens: K,
4103
4090
  query: at.query,
4104
4091
  onQueryChange: bo,
4105
- onSelect: ho,
4092
+ onSelect: go,
4106
4093
  onClose: po,
4107
4094
  searchFocusable: !1,
4108
- onActiveDescendantChange: go
4095
+ onActiveDescendantChange: ho
4109
4096
  }
4110
4097
  )
4111
4098
  }
4112
4099
  ) : null
4113
4100
  ] }),
4114
- F ? /* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: Eo }) : null,
4101
+ F ? /* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: To }) : null,
4115
4102
  ot.length > 0 ? /* @__PURE__ */ t(
4116
4103
  "p",
4117
4104
  {
@@ -4123,7 +4110,7 @@ const Rs = Wo(
4123
4110
  })
4124
4111
  }
4125
4112
  ) : null,
4126
- F && No ? /* @__PURE__ */ t(
4113
+ F && Eo ? /* @__PURE__ */ t(
4127
4114
  "p",
4128
4115
  {
4129
4116
  role: "alert",
@@ -4131,7 +4118,7 @@ const Rs = Wo(
4131
4118
  children: O("editor.ai.dictationError")
4132
4119
  }
4133
4120
  ) : null,
4134
- Q || Z || pe ? /* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: _o }) : null,
4121
+ Y || Q || pe ? /* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: _o }) : null,
4135
4122
  zo || sr ? /* @__PURE__ */ t(
4136
4123
  "p",
4137
4124
  {
@@ -4151,4 +4138,4 @@ export {
4151
4138
  Ri as r,
4152
4139
  ks as w
4153
4140
  };
4154
- //# sourceMappingURL=rich-text-editor-y6ML0KeV.js.map
4141
+ //# sourceMappingURL=rich-text-editor-DoBXdwmx.js.map