@alfadocs/ui-kit-debug 1.56.0 → 1.57.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 (357) hide show
  1. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
  2. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js.map → ai-credits-notice-ktklr8fy.js.map} +1 -1
  3. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
  4. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js.map +1 -0
  5. package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
  6. package/dist/_chunks/alia-sidebar-BBKBJCv6.js.map +1 -0
  7. package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-CCQ62mMN.js} +4 -4
  8. package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js.map → anamnesis-summary-rows-CCQ62mMN.js.map} +1 -1
  9. package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
  10. package/dist/_chunks/{appointment-peek-BIZaDeCi.js.map → appointment-peek-WvNbE4JG.js.map} +1 -1
  11. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
  12. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js.map → appointment-timeline-Z0494xO-.js.map} +1 -1
  13. package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CII3SDmR.js} +3 -3
  14. package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js.map → balance-badge-cell-CII3SDmR.js.map} +1 -1
  15. package/dist/_chunks/{booking-WyNGKPE2.js → booking-81WnKDsH.js} +3 -3
  16. package/dist/_chunks/{booking-WyNGKPE2.js.map → booking-81WnKDsH.js.map} +1 -1
  17. package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
  18. package/dist/_chunks/{calculator-dialog-pCPWta7h.js.map → calculator-dialog-CzQv03p0.js.map} +1 -1
  19. package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-D5-k_9zE.js} +13 -13
  20. package/dist/_chunks/{calendar-workspace-Du2ryaI-.js.map → calendar-workspace-D5-k_9zE.js.map} +1 -1
  21. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
  22. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js.map → care-plan-card-DxrRLRdW.js.map} +1 -1
  23. package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
  24. package/dist/_chunks/{care-plan-header-DUX_SVvF.js.map → care-plan-header-BMwZIgHJ.js.map} +1 -1
  25. package/dist/_chunks/{chart-HsF1KHbx.js → chart-DQ5GxqgT.js} +347 -350
  26. package/dist/_chunks/chart-DQ5GxqgT.js.map +1 -0
  27. package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
  28. package/dist/_chunks/{clinical-note-card-14JIoUR0.js.map → clinical-note-card-hx939bvw.js.map} +1 -1
  29. package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
  30. package/dist/_chunks/color-picker-BsggJovx.js.map +1 -0
  31. package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
  32. package/dist/_chunks/{contact-card-CmK05vNb.js.map → contact-card-fHBMwEsx.js.map} +1 -1
  33. package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
  34. package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js.map → contact-profile-card-CMyBYgRR.js.map} +1 -1
  35. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
  36. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js.map → cycle-calculator-Cww9DzIa.js.map} +1 -1
  37. package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-fAMTeAjM.js} +2 -2
  38. package/dist/_chunks/{data-table-D8fuhqO1.js.map → data-table-fAMTeAjM.js.map} +1 -1
  39. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
  40. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js.map → data-table-tabs-CHYAAeHy.js.map} +1 -1
  41. package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
  42. package/dist/_chunks/date-picker-BSZuKo13.js.map +1 -0
  43. package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
  44. package/dist/_chunks/date-range-picker-CFk-5O3R.js.map +1 -0
  45. package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
  46. package/dist/_chunks/date-time-picker-CjxTkblD.js.map +1 -0
  47. package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
  48. package/dist/_chunks/{dialog-CUzbnKLw.js.map → dialog-Dn-iQ0Jp.js.map} +1 -1
  49. package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
  50. package/dist/_chunks/{document-preview-uoTekVR7.js.map → document-preview-CHGGG0l_.js.map} +1 -1
  51. package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
  52. package/dist/_chunks/{due-date-calculator-CSjklbyw.js.map → due-date-calculator-D_qFUiHp.js.map} +1 -1
  53. package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
  54. package/dist/_chunks/{entity-summary-DcB0fIiv.js.map → entity-summary-CWcCSThK.js.map} +1 -1
  55. package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-CFsL1KVt.js} +3 -3
  56. package/dist/_chunks/{file-manager-Cc_uO8r2.js.map → file-manager-CFsL1KVt.js.map} +1 -1
  57. package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
  58. package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js.map → gestational-age-calculator-CZi43xKG.js.map} +1 -1
  59. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
  60. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js.map → hcg-doubling-Ccvh7OaU.js.map} +1 -1
  61. package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
  62. package/dist/_chunks/{header-settings-ge_3gYEq.js.map → header-settings-BMcCx2LC.js.map} +1 -1
  63. package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-BEeOThkW.js} +2 -2
  64. package/dist/_chunks/{heatmap-Gf9r7Tn1.js.map → heatmap-BEeOThkW.js.map} +1 -1
  65. package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-BUoYGo6f.js} +2 -2
  66. package/dist/_chunks/{help-me-write-templates-fV-Apf72.js.map → help-me-write-templates-BUoYGo6f.js.map} +1 -1
  67. package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
  68. package/dist/_chunks/hover-card-U_ZYoh1n.js.map +1 -0
  69. package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
  70. package/dist/_chunks/{icon-picker-DWrqmI1c.js.map → icon-picker-C86lQTIA.js.map} +1 -1
  71. package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
  72. package/dist/_chunks/{info-tip-B0jmIt6M.js.map → info-tip-CJpNpzZe.js.map} +1 -1
  73. package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
  74. package/dist/_chunks/{kit-extensions-Byfxy6sy.js.map → kit-extensions-DYVxWcqv.js.map} +1 -1
  75. package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-CxW_oLa5.js} +2 -2
  76. package/dist/_chunks/{link-cell-renderer-TeJNvymP.js.map → link-cell-renderer-CxW_oLa5.js.map} +1 -1
  77. package/dist/_chunks/link-gRw3NtOt.js +137 -0
  78. package/dist/_chunks/link-gRw3NtOt.js.map +1 -0
  79. package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
  80. package/dist/_chunks/{locale-picker-DfNSdOpy.js.map → locale-picker-BGfrZyTw.js.map} +1 -1
  81. package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
  82. package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js.map +1 -0
  83. package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
  84. package/dist/_chunks/message-tray-QKQutwxj.js.map +1 -0
  85. package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
  86. package/dist/_chunks/{nav-grid-BqCPH8sm.js.map → nav-grid-Byx8PxuB.js.map} +1 -1
  87. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
  88. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js.map +1 -0
  89. package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
  90. package/dist/_chunks/{note-attachment-I1NLoeRZ.js.map → note-attachment-Bt2cddsZ.js.map} +1 -1
  91. package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
  92. package/dist/_chunks/{note-timeline-CsY8YOE7.js.map → note-timeline-CX9nAgAR.js.map} +1 -1
  93. package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-Cm4pttpl.js} +4 -4
  94. package/dist/_chunks/{notes-panel-DceRhthG.js.map → notes-panel-Cm4pttpl.js.map} +1 -1
  95. package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
  96. package/dist/_chunks/notification-tray-C5VtbGjd.js.map +1 -0
  97. package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
  98. package/dist/_chunks/{patient-details-DsTtjpuX.js.map → patient-details-99kEdtc5.js.map} +1 -1
  99. package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
  100. package/dist/_chunks/{patient-field-row-BvZ9luz-.js.map → patient-field-row-DkxY13T6.js.map} +1 -1
  101. package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-opdyfeW2.js} +4 -4
  102. package/dist/_chunks/{patient-summary-card-9nQWTQf6.js.map → patient-summary-card-opdyfeW2.js.map} +1 -1
  103. package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
  104. package/dist/_chunks/{payment-request-card-CwDpwXUC.js.map → payment-request-card-DAniJNLX.js.map} +1 -1
  105. package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
  106. package/dist/_chunks/pdf-viewer-CNQxa4tv.js.map +1 -0
  107. package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
  108. package/dist/_chunks/phone-input-O9camxkq.js.map +1 -0
  109. package/dist/_chunks/popover-BG75rYjN.js +367 -0
  110. package/dist/_chunks/popover-BG75rYjN.js.map +1 -0
  111. package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-CfRkjzsI.js} +2 -2
  112. package/dist/_chunks/{practice-results-Dhbo-fc_.js.map → practice-results-CfRkjzsI.js.map} +1 -1
  113. package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
  114. package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js.map → pregnancy-dating-BFzv9g1N.js.map} +1 -1
  115. package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
  116. package/dist/_chunks/product-hub-panel-DlVRK7Ue.js.map +1 -0
  117. package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
  118. package/dist/_chunks/{public-footer-CxpG6J1M.js.map → public-footer-ZWTEG1Rq.js.map} +1 -1
  119. package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-BctevbuY.js} +2 -2
  120. package/dist/_chunks/{public-header.agent-pr2hyiND.js.map → public-header.agent-BctevbuY.js.map} +1 -1
  121. package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
  122. package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js.map → radiograph-panel.agent-DyqbTECc.js.map} +1 -1
  123. package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
  124. package/dist/_chunks/{registration-form-D7iNqMBF.js.map → registration-form-BlTzYywa.js.map} +1 -1
  125. package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
  126. package/dist/_chunks/rich-text-editor-DTnNZ4Ff.js.map +1 -0
  127. package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-8qsiMoUI.js} +2 -2
  128. package/dist/_chunks/{sheet-C7SwIxwB.js.map → sheet-8qsiMoUI.js.map} +1 -1
  129. package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
  130. package/dist/_chunks/{sign-document-B6HlyCGV.js.map → sign-document-D4iHS_Ug.js.map} +1 -1
  131. package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-DRuYAG5I.js} +2 -2
  132. package/dist/_chunks/{signature-request-DhbpB9N9.js.map → signature-request-DRuYAG5I.js.map} +1 -1
  133. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
  134. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js.map → signed-out-frame-AhMsNW1r.js.map} +1 -1
  135. package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-NkcopDna.js} +3 -3
  136. package/dist/_chunks/{task-editor-ByyRu29Y.js.map → task-editor-NkcopDna.js.map} +1 -1
  137. package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
  138. package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js.map → use-appointment-details-read-CfFQNOF_.js.map} +1 -1
  139. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
  140. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js.map → voice-control-panel-BKbgb7FM.js.map} +1 -1
  141. package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-rBA7MR5P.js} +2 -2
  142. package/dist/_chunks/{widget-picker-DXYBMTfe.js.map → widget-picker-rBA7MR5P.js.map} +1 -1
  143. package/dist/agent-catalog.json +2 -2
  144. package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
  145. package/dist/components/_shared/non-modal-tab-exit.d.ts.map +1 -1
  146. package/dist/components/ai-credits-notice/index.js +1 -1
  147. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
  148. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts.map +1 -1
  149. package/dist/components/ai-permission-notice/index.d.ts +1 -1
  150. package/dist/components/ai-permission-notice/index.d.ts.map +1 -1
  151. package/dist/components/ai-permission-notice/index.js +1 -1
  152. package/dist/components/appointment-details-panel/index.js +1 -1
  153. package/dist/components/appointment-peek/index.js +1 -1
  154. package/dist/components/appointment-timeline/index.js +1 -1
  155. package/dist/components/booking/index.js +1 -1
  156. package/dist/components/calculator-dialog/index.js +1 -1
  157. package/dist/components/care-plan-card/index.js +1 -1
  158. package/dist/components/care-plan-header/index.js +1 -1
  159. package/dist/components/chart/chart.d.ts +5 -5
  160. package/dist/components/chart/chart.d.ts.map +1 -1
  161. package/dist/components/chart/index.js +1 -1
  162. package/dist/components/clinical-note-card/index.js +1 -1
  163. package/dist/components/color-picker/color-picker.d.ts.map +1 -1
  164. package/dist/components/color-picker/index.js +1 -1
  165. package/dist/components/contact-card/index.js +1 -1
  166. package/dist/components/contact-profile-card/index.js +1 -1
  167. package/dist/components/cycle-calculator/index.js +1 -1
  168. package/dist/components/data-table/index.js +2 -2
  169. package/dist/components/data-table-tabs/index.js +1 -1
  170. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  171. package/dist/components/date-picker/index.js +1 -1
  172. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
  173. package/dist/components/date-range-picker/index.js +1 -1
  174. package/dist/components/date-time-picker/date-time-picker.d.ts.map +1 -1
  175. package/dist/components/date-time-picker/index.js +1 -1
  176. package/dist/components/dialog/index.js +1 -1
  177. package/dist/components/document-preview/index.js +1 -1
  178. package/dist/components/due-date-calculator/index.js +1 -1
  179. package/dist/components/entity-summary/index.js +1 -1
  180. package/dist/components/file-manager/index.js +1 -1
  181. package/dist/components/gestational-age-calculator/index.js +1 -1
  182. package/dist/components/hcg-doubling/index.js +1 -1
  183. package/dist/components/header-settings/index.js +1 -1
  184. package/dist/components/heatmap/index.js +1 -1
  185. package/dist/components/hover-card/hover-card.d.ts.map +1 -1
  186. package/dist/components/hover-card/index.js +1 -1
  187. package/dist/components/icon-picker/index.js +1 -1
  188. package/dist/components/info-tip/index.js +1 -1
  189. package/dist/components/link/index.js +1 -1
  190. package/dist/components/link/link.d.ts +5 -3
  191. package/dist/components/link/link.d.ts.map +1 -1
  192. package/dist/components/locale-picker/index.js +1 -1
  193. package/dist/components/message-tray/index.js +1 -1
  194. package/dist/components/message-tray/message-tray.d.ts.map +1 -1
  195. package/dist/components/nav-grid/index.js +1 -1
  196. package/dist/components/note-timeline/index.js +1 -1
  197. package/dist/components/notes-panel/index.js +1 -1
  198. package/dist/components/notification-tray/index.js +1 -1
  199. package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
  200. package/dist/components/patient-details/index.js +1 -1
  201. package/dist/components/patient-summary-card/index.js +1 -1
  202. package/dist/components/patient-table/index.js +1 -1
  203. package/dist/components/payment-card/index.js +1 -1
  204. package/dist/components/pdf-viewer/index.js +1 -1
  205. package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
  206. package/dist/components/phone-input/index.js +1 -1
  207. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  208. package/dist/components/popover/index.js +1 -1
  209. package/dist/components/popover/popover.d.ts +1 -1
  210. package/dist/components/popover/popover.d.ts.map +1 -1
  211. package/dist/components/practice-results/index.js +1 -1
  212. package/dist/components/pregnancy-dating/index.js +1 -1
  213. package/dist/components/product-hub-tray/index.js +1 -1
  214. package/dist/components/product-hub-tray/product-hub-tray.d.ts.map +1 -1
  215. package/dist/components/public-footer/index.js +1 -1
  216. package/dist/components/public-header/index.js +1 -1
  217. package/dist/components/radiograph-panel/index.js +1 -1
  218. package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
  219. package/dist/components/rich-text-editor/index.js +2 -2
  220. package/dist/components/sheet/index.js +1 -1
  221. package/dist/components/sign-document/index.js +1 -1
  222. package/dist/components/task-editor/index.js +1 -1
  223. package/dist/components/voice-control-panel/index.js +1 -1
  224. package/dist/components/widget-picker/index.js +1 -1
  225. package/dist/i18n/locales/ar.d.ts +14 -0
  226. package/dist/i18n/locales/ar.d.ts.map +1 -1
  227. package/dist/i18n/locales/ar.js +15 -1
  228. package/dist/i18n/locales/ar.js.map +1 -1
  229. package/dist/i18n/locales/de.d.ts +14 -0
  230. package/dist/i18n/locales/de.d.ts.map +1 -1
  231. package/dist/i18n/locales/de.js +15 -1
  232. package/dist/i18n/locales/de.js.map +1 -1
  233. package/dist/i18n/locales/el.d.ts +14 -0
  234. package/dist/i18n/locales/el.d.ts.map +1 -1
  235. package/dist/i18n/locales/el.js +15 -1
  236. package/dist/i18n/locales/el.js.map +1 -1
  237. package/dist/i18n/locales/en.d.ts +14 -0
  238. package/dist/i18n/locales/en.d.ts.map +1 -1
  239. package/dist/i18n/locales/en.js +15 -1
  240. package/dist/i18n/locales/en.js.map +1 -1
  241. package/dist/i18n/locales/es.d.ts +14 -0
  242. package/dist/i18n/locales/es.d.ts.map +1 -1
  243. package/dist/i18n/locales/es.js +15 -1
  244. package/dist/i18n/locales/es.js.map +1 -1
  245. package/dist/i18n/locales/fr.d.ts +14 -0
  246. package/dist/i18n/locales/fr.d.ts.map +1 -1
  247. package/dist/i18n/locales/fr.js +15 -1
  248. package/dist/i18n/locales/fr.js.map +1 -1
  249. package/dist/i18n/locales/hi.d.ts +14 -0
  250. package/dist/i18n/locales/hi.d.ts.map +1 -1
  251. package/dist/i18n/locales/hi.js +15 -1
  252. package/dist/i18n/locales/hi.js.map +1 -1
  253. package/dist/i18n/locales/it.d.ts +14 -0
  254. package/dist/i18n/locales/it.d.ts.map +1 -1
  255. package/dist/i18n/locales/it.js +15 -1
  256. package/dist/i18n/locales/it.js.map +1 -1
  257. package/dist/i18n/locales/ja.d.ts +14 -0
  258. package/dist/i18n/locales/ja.d.ts.map +1 -1
  259. package/dist/i18n/locales/ja.js +15 -1
  260. package/dist/i18n/locales/ja.js.map +1 -1
  261. package/dist/i18n/locales/nl.d.ts +14 -0
  262. package/dist/i18n/locales/nl.d.ts.map +1 -1
  263. package/dist/i18n/locales/nl.js +15 -1
  264. package/dist/i18n/locales/nl.js.map +1 -1
  265. package/dist/i18n/locales/pl.d.ts +14 -0
  266. package/dist/i18n/locales/pl.d.ts.map +1 -1
  267. package/dist/i18n/locales/pl.js +15 -1
  268. package/dist/i18n/locales/pl.js.map +1 -1
  269. package/dist/i18n/locales/pt.d.ts +14 -0
  270. package/dist/i18n/locales/pt.d.ts.map +1 -1
  271. package/dist/i18n/locales/pt.js +15 -1
  272. package/dist/i18n/locales/pt.js.map +1 -1
  273. package/dist/i18n/locales/ro.d.ts +14 -0
  274. package/dist/i18n/locales/ro.d.ts.map +1 -1
  275. package/dist/i18n/locales/ro.js +15 -1
  276. package/dist/i18n/locales/ro.js.map +1 -1
  277. package/dist/i18n/locales/ru.d.ts +14 -0
  278. package/dist/i18n/locales/ru.d.ts.map +1 -1
  279. package/dist/i18n/locales/ru.js +15 -1
  280. package/dist/i18n/locales/ru.js.map +1 -1
  281. package/dist/i18n/locales/sq.d.ts +14 -0
  282. package/dist/i18n/locales/sq.d.ts.map +1 -1
  283. package/dist/i18n/locales/sq.js +15 -1
  284. package/dist/i18n/locales/sq.js.map +1 -1
  285. package/dist/i18n/locales/sv.d.ts +14 -0
  286. package/dist/i18n/locales/sv.d.ts.map +1 -1
  287. package/dist/i18n/locales/sv.js +15 -1
  288. package/dist/i18n/locales/sv.js.map +1 -1
  289. package/dist/i18n/locales/tr.d.ts +14 -0
  290. package/dist/i18n/locales/tr.d.ts.map +1 -1
  291. package/dist/i18n/locales/tr.js +15 -1
  292. package/dist/i18n/locales/tr.js.map +1 -1
  293. package/dist/i18n/locales/zh.d.ts +14 -0
  294. package/dist/i18n/locales/zh.d.ts.map +1 -1
  295. package/dist/i18n/locales/zh.js +15 -1
  296. package/dist/i18n/locales/zh.js.map +1 -1
  297. package/dist/index.js +194 -193
  298. package/dist/locales/ar.json +15 -1
  299. package/dist/locales/de.json +15 -1
  300. package/dist/locales/el.json +15 -1
  301. package/dist/locales/en.json +15 -1
  302. package/dist/locales/es.json +15 -1
  303. package/dist/locales/fr.json +15 -1
  304. package/dist/locales/hi.json +15 -1
  305. package/dist/locales/it.json +15 -1
  306. package/dist/locales/ja.json +15 -1
  307. package/dist/locales/nl.json +15 -1
  308. package/dist/locales/pl.json +15 -1
  309. package/dist/locales/pt.json +15 -1
  310. package/dist/locales/ro.json +15 -1
  311. package/dist/locales/ru.json +15 -1
  312. package/dist/locales/sq.json +15 -1
  313. package/dist/locales/sv.json +15 -1
  314. package/dist/locales/tr.json +15 -1
  315. package/dist/locales/zh.json +15 -1
  316. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
  317. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts.map +1 -1
  318. package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
  319. package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
  320. package/dist/patterns/alia-assistant/alia-popout.d.ts.map +1 -1
  321. package/dist/patterns/alia-assistant/index.d.ts +2 -0
  322. package/dist/patterns/alia-assistant/index.d.ts.map +1 -1
  323. package/dist/patterns/alia-assistant/index.js +6 -5
  324. package/dist/patterns/anamnesis/index.js +1 -1
  325. package/dist/patterns/calendar/index.js +1 -1
  326. package/dist/patterns/help-me-write-templates/index.js +1 -1
  327. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  328. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
  329. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
  330. package/dist/patterns/registration-form/index.js +1 -1
  331. package/dist/patterns/signature-request/index.js +1 -1
  332. package/dist/patterns/signed-out-frame/index.js +1 -1
  333. package/dist/tokens.css +1 -1
  334. package/package.json +1 -1
  335. package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
  336. package/dist/_chunks/ai-permission-notice-5vpblPCx.js.map +0 -1
  337. package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
  338. package/dist/_chunks/alia-sidebar-DOei4Iyu.js.map +0 -1
  339. package/dist/_chunks/chart-HsF1KHbx.js.map +0 -1
  340. package/dist/_chunks/color-picker-BRQ4Y9SO.js.map +0 -1
  341. package/dist/_chunks/date-picker-wRAcq2lt.js.map +0 -1
  342. package/dist/_chunks/date-range-picker-CtUOI38x.js.map +0 -1
  343. package/dist/_chunks/date-time-picker-CLeLKuv9.js.map +0 -1
  344. package/dist/_chunks/hover-card-BnTueNS2.js.map +0 -1
  345. package/dist/_chunks/link-2HokYuIi.js +0 -130
  346. package/dist/_chunks/link-2HokYuIi.js.map +0 -1
  347. package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js.map +0 -1
  348. package/dist/_chunks/message-tray-BB95DA82.js.map +0 -1
  349. package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
  350. package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js.map +0 -1
  351. package/dist/_chunks/notification-tray-__sJXnsz.js.map +0 -1
  352. package/dist/_chunks/pdf-viewer-C3minW5b.js.map +0 -1
  353. package/dist/_chunks/phone-input-DxkHMYmu.js.map +0 -1
  354. package/dist/_chunks/popover-BI3oV3eY.js +0 -305
  355. package/dist/_chunks/popover-BI3oV3eY.js.map +0 -1
  356. package/dist/_chunks/product-hub-panel-BSSiGGG4.js.map +0 -1
  357. package/dist/_chunks/rich-text-editor-CkFfmA3v.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as A, Fragment as Ie } from "react/jsx-runtime";
2
- import { useId as qe, useState as N, useRef as C, useCallback as v, useEffect as S, Fragment as ht, forwardRef as Zo, useMemo as tt, useImperativeHandle as Qo } from "react";
2
+ import { useId as qe, useState as E, useRef as C, useCallback as v, useEffect as L, Fragment as ht, forwardRef as Zo, useMemo as tt, useImperativeHandle as Qo } from "react";
3
3
  import { c as Bn } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as re } from "react-i18next";
5
5
  import { SafeHtml as Yo, sanitiseHtml as Jo } from "../safe-html/index.js";
@@ -10,7 +10,7 @@ import { S as Pn } from "./spinner-CoflYlEx.js";
10
10
  import { A as aa } from "./ai-sparkle-D23NT8Z_.js";
11
11
  import { B as Ee } from "./button-Bn16lcFM.js";
12
12
  import { I as j } from "./icon-button-COX76Jdj.js";
13
- import { A as ia } from "./ai-permission-notice-5vpblPCx.js";
13
+ import { A as ia } from "./ai-permission-notice-DyuEGwAt.js";
14
14
  import { T as sa } from "./text-area-COMVJ1yE.js";
15
15
  import { E as Ln } from "./editor-overlay-NMxzcO6J.js";
16
16
  import { X as Lr } from "./x-B5YnXwCz.js";
@@ -21,86 +21,87 @@ import { M as _n } from "./mic-CUklMZGF.js";
21
21
  import { S as da } from "./send-C5kDJ-Mz.js";
22
22
  import { D as X } from "./dropdown-menu-BQSNVp4x.js";
23
23
  import * as Zt from "@radix-ui/react-popover";
24
+ import { u as ua, f as ma } from "./non-modal-tab-exit-j3CPOuE3.js";
24
25
  import { V as Ur } from "./variables-menu-DQl8H4Gh.js";
25
26
  import { a as Fn } from "./tooltip-Cp-PLePW.js";
26
- import { P as ne } from "./popover-BI3oV3eY.js";
27
- import { D as ie } from "./dialog-CUzbnKLw.js";
28
- import { C as jn } from "./color-picker-BRQ4Y9SO.js";
27
+ import { P as ne } from "./popover-BG75rYjN.js";
28
+ import { D as ie } from "./dialog-Dn-iQ0Jp.js";
29
+ import { C as jn } from "./color-picker-BsggJovx.js";
29
30
  import { S as en } from "./state-backed-text-input-DECQy5aA.js";
30
- import { C as ua } from "./checkbox--ndmyokr.js";
31
- import { F as ma } from "./file-upload-CxjCs7TX.js";
31
+ import { C as fa } from "./checkbox--ndmyokr.js";
32
+ import { F as ha } from "./file-upload-CxjCs7TX.js";
32
33
  import { c as I } from "./createLucideIcon-DhHxpK9K.js";
33
- import { E as fa } from "./ellipsis-dRo9ouSU.js";
34
- import { H as ha, U as ga } from "./undo-2-CYNAzclj.js";
35
- import { I as pa } from "./image-B_5MNK0x.js";
34
+ import { E as ga } from "./ellipsis-dRo9ouSU.js";
35
+ import { H as pa, U as ba } from "./undo-2-CYNAzclj.js";
36
+ import { I as va } from "./image-B_5MNK0x.js";
36
37
  import { C as Zr } from "./chevron-down-DWE7GSq9.js";
37
- import { P as ba } from "./plus-DzMQ_c6b.js";
38
- import { S as va } from "./settings-d25ju_6L.js";
39
- import { T as ya } from "./trash-2-uumy3fy1.js";
40
- import { H as Hn, u as wa } from "./hover-card-BnTueNS2.js";
41
- import { A as ka } from "./ai-credits-notice-BoNJtOuE.js";
38
+ import { P as ya } from "./plus-DzMQ_c6b.js";
39
+ import { S as wa } from "./settings-d25ju_6L.js";
40
+ import { T as ka } from "./trash-2-uumy3fy1.js";
41
+ import { H as Hn, u as xa } from "./hover-card-U_ZYoh1n.js";
42
+ import { A as Ca } from "./ai-credits-notice-ktklr8fy.js";
42
43
  /**
43
44
  * @license lucide-react v1.22.0 - ISC
44
45
  *
45
46
  * This source code is licensed under the ISC license.
46
47
  * See the LICENSE file in the root directory of this source tree.
47
48
  */
48
- const xa = [
49
+ const Aa = [
49
50
  ["path", { d: "M4 20h16", key: "14thso" }],
50
51
  ["path", { d: "m6 16 6-12 6 12", key: "1b4byz" }],
51
52
  ["path", { d: "M8 12h8", key: "1wcyev" }]
52
- ], Ca = I("baseline", xa);
53
+ ], Ta = I("baseline", Aa);
53
54
  /**
54
55
  * @license lucide-react v1.22.0 - ISC
55
56
  *
56
57
  * This source code is licensed under the ISC license.
57
58
  * See the LICENSE file in the root directory of this source tree.
58
59
  */
59
- const Aa = [
60
+ const Ea = [
60
61
  ["rect", { width: "13", height: "7", x: "3", y: "3", rx: "1", key: "11xb64" }],
61
62
  ["path", { d: "m22 15-3-3 3-3", key: "26chmm" }],
62
63
  ["rect", { width: "13", height: "7", x: "3", y: "14", rx: "1", key: "k6ky7n" }]
63
- ], Ta = I("between-horizontal-end", Aa);
64
+ ], Na = I("between-horizontal-end", Ea);
64
65
  /**
65
66
  * @license lucide-react v1.22.0 - ISC
66
67
  *
67
68
  * This source code is licensed under the ISC license.
68
69
  * See the LICENSE file in the root directory of this source tree.
69
70
  */
70
- const Ea = [
71
+ const Ma = [
71
72
  ["rect", { width: "13", height: "7", x: "8", y: "3", rx: "1", key: "pkso9a" }],
72
73
  ["path", { d: "m2 9 3 3-3 3", key: "1agib5" }],
73
74
  ["rect", { width: "13", height: "7", x: "8", y: "14", rx: "1", key: "1q5fc1" }]
74
- ], Na = I("between-horizontal-start", Ea);
75
+ ], Ra = I("between-horizontal-start", Ma);
75
76
  /**
76
77
  * @license lucide-react v1.22.0 - ISC
77
78
  *
78
79
  * This source code is licensed under the ISC license.
79
80
  * See the LICENSE file in the root directory of this source tree.
80
81
  */
81
- const Ma = [
82
+ const za = [
82
83
  ["rect", { width: "7", height: "13", x: "3", y: "3", rx: "1", key: "1fdu0f" }],
83
84
  ["path", { d: "m9 22 3-3 3 3", key: "17z65a" }],
84
85
  ["rect", { width: "7", height: "13", x: "14", y: "3", rx: "1", key: "1squn4" }]
85
- ], Ra = I("between-vertical-end", Ma);
86
+ ], Sa = I("between-vertical-end", za);
86
87
  /**
87
88
  * @license lucide-react v1.22.0 - ISC
88
89
  *
89
90
  * This source code is licensed under the ISC license.
90
91
  * See the LICENSE file in the root directory of this source tree.
91
92
  */
92
- const za = [
93
+ const La = [
93
94
  ["rect", { width: "7", height: "13", x: "3", y: "8", rx: "1", key: "1fjrkv" }],
94
95
  ["path", { d: "m15 2-3 3-3-3", key: "1uh6eb" }],
95
96
  ["rect", { width: "7", height: "13", x: "14", y: "8", rx: "1", key: "w3fjg8" }]
96
- ], Sa = I("between-vertical-start", za);
97
+ ], _a = I("between-vertical-start", La);
97
98
  /**
98
99
  * @license lucide-react v1.22.0 - ISC
99
100
  *
100
101
  * This source code is licensed under the ISC license.
101
102
  * See the LICENSE file in the root directory of this source tree.
102
103
  */
103
- const La = [
104
+ const Ha = [
104
105
  [
105
106
  "path",
106
107
  {
@@ -109,26 +110,26 @@ const La = [
109
110
  }
110
111
  ],
111
112
  ["rect", { x: "14", y: "2", width: "8", height: "8", rx: "1", key: "88lufb" }]
112
- ], In = I("blocks", La);
113
+ ], In = I("blocks", Ha);
113
114
  /**
114
115
  * @license lucide-react v1.22.0 - ISC
115
116
  *
116
117
  * This source code is licensed under the ISC license.
117
118
  * See the LICENSE file in the root directory of this source tree.
118
119
  */
119
- const _a = [
120
+ const Ia = [
120
121
  [
121
122
  "path",
122
123
  { 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" }
123
124
  ]
124
- ], Ha = I("bold", _a);
125
+ ], $a = I("bold", Ia);
125
126
  /**
126
127
  * @license lucide-react v1.22.0 - ISC
127
128
  *
128
129
  * This source code is licensed under the ISC license.
129
130
  * See the LICENSE file in the root directory of this source tree.
130
131
  */
131
- const Ia = [
132
+ const Da = [
132
133
  [
133
134
  "path",
134
135
  { d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1", key: "ezmyqa" }
@@ -140,98 +141,98 @@ const Ia = [
140
141
  key: "e1hn23"
141
142
  }
142
143
  ]
143
- ], $a = I("braces", Ia);
144
+ ], Oa = I("braces", Da);
144
145
  /**
145
146
  * @license lucide-react v1.22.0 - ISC
146
147
  *
147
148
  * This source code is licensed under the ISC license.
148
149
  * See the LICENSE file in the root directory of this source tree.
149
150
  */
150
- const Da = [
151
+ const qa = [
151
152
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
152
153
  ["path", { d: "M12 3v18", key: "108xh3" }]
153
- ], Oa = I("columns-2", Da);
154
+ ], Ba = I("columns-2", qa);
154
155
  /**
155
156
  * @license lucide-react v1.22.0 - ISC
156
157
  *
157
158
  * This source code is licensed under the ISC license.
158
159
  * See the LICENSE file in the root directory of this source tree.
159
160
  */
160
- const qa = [
161
+ const Pa = [
161
162
  ["path", { d: "M4 12h8", key: "17cfdx" }],
162
163
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
163
164
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
164
165
  ["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
165
- ], Ba = I("heading-2", qa);
166
+ ], Fa = I("heading-2", Pa);
166
167
  /**
167
168
  * @license lucide-react v1.22.0 - ISC
168
169
  *
169
170
  * This source code is licensed under the ISC license.
170
171
  * See the LICENSE file in the root directory of this source tree.
171
172
  */
172
- const Pa = [
173
+ const ja = [
173
174
  ["path", { d: "M4 12h8", key: "17cfdx" }],
174
175
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
175
176
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
176
177
  ["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
177
178
  ["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
178
- ], Fa = I("heading-3", Pa);
179
+ ], Ga = I("heading-3", ja);
179
180
  /**
180
181
  * @license lucide-react v1.22.0 - ISC
181
182
  *
182
183
  * This source code is licensed under the ISC license.
183
184
  * See the LICENSE file in the root directory of this source tree.
184
185
  */
185
- const ja = [
186
+ const Ka = [
186
187
  ["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
187
188
  ["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
188
189
  ["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
189
- ], Ga = I("italic", ja);
190
+ ], Va = I("italic", Ka);
190
191
  /**
191
192
  * @license lucide-react v1.22.0 - ISC
192
193
  *
193
194
  * This source code is licensed under the ISC license.
194
195
  * See the LICENSE file in the root directory of this source tree.
195
196
  */
196
- const Ka = [
197
+ const Wa = [
197
198
  ["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" }],
198
199
  ["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" }]
199
- ], Va = I("link", Ka);
200
+ ], Xa = I("link", Wa);
200
201
  /**
201
202
  * @license lucide-react v1.22.0 - ISC
202
203
  *
203
204
  * This source code is licensed under the ISC license.
204
205
  * See the LICENSE file in the root directory of this source tree.
205
206
  */
206
- const Wa = [
207
+ const Ua = [
207
208
  ["path", { d: "M11 5h10", key: "1cz7ny" }],
208
209
  ["path", { d: "M11 12h10", key: "1438ji" }],
209
210
  ["path", { d: "M11 19h10", key: "11t30w" }],
210
211
  ["path", { d: "M4 4h1v5", key: "10yrso" }],
211
212
  ["path", { d: "M4 9h2", key: "r1h2o0" }],
212
213
  ["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" }]
213
- ], Xa = I("list-ordered", Wa);
214
+ ], Za = I("list-ordered", Ua);
214
215
  /**
215
216
  * @license lucide-react v1.22.0 - ISC
216
217
  *
217
218
  * This source code is licensed under the ISC license.
218
219
  * See the LICENSE file in the root directory of this source tree.
219
220
  */
220
- const Ua = [
221
+ const Qa = [
221
222
  ["path", { d: "M3 5h.01", key: "18ugdj" }],
222
223
  ["path", { d: "M3 12h.01", key: "nlz23k" }],
223
224
  ["path", { d: "M3 19h.01", key: "noohij" }],
224
225
  ["path", { d: "M8 5h13", key: "1pao27" }],
225
226
  ["path", { d: "M8 12h13", key: "1za7za" }],
226
227
  ["path", { d: "M8 19h13", key: "m83p4d" }]
227
- ], Za = I("list", Ua);
228
+ ], Ya = I("list", Qa);
228
229
  /**
229
230
  * @license lucide-react v1.22.0 - ISC
230
231
  *
231
232
  * This source code is licensed under the ISC license.
232
233
  * See the LICENSE file in the root directory of this source tree.
233
234
  */
234
- const Qa = [
235
+ const Ja = [
235
236
  ["path", { d: "M11 7 6 2", key: "1jwth8" }],
236
237
  ["path", { d: "M18.992 12H2.041", key: "xw1gg" }],
237
238
  [
@@ -248,25 +249,25 @@ const Qa = [
248
249
  key: "1nk1rd"
249
250
  }
250
251
  ]
251
- ], Ya = I("paint-bucket", Qa);
252
+ ], ei = I("paint-bucket", Ja);
252
253
  /**
253
254
  * @license lucide-react v1.22.0 - ISC
254
255
  *
255
256
  * This source code is licensed under the ISC license.
256
257
  * See the LICENSE file in the root directory of this source tree.
257
258
  */
258
- const Ja = [
259
+ const ti = [
259
260
  ["rect", { width: "16", height: "6", x: "2", y: "2", rx: "2", key: "jcyz7m" }],
260
261
  ["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" }],
261
262
  ["rect", { width: "4", height: "6", x: "8", y: "16", rx: "1", key: "d6e7yl" }]
262
- ], ei = I("paint-roller", Ja);
263
+ ], ni = I("paint-roller", ti);
263
264
  /**
264
265
  * @license lucide-react v1.22.0 - ISC
265
266
  *
266
267
  * This source code is licensed under the ISC license.
267
268
  * See the LICENSE file in the root directory of this source tree.
268
269
  */
269
- const ti = [
270
+ const ri = [
270
271
  [
271
272
  "path",
272
273
  {
@@ -278,57 +279,57 @@ const ti = [
278
279
  ["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
279
280
  ["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
280
281
  ["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
281
- ], ni = I("palette", ti);
282
+ ], oi = I("palette", ri);
282
283
  /**
283
284
  * @license lucide-react v1.22.0 - ISC
284
285
  *
285
286
  * This source code is licensed under the ISC license.
286
287
  * See the LICENSE file in the root directory of this source tree.
287
288
  */
288
- const ri = [
289
+ const ai = [
289
290
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
290
291
  ["path", { d: "M9 3v18", key: "fh3hqa" }]
291
- ], oi = I("panel-left", ri);
292
+ ], ii = I("panel-left", ai);
292
293
  /**
293
294
  * @license lucide-react v1.22.0 - ISC
294
295
  *
295
296
  * This source code is licensed under the ISC license.
296
297
  * See the LICENSE file in the root directory of this source tree.
297
298
  */
298
- const ai = [
299
+ const si = [
299
300
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
300
301
  ["path", { d: "M15 3v18", key: "14nvp0" }]
301
- ], ii = I("panel-right", ai);
302
+ ], li = I("panel-right", si);
302
303
  /**
303
304
  * @license lucide-react v1.22.0 - ISC
304
305
  *
305
306
  * This source code is licensed under the ISC license.
306
307
  * See the LICENSE file in the root directory of this source tree.
307
308
  */
308
- const si = [
309
+ const ci = [
309
310
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
310
311
  ["path", { d: "M14 9h1", key: "l0svgy" }],
311
312
  ["path", { d: "M19 9h2", key: "te2zfg" }],
312
313
  ["path", { d: "M3 9h2", key: "1h4ldw" }],
313
314
  ["path", { d: "M9 9h1", key: "15jzuz" }]
314
- ], li = I("panel-top-dashed", si);
315
+ ], di = I("panel-top-dashed", ci);
315
316
  /**
316
317
  * @license lucide-react v1.22.0 - ISC
317
318
  *
318
319
  * This source code is licensed under the ISC license.
319
320
  * See the LICENSE file in the root directory of this source tree.
320
321
  */
321
- const ci = [
322
+ const ui = [
322
323
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
323
324
  ["path", { d: "M3 9h18", key: "1pudct" }]
324
- ], di = I("panel-top", ci);
325
+ ], mi = I("panel-top", ui);
325
326
  /**
326
327
  * @license lucide-react v1.22.0 - ISC
327
328
  *
328
329
  * This source code is licensed under the ISC license.
329
330
  * See the LICENSE file in the root directory of this source tree.
330
331
  */
331
- const ui = [
332
+ const fi = [
332
333
  ["path", { d: "M10 3H8", key: "mzdi2d" }],
333
334
  ["path", { d: "m15.007 5.008 3.987 3.986", key: "1scubj" }],
334
335
  ["path", { d: "M20 15v4", key: "nmhudv" }],
@@ -343,25 +344,25 @@ const ui = [
343
344
  ["path", { d: "M4 5v4", key: "13jjxc" }],
344
345
  ["path", { d: "M6 7H2", key: "8zbtv0" }],
345
346
  ["path", { d: "M9 2v2", key: "165o2o" }]
346
- ], _r = I("pencil-sparkles", ui);
347
+ ], _r = I("pencil-sparkles", fi);
347
348
  /**
348
349
  * @license lucide-react v1.22.0 - ISC
349
350
  *
350
351
  * This source code is licensed under the ISC license.
351
352
  * See the LICENSE file in the root directory of this source tree.
352
353
  */
353
- const mi = [
354
+ const hi = [
354
355
  ["path", { d: "M13 4v16", key: "8vvj80" }],
355
356
  ["path", { d: "M17 4v16", key: "7dpous" }],
356
357
  ["path", { d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13", key: "sh4n9v" }]
357
- ], fi = I("pilcrow", mi);
358
+ ], gi = I("pilcrow", hi);
358
359
  /**
359
360
  * @license lucide-react v1.22.0 - ISC
360
361
  *
361
362
  * This source code is licensed under the ISC license.
362
363
  * See the LICENSE file in the root directory of this source tree.
363
364
  */
364
- const hi = [
365
+ const pi = [
365
366
  [
366
367
  "path",
367
368
  {
@@ -376,122 +377,122 @@ const hi = [
376
377
  key: "1ymkrd"
377
378
  }
378
379
  ]
379
- ], gi = I("quote", hi);
380
+ ], bi = I("quote", pi);
380
381
  /**
381
382
  * @license lucide-react v1.22.0 - ISC
382
383
  *
383
384
  * This source code is licensed under the ISC license.
384
385
  * See the LICENSE file in the root directory of this source tree.
385
386
  */
386
- const pi = [
387
+ const vi = [
387
388
  ["path", { d: "m15 14 5-5-5-5", key: "12vg1m" }],
388
389
  ["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" }]
389
- ], bi = I("redo-2", pi);
390
+ ], yi = I("redo-2", vi);
390
391
  /**
391
392
  * @license lucide-react v1.22.0 - ISC
392
393
  *
393
394
  * This source code is licensed under the ISC license.
394
395
  * See the LICENSE file in the root directory of this source tree.
395
396
  */
396
- const vi = [
397
+ const wi = [
397
398
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
398
399
  ["path", { d: "M3 12h18", key: "1i2n21" }]
399
- ], yi = I("rows-2", vi);
400
+ ], ki = I("rows-2", wi);
400
401
  /**
401
402
  * @license lucide-react v1.22.0 - ISC
402
403
  *
403
404
  * This source code is licensed under the ISC license.
404
405
  * See the LICENSE file in the root directory of this source tree.
405
406
  */
406
- const wi = [
407
+ const xi = [
407
408
  ["path", { d: "m6 16 6-12 6 12", key: "1b4byz" }],
408
409
  ["path", { d: "M8 12h8", key: "1wcyev" }],
409
410
  ["path", { d: "m16 20 2 2 4-4", key: "13tcca" }]
410
- ], Hr = I("spell-check", wi);
411
+ ], Hr = I("spell-check", xi);
411
412
  /**
412
413
  * @license lucide-react v1.22.0 - ISC
413
414
  *
414
415
  * This source code is licensed under the ISC license.
415
416
  * See the LICENSE file in the root directory of this source tree.
416
417
  */
417
- const ki = [
418
+ const Ci = [
418
419
  ["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
419
420
  ["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
420
421
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
421
- ], xi = I("strikethrough", ki);
422
+ ], Ai = I("strikethrough", Ci);
422
423
  /**
423
424
  * @license lucide-react v1.22.0 - ISC
424
425
  *
425
426
  * This source code is licensed under the ISC license.
426
427
  * See the LICENSE file in the root directory of this source tree.
427
428
  */
428
- const Ci = [
429
+ const Ti = [
429
430
  ["path", { d: "M12 3v18", key: "108xh3" }],
430
431
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
431
432
  ["path", { d: "M3 9h18", key: "1pudct" }],
432
433
  ["path", { d: "M3 15h18", key: "5xshup" }]
433
- ], Ai = I("table", Ci);
434
+ ], Ei = I("table", Ti);
434
435
  /**
435
436
  * @license lucide-react v1.22.0 - ISC
436
437
  *
437
438
  * This source code is licensed under the ISC license.
438
439
  * See the LICENSE file in the root directory of this source tree.
439
440
  */
440
- const Ti = [
441
+ const Ni = [
441
442
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
442
443
  ["path", { d: "M17 12H7", key: "16if0g" }],
443
444
  ["path", { d: "M19 19H5", key: "vjpgq2" }]
444
- ], Ei = I("text-align-center", Ti);
445
+ ], Mi = I("text-align-center", Ni);
445
446
  /**
446
447
  * @license lucide-react v1.22.0 - ISC
447
448
  *
448
449
  * This source code is licensed under the ISC license.
449
450
  * See the LICENSE file in the root directory of this source tree.
450
451
  */
451
- const Ni = [
452
+ const Ri = [
452
453
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
453
454
  ["path", { d: "M21 12H9", key: "dn1m92" }],
454
455
  ["path", { d: "M21 19H7", key: "4cu937" }]
455
- ], Mi = I("text-align-end", Ni);
456
+ ], zi = I("text-align-end", Ri);
456
457
  /**
457
458
  * @license lucide-react v1.22.0 - ISC
458
459
  *
459
460
  * This source code is licensed under the ISC license.
460
461
  * See the LICENSE file in the root directory of this source tree.
461
462
  */
462
- const Ri = [
463
+ const Si = [
463
464
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
464
465
  ["path", { d: "M15 12H3", key: "6jk70r" }],
465
466
  ["path", { d: "M17 19H3", key: "z6ezky" }]
466
- ], zi = I("text-align-start", Ri);
467
+ ], Li = I("text-align-start", Si);
467
468
  /**
468
469
  * @license lucide-react v1.22.0 - ISC
469
470
  *
470
471
  * This source code is licensed under the ISC license.
471
472
  * See the LICENSE file in the root directory of this source tree.
472
473
  */
473
- const Si = [
474
+ const _i = [
474
475
  ["rect", { width: "18", height: "12", x: "3", y: "8", rx: "1", key: "158fvp" }],
475
476
  ["path", { d: "M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3", key: "s0042v" }],
476
477
  ["path", { d: "M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3", key: "9wmeh2" }]
477
- ], $n = I("toy-brick", Si);
478
+ ], $n = I("toy-brick", _i);
478
479
  /**
479
480
  * @license lucide-react v1.22.0 - ISC
480
481
  *
481
482
  * This source code is licensed under the ISC license.
482
483
  * See the LICENSE file in the root directory of this source tree.
483
484
  */
484
- const Li = [
485
+ const Hi = [
485
486
  ["path", { d: "M6 4v6a6 6 0 0 0 12 0V4", key: "9kb039" }],
486
487
  ["line", { x1: "4", x2: "20", y1: "20", y2: "20", key: "nun2al" }]
487
- ], _i = I("underline", Li);
488
+ ], Ii = I("underline", Hi);
488
489
  /**
489
490
  * @license lucide-react v1.22.0 - ISC
490
491
  *
491
492
  * This source code is licensed under the ISC license.
492
493
  * See the LICENSE file in the root directory of this source tree.
493
494
  */
494
- const Hi = [
495
+ const $i = [
495
496
  [
496
497
  "path",
497
498
  {
@@ -506,7 +507,7 @@ const Hi = [
506
507
  ["path", { d: "M7 8H3", key: "zfb6yr" }],
507
508
  ["path", { d: "M21 16h-4", key: "1cnmox" }],
508
509
  ["path", { d: "M11 3H9", key: "1obp7u" }]
509
- ], Ir = I("wand-sparkles", Hi);
510
+ ], Ir = I("wand-sparkles", $i);
510
511
  function $r(n) {
511
512
  return {
512
513
  format: n("editor.vendor.format"),
@@ -584,7 +585,7 @@ function $r(n) {
584
585
  "delete-table": n("editor.table.deleteTable")
585
586
  };
586
587
  }
587
- const Ii = {
588
+ const Di = {
588
589
  id: "rich-text-editor",
589
590
  capabilities: ["edit_inline"],
590
591
  state: {
@@ -727,7 +728,7 @@ const Ii = {
727
728
  description: "Sourced from the id prop."
728
729
  }
729
730
  }
730
- }, $i = "ds:aria-pressed:!bg-[var(--destructive)] ds:aria-pressed:!text-[var(--destructive-foreground)]", nt = "ds:!size-[var(--min-target-size)]", Di = "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", Oi = "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--destructive)]";
731
+ }, Oi = "ds:aria-pressed:!bg-[var(--destructive)] ds:aria-pressed:!text-[var(--destructive-foreground)]", nt = "ds:!size-[var(--min-target-size)]", qi = "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", Bi = "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--destructive)]";
731
732
  function Qr({ id: n }) {
732
733
  const { t: i } = re("ui");
733
734
  return /* @__PURE__ */ t(
@@ -736,7 +737,7 @@ function Qr({ id: n }) {
736
737
  "data-component": "editor-request-error",
737
738
  id: n,
738
739
  role: "alert",
739
- className: Oi,
740
+ className: Bi,
740
741
  children: i("editor.ai.error")
741
742
  }
742
743
  );
@@ -758,7 +759,7 @@ const Dr = [
758
759
  function Or(n, i) {
759
760
  return i ? n ? /\s$/.test(n) ? `${n}${i}` : `${n} ${i}` : i : n;
760
761
  }
761
- function qi({
762
+ function Pi({
762
763
  open: n,
763
764
  onClose: i,
764
765
  onRequestAiDraft: c,
@@ -767,53 +768,53 @@ function qi({
767
768
  privacyNotice: u,
768
769
  onDictate: m
769
770
  }) {
770
- const { t: p } = re("ui"), y = qe(), k = qe(), [w, L] = N(""), [T, _] = N(!1), [q, f] = N(!1), [d, h] = N(null), z = C(null), [M, B] = N(!1), [V, O] = N(""), [P, E] = N(""), U = C(null), F = v(() => {
771
- var R;
772
- (R = U.current) == null || R.abort();
771
+ const { t: p } = re("ui"), y = qe(), k = qe(), [w, _] = E(""), [N, M] = E(!1), [q, f] = E(!1), [d, h] = E(null), S = C(null), [R, B] = E(!1), [V, O] = E(""), [P, T] = E(""), U = C(null), F = v(() => {
772
+ var z;
773
+ (z = U.current) == null || z.abort();
773
774
  }, []), Q = v(() => {
774
775
  if (!m) return;
775
- const R = new AbortController();
776
- U.current = R, B(!0), O(""), E(p("editor.ai.listening")), m({
777
- signal: R.signal,
776
+ const z = new AbortController();
777
+ U.current = z, B(!0), O(""), T(p("editor.ai.listening")), m({
778
+ signal: z.signal,
778
779
  onPartialTranscript: (K) => {
779
- R.signal.aborted || O(K);
780
+ z.signal.aborted || O(K);
780
781
  },
781
782
  onFinalTranscript: (K) => {
782
- if (R.signal.aborted) return;
783
+ if (z.signal.aborted) return;
783
784
  const J = K.trim();
784
- O(""), J && (L((se) => Or(se, J)), E(J));
785
+ O(""), J && (_((se) => Or(se, J)), T(J));
785
786
  }
786
787
  }).catch(() => {
787
788
  }).finally(() => {
788
- O(""), U.current === R && (U.current = null, B(!1), E(""));
789
+ O(""), U.current === z && (U.current = null, B(!1), T(""));
789
790
  });
790
791
  }, [m, p]), pe = v(() => {
791
- M ? F() : Q();
792
- }, [M, Q, F]);
793
- S(() => {
794
- var R, K;
795
- n ? (L(""), _(!1), f(!1), h(null), O(""), E("")) : ((R = z.current) == null || R.abort(), z.current = null, (K = U.current) == null || K.abort());
796
- }, [n]), S(
792
+ R ? F() : Q();
793
+ }, [R, Q, F]);
794
+ L(() => {
795
+ var z, K;
796
+ n ? (_(""), M(!1), f(!1), h(null), O(""), T("")) : ((z = S.current) == null || z.abort(), S.current = null, (K = U.current) == null || K.abort());
797
+ }, [n]), L(
797
798
  () => () => {
798
- var R, K;
799
- (R = z.current) == null || R.abort(), (K = U.current) == null || K.abort();
799
+ var z, K;
800
+ (z = S.current) == null || z.abort(), (K = U.current) == null || K.abort();
800
801
  },
801
802
  []
802
803
  );
803
804
  const Y = v(() => {
804
805
  var J;
805
- const R = w.trim();
806
- if (!R || T) return;
807
- F(), (J = z.current) == null || J.abort();
806
+ const z = w.trim();
807
+ if (!z || N) return;
808
+ F(), (J = S.current) == null || J.abort();
808
809
  const K = new AbortController();
809
- z.current = K, f(!1), _(!0), c({ prompt: R, signal: K.signal }).then((se) => {
810
- K.signal.aborted || (h(se), _(!1));
810
+ S.current = K, f(!1), M(!0), c({ prompt: z, signal: K.signal }).then((se) => {
811
+ K.signal.aborted || (h(se), M(!1));
811
812
  }).catch((se) => {
812
- K.signal.aborted || se && typeof se == "object" && "name" in se && se.name === "AbortError" || (f(!0), _(!1));
813
+ K.signal.aborted || se && typeof se == "object" && "name" in se && se.name === "AbortError" || (f(!0), M(!1));
813
814
  });
814
- }, [w, T, c, F]), Ne = v(() => {
815
+ }, [w, N, c, F]), Ne = v(() => {
815
816
  d != null && (s(d), i());
816
- }, [d, s, i]), G = d != null, oe = M ? Or(w, V) : w;
817
+ }, [d, s, i]), G = d != null, oe = R ? Or(w, V) : w;
817
818
  return /* @__PURE__ */ t(
818
819
  Ln,
819
820
  {
@@ -890,13 +891,13 @@ function qi({
890
891
  id: y,
891
892
  size: "md",
892
893
  value: oe,
893
- onChange: (R) => L(R.target.value),
894
+ onChange: (z) => _(z.target.value),
894
895
  placeholder: p("editor.ai.promptPlaceholder"),
895
896
  "aria-label": p("editor.ai.promptLabel"),
896
897
  autoResize: !0,
897
898
  minRows: 1,
898
899
  maxRows: 3,
899
- readOnly: M,
900
+ readOnly: R,
900
901
  tone: q ? "error" : "default",
901
902
  "aria-describedby": q ? k : void 0
902
903
  }
@@ -906,10 +907,10 @@ function qi({
906
907
  {
907
908
  size: "md",
908
909
  intent: "outline",
909
- className: M ? `${nt} ${$i}` : nt,
910
- icon: M ? /* @__PURE__ */ t(Tt, { className: "ds:fill-current" }) : /* @__PURE__ */ t(_n, {}),
911
- "aria-pressed": M,
912
- "aria-label": p(M ? "editor.ai.dictateStop" : "editor.ai.dictateStart"),
910
+ className: R ? `${nt} ${Oi}` : nt,
911
+ icon: R ? /* @__PURE__ */ t(Tt, { className: "ds:fill-current" }) : /* @__PURE__ */ t(_n, {}),
912
+ "aria-pressed": R,
913
+ "aria-label": p(R ? "editor.ai.dictateStop" : "editor.ai.dictateStart"),
913
914
  onClick: pe
914
915
  }
915
916
  ) : null,
@@ -918,17 +919,17 @@ function qi({
918
919
  {
919
920
  size: "md",
920
921
  intent: "primary",
921
- icon: T ? /* @__PURE__ */ t(Pn, { size: "sm", variant: "pulse" }) : /* @__PURE__ */ t(da, {}),
922
+ icon: N ? /* @__PURE__ */ t(Pn, { size: "sm", variant: "pulse" }) : /* @__PURE__ */ t(da, {}),
922
923
  className: `${nt} ds:bg-[image:var(--gradient-brand)] ds:rounded-full`,
923
- disabled: T || !w.trim(),
924
- "aria-busy": T || void 0,
924
+ disabled: N || !w.trim(),
925
+ "aria-busy": N || void 0,
925
926
  "aria-label": p("editor.ai.generate"),
926
927
  onClick: Y
927
928
  }
928
929
  )
929
930
  ] }),
930
931
  m ? /* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: P }) : null,
931
- q ? /* @__PURE__ */ t(Qr, { id: k }) : u ? /* @__PURE__ */ t("p", { className: Di, children: u }) : null
932
+ q ? /* @__PURE__ */ t(Qr, { id: k }) : u ? /* @__PURE__ */ t("p", { className: qi, children: u }) : null
932
933
  ] })
933
934
  }
934
935
  );
@@ -941,54 +942,54 @@ const Jr = {
941
942
  // `pushUndoState` in rich-text-editor.tsx), so Undo steps back over them.
942
943
  undo: {
943
944
  id: "undo",
944
- icon: /* @__PURE__ */ t(ga, {}),
945
+ icon: /* @__PURE__ */ t(ba, {}),
945
946
  label: ["editor.undo", "Undo"],
946
947
  command: ["module.buffer.undo"]
947
948
  },
948
949
  redo: {
949
950
  id: "redo",
950
- icon: /* @__PURE__ */ t(bi, {}),
951
+ icon: /* @__PURE__ */ t(yi, {}),
951
952
  label: ["editor.redo", "Redo"],
952
953
  command: ["module.buffer.redo"]
953
954
  },
954
955
  bold: {
955
956
  id: "bold",
956
- icon: /* @__PURE__ */ t(Ha, {}),
957
+ icon: /* @__PURE__ */ t($a, {}),
957
958
  label: ["editor.bold", "Bold"],
958
959
  command: ["module.inline.format", { tag: "b" }],
959
960
  toggle: "bold"
960
961
  },
961
962
  italic: {
962
963
  id: "italic",
963
- icon: /* @__PURE__ */ t(Ga, {}),
964
+ icon: /* @__PURE__ */ t(Va, {}),
964
965
  label: ["editor.italic", "Italic"],
965
966
  command: ["module.inline.format", { tag: "i" }],
966
967
  toggle: "italic"
967
968
  },
968
969
  underline: {
969
970
  id: "underline",
970
- icon: /* @__PURE__ */ t(_i, {}),
971
+ icon: /* @__PURE__ */ t(Ii, {}),
971
972
  label: ["editor.underline", "Underline"],
972
973
  command: ["module.inline.format", { tag: "u" }],
973
974
  toggle: "underline"
974
975
  },
975
976
  strike: {
976
977
  id: "strike",
977
- icon: /* @__PURE__ */ t(xi, {}),
978
+ icon: /* @__PURE__ */ t(Ai, {}),
978
979
  label: ["editor.strike", "Strikethrough"],
979
980
  command: ["module.inline.format", { tag: "del" }],
980
981
  toggle: "strike"
981
982
  },
982
983
  ul: {
983
984
  id: "ul",
984
- icon: /* @__PURE__ */ t(Za, {}),
985
+ icon: /* @__PURE__ */ t(Ya, {}),
985
986
  label: ["editor.list.bullet", "Bulleted list"],
986
987
  command: ["module.list.toggle", "ul"],
987
988
  toggle: "ul"
988
989
  },
989
990
  ol: {
990
991
  id: "ol",
991
- icon: /* @__PURE__ */ t(Xa, {}),
992
+ icon: /* @__PURE__ */ t(Za, {}),
992
993
  label: ["editor.list.ordered", "Numbered list"],
993
994
  command: ["module.list.toggle", "ol"],
994
995
  toggle: "ol"
@@ -997,28 +998,28 @@ const Jr = {
997
998
  {
998
999
  id: "paragraph",
999
1000
  tag: "p",
1000
- icon: /* @__PURE__ */ t(fi, {}),
1001
+ icon: /* @__PURE__ */ t(gi, {}),
1001
1002
  label: ["editor.paragraph", "Paragraph"]
1002
1003
  },
1003
1004
  {
1004
1005
  id: "h2",
1005
1006
  tag: "h2",
1006
- icon: /* @__PURE__ */ t(Ba, {}),
1007
+ icon: /* @__PURE__ */ t(Fa, {}),
1007
1008
  label: ["editor.heading2", "Heading 2"]
1008
1009
  },
1009
1010
  {
1010
1011
  id: "h3",
1011
1012
  tag: "h3",
1012
- icon: /* @__PURE__ */ t(Fa, {}),
1013
+ icon: /* @__PURE__ */ t(Ga, {}),
1013
1014
  label: ["editor.heading3", "Heading 3"]
1014
1015
  },
1015
1016
  {
1016
1017
  id: "quote",
1017
1018
  tag: "blockquote",
1018
- icon: /* @__PURE__ */ t(gi, {}),
1019
+ icon: /* @__PURE__ */ t(bi, {}),
1019
1020
  label: ["editor.quote", "Quote"]
1020
1021
  }
1021
- ], Bi = {
1022
+ ], Fi = {
1022
1023
  minimal: ["bold", "italic", "underline", "link"],
1023
1024
  standard: [
1024
1025
  "undo",
@@ -1048,58 +1049,58 @@ const Jr = {
1048
1049
  {
1049
1050
  id: "rowAbove",
1050
1051
  command: "plugin.table.addRowAbove",
1051
- icon: /* @__PURE__ */ t(Na, {}),
1052
+ icon: /* @__PURE__ */ t(Ra, {}),
1052
1053
  label: ["editor.table.rowAbove", "Add row above"]
1053
1054
  },
1054
1055
  {
1055
1056
  id: "rowBelow",
1056
1057
  command: "plugin.table.addRowBelow",
1057
- icon: /* @__PURE__ */ t(Ta, {}),
1058
+ icon: /* @__PURE__ */ t(Na, {}),
1058
1059
  label: ["editor.table.rowBelow", "Add row below"]
1059
1060
  },
1060
1061
  {
1061
1062
  id: "colLeft",
1062
1063
  command: "plugin.table.addColumnLeft",
1063
- icon: /* @__PURE__ */ t(Sa, {}),
1064
+ icon: /* @__PURE__ */ t(_a, {}),
1064
1065
  label: ["editor.table.columnLeft", "Add column left"]
1065
1066
  },
1066
1067
  {
1067
1068
  id: "colRight",
1068
1069
  command: "plugin.table.addColumnRight",
1069
- icon: /* @__PURE__ */ t(Ra, {}),
1070
+ icon: /* @__PURE__ */ t(Sa, {}),
1070
1071
  label: ["editor.table.columnRight", "Add column right"]
1071
1072
  },
1072
1073
  {
1073
1074
  id: "addHead",
1074
1075
  command: "plugin.table.addHead",
1075
- icon: /* @__PURE__ */ t(di, {}),
1076
+ icon: /* @__PURE__ */ t(mi, {}),
1076
1077
  label: ["editor.table.addHeader", "Add header row"]
1077
1078
  },
1078
1079
  {
1079
1080
  id: "deleteHead",
1080
1081
  command: "plugin.table.deleteHead",
1081
- icon: /* @__PURE__ */ t(li, {}),
1082
+ icon: /* @__PURE__ */ t(di, {}),
1082
1083
  label: ["editor.table.deleteHeader", "Remove header row"]
1083
1084
  },
1084
1085
  {
1085
1086
  id: "deleteRow",
1086
1087
  command: "plugin.table.deleteRow",
1087
- icon: /* @__PURE__ */ t(yi, {}),
1088
+ icon: /* @__PURE__ */ t(ki, {}),
1088
1089
  label: ["editor.table.deleteRow", "Delete row"]
1089
1090
  },
1090
1091
  {
1091
1092
  id: "deleteColumn",
1092
1093
  command: "plugin.table.deleteColumn",
1093
- icon: /* @__PURE__ */ t(Oa, {}),
1094
+ icon: /* @__PURE__ */ t(Ba, {}),
1094
1095
  label: ["editor.table.deleteColumn", "Delete column"]
1095
1096
  },
1096
1097
  {
1097
1098
  id: "deleteTable",
1098
1099
  command: "plugin.table.deleteTable",
1099
- icon: /* @__PURE__ */ t(ya, {}),
1100
+ icon: /* @__PURE__ */ t(ka, {}),
1100
1101
  label: ["editor.table.deleteTable", "Delete table"]
1101
1102
  }
1102
- ], Qt = 6, to = "ds:[&_[data-intent=ghost]:hover]:bg-[color-mix(in_srgb,var(--accent)_12%,transparent)] ds:[&_[data-intent=ghost]:hover]:text-[color:var(--accent)]", Pi = Bn(
1103
+ ], Qt = 6, to = "ds:[&_[data-intent=ghost]:hover]:bg-[color-mix(in_srgb,var(--accent)_12%,transparent)] ds:[&_[data-intent=ghost]:hover]:text-[color:var(--accent)]", ji = Bn(
1103
1104
  [
1104
1105
  "ds:@container/toolbar",
1105
1106
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
@@ -1107,23 +1108,26 @@ const Jr = {
1107
1108
  "ds:shadow-[var(--shadow-md)]",
1108
1109
  to
1109
1110
  ].join(" ")
1110
- ), Fi = "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", nn = "ds:self-stretch ds:[inline-size:var(--border-width-sm)] ds:bg-[var(--border)] ds:[margin-inline:var(--spacing-2xs)]", Et = "ds:text-[length:var(--font-size-sm)] ds:font-medium ds:text-[color:var(--foreground)]";
1111
+ ), Gi = "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", nn = "ds:self-stretch ds:[inline-size:var(--border-width-sm)] ds:bg-[var(--border)] ds:[margin-inline:var(--spacing-2xs)]", Et = "ds:text-[length:var(--font-size-sm)] ds:font-medium ds:text-[color:var(--foreground)]";
1111
1112
  function tn(n) {
1112
1113
  return n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1113
1114
  }
1114
- function ji({
1115
+ function Ki({
1115
1116
  variables: n,
1116
1117
  recentVariableTokens: i,
1117
1118
  insertVariable: c,
1118
1119
  saveSelection: s
1119
1120
  }) {
1120
- const { t: g } = re("ui"), [u, m] = N(!1), [p, y] = N(""), k = C(null), w = C(!1), L = n;
1121
+ const { t: g } = re("ui"), [u, m] = E(!1), [p, y] = E(""), k = C(null), w = C(!1), _ = ua(!0, {
1122
+ getAnchor: ma,
1123
+ onReturnToTrigger: () => m(!1)
1124
+ }), N = n;
1121
1125
  return /* @__PURE__ */ A(
1122
1126
  Zt.Root,
1123
1127
  {
1124
1128
  open: u,
1125
- onOpenChange: (T) => {
1126
- T && s(), m(T), T && y("");
1129
+ onOpenChange: (M) => {
1130
+ M && s(), m(M), M && y("");
1127
1131
  },
1128
1132
  children: [
1129
1133
  /* @__PURE__ */ t(Zt.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
@@ -1132,7 +1136,7 @@ function ji({
1132
1136
  ref: k,
1133
1137
  size: "sm",
1134
1138
  intent: "ghost",
1135
- icon: /* @__PURE__ */ t($a, {}),
1139
+ icon: /* @__PURE__ */ t(Oa, {}),
1136
1140
  "aria-label": g("editor.insertVariable", "Insert variable")
1137
1141
  }
1138
1142
  ) }),
@@ -1142,20 +1146,21 @@ function ji({
1142
1146
  align: "start",
1143
1147
  sideOffset: 4,
1144
1148
  className: "ds:z-[var(--z-popover)]",
1145
- onCloseAutoFocus: (T) => {
1146
- w.current && (T.preventDefault(), w.current = !1);
1149
+ onKeyDown: _,
1150
+ onCloseAutoFocus: (M) => {
1151
+ w.current && (M.preventDefault(), w.current = !1);
1147
1152
  },
1148
1153
  children: /* @__PURE__ */ t(
1149
1154
  Ur,
1150
1155
  {
1151
- variables: L,
1156
+ variables: N,
1152
1157
  recentTokens: i,
1153
1158
  query: p,
1154
1159
  onQueryChange: y,
1155
1160
  searchFocusable: !0,
1156
1161
  "aria-label": g("editor.insertVariable", "Insert variable"),
1157
- onSelect: (T) => {
1158
- w.current = !0, c(T.token), m(!1);
1162
+ onSelect: (M) => {
1163
+ w.current = !0, c(M.token), m(!1);
1159
1164
  },
1160
1165
  onClose: () => m(!1)
1161
1166
  }
@@ -1166,7 +1171,7 @@ function ji({
1166
1171
  }
1167
1172
  );
1168
1173
  }
1169
- function Gi({
1174
+ function Vi({
1170
1175
  run: n,
1171
1176
  active: i,
1172
1177
  onTriggerDown: c
@@ -1199,18 +1204,18 @@ function Gi({
1199
1204
  )) })
1200
1205
  ] });
1201
1206
  }
1202
- function Ki({
1207
+ function Wi({
1203
1208
  insertHtml: n,
1204
1209
  saveSelection: i,
1205
1210
  restoreSelection: c,
1206
1211
  getSelectedText: s
1207
1212
  }) {
1208
- const { t: g } = re("ui"), [u, m] = N(!1), [p, y] = N(""), [k, w] = N(""), [L, T] = N(!1), _ = qe(), q = qe(), f = () => {
1209
- y(""), w(""), T(!1);
1213
+ const { t: g } = re("ui"), [u, m] = E(!1), [p, y] = E(""), [k, w] = E(""), [_, N] = E(!1), M = qe(), q = qe(), f = () => {
1214
+ y(""), w(""), N(!1);
1210
1215
  }, d = () => {
1211
1216
  const h = p.trim();
1212
1217
  if (!h) return;
1213
- const z = k.trim() || h, M = L ? ' target="_blank" rel="noopener noreferrer"' : "", B = `<a href="${tn(h)}"${M}>${tn(z)}</a>`;
1218
+ const S = k.trim() || h, R = _ ? ' target="_blank" rel="noopener noreferrer"' : "", B = `<a href="${tn(h)}"${R}>${tn(S)}</a>`;
1214
1219
  m(!1), f(), window.requestAnimationFrame(() => {
1215
1220
  c(), n(B);
1216
1221
  });
@@ -1221,7 +1226,7 @@ function Ki({
1221
1226
  {
1222
1227
  size: "sm",
1223
1228
  intent: "ghost",
1224
- icon: /* @__PURE__ */ t(Va, {}),
1229
+ icon: /* @__PURE__ */ t(Xa, {}),
1225
1230
  "aria-label": g("editor.link.insert", "Insert link"),
1226
1231
  onMouseDown: () => {
1227
1232
  i(), w(s());
@@ -1232,11 +1237,11 @@ function Ki({
1232
1237
  /* @__PURE__ */ t(ie.Header, { children: /* @__PURE__ */ t(ie.Title, { children: g("editor.link.insert", "Insert link") }) }),
1233
1238
  /* @__PURE__ */ A(ie.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1234
1239
  /* @__PURE__ */ A("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1235
- /* @__PURE__ */ t("label", { htmlFor: _, className: Et, children: g("editor.link.url", "URL") }),
1240
+ /* @__PURE__ */ t("label", { htmlFor: M, className: Et, children: g("editor.link.url", "URL") }),
1236
1241
  /* @__PURE__ */ t(
1237
1242
  en,
1238
1243
  {
1239
- id: _,
1244
+ id: M,
1240
1245
  type: "url",
1241
1246
  value: p,
1242
1247
  onChange: (h) => y(h.target.value),
@@ -1257,10 +1262,10 @@ function Ki({
1257
1262
  )
1258
1263
  ] }),
1259
1264
  /* @__PURE__ */ t(
1260
- ua,
1265
+ fa,
1261
1266
  {
1262
- checked: L,
1263
- onCheckedChange: (h) => T(h === !0),
1267
+ checked: _,
1268
+ onCheckedChange: (h) => N(h === !0),
1264
1269
  label: g("editor.link.newTab", "Open in new tab")
1265
1270
  }
1266
1271
  )
@@ -1272,20 +1277,20 @@ function Ki({
1272
1277
  ] })
1273
1278
  ] });
1274
1279
  }
1275
- function Vi({
1280
+ function Xi({
1276
1281
  insertHtml: n,
1277
1282
  saveSelection: i,
1278
1283
  restoreSelection: c,
1279
1284
  uploadImage: s
1280
1285
  }) {
1281
- const { t: g } = re("ui"), [u, m] = N(!1), [p, y] = N(""), [k, w] = N(""), L = qe(), T = qe(), _ = (f, d) => {
1286
+ const { t: g } = re("ui"), [u, m] = E(!1), [p, y] = E(""), [k, w] = E(""), _ = qe(), N = qe(), M = (f, d) => {
1282
1287
  const h = `<img src="${tn(f)}" alt="${tn(d)}" loading="lazy">`;
1283
1288
  m(!1), y(""), w(""), window.requestAnimationFrame(() => {
1284
1289
  c(), n(h);
1285
1290
  });
1286
1291
  }, q = () => {
1287
1292
  const f = p.trim();
1288
- f && _(f, k.trim());
1293
+ f && M(f, k.trim());
1289
1294
  };
1290
1295
  return /* @__PURE__ */ A(ie.Root, { open: u, onOpenChange: m, children: [
1291
1296
  /* @__PURE__ */ t(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
@@ -1293,7 +1298,7 @@ function Vi({
1293
1298
  {
1294
1299
  size: "sm",
1295
1300
  intent: "ghost",
1296
- icon: /* @__PURE__ */ t(pa, {}),
1301
+ icon: /* @__PURE__ */ t(va, {}),
1297
1302
  "aria-label": g("editor.image.insert", "Insert image"),
1298
1303
  onMouseDown: () => i()
1299
1304
  }
@@ -1304,7 +1309,7 @@ function Vi({
1304
1309
  s ? /* @__PURE__ */ A("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1305
1310
  /* @__PURE__ */ t("span", { className: Et, children: g("editor.image.upload", "Upload") }),
1306
1311
  /* @__PURE__ */ t(
1307
- ma,
1312
+ ha,
1308
1313
  {
1309
1314
  variant: "dropzone",
1310
1315
  accept: {
@@ -1313,18 +1318,18 @@ function Vi({
1313
1318
  maxFiles: 1,
1314
1319
  onUpload: async (f, { signal: d }) => {
1315
1320
  const h = await s(f, d);
1316
- _(h, f.name);
1321
+ M(h, f.name);
1317
1322
  }
1318
1323
  }
1319
1324
  ),
1320
1325
  /* @__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") })
1321
1326
  ] }) : null,
1322
1327
  /* @__PURE__ */ A("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1323
- /* @__PURE__ */ t("label", { htmlFor: L, className: Et, children: g("editor.image.url", "Image URL") }),
1328
+ /* @__PURE__ */ t("label", { htmlFor: _, className: Et, children: g("editor.image.url", "Image URL") }),
1324
1329
  /* @__PURE__ */ t(
1325
1330
  en,
1326
1331
  {
1327
- id: L,
1332
+ id: _,
1328
1333
  type: "url",
1329
1334
  value: p,
1330
1335
  onChange: (f) => y(f.target.value),
@@ -1333,11 +1338,11 @@ function Vi({
1333
1338
  )
1334
1339
  ] }),
1335
1340
  /* @__PURE__ */ A("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1336
- /* @__PURE__ */ t("label", { htmlFor: T, className: Et, children: g("editor.image.alt", "Alt text") }),
1341
+ /* @__PURE__ */ t("label", { htmlFor: N, className: Et, children: g("editor.image.alt", "Alt text") }),
1337
1342
  /* @__PURE__ */ t(
1338
1343
  en,
1339
1344
  {
1340
- id: T,
1345
+ id: N,
1341
1346
  value: k,
1342
1347
  onChange: (f) => w(f.target.value),
1343
1348
  placeholder: g(
@@ -1355,12 +1360,12 @@ function Vi({
1355
1360
  ] })
1356
1361
  ] });
1357
1362
  }
1358
- function Wi({
1363
+ function Ui({
1359
1364
  run: n,
1360
1365
  saveSelection: i,
1361
1366
  restoreSelection: c
1362
1367
  }) {
1363
- const { t: s } = re("ui"), [g, u] = N("#1f2a5c"), m = (y) => {
1368
+ const { t: s } = re("ui"), [g, u] = E("#1f2a5c"), m = (y) => {
1364
1369
  u(y), c(), n("module.inline.format", {
1365
1370
  tag: "span",
1366
1371
  style: { color: y },
@@ -1375,7 +1380,7 @@ function Wi({
1375
1380
  {
1376
1381
  size: "sm",
1377
1382
  intent: "ghost",
1378
- icon: /* @__PURE__ */ t(ni, {}),
1383
+ icon: /* @__PURE__ */ t(oi, {}),
1379
1384
  "aria-label": s("editor.textColor", "Text colour"),
1380
1385
  onMouseDown: (y) => {
1381
1386
  y.preventDefault(), i();
@@ -1397,12 +1402,12 @@ function Wi({
1397
1402
  ] })
1398
1403
  ] });
1399
1404
  }
1400
- function Xi({
1405
+ function Zi({
1401
1406
  run: n,
1402
1407
  saveSelection: i,
1403
1408
  restoreSelection: c
1404
1409
  }) {
1405
- const { t: s } = re("ui"), [g, u] = N("#fff3a3"), m = (y) => {
1410
+ const { t: s } = re("ui"), [g, u] = E("#fff3a3"), m = (y) => {
1406
1411
  u(y), c(), n("module.inline.format", {
1407
1412
  tag: "span",
1408
1413
  style: { "background-color": y },
@@ -1417,7 +1422,7 @@ function Xi({
1417
1422
  {
1418
1423
  size: "sm",
1419
1424
  intent: "ghost",
1420
- icon: /* @__PURE__ */ t(ha, {}),
1425
+ icon: /* @__PURE__ */ t(pa, {}),
1421
1426
  "aria-label": s("editor.highlightColor", "Highlight"),
1422
1427
  onMouseDown: (y) => {
1423
1428
  y.preventDefault(), i();
@@ -1439,21 +1444,21 @@ function Xi({
1439
1444
  ] })
1440
1445
  ] });
1441
1446
  }
1442
- function Ui(n, i) {
1447
+ function Qi(n, i) {
1443
1448
  const c = Array.from({ length: i }, () => "<td><br></td>").join("");
1444
1449
  return `<table><tbody>${Array.from({ length: n }, () => `<tr>${c}</tr>`).join("")}</tbody></table>`;
1445
1450
  }
1446
- function Zi({
1451
+ function Yi({
1447
1452
  run: n,
1448
1453
  insertTable: i,
1449
1454
  active: c
1450
1455
  }) {
1451
- const { t: s } = re("ui"), [g, u] = N({ r: 0, c: 0 }), [m, p] = N(!1), y = c.has("table") || m, k = /* @__PURE__ */ t(
1456
+ const { t: s } = re("ui"), [g, u] = E({ r: 0, c: 0 }), [m, p] = E(!1), y = c.has("table") || m, k = /* @__PURE__ */ t(
1452
1457
  j,
1453
1458
  {
1454
1459
  size: "sm",
1455
1460
  intent: "ghost",
1456
- icon: /* @__PURE__ */ t(Ai, {}),
1461
+ icon: /* @__PURE__ */ t(Ei, {}),
1457
1462
  "aria-label": s("editor.table.insert", "Insert table"),
1458
1463
  onMouseDown: (w) => w.preventDefault()
1459
1464
  }
@@ -1480,21 +1485,21 @@ function Zi({
1480
1485
  "aria-label": s("editor.table.sizePicker", "Table size"),
1481
1486
  className: "ds:mt-[var(--spacing-sm)] ds:grid ds:w-fit ds:grid-cols-6 ds:gap-[var(--spacing-2xs)]",
1482
1487
  onMouseLeave: () => u({ r: 0, c: 0 }),
1483
- children: Array.from({ length: Qt * Qt }, (w, L) => {
1484
- const T = Math.floor(L / Qt) + 1, _ = L % Qt + 1, q = T <= g.r && _ <= g.c;
1488
+ children: Array.from({ length: Qt * Qt }, (w, _) => {
1489
+ const N = Math.floor(_ / Qt) + 1, M = _ % Qt + 1, q = N <= g.r && M <= g.c;
1485
1490
  return /* @__PURE__ */ t(
1486
1491
  "button",
1487
1492
  {
1488
1493
  type: "button",
1489
1494
  "aria-label": s("editor.table.sizeCell", "{{r}}×{{c}}", {
1490
- r: T,
1491
- c: _
1495
+ r: N,
1496
+ c: M
1492
1497
  }),
1493
- onMouseEnter: () => u({ r: T, c: _ }),
1494
- onClick: () => i(Ui(T, _)),
1498
+ onMouseEnter: () => u({ r: N, c: M }),
1499
+ onClick: () => i(Qi(N, M)),
1495
1500
  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)]"}`
1496
1501
  },
1497
- L
1502
+ _
1498
1503
  );
1499
1504
  })
1500
1505
  }
@@ -1506,12 +1511,12 @@ function Zi({
1506
1511
  ] })
1507
1512
  ] });
1508
1513
  }
1509
- const Qi = Object.fromEntries(eo.map((n) => [n.id, n])), Yi = [
1514
+ const Ji = Object.fromEntries(eo.map((n) => [n.id, n])), es = [
1510
1515
  "ds:absolute ds:z-20 ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
1511
1516
  "ds:[inset-block-start:var(--rte-tt-top)] ds:[inset-inline-start:var(--rte-tt-start)]",
1512
1517
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
1513
1518
  "ds:bg-[var(--popover)] ds:p-[var(--spacing-2xs)] ds:shadow-[var(--shadow-lg)]"
1514
- ].join(" "), Ji = "#fde68a";
1519
+ ].join(" "), ts = "#fde68a";
1515
1520
  function qr({
1516
1521
  scope: n,
1517
1522
  icon: i,
@@ -1520,7 +1525,7 @@ function qr({
1520
1525
  saveTableCell: g,
1521
1526
  applyTableBackground: u
1522
1527
  }) {
1523
- const { t: m } = re("ui"), [p, y] = N(Ji);
1528
+ const { t: m } = re("ui"), [p, y] = E(ts);
1524
1529
  return /* @__PURE__ */ A(
1525
1530
  ne,
1526
1531
  {
@@ -1565,7 +1570,7 @@ function qr({
1565
1570
  }
1566
1571
  );
1567
1572
  }
1568
- function es({
1573
+ function ns({
1569
1574
  active: n,
1570
1575
  run: i,
1571
1576
  areaRef: c,
@@ -1574,14 +1579,14 @@ function es({
1574
1579
  saveTableCell: u,
1575
1580
  applyTableBackground: m
1576
1581
  }) {
1577
- const { t: p } = re("ui"), y = n.has("table"), [k, w] = N(null), L = C(0), [T, _] = N(!1), q = v((d) => {
1578
- L.current = Math.max(
1582
+ const { t: p } = re("ui"), y = n.has("table"), [k, w] = E(null), _ = C(0), [N, M] = E(!1), q = v((d) => {
1583
+ _.current = Math.max(
1579
1584
  0,
1580
- L.current + (d ? 1 : -1)
1581
- ), _(L.current > 0);
1585
+ _.current + (d ? 1 : -1)
1586
+ ), M(_.current > 0);
1582
1587
  }, []);
1583
- if (S(() => {
1584
- if (T) return;
1588
+ if (L(() => {
1589
+ if (N) return;
1585
1590
  if (!y || typeof window > "u") {
1586
1591
  w(null);
1587
1592
  return;
@@ -1592,15 +1597,15 @@ function es({
1592
1597
  w(null);
1593
1598
  return;
1594
1599
  }
1595
- const O = B.getBoundingClientRect(), P = V.getBoundingClientRect(), E = getComputedStyle(B).direction === "rtl", U = Math.max(0, P.top - O.top - 44), F = E ? O.right - P.right + P.width / 2 : P.left - O.left + P.width / 2;
1596
- w({ top: U, start: Math.max(0, F), rtl: E });
1600
+ const O = B.getBoundingClientRect(), P = V.getBoundingClientRect(), T = getComputedStyle(B).direction === "rtl", U = Math.max(0, P.top - O.top - 44), F = T ? O.right - P.right + P.width / 2 : P.left - O.left + P.width / 2;
1601
+ w({ top: U, start: Math.max(0, F), rtl: T });
1597
1602
  };
1598
1603
  d();
1599
- const h = new ResizeObserver(d), z = c.current, M = s();
1600
- return z && h.observe(z), M && h.observe(M), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
1604
+ const h = new ResizeObserver(d), S = c.current, R = s();
1605
+ return S && h.observe(S), R && h.observe(R), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
1601
1606
  h.disconnect(), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
1602
1607
  };
1603
- }, [y, T, c, s]), !y && !T || !k) return null;
1608
+ }, [y, N, c, s]), !y && !N || !k) return null;
1604
1609
  const f = [
1605
1610
  ["rowAbove", "rowBelow"],
1606
1611
  ["colLeft", "colRight"],
@@ -1618,7 +1623,7 @@ function es({
1618
1623
  {
1619
1624
  role: "group",
1620
1625
  "aria-label": p("editor.table.toolbar", "Table tools"),
1621
- className: `${Yi} ${k.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
1626
+ className: `${es} ${k.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
1622
1627
  style: {
1623
1628
  "--rte-tt-top": `${k.top}px`,
1624
1629
  "--rte-tt-start": `${k.start}px`
@@ -1630,7 +1635,7 @@ function es({
1630
1635
  qr,
1631
1636
  {
1632
1637
  scope: "cell",
1633
- icon: /* @__PURE__ */ t(Ya, {}),
1638
+ icon: /* @__PURE__ */ t(ei, {}),
1634
1639
  label: p("editor.table.cellColor", "Cell colour"),
1635
1640
  onOpenChange: q,
1636
1641
  saveTableCell: u,
@@ -1641,26 +1646,26 @@ function es({
1641
1646
  qr,
1642
1647
  {
1643
1648
  scope: "row",
1644
- icon: /* @__PURE__ */ t(ei, {}),
1649
+ icon: /* @__PURE__ */ t(ni, {}),
1645
1650
  label: p("editor.table.rowColor", "Row colour"),
1646
1651
  onOpenChange: q,
1647
1652
  saveTableCell: u,
1648
1653
  applyTableBackground: m
1649
1654
  }
1650
1655
  )
1651
- ] }) : d.map((z) => {
1652
- const M = Qi[z];
1656
+ ] }) : d.map((S) => {
1657
+ const R = Ji[S];
1653
1658
  return /* @__PURE__ */ t(
1654
1659
  j,
1655
1660
  {
1656
1661
  size: "sm",
1657
1662
  intent: "ghost",
1658
- icon: M.icon,
1659
- tooltip: p(M.label[0], M.label[1]),
1663
+ icon: R.icon,
1664
+ tooltip: p(R.label[0], R.label[1]),
1660
1665
  onMouseDown: (B) => B.preventDefault(),
1661
- onClick: () => i(M.command)
1666
+ onClick: () => i(R.command)
1662
1667
  },
1663
- z
1668
+ S
1664
1669
  );
1665
1670
  })
1666
1671
  ] }, d === "colour" ? "colour" : d[0]))
@@ -1680,43 +1685,43 @@ const Dn = [
1680
1685
  function Br(n, i) {
1681
1686
  return i.find((c) => n.classList.contains(c)) ?? "";
1682
1687
  }
1683
- function ts(n) {
1688
+ function rs(n) {
1684
1689
  const i = n.closest(".redactor-in"), c = i instanceof HTMLElement ? i.clientWidth : 0, s = n.getBoundingClientRect().width;
1685
1690
  return c <= 0 || s <= 0 ? Nt : Math.round(Math.min(Nt, s / c * 100));
1686
1691
  }
1687
- const On = 10, Nt = 100, ns = 5, rs = 10, Pr = (n) => Math.min(Nt, Math.max(On, Math.round(n))), os = [
1692
+ const On = 10, Nt = 100, os = 5, as = 10, Pr = (n) => Math.min(Nt, Math.max(On, Math.round(n))), is = [
1688
1693
  {
1689
1694
  id: "wysiwyg-img-inline",
1690
- icon: /* @__PURE__ */ t(Ca, {}),
1695
+ icon: /* @__PURE__ */ t(Ta, {}),
1691
1696
  label: ["editor.image.inline", "Inline with text"]
1692
1697
  },
1693
1698
  {
1694
1699
  id: "wysiwyg-img-wrap-left",
1695
- icon: /* @__PURE__ */ t(oi, {}),
1700
+ icon: /* @__PURE__ */ t(ii, {}),
1696
1701
  label: ["editor.image.wrapLeft", "Wrap left"]
1697
1702
  },
1698
1703
  {
1699
1704
  id: "wysiwyg-img-wrap-right",
1700
- icon: /* @__PURE__ */ t(ii, {}),
1705
+ icon: /* @__PURE__ */ t(li, {}),
1701
1706
  label: ["editor.image.wrapRight", "Wrap right"]
1702
1707
  }
1703
- ], as = [
1708
+ ], ss = [
1704
1709
  {
1705
1710
  id: "wysiwyg-img-align-left",
1706
- icon: /* @__PURE__ */ t(zi, {}),
1711
+ icon: /* @__PURE__ */ t(Li, {}),
1707
1712
  label: ["editor.image.alignLeft", "Align left"]
1708
1713
  },
1709
1714
  {
1710
1715
  id: "wysiwyg-img-align-center",
1711
- icon: /* @__PURE__ */ t(Ei, {}),
1716
+ icon: /* @__PURE__ */ t(Mi, {}),
1712
1717
  label: ["editor.image.alignCenter", "Align centre"]
1713
1718
  },
1714
1719
  {
1715
1720
  id: "wysiwyg-img-align-right",
1716
- icon: /* @__PURE__ */ t(Mi, {}),
1721
+ icon: /* @__PURE__ */ t(zi, {}),
1717
1722
  label: ["editor.image.alignRight", "Align right"]
1718
1723
  }
1719
- ], is = [
1724
+ ], ls = [
1720
1725
  {
1721
1726
  id: "tl",
1722
1727
  pos: "ds:[inset-block-start:calc(var(--spacing-md)*-0.5)] ds:[inset-inline-start:calc(var(--spacing-md)*-0.5)]",
@@ -1749,14 +1754,14 @@ const On = 10, Nt = 100, ns = 5, rs = 10, Pr = (n) => Math.min(Nt, Math.max(On,
1749
1754
  labelKey: "editor.image.resizeBottomEnd",
1750
1755
  labelFallback: "Resize image, bottom-end corner"
1751
1756
  }
1752
- ], ss = [
1757
+ ], cs = [
1753
1758
  "ds:absolute ds:z-20 ds:pointer-events-none",
1754
1759
  "ds:[inset-block-start:var(--rte-img-top)] ds:[inset-inline-start:var(--rte-img-start)]",
1755
1760
  "ds:[inline-size:var(--rte-img-width)] ds:[block-size:var(--rte-img-height)]",
1756
1761
  "ds:rounded-[var(--radius-2xs)]",
1757
1762
  "ds:[outline-style:solid] ds:[outline-width:var(--border-width-md)]",
1758
1763
  "ds:[outline-color:var(--accent)] ds:[outline-offset:var(--focus-ring-offset)]"
1759
- ].join(" "), ls = [
1764
+ ].join(" "), ds = [
1760
1765
  "ds:absolute ds:pointer-events-auto ds:touch-none",
1761
1766
  "ds:[inline-size:var(--spacing-md)] ds:[block-size:var(--spacing-md)]",
1762
1767
  "ds:rounded-[var(--radius-2xs)] ds:shadow-[var(--shadow-sm)]",
@@ -1765,20 +1770,20 @@ const On = 10, Nt = 100, ns = 5, rs = 10, Pr = (n) => Math.min(Nt, Math.max(On,
1765
1770
  "ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)]",
1766
1771
  "ds:focus-visible:[outline-offset:var(--focus-ring-offset)]",
1767
1772
  "ds:forced-colors:bg-[CanvasText]"
1768
- ].join(" "), cs = [
1773
+ ].join(" "), us = [
1769
1774
  "ds:absolute ds:z-20 ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
1770
1775
  "ds:[inset-block-start:var(--rte-img-bar-top)] ds:[inset-inline-start:var(--rte-img-center)]",
1771
1776
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
1772
1777
  "ds:bg-[var(--popover)] ds:p-[var(--spacing-2xs)] ds:shadow-[var(--shadow-lg)]"
1773
1778
  ].join(" ");
1774
- function ds({
1779
+ function ms({
1775
1780
  areaRef: n,
1776
1781
  activeImageEl: i,
1777
1782
  applyImageClass: c,
1778
1783
  setImageWidth: s
1779
1784
  }) {
1780
- const { t: g } = re("ui"), [u, m] = N(null), p = C(null);
1781
- S(() => {
1785
+ const { t: g } = re("ui"), [u, m] = E(null), p = C(null);
1786
+ L(() => {
1782
1787
  if (!i || typeof window > "u") {
1783
1788
  m(null);
1784
1789
  return;
@@ -1789,15 +1794,15 @@ function ds({
1789
1794
  m(null);
1790
1795
  return;
1791
1796
  }
1792
- const V = B.getBoundingClientRect(), O = i.getBoundingClientRect(), P = getComputedStyle(B).direction === "rtl", E = O.top - V.top, U = P ? V.right - O.right : O.left - V.left, F = U + O.width / 2, Q = Math.max(0, E - 44);
1797
+ const V = B.getBoundingClientRect(), O = i.getBoundingClientRect(), P = getComputedStyle(B).direction === "rtl", T = O.top - V.top, U = P ? V.right - O.right : O.left - V.left, F = U + O.width / 2, Q = Math.max(0, T - 44);
1793
1798
  m({
1794
- top: E,
1799
+ top: T,
1795
1800
  start: Math.max(0, U),
1796
1801
  width: O.width,
1797
1802
  height: O.height,
1798
1803
  center: Math.max(0, F),
1799
1804
  barTop: Q,
1800
- pct: ts(i),
1805
+ pct: rs(i),
1801
1806
  rtl: P
1802
1807
  });
1803
1808
  };
@@ -1806,16 +1811,16 @@ function ds({
1806
1811
  d.observe(i);
1807
1812
  const h = n.current;
1808
1813
  h && d.observe(h);
1809
- const z = i.closest(".redactor-in");
1810
- let M = null;
1811
- return z && (M = new MutationObserver(f), M.observe(z, {
1814
+ const S = i.closest(".redactor-in");
1815
+ let R = null;
1816
+ return S && (R = new MutationObserver(f), R.observe(S, {
1812
1817
  subtree: !0,
1813
1818
  childList: !0,
1814
1819
  characterData: !0,
1815
1820
  attributes: !0,
1816
1821
  attributeFilter: ["class", "style", "width", "height", "src"]
1817
1822
  })), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
1818
- d.disconnect(), M == null || M.disconnect(), window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
1823
+ d.disconnect(), R == null || R.disconnect(), window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
1819
1824
  };
1820
1825
  }, [i, n]);
1821
1826
  const y = v(
@@ -1832,10 +1837,10 @@ function ds({
1832
1837
  (f) => {
1833
1838
  const d = p.current;
1834
1839
  if (!d || f.pointerId !== d.pointerId || !i) return;
1835
- const h = i.closest(".redactor-in"), z = h instanceof HTMLElement ? h.clientWidth : 0;
1836
- if (z <= 0) return;
1837
- const M = d.sign * (f.clientX - d.startX) / z * 100;
1838
- s(Pr(d.startPct + M));
1840
+ const h = i.closest(".redactor-in"), S = h instanceof HTMLElement ? h.clientWidth : 0;
1841
+ if (S <= 0) return;
1842
+ const R = d.sign * (f.clientX - d.startX) / S * 100;
1843
+ s(Pr(d.startPct + R));
1839
1844
  },
1840
1845
  [i, s]
1841
1846
  ), w = v(
@@ -1844,11 +1849,11 @@ function ds({
1844
1849
  !d || f.pointerId !== d.pointerId || (f.currentTarget.releasePointerCapture(f.pointerId), p.current = null);
1845
1850
  },
1846
1851
  []
1847
- ), L = v(
1852
+ ), _ = v(
1848
1853
  (f) => {
1849
1854
  if (!u) return;
1850
1855
  let d = null;
1851
- const h = f.shiftKey ? rs : ns;
1856
+ const h = f.shiftKey ? as : os;
1852
1857
  switch (f.key) {
1853
1858
  // Up / right always grow; down / left always shrink — independent of
1854
1859
  // which corner has focus, so the gesture reads the same everywhere.
@@ -1874,7 +1879,7 @@ function ds({
1874
1879
  [u, s]
1875
1880
  );
1876
1881
  if (!i || !u) return null;
1877
- const T = Br(i, Dn), _ = Br(i, no), q = g("editor.image.widthAnnounce", {
1882
+ const N = Br(i, Dn), M = Br(i, no), q = g("editor.image.widthAnnounce", {
1878
1883
  width: u.pct,
1879
1884
  defaultValue: "{{width}} percent"
1880
1885
  });
@@ -1882,14 +1887,14 @@ function ds({
1882
1887
  /* @__PURE__ */ t(
1883
1888
  "div",
1884
1889
  {
1885
- className: ss,
1890
+ className: cs,
1886
1891
  style: {
1887
1892
  "--rte-img-top": `${u.top}px`,
1888
1893
  "--rte-img-start": `${u.start}px`,
1889
1894
  "--rte-img-width": `${u.width}px`,
1890
1895
  "--rte-img-height": `${u.height}px`
1891
1896
  },
1892
- children: is.map((f) => /* @__PURE__ */ t(
1897
+ children: ls.map((f) => /* @__PURE__ */ t(
1893
1898
  "div",
1894
1899
  {
1895
1900
  role: "slider",
@@ -1900,12 +1905,12 @@ function ds({
1900
1905
  "aria-valuemax": Nt,
1901
1906
  "aria-valuenow": u.pct,
1902
1907
  "aria-valuetext": q,
1903
- className: `${ls} ${f.pos} ${f.cursor}`,
1908
+ className: `${ds} ${f.pos} ${f.cursor}`,
1904
1909
  onPointerDown: y(f),
1905
1910
  onPointerMove: k,
1906
1911
  onPointerUp: w,
1907
1912
  onPointerCancel: w,
1908
- onKeyDown: L
1913
+ onKeyDown: _
1909
1914
  },
1910
1915
  f.id
1911
1916
  ))
@@ -1916,24 +1921,24 @@ function ds({
1916
1921
  {
1917
1922
  role: "group",
1918
1923
  "aria-label": g("editor.image.toolbar", "Image tools"),
1919
- className: `${cs} ${u.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
1924
+ className: `${us} ${u.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
1920
1925
  style: {
1921
1926
  "--rte-img-bar-top": `${u.barTop}px`,
1922
1927
  "--rte-img-center": `${u.center}px`
1923
1928
  },
1924
- children: [os, as].map((f, d) => /* @__PURE__ */ A(ht, { children: [
1929
+ children: [is, ss].map((f, d) => /* @__PURE__ */ A(ht, { children: [
1925
1930
  d > 0 ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className: nn }) : null,
1926
1931
  f.map((h) => {
1927
- const z = d === 0 ? T === h.id : _ === h.id;
1932
+ const S = d === 0 ? N === h.id : M === h.id;
1928
1933
  return /* @__PURE__ */ t(
1929
1934
  j,
1930
1935
  {
1931
1936
  size: "sm",
1932
1937
  intent: "ghost",
1933
1938
  icon: h.icon,
1934
- "aria-pressed": z,
1939
+ "aria-pressed": S,
1935
1940
  tooltip: g(h.label[0], h.label[1]),
1936
- onMouseDown: (M) => M.preventDefault(),
1941
+ onMouseDown: (R) => R.preventDefault(),
1937
1942
  onClick: () => c(h.id)
1938
1943
  },
1939
1944
  h.id
@@ -1944,7 +1949,7 @@ function ds({
1944
1949
  ) })
1945
1950
  ] });
1946
1951
  }
1947
- function us({
1952
+ function fs({
1948
1953
  templates: n,
1949
1954
  onPick: i,
1950
1955
  onManage: c,
@@ -1988,7 +1993,7 @@ function us({
1988
1993
  c && n.length === 0 ? /* @__PURE__ */ t(
1989
1994
  X.Item,
1990
1995
  {
1991
- startIcon: /* @__PURE__ */ t(ba, {}),
1996
+ startIcon: /* @__PURE__ */ t(ya, {}),
1992
1997
  onSelect: () => c("create"),
1993
1998
  children: p("editor.ai.createFirstTemplate")
1994
1999
  }
@@ -1998,7 +2003,7 @@ function us({
1998
2003
  /* @__PURE__ */ t(
1999
2004
  X.Item,
2000
2005
  {
2001
- startIcon: /* @__PURE__ */ t(va, {}),
2006
+ startIcon: /* @__PURE__ */ t(wa, {}),
2002
2007
  onSelect: () => c("list"),
2003
2008
  children: p("editor.ai.manageTemplates")
2004
2009
  }
@@ -2007,14 +2012,14 @@ function us({
2007
2012
  ] })
2008
2013
  ] });
2009
2014
  }
2010
- const ms = [
2015
+ const hs = [
2011
2016
  "ds:absolute ds:z-20 ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
2012
2017
  "ds:[inset-block-start:var(--rte-sel-top)] ds:[inset-inline-start:var(--rte-sel-start)]",
2013
2018
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
2014
2019
  "ds:bg-[var(--popover)] ds:p-[var(--spacing-2xs)] ds:shadow-[var(--shadow-lg)]",
2015
2020
  to
2016
- ].join(" "), fs = ["bold", "italic", "underline", "strike"];
2017
- function hs({
2021
+ ].join(" "), gs = ["bold", "italic", "underline", "strike"];
2022
+ function ps({
2018
2023
  active: n,
2019
2024
  run: i,
2020
2025
  areaRef: c,
@@ -2023,28 +2028,28 @@ function hs({
2023
2028
  holdOpen: u = !1,
2024
2029
  children: m
2025
2030
  }) {
2026
- const { t: p } = re("ui"), y = C(null), [k, w] = N(null), L = C(u);
2027
- return S(() => {
2028
- L.current = u;
2029
- }, [u]), S(() => {
2031
+ const { t: p } = re("ui"), y = C(null), [k, w] = E(null), _ = C(u);
2032
+ return L(() => {
2033
+ _.current = u;
2034
+ }, [u]), L(() => {
2030
2035
  if (g || typeof window > "u") {
2031
2036
  w(null);
2032
2037
  return;
2033
2038
  }
2034
- let T = !1, _ = 0, q = !1, f = !1;
2039
+ let N = !1, M = 0, q = !1, f = !1;
2035
2040
  const d = () => {
2036
2041
  var J;
2037
- if (L.current || T) return;
2042
+ if (_.current || N) return;
2038
2043
  if (f) {
2039
2044
  w(null);
2040
2045
  return;
2041
2046
  }
2042
- const O = c.current, P = s(), E = window.getSelection();
2043
- if (!O || !P || !E || E.rangeCount === 0 || E.isCollapsed || !O.contains(document.activeElement)) {
2047
+ const O = c.current, P = s(), T = window.getSelection();
2048
+ if (!O || !P || !T || T.rangeCount === 0 || T.isCollapsed || !O.contains(document.activeElement)) {
2044
2049
  w(null);
2045
2050
  return;
2046
2051
  }
2047
- const U = E.getRangeAt(0);
2052
+ const U = T.getRangeAt(0);
2048
2053
  if (!P.contains(U.commonAncestorContainer)) {
2049
2054
  w(null);
2050
2055
  return;
@@ -2053,18 +2058,18 @@ function hs({
2053
2058
  w(null);
2054
2059
  return;
2055
2060
  }
2056
- const F = O.getBoundingClientRect(), Q = U.getBoundingClientRect(), pe = getComputedStyle(O).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, oe = pe ? F.right - Q.right + Q.width / 2 : Q.left - F.left + Q.width / 2, R = G / 2, K = Math.min(
2057
- Math.max(oe, R),
2058
- Math.max(R, F.width - R)
2061
+ const F = O.getBoundingClientRect(), Q = U.getBoundingClientRect(), pe = getComputedStyle(O).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, oe = pe ? F.right - Q.right + Q.width / 2 : Q.left - F.left + Q.width / 2, z = G / 2, K = Math.min(
2062
+ Math.max(oe, z),
2063
+ Math.max(z, F.width - z)
2059
2064
  );
2060
- w({ top: Ne, start: K, rtl: pe }), G === 0 && !q && (q = !0, _ = requestAnimationFrame(d));
2065
+ w({ top: Ne, start: K, rtl: pe }), G === 0 && !q && (q = !0, M = requestAnimationFrame(d));
2061
2066
  }, h = () => {
2062
- cancelAnimationFrame(_), _ = requestAnimationFrame(d);
2063
- }, z = (O) => {
2067
+ cancelAnimationFrame(M), M = requestAnimationFrame(d);
2068
+ }, S = (O) => {
2064
2069
  const P = s();
2065
- P && O.target instanceof Node && P.contains(O.target) && (T = !0, w(null));
2066
- }, M = () => {
2067
- T && (T = !1, h());
2070
+ P && O.target instanceof Node && P.contains(O.target) && (N = !0, w(null));
2071
+ }, R = () => {
2072
+ N && (N = !1, h());
2068
2073
  }, B = (O) => {
2069
2074
  if (O.key !== "Escape") return;
2070
2075
  const P = c.current;
@@ -2072,8 +2077,8 @@ function hs({
2072
2077
  }, V = () => {
2073
2078
  f = !1, h();
2074
2079
  };
2075
- return document.addEventListener("selectionchange", V), document.addEventListener("focusin", h), document.addEventListener("keydown", B, !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(), () => {
2076
- cancelAnimationFrame(_), document.removeEventListener("selectionchange", V), document.removeEventListener("focusin", h), document.removeEventListener("keydown", B, !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);
2080
+ return document.addEventListener("selectionchange", V), document.addEventListener("focusin", h), document.addEventListener("keydown", B, !0), document.addEventListener("pointerdown", S, !0), document.addEventListener("pointerup", R, !0), document.addEventListener("pointercancel", R, !0), window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), h(), () => {
2081
+ cancelAnimationFrame(M), document.removeEventListener("selectionchange", V), document.removeEventListener("focusin", h), document.removeEventListener("keydown", B, !0), document.removeEventListener("pointerdown", S, !0), document.removeEventListener("pointerup", R, !0), document.removeEventListener("pointercancel", R, !0), window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
2077
2082
  };
2078
2083
  }, [g, c, s]), g || !k ? null : /* @__PURE__ */ t(Fn, { children: /* @__PURE__ */ A(
2079
2084
  "div",
@@ -2082,26 +2087,26 @@ function hs({
2082
2087
  role: "group",
2083
2088
  "aria-label": p("editor.ai.selectionTools"),
2084
2089
  "data-component-part": "selection-toolbar",
2085
- className: `${ms} ${k.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
2090
+ className: `${hs} ${k.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
2086
2091
  style: {
2087
2092
  "--rte-sel-top": `${k.top}px`,
2088
2093
  "--rte-sel-start": `${k.start}px`
2089
2094
  },
2090
2095
  children: [
2091
- fs.map((T) => {
2092
- const _ = Jr[T];
2096
+ gs.map((N) => {
2097
+ const M = Jr[N];
2093
2098
  return /* @__PURE__ */ t(
2094
2099
  j,
2095
2100
  {
2096
2101
  size: "sm",
2097
2102
  intent: "ghost",
2098
- icon: _.icon,
2099
- tooltip: p(_.label[0], _.label[1]),
2100
- "aria-pressed": _.toggle ? n.has(_.toggle) : void 0,
2103
+ icon: M.icon,
2104
+ tooltip: p(M.label[0], M.label[1]),
2105
+ "aria-pressed": M.toggle ? n.has(M.toggle) : void 0,
2101
2106
  onMouseDown: (q) => q.preventDefault(),
2102
- onClick: () => i(..._.command)
2107
+ onClick: () => i(...M.command)
2103
2108
  },
2104
- T
2109
+ N
2105
2110
  );
2106
2111
  }),
2107
2112
  m ? /* @__PURE__ */ A(Ie, { children: [
@@ -2112,7 +2117,7 @@ function hs({
2112
2117
  }
2113
2118
  ) });
2114
2119
  }
2115
- function gs({
2120
+ function bs({
2116
2121
  run: n,
2117
2122
  active: i,
2118
2123
  preset: c,
@@ -2124,36 +2129,36 @@ function gs({
2124
2129
  uploadImage: y,
2125
2130
  enableColor: k = !1,
2126
2131
  enableImage: w = !1,
2127
- enableTable: L = !1,
2128
- showExtensions: T = !1,
2129
- extensionControl: _,
2132
+ enableTable: _ = !1,
2133
+ showExtensions: N = !1,
2134
+ extensionControl: M,
2130
2135
  variables: q,
2131
2136
  recentVariableTokens: f,
2132
2137
  insertVariable: d
2133
2138
  }) {
2134
- const { t: h } = re("ui"), z = (oe) => oe.preventDefault(), M = (oe) => Bi[c].includes(oe), B = (oe) => {
2135
- if (!M(oe)) return null;
2136
- const R = Jr[oe];
2139
+ const { t: h } = re("ui"), S = (oe) => oe.preventDefault(), R = (oe) => Fi[c].includes(oe), B = (oe) => {
2140
+ if (!R(oe)) return null;
2141
+ const z = Jr[oe];
2137
2142
  return /* @__PURE__ */ t(
2138
2143
  j,
2139
2144
  {
2140
2145
  size: "sm",
2141
2146
  intent: "ghost",
2142
- icon: R.icon,
2143
- "aria-label": h(R.label[0], R.label[1]),
2144
- "aria-pressed": R.toggle ? i.has(R.toggle) : void 0,
2145
- onMouseDown: z,
2146
- onClick: () => n(...R.command)
2147
+ icon: z.icon,
2148
+ "aria-label": h(z.label[0], z.label[1]),
2149
+ "aria-pressed": z.toggle ? i.has(z.toggle) : void 0,
2150
+ onMouseDown: S,
2151
+ onClick: () => n(...z.command)
2147
2152
  },
2148
- R.id
2153
+ z.id
2149
2154
  );
2150
- }, V = () => /* @__PURE__ */ t("span", { "aria-hidden": "true", className: nn }), O = M("format"), P = [B("undo"), B("redo")].filter(Boolean), E = [
2155
+ }, V = () => /* @__PURE__ */ t("span", { "aria-hidden": "true", className: nn }), O = R("format"), P = [B("undo"), B("redo")].filter(Boolean), T = [
2151
2156
  B("bold"),
2152
2157
  B("italic"),
2153
2158
  B("underline"),
2154
2159
  B("strike"),
2155
2160
  k ? /* @__PURE__ */ t(
2156
- Wi,
2161
+ Ui,
2157
2162
  {
2158
2163
  run: n,
2159
2164
  saveSelection: u,
@@ -2162,7 +2167,7 @@ function gs({
2162
2167
  "colour"
2163
2168
  ) : null,
2164
2169
  k ? /* @__PURE__ */ t(
2165
- Xi,
2170
+ Zi,
2166
2171
  {
2167
2172
  run: n,
2168
2173
  saveSelection: u,
@@ -2170,9 +2175,9 @@ function gs({
2170
2175
  },
2171
2176
  "highlight"
2172
2177
  ) : null
2173
- ].filter(Boolean), U = P.length > 0 || O || E.length > 0, F = [B("ul"), B("ol")].filter(Boolean), Q = [
2174
- M("link") ? /* @__PURE__ */ t(
2175
- Ki,
2178
+ ].filter(Boolean), U = P.length > 0 || O || T.length > 0, F = [B("ul"), B("ol")].filter(Boolean), Q = [
2179
+ R("link") ? /* @__PURE__ */ t(
2180
+ Wi,
2176
2181
  {
2177
2182
  insertHtml: s,
2178
2183
  saveSelection: u,
@@ -2182,7 +2187,7 @@ function gs({
2182
2187
  "link"
2183
2188
  ) : null,
2184
2189
  w ? /* @__PURE__ */ t(
2185
- Vi,
2190
+ Xi,
2186
2191
  {
2187
2192
  insertHtml: s,
2188
2193
  saveSelection: u,
@@ -2191,8 +2196,8 @@ function gs({
2191
2196
  },
2192
2197
  "image"
2193
2198
  ) : null,
2194
- L ? /* @__PURE__ */ t(
2195
- Zi,
2199
+ _ ? /* @__PURE__ */ t(
2200
+ Yi,
2196
2201
  {
2197
2202
  run: n,
2198
2203
  insertTable: g,
@@ -2201,7 +2206,7 @@ function gs({
2201
2206
  "table"
2202
2207
  ) : null,
2203
2208
  q && q.length > 0 && d ? /* @__PURE__ */ t(
2204
- ji,
2209
+ Ki,
2205
2210
  {
2206
2211
  variables: q,
2207
2212
  recentVariableTokens: f,
@@ -2210,7 +2215,7 @@ function gs({
2210
2215
  },
2211
2216
  "variables"
2212
2217
  ) : null
2213
- ].filter(Boolean), pe = _ ? [/* @__PURE__ */ t(ht, { children: _ }, "extensions")] : T ? [
2218
+ ].filter(Boolean), pe = M ? [/* @__PURE__ */ t(ht, { children: M }, "extensions")] : N ? [
2214
2219
  /* @__PURE__ */ t(
2215
2220
  j,
2216
2221
  {
@@ -2219,32 +2224,32 @@ function gs({
2219
2224
  icon: /* @__PURE__ */ t($n, {}),
2220
2225
  "aria-label": h("editor.extensions", "Editor extensions"),
2221
2226
  disabled: !0,
2222
- onMouseDown: z
2227
+ onMouseDown: S
2223
2228
  },
2224
2229
  "extensions"
2225
2230
  )
2226
2231
  ] : [], Y = [F, Q, pe].filter(
2227
2232
  (oe) => oe.length > 0
2228
- ), Ne = Y.length > 0, G = (oe) => Y.map((R, K) => /* @__PURE__ */ A(ht, { children: [
2233
+ ), Ne = Y.length > 0, G = (oe) => Y.map((z, K) => /* @__PURE__ */ A(ht, { children: [
2229
2234
  K > 0 || oe ? /* @__PURE__ */ t(V, {}) : null,
2230
- R
2235
+ z
2231
2236
  ] }, K));
2232
2237
  return (
2233
2238
  // Outer element is the query container + visual chrome; the flex row is an
2234
2239
  // inner child so `container-type` never lands on the flex parent (which
2235
2240
  // would blockify the inline controls).
2236
- /* @__PURE__ */ t("div", { className: Pi(), "data-component": "editor-toolbar", children: /* @__PURE__ */ A(
2241
+ /* @__PURE__ */ t("div", { className: ji(), "data-component": "editor-toolbar", children: /* @__PURE__ */ A(
2237
2242
  "div",
2238
2243
  {
2239
2244
  role: "group",
2240
2245
  "aria-label": h("editor.toolbarLabel"),
2241
- className: Fi,
2246
+ className: Gi,
2242
2247
  children: [
2243
2248
  P,
2244
- P.length > 0 && (O || E.length > 0) ? /* @__PURE__ */ t(V, {}) : null,
2245
- O ? /* @__PURE__ */ t(Gi, { run: n, active: i, onTriggerDown: z }) : null,
2246
- O && E.length > 0 ? /* @__PURE__ */ t(V, {}) : null,
2247
- E,
2249
+ P.length > 0 && (O || T.length > 0) ? /* @__PURE__ */ t(V, {}) : null,
2250
+ O ? /* @__PURE__ */ t(Vi, { run: n, active: i, onTriggerDown: S }) : null,
2251
+ O && T.length > 0 ? /* @__PURE__ */ t(V, {}) : null,
2252
+ T,
2248
2253
  Ne ? /* @__PURE__ */ A(Ie, { children: [
2249
2254
  /* @__PURE__ */ t("div", { className: "ds:hidden ds:@[384px]/toolbar:contents", children: G(U) }),
2250
2255
  /* @__PURE__ */ A("div", { className: "ds:contents ds:@[384px]/toolbar:hidden", children: [
@@ -2255,9 +2260,9 @@ function gs({
2255
2260
  {
2256
2261
  size: "sm",
2257
2262
  intent: "ghost",
2258
- icon: /* @__PURE__ */ t(fa, {}),
2263
+ icon: /* @__PURE__ */ t(ga, {}),
2259
2264
  "aria-label": h("editor.more", "More options"),
2260
- onMouseDown: z
2265
+ onMouseDown: S
2261
2266
  }
2262
2267
  ) }),
2263
2268
  /* @__PURE__ */ t(ne.Content, { side: "bottom", align: "end", children: /* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: G(!1) }) })
@@ -2285,27 +2290,27 @@ function Fr(n) {
2285
2290
  '<img loading="lazy"$1>'
2286
2291
  );
2287
2292
  }
2288
- const Sn = /^[A-Za-z0-9_]+$/, ro = /\[\[([A-Za-z0-9_]+)\]\]/g, qn = "rte-variable-invalid", ps = new RegExp(
2293
+ const Sn = /^[A-Za-z0-9_]+$/, ro = /\[\[([A-Za-z0-9_]+)\]\]/g, qn = "rte-variable-invalid", vs = new RegExp(
2289
2294
  `\\s*\\b${qn}\\b`,
2290
2295
  "g"
2291
2296
  );
2292
2297
  function jr(n) {
2293
2298
  return n.includes('data-redactor-type="variable"') ? n.replace(
2294
2299
  /<span\b[^>]*data-redactor-type="variable"[^>]*>/g,
2295
- (i) => i.replace(/\s(?:data-label|title)="[^"]*"/g, "").replace(ps, "").replace(/\sclass=""/g, "")
2300
+ (i) => i.replace(/\s(?:data-label|title)="[^"]*"/g, "").replace(vs, "").replace(/\sclass=""/g, "")
2296
2301
  ) : n;
2297
2302
  }
2298
- function bs(n) {
2303
+ function ys(n) {
2299
2304
  const i = n.replace(/<[^>]*>/g, " ");
2300
2305
  return Array.from(i.matchAll(ro), (c) => c[1]);
2301
2306
  }
2302
2307
  function Gr(n) {
2303
2308
  return typeof n == "object" && n !== null && "name" in n && n.name === "AiCreditsExhaustedError";
2304
2309
  }
2305
- function vs(n) {
2310
+ function ws(n) {
2306
2311
  return typeof n == "object" && n !== null && "name" in n && n.name === "AbortError";
2307
2312
  }
2308
- function ys(n) {
2313
+ function ks(n) {
2309
2314
  const i = document.createElement("template");
2310
2315
  return i.content.appendChild(n), i.innerHTML;
2311
2316
  }
@@ -2316,7 +2321,7 @@ function Kr(n) {
2316
2321
  function Vr(n) {
2317
2322
  return n.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, "").replace(/[\s\u200B\uFEFF]+/g, "");
2318
2323
  }
2319
- function ws(n) {
2324
+ function xs(n) {
2320
2325
  const i = window.getSelection();
2321
2326
  if (!i || i.rangeCount === 0) return null;
2322
2327
  const c = i.getRangeAt(0);
@@ -2324,7 +2329,7 @@ function ws(n) {
2324
2329
  const s = document.createRange();
2325
2330
  return s.selectNodeContents(n), s.setEnd(c.startContainer, c.startOffset), s.toString().length;
2326
2331
  }
2327
- function ks(n, i) {
2332
+ function Cs(n, i) {
2328
2333
  var u;
2329
2334
  const c = window.getSelection();
2330
2335
  if (!c) return;
@@ -2362,17 +2367,17 @@ function mt(n, i) {
2362
2367
  const y = c.createDocumentFragment();
2363
2368
  let k = 0;
2364
2369
  for (const w of p.data.matchAll(ro)) {
2365
- const L = i.get(w[1].toLowerCase());
2366
- if (!L || w.index === void 0) continue;
2370
+ const _ = i.get(w[1].toLowerCase());
2371
+ if (!_ || w.index === void 0) continue;
2367
2372
  y.append(p.data.slice(k, w.index));
2368
- const T = c.createElement("span");
2369
- T.setAttribute("data-redactor-type", "variable"), T.textContent = `[[${L}]]`, y.append(T), k = w.index + w[0].length;
2373
+ const N = c.createElement("span");
2374
+ N.setAttribute("data-redactor-type", "variable"), N.textContent = `[[${_}]]`, y.append(N), k = w.index + w[0].length;
2370
2375
  }
2371
2376
  k !== 0 && (y.append(p.data.slice(k)), p.replaceWith(y), u = !0);
2372
2377
  }
2373
2378
  return u ? c.body.innerHTML : n;
2374
2379
  }
2375
- function xs(n) {
2380
+ function As(n) {
2376
2381
  if (!n || typeof n != "object") return;
2377
2382
  const i = n, c = (s) => {
2378
2383
  if (s && typeof s == "object" && "url" in s) {
@@ -2382,13 +2387,13 @@ function xs(n) {
2382
2387
  };
2383
2388
  return typeof i.url == "string" ? i.url : c(i.file) ?? c(i.data) ?? Object.values(i).map(c).find(Boolean);
2384
2389
  }
2385
- function Cs(n) {
2390
+ function Ts(n) {
2386
2391
  if (n) return n;
2387
2392
  if (typeof window > "u") return null;
2388
2393
  const i = window;
2389
2394
  return i.$R ?? i.Redactor ?? null;
2390
2395
  }
2391
- const As = {
2396
+ const Es = {
2392
2397
  bold: ["module.inline.format", { tag: "b" }],
2393
2398
  italic: ["module.inline.format", { tag: "i" }],
2394
2399
  strikethrough: ["module.inline.format", { tag: "del" }],
@@ -2397,20 +2402,20 @@ const As = {
2397
2402
  heading: ["module.block.format", { tag: "h2" }],
2398
2403
  quote: ["module.block.format", { tag: "blockquote" }],
2399
2404
  paragraph: ["module.block.format", { tag: "p" }]
2400
- }, Ts = {
2405
+ }, Ns = {
2401
2406
  zh: "zh_cn",
2402
2407
  pt: "pt_br"
2403
2408
  };
2404
- function Es(n) {
2409
+ function Ms(n) {
2405
2410
  const i = n.split("-")[0];
2406
- return Ts[i] ?? i ?? "en";
2411
+ return Ns[i] ?? i ?? "en";
2407
2412
  }
2408
- const Ns = Bn(
2413
+ const Rs = Bn(
2409
2414
  "redactor-theme-alfadocs ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"
2410
- ), Ms = [
2415
+ ), zs = [
2411
2416
  "ds:absolute ds:z-30",
2412
2417
  "ds:[inset-inline-start:var(--rte-typeahead-x)] ds:[inset-block-start:var(--rte-typeahead-y)]"
2413
- ].join(" "), Rs = Bn(
2418
+ ].join(" "), Ss = Bn(
2414
2419
  [
2415
2420
  "ds:block ds:[inline-size:100%]",
2416
2421
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--control-border)]",
@@ -2424,15 +2429,15 @@ const Ns = Bn(
2424
2429
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
2425
2430
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
2426
2431
  ].join(" ")
2427
- ), zs = Xr({ recording: !1 }), Ss = Xr({ recording: !0 });
2428
- function Ls({
2432
+ ), Ls = Xr({ recording: !1 }), _s = Xr({ recording: !0 });
2433
+ function Hs({
2429
2434
  notice: n,
2430
2435
  children: i
2431
2436
  }) {
2432
- const [c, s] = N(!1);
2437
+ const [c, s] = E(!1);
2433
2438
  return /* @__PURE__ */ A(Hn, { open: c, onOpenChange: s, children: [
2434
2439
  /* @__PURE__ */ t(
2435
- _s,
2440
+ Is,
2436
2441
  {
2437
2442
  onOpen: () => s(!0),
2438
2443
  onPress: () => s(!1),
@@ -2446,20 +2451,20 @@ function Ls({
2446
2451
  align: "start",
2447
2452
  size: "sm",
2448
2453
  collisionPadding: 8,
2449
- children: /* @__PURE__ */ t(ka, { ...n })
2454
+ children: /* @__PURE__ */ t(Ca, { ...n })
2450
2455
  }
2451
2456
  )
2452
2457
  ] });
2453
2458
  }
2454
- function _s({
2459
+ function Is({
2455
2460
  onOpen: n,
2456
2461
  onPress: i,
2457
2462
  children: c
2458
2463
  }) {
2459
- const { cancelClose: s, closeWithDelay: g } = wa(), u = C(null), m = v(() => {
2464
+ const { cancelClose: s, closeWithDelay: g } = xa(), u = C(null), m = v(() => {
2460
2465
  u.current && (clearTimeout(u.current), u.current = null);
2461
2466
  }, []);
2462
- S(() => m, [m]);
2467
+ L(() => m, [m]);
2463
2468
  const p = v(() => {
2464
2469
  m(), s(), u.current = setTimeout(n, 300);
2465
2470
  }, [m, s, n]), y = v(() => {
@@ -2467,13 +2472,13 @@ function _s({
2467
2472
  }, [m, g]), k = C(!1), w = v(() => {
2468
2473
  k.current = !0, m(), i();
2469
2474
  }, [m, i]);
2470
- S(() => {
2471
- const T = () => {
2475
+ L(() => {
2476
+ const N = () => {
2472
2477
  k.current = !1;
2473
2478
  };
2474
- return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
2479
+ return document.addEventListener("keydown", N), () => document.removeEventListener("keydown", N);
2475
2480
  }, []);
2476
- const L = v(() => {
2481
+ const _ = v(() => {
2477
2482
  if (k.current) {
2478
2483
  k.current = !1;
2479
2484
  return;
@@ -2494,7 +2499,7 @@ function _s({
2494
2499
  onMouseEnter: p,
2495
2500
  onMouseLeave: y,
2496
2501
  onPointerDown: w,
2497
- onFocusCapture: L,
2502
+ onFocusCapture: _,
2498
2503
  onBlurCapture: y,
2499
2504
  children: c
2500
2505
  }
@@ -2502,13 +2507,13 @@ function _s({
2502
2507
  );
2503
2508
  }
2504
2509
  function ft(n, i) {
2505
- return i ? /* @__PURE__ */ t(Ls, { notice: i, children: n }) : n;
2510
+ return i ? /* @__PURE__ */ t(Hs, { notice: i, children: n }) : n;
2506
2511
  }
2507
2512
  function Jt(n, i) {
2508
2513
  return i ? { "aria-label": n } : { tooltip: n };
2509
2514
  }
2510
2515
  const oo = ["kit", "marketplace"];
2511
- function Hs({
2516
+ function $s({
2512
2517
  groupedExtensions: n,
2513
2518
  showExtensionGroups: i,
2514
2519
  extensionPending: c,
@@ -2520,26 +2525,26 @@ function Hs({
2520
2525
  closeSignal: y,
2521
2526
  restoreFocusOnCloseRef: k
2522
2527
  }) {
2523
- const { t: w } = re("ui"), [L, T] = N(!1), _ = C(null), q = C(!1);
2524
- return S(() => {
2525
- T(!1);
2526
- }, [y]), S(() => {
2528
+ const { t: w } = re("ui"), [_, N] = E(!1), M = C(null), q = C(!1);
2529
+ return L(() => {
2530
+ N(!1);
2531
+ }, [y]), L(() => {
2527
2532
  q.current && !s && (q.current = !1, k.current && window.requestAnimationFrame(() => {
2528
2533
  var f;
2529
- return (f = _.current) == null ? void 0 : f.focus();
2534
+ return (f = M.current) == null ? void 0 : f.focus();
2530
2535
  }));
2531
2536
  }, [s, k]), /* @__PURE__ */ A(
2532
2537
  X.Root,
2533
2538
  {
2534
- open: L,
2539
+ open: _,
2535
2540
  onOpenChange: (f) => {
2536
- f ? (p(), T(!0)) : (T(!1), c && m());
2541
+ f ? (p(), N(!0)) : (N(!1), c && m());
2537
2542
  },
2538
2543
  children: [
2539
2544
  /* @__PURE__ */ t(X.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
2540
2545
  j,
2541
2546
  {
2542
- ref: _,
2547
+ ref: M,
2543
2548
  "data-component-part": "extensions-trigger",
2544
2549
  size: "sm",
2545
2550
  intent: "ghost",
@@ -2561,22 +2566,22 @@ function Hs({
2561
2566
  d === 0 ? "editor.extensionsKit" : "editor.extensionsMarketplace"
2562
2567
  ) }) : null,
2563
2568
  f.map((h) => {
2564
- var z;
2569
+ var S;
2565
2570
  return /* @__PURE__ */ A(
2566
2571
  X.Item,
2567
2572
  {
2568
2573
  "data-extension-id": h.id,
2569
2574
  disabled: c && (s == null ? void 0 : s.extension.id) !== h.id,
2570
2575
  "aria-busy": c && (s == null ? void 0 : s.extension.id) === h.id || void 0,
2571
- onSelect: (M) => {
2572
- h.kind === "action" && M.preventDefault(), q.current = !0, u(h);
2576
+ onSelect: (R) => {
2577
+ h.kind === "action" && R.preventDefault(), q.current = !0, u(h);
2573
2578
  },
2574
2579
  children: [
2575
2580
  c && (s == null ? void 0 : s.extension.id) === h.id ? /* @__PURE__ */ t(Pn, { size: "sm" }) : h.icon ?? /* @__PURE__ */ t($n, {}),
2576
2581
  /* @__PURE__ */ A("span", { className: "ds:flex ds:min-w-0 ds:flex-col ds:text-start", children: [
2577
2582
  /* @__PURE__ */ t("span", { children: Yr(w, h.label) }),
2578
2583
  h.description ? /* @__PURE__ */ t("span", { className: "type-meta ds:text-muted-foreground", children: h.description }) : null,
2579
- ((z = h.source) == null ? void 0 : z.kind) === "marketplace" ? /* @__PURE__ */ A("span", { className: "type-meta ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-muted-foreground", children: [
2584
+ ((S = h.source) == null ? void 0 : S.kind) === "marketplace" ? /* @__PURE__ */ A("span", { className: "type-meta ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-muted-foreground", children: [
2580
2585
  h.source.appIconUrl ? /* @__PURE__ */ t(
2581
2586
  "img",
2582
2587
  {
@@ -2601,7 +2606,7 @@ function Hs({
2601
2606
  }
2602
2607
  );
2603
2608
  }
2604
- const Is = Zo(
2609
+ const Ds = Zo(
2605
2610
  ({
2606
2611
  id: n,
2607
2612
  defaultValue: i,
@@ -2614,20 +2619,20 @@ const Is = Zo(
2614
2619
  minHeight: y,
2615
2620
  showExtensions: k,
2616
2621
  extensions: w,
2617
- extensionContext: L,
2618
- onExtensionRun: T,
2619
- className: _,
2622
+ extensionContext: _,
2623
+ onExtensionRun: N,
2624
+ className: M,
2620
2625
  redactor: q,
2621
2626
  options: f,
2622
2627
  plugins: d,
2623
2628
  lang: h,
2624
- imageUploadUrl: z,
2625
- onUploadImage: M,
2629
+ imageUploadUrl: S,
2630
+ onUploadImage: R,
2626
2631
  onKeyDown: B,
2627
2632
  onRequestAiDraft: V,
2628
2633
  aiDraftFormat: O = "html",
2629
2634
  aiPrivacyNotice: P,
2630
- aiConsent: E,
2635
+ aiConsent: T,
2631
2636
  aiConsentHeadingLevel: U,
2632
2637
  onDictate: F,
2633
2638
  onProofread: Q,
@@ -2636,7 +2641,7 @@ const Is = Zo(
2636
2641
  onAiApplied: Ne,
2637
2642
  aiSparkle: G = !0,
2638
2643
  selectionToolbar: oe,
2639
- variables: R,
2644
+ variables: z,
2640
2645
  recentVariableTokens: K,
2641
2646
  onVariableInserted: J,
2642
2647
  validateVariable: se,
@@ -2649,9 +2654,9 @@ const Is = Zo(
2649
2654
  const { t: $, i18n: Gn } = re("ui"), Kn = qe(), Pe = tt(
2650
2655
  () => `rte-${Kn.replace(/[^a-zA-Z0-9-_]/g, "")}`,
2651
2656
  [Kn]
2652
- ), D = `#${Pe}`, ee = C(null), te = C(null), Me = C(null), an = C(!1), Mt = C(m), W = C(null), gt = C(null), [ue, Vn] = N(!1), [pt, De] = N(!1), [be, Wn] = N(null), [sn, Xn] = N(!1), [ln, cn] = N(!1), bt = C(null), Rt = C(T);
2653
- Rt.current = T;
2654
- const Fe = C(null), [io, so] = N(0), Un = C(!0), dn = v((e = !0) => {
2657
+ ), D = `#${Pe}`, ee = C(null), te = C(null), Me = C(null), an = C(!1), Mt = C(m), W = C(null), gt = C(null), [ue, Vn] = E(!1), [pt, De] = E(!1), [be, Wn] = E(null), [sn, Xn] = E(!1), [ln, cn] = E(!1), bt = C(null), Rt = C(N);
2658
+ Rt.current = N;
2659
+ const Fe = C(null), [io, so] = E(0), Un = C(!0), dn = v((e = !0) => {
2655
2660
  Un.current = e, so((r) => r + 1);
2656
2661
  }, []), un = v(() => {
2657
2662
  var e, r;
@@ -2662,58 +2667,58 @@ const Is = Zo(
2662
2667
  },
2663
2668
  [un, dn]
2664
2669
  );
2665
- S(
2670
+ L(
2666
2671
  () => () => {
2667
2672
  var e, r;
2668
2673
  (e = bt.current) == null || e.abort(), (r = Fe.current) == null || r.call(Fe, { status: "aborted" });
2669
2674
  },
2670
2675
  []
2671
2676
  );
2672
- const [lo, co] = N(""), [uo, mo] = N(
2677
+ const [lo, co] = E(""), [uo, mo] = E(
2673
2678
  "document"
2674
- ), [fo, mn] = N(!1), je = C(on), fn = C(Be);
2675
- S(() => {
2679
+ ), [fo, mn] = E(!1), je = C(on), fn = C(Be);
2680
+ L(() => {
2676
2681
  je.current = on, fn.current = Be;
2677
2682
  }, [on, Be]);
2678
2683
  const zt = C(null), me = tt(
2679
2684
  () => new Map(
2680
- (R ?? []).map((e) => e.token).filter((e) => Sn.test(e)).map((e) => [e.toLowerCase(), e])
2685
+ (z ?? []).map((e) => e.token).filter((e) => Sn.test(e)).map((e) => [e.toLowerCase(), e])
2681
2686
  ),
2682
- [R]
2687
+ [z]
2683
2688
  ), Zn = tt(
2684
2689
  () => new Map(
2685
- (R ?? []).map(
2690
+ (z ?? []).map(
2686
2691
  (e) => [e.token.toLowerCase(), e.label]
2687
2692
  )
2688
2693
  ),
2689
- [R]
2694
+ [z]
2690
2695
  ), rt = C(me);
2691
- S(() => {
2696
+ L(() => {
2692
2697
  rt.current = me;
2693
2698
  }, [me]);
2694
2699
  const Qn = tt(
2695
- () => (R ?? []).filter((e) => Sn.test(e.token)),
2696
- [R]
2700
+ () => (z ?? []).filter((e) => Sn.test(e.token)),
2701
+ [z]
2697
2702
  ), hn = C(se);
2698
- S(() => {
2703
+ L(() => {
2699
2704
  hn.current = se;
2700
2705
  }, [se]);
2701
2706
  const gn = se !== void 0, pn = v(
2702
2707
  (e) => gn && hn.current ? hn.current(e) : me.has(e.toLowerCase()),
2703
2708
  [gn, me]
2704
- ), ot = me.size > 0 || gn, [at, Yn] = N([]), Ge = C(rn);
2705
- S(() => {
2709
+ ), ot = me.size > 0 || gn, [at, Yn] = E([]), Ge = C(rn);
2710
+ L(() => {
2706
2711
  Ge.current = rn;
2707
2712
  }, [rn]);
2708
2713
  const ze = C(() => {
2709
- }), [bn, ho] = N(
2714
+ }), [bn, ho] = E(
2710
2715
  () => /* @__PURE__ */ new Set()
2711
- ), St = C(null), [go, po] = N(
2716
+ ), St = C(null), [go, po] = E(
2712
2717
  null
2713
2718
  ), Lt = v((e) => {
2714
2719
  St.current = e, po(e);
2715
2720
  }, []), vt = C(null), _t = C(null), fe = C(s), Ht = C(B);
2716
- S(() => {
2721
+ L(() => {
2717
2722
  fe.current = s, Ht.current = B;
2718
2723
  }, [s, B]);
2719
2724
  const bo = C(
@@ -2732,7 +2737,7 @@ const Is = Zo(
2732
2737
  }
2733
2738
  return ((r = ee.current) == null ? void 0 : r.value) ?? "";
2734
2739
  }, [D]);
2735
- S(() => {
2740
+ L(() => {
2736
2741
  ze.current = () => {
2737
2742
  var o;
2738
2743
  if (!ot) {
@@ -2752,7 +2757,7 @@ const Is = Zo(
2752
2757
  });
2753
2758
  const r = Array.from(
2754
2759
  new Set(
2755
- bs(le()).filter(
2760
+ ys(le()).filter(
2756
2761
  (a) => !pn(a)
2757
2762
  )
2758
2763
  )
@@ -2761,16 +2766,16 @@ const Is = Zo(
2761
2766
  (a) => a.length === r.length && a.every((l, b) => l === r[b]) ? a : r
2762
2767
  );
2763
2768
  }, ze.current();
2764
- }, [ot, pn, Zn, le]), S(() => {
2769
+ }, [ot, pn, Zn, le]), L(() => {
2765
2770
  var o;
2766
2771
  const r = ((o = W.current) == null ? void 0 : o.querySelector(".redactor-in")) ?? ee.current;
2767
2772
  r && (at.length > 0 ? (r.setAttribute("aria-invalid", "true"), r.setAttribute("aria-describedby", `${Pe}-variables-error`)) : (r.removeAttribute("aria-invalid"), r.removeAttribute("aria-describedby")));
2768
2773
  }, [at, Pe, ue]);
2769
2774
  const vn = C(!1);
2770
- S(() => {
2775
+ L(() => {
2771
2776
  var e, r;
2772
2777
  ot ? (vn.current = !0, (e = Ge.current) == null || e.call(Ge, at)) : vn.current && (vn.current = !1, (r = Ge.current) == null || r.call(Ge, []));
2773
- }, [at, ot]), S(() => {
2778
+ }, [at, ot]), L(() => {
2774
2779
  se && ze.current();
2775
2780
  }, [se]);
2776
2781
  const ce = v(
@@ -2838,7 +2843,7 @@ const Is = Zo(
2838
2843
  },
2839
2844
  [ce, ye]
2840
2845
  );
2841
- S(() => {
2846
+ L(() => {
2842
2847
  const e = W.current;
2843
2848
  if (!e) return;
2844
2849
  const r = {
@@ -2859,7 +2864,7 @@ const Is = Zo(
2859
2864
  de(e, { asHtml: !0 }), typeof window < "u" && window.requestAnimationFrame(() => ye());
2860
2865
  },
2861
2866
  [de, ye]
2862
- ), [it, yn] = N(null), It = C(null), wn = `${Pe}-variables`, Jn = C(null), [kn, vo] = N(void 0), Ce = v(() => {
2867
+ ), [it, yn] = E(null), It = C(null), wn = `${Pe}-variables`, Jn = C(null), [kn, vo] = E(void 0), Ce = v(() => {
2863
2868
  It.current = null, yn(null);
2864
2869
  }, []), $t = v(
2865
2870
  (e, r) => {
@@ -2870,7 +2875,7 @@ const Is = Zo(
2870
2875
  },
2871
2876
  [Ve]
2872
2877
  );
2873
- S(() => {
2878
+ L(() => {
2874
2879
  const e = W.current;
2875
2880
  if (!e || !ot) return;
2876
2881
  const r = () => {
@@ -2896,7 +2901,7 @@ const Is = Zo(
2896
2901
  return;
2897
2902
  }
2898
2903
  const dt = /\[\[([A-Za-z0-9_ ]{0,40})$/.exec(he), ae = gt.current;
2899
- if (!dt || !ae || (R ?? []).length === 0) {
2904
+ if (!dt || !ae || (z ?? []).length === 0) {
2900
2905
  Ce();
2901
2906
  return;
2902
2907
  }
@@ -2928,10 +2933,10 @@ const Is = Zo(
2928
2933
  }, [
2929
2934
  ot,
2930
2935
  me,
2931
- R,
2936
+ z,
2932
2937
  $t,
2933
2938
  Ce
2934
- ]), S(() => {
2939
+ ]), L(() => {
2935
2940
  var r;
2936
2941
  const e = (r = W.current) == null ? void 0 : r.querySelector(".redactor-in");
2937
2942
  e && (it ? (e.setAttribute("aria-expanded", "true"), e.setAttribute("aria-controls", `${wn}-list`), kn ? e.setAttribute("aria-activedescendant", kn) : e.removeAttribute("aria-activedescendant")) : (e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls"), e.removeAttribute("aria-activedescendant")));
@@ -3024,7 +3029,7 @@ const Is = Zo(
3024
3029
  },
3025
3030
  [Dt, D, ye]
3026
3031
  );
3027
- S(() => {
3032
+ L(() => {
3028
3033
  const e = W.current;
3029
3034
  if (typeof window > "u" || !e) return;
3030
3035
  const r = (l) => {
@@ -3109,27 +3114,27 @@ const Is = Zo(
3109
3114
  [Ve, D]
3110
3115
  ), tr = v(
3111
3116
  async (e, r) => {
3112
- if (M) return M(e, r);
3113
- if (!z) throw new Error("No image upload URL configured.");
3117
+ if (R) return R(e, r);
3118
+ if (!S) throw new Error("No image upload URL configured.");
3114
3119
  const o = new FormData();
3115
3120
  o.append("file", e);
3116
- const a = await fetch(z, {
3121
+ const a = await fetch(S, {
3117
3122
  method: "POST",
3118
3123
  body: o,
3119
3124
  credentials: "same-origin",
3120
3125
  signal: r
3121
3126
  });
3122
3127
  if (!a.ok) throw new Error(`Image upload failed (${a.status}).`);
3123
- const l = xs(await a.json());
3128
+ const l = As(await a.json());
3124
3129
  if (!l) throw new Error("Image upload response contained no URL.");
3125
3130
  return l;
3126
3131
  },
3127
- [z, M]
3132
+ [S, R]
3128
3133
  ), We = oa({ enabled: G }), {
3129
3134
  start: lt,
3130
3135
  land: Se,
3131
3136
  reset: ct
3132
- } = We, yt = C(null), Ot = C(null), [we, nr] = N(!1), [Ro, rr] = N(!1), [zo, qt] = N(""), Bt = v(() => {
3137
+ } = We, yt = C(null), Ot = C(null), [we, nr] = E(!1), [Ro, rr] = E(!1), [zo, qt] = E(""), Bt = v(() => {
3133
3138
  const e = Ot.current;
3134
3139
  e != null && e.parentNode && e.parentNode.removeChild(e), Ot.current = null;
3135
3140
  }, []), or = v((e) => {
@@ -3163,7 +3168,7 @@ const Is = Zo(
3163
3168
  return !1;
3164
3169
  const l = o.data.charAt(a - 1);
3165
3170
  return /\S/.test(l) && l !== " ";
3166
- }, []), ke = E !== void 0 && !E.granted, xn = C(null), Ft = v(() => {
3171
+ }, []), ke = T !== void 0 && !T.granted, xn = C(null), Ft = v(() => {
3167
3172
  if (!F || ke) return;
3168
3173
  const e = new AbortController();
3169
3174
  yt.current = e, rr(!1), nr(!0), qt($("editor.ai.listening")), G && lt(), Bt(), F({
@@ -3213,29 +3218,29 @@ const Is = Zo(
3213
3218
  ct,
3214
3219
  $
3215
3220
  ]);
3216
- S(() => () => {
3221
+ L(() => () => {
3217
3222
  var e;
3218
3223
  return (e = yt.current) == null ? void 0 : e.abort();
3219
3224
  }, []);
3220
- const [jt, wt] = N(null), Xe = C(null), Gt = C(null), [So, ir] = N(!1), Lo = ((E == null ? void 0 : E.pending) ?? !1) || So, Kt = C(!1), Cn = v(() => {
3225
+ const [jt, wt] = E(null), Xe = C(null), Gt = C(null), [So, ir] = E(!1), Lo = ((T == null ? void 0 : T.pending) ?? !1) || So, Kt = C(!1), Cn = v(() => {
3221
3226
  Xe.current = null, Gt.current = null, Kt.current = !1, wt(null);
3222
3227
  }, []), _o = v(() => {
3223
3228
  var r;
3224
3229
  Kt.current = !0;
3225
- const e = (r = E == null ? void 0 : E.onGrant) == null ? void 0 : r.call(E);
3230
+ const e = (r = T == null ? void 0 : T.onGrant) == null ? void 0 : r.call(T);
3226
3231
  e && typeof e.then == "function" && (ir(!0), Promise.resolve(e).catch(() => {
3227
3232
  }).finally(() => ir(!1)));
3228
- }, [E]), sr = C((E == null ? void 0 : E.granted) ?? !0);
3229
- S(() => {
3233
+ }, [T]), sr = C((T == null ? void 0 : T.granted) ?? !0);
3234
+ L(() => {
3230
3235
  const e = sr.current;
3231
- if (sr.current = (E == null ? void 0 : E.granted) ?? !0, !e && (E != null && E.granted) && Xe.current) {
3236
+ if (sr.current = (T == null ? void 0 : T.granted) ?? !0, !e && (T != null && T.granted) && Xe.current) {
3232
3237
  const r = Xe.current, o = Kt.current;
3233
3238
  Xe.current = null, Kt.current = !1, wt(null);
3234
3239
  const a = Gt.current;
3235
3240
  if (Gt.current = null, !o) return;
3236
3241
  r === "write" ? De(!0) : r === "action" ? a == null || a() : (ge(), Ft());
3237
3242
  }
3238
- }, [E == null ? void 0 : E.granted, ge, Ft]), S(() => {
3243
+ }, [T == null ? void 0 : T.granted, ge, Ft]), L(() => {
3239
3244
  ke && (De(!1), we && Pt());
3240
3245
  }, [ke, we, Pt]);
3241
3246
  const lr = v(
@@ -3264,7 +3269,7 @@ const Is = Zo(
3264
3269
  De(!0);
3265
3270
  },
3266
3271
  [st, ke]
3267
- ), dr = tt(() => E != null && E.granted ? /* @__PURE__ */ A(Ie, { children: [
3272
+ ), dr = tt(() => T != null && T.granted ? /* @__PURE__ */ A(Ie, { children: [
3268
3273
  $(
3269
3274
  "editor.ai.consentRecorded",
3270
3275
  "AI assistance consent has been recorded."
@@ -3273,10 +3278,10 @@ const Is = Zo(
3273
3278
  " ",
3274
3279
  P
3275
3280
  ] }) : null
3276
- ] }) : P, [E, P, $]), [Ue, An] = N(null), [Ho, Vt] = N(!1), [ur, mr] = N(!1), [Io, Ze] = N(""), fr = C(null), Le = C(null), Wt = C(Ne);
3277
- S(() => {
3281
+ ] }) : P, [T, P, $]), [Ue, An] = E(null), [Ho, Vt] = E(!1), [ur, mr] = E(!1), [Io, Ze] = E(""), fr = C(null), Le = C(null), Wt = C(Ne);
3282
+ L(() => {
3278
3283
  Wt.current = Ne;
3279
- }, [Ne]), S(() => {
3284
+ }, [Ne]), L(() => {
3280
3285
  G && (!we && Ue === null || We.state === null && lt());
3281
3286
  }, [G, we, Ue, We.state, lt]);
3282
3287
  const kt = (e) => e.preventDefault(), hr = v(
@@ -3326,7 +3331,7 @@ const Is = Zo(
3326
3331
  return {
3327
3332
  scope: "selection",
3328
3333
  range: b.cloneRange(),
3329
- html: ys(b.cloneContents()),
3334
+ html: ks(b.cloneContents()),
3330
3335
  text: x
3331
3336
  };
3332
3337
  }
@@ -3383,7 +3388,7 @@ const Is = Zo(
3383
3388
  });
3384
3389
  }).catch((x) => {
3385
3390
  var H;
3386
- if (Qe(!1), !(l.signal.aborted || vs(x))) {
3391
+ if (Qe(!1), !(l.signal.aborted || ws(x))) {
3387
3392
  if (Gr(x) && ((H = je.current) == null || H.call(je), fn.current)) {
3388
3393
  mn(!0), De(!0);
3389
3394
  return;
@@ -3432,7 +3437,7 @@ const Is = Zo(
3432
3437
  var e;
3433
3438
  (e = Le.current) == null || e.abort(), Le.current = null, Qe(!1), An(null), Ze(""), ct();
3434
3439
  }, [Qe, ct]), vr = C(null);
3435
- S(() => {
3440
+ L(() => {
3436
3441
  const e = Ue ?? fr.current;
3437
3442
  if (!e) return;
3438
3443
  const r = e === "template" ? "ai-templates" : `ai-${e}`, o = requestAnimationFrame(() => {
@@ -3441,14 +3446,14 @@ const Is = Zo(
3441
3446
  a && a !== document.body && a.isConnected || (b = (l = vr.current) == null ? void 0 : l.querySelector(`[data-component-part="${r}"]`)) == null || b.focus();
3442
3447
  });
3443
3448
  return () => cancelAnimationFrame(o);
3444
- }, [Ue]), S(() => () => {
3449
+ }, [Ue]), L(() => () => {
3445
3450
  var e;
3446
3451
  return (e = Le.current) == null ? void 0 : e.abort();
3447
- }, []), S(() => {
3452
+ }, []), L(() => {
3448
3453
  const e = ee.current;
3449
3454
  if (!e) return;
3450
3455
  e.value = bo.current, ze.current();
3451
- const r = Cs(q);
3456
+ const r = Ts(q);
3452
3457
  if (!r) {
3453
3458
  Vn(!0);
3454
3459
  return;
@@ -3458,7 +3463,7 @@ const Is = Zo(
3458
3463
  r.addLang(x, $r($)), Me.current = x;
3459
3464
  }
3460
3465
  const o = {
3461
- lang: Me.current ?? h ?? Es(Gn.language || "en"),
3466
+ lang: Me.current ?? h ?? Ms(Gn.language || "en"),
3462
3467
  // The kit renders its OWN toolbar (EditorToolbar) and drives Redactor
3463
3468
  // via the command API, so Redactor's native toolbar is suppressed.
3464
3469
  toolbar: !1,
@@ -3473,7 +3478,7 @@ const Is = Zo(
3473
3478
  // second, untokenised, mouse-only UI competing with ours.
3474
3479
  imageEditable: !1,
3475
3480
  imageResizable: !1
3476
- }, a = z ? { imageUpload: z } : {}, l = (f == null ? void 0 : f.callbacks) ?? {}, b = {
3481
+ }, a = S ? { imageUpload: S } : {}, l = (f == null ? void 0 : f.callbacks) ?? {}, b = {
3477
3482
  ...o,
3478
3483
  ...a,
3479
3484
  ...f ?? {},
@@ -3526,7 +3531,7 @@ const Is = Zo(
3526
3531
  }
3527
3532
  Me.current && r.lang && delete r.lang[Me.current], Me.current = null, te.current = null;
3528
3533
  };
3529
- }, []), S(() => {
3534
+ }, []), L(() => {
3530
3535
  const e = te.current, r = Me.current;
3531
3536
  if (!(!(e != null && e.addLang) || !r)) {
3532
3537
  e.addLang(r, $r($));
@@ -3539,21 +3544,21 @@ const Is = Zo(
3539
3544
  const yr = C(me), wr = C(
3540
3545
  null
3541
3546
  );
3542
- S(() => {
3547
+ L(() => {
3543
3548
  var o, a;
3544
3549
  if (yr.current === me || (yr.current = me, !te.current || me.size === 0)) return;
3545
3550
  const e = le(), r = mt(e, me);
3546
3551
  if (r !== e) {
3547
- const l = (o = W.current) == null ? void 0 : o.querySelector(".redactor-in"), x = l != null && l.contains(document.activeElement) && l ? ws(l) : null;
3552
+ const l = (o = W.current) == null ? void 0 : o.querySelector(".redactor-in"), x = l != null && l.contains(document.activeElement) && l ? xs(l) : null;
3548
3553
  wr.current = {
3549
3554
  text: Vr(e),
3550
3555
  until: Date.now() + 1e3
3551
3556
  }, ce("source.setCode", r);
3552
3557
  const H = (a = W.current) == null ? void 0 : a.querySelector(".redactor-in");
3553
- x !== null && H && ks(H, x);
3558
+ x !== null && H && Cs(H, x);
3554
3559
  }
3555
3560
  window.requestAnimationFrame(() => ze.current());
3556
- }, [me, le, ce]), S(() => {
3561
+ }, [me, le, ce]), L(() => {
3557
3562
  if (!te.current || c === void 0) return;
3558
3563
  if (an.current) {
3559
3564
  an.current = !1;
@@ -3564,7 +3569,7 @@ const Is = Zo(
3564
3569
  rt.current
3565
3570
  );
3566
3571
  Yt(le()) !== e && ce("source.setCode", e);
3567
- }, [c, le, ce]), S(() => {
3572
+ }, [c, le, ce]), L(() => {
3568
3573
  Mt.current = m;
3569
3574
  const e = te.current;
3570
3575
  if (e)
@@ -3572,7 +3577,7 @@ const Is = Zo(
3572
3577
  e(D, m ? "enableReadOnly" : "disableReadOnly");
3573
3578
  } catch {
3574
3579
  }
3575
- }, [m, D]), S(() => {
3580
+ }, [m, D]), L(() => {
3576
3581
  if (!ue || c === void 0) return;
3577
3582
  const e = ee.current;
3578
3583
  if (!e) return;
@@ -3602,7 +3607,7 @@ const Is = Zo(
3602
3607
  },
3603
3608
  insertAtCursor: de,
3604
3609
  applyFormat(e) {
3605
- const r = As[e];
3610
+ const r = Es[e];
3606
3611
  r && Ke(...r);
3607
3612
  },
3608
3613
  focus() {
@@ -3622,7 +3627,7 @@ const Is = Zo(
3622
3627
  }),
3623
3628
  [D, le, ce, de, Ke]
3624
3629
  );
3625
- Qo(ao, () => Oe, [Oe]), ra(Ii, Oe, n);
3630
+ Qo(ao, () => Oe, [Oe]), ra(Di, Oe, n);
3626
3631
  const $o = v(
3627
3632
  (e) => {
3628
3633
  var r;
@@ -3633,7 +3638,7 @@ const Is = Zo(
3633
3638
  },
3634
3639
  []
3635
3640
  ), Xt = p ?? $("editor.regionLabel"), Nn = f == null ? void 0 : f.placeholder, Ct = typeof Nn == "string" || Nn === !1 ? Nn : u ?? $("editor.placeholder");
3636
- S(() => {
3641
+ L(() => {
3637
3642
  var a;
3638
3643
  if (ue) return;
3639
3644
  const e = (a = W.current) == null ? void 0 : a.querySelector(".redactor-in");
@@ -3659,7 +3664,7 @@ const Is = Zo(
3659
3664
  Ve,
3660
3665
  J
3661
3666
  ]
3662
- ), Mn = C(null), [Oo, qo] = N(!1), [Bo, Po] = N(!1), Fo = v(
3667
+ ), Mn = C(null), [Oo, qo] = E(!1), [Bo, Po] = E(!1), Fo = v(
3663
3668
  (e, r) => {
3664
3669
  if (Po(e), !e) return;
3665
3670
  const o = Ye(r);
@@ -3684,7 +3689,7 @@ const Is = Zo(
3684
3689
  onClick: o ? br : () => xt(e, r, Ye("document")),
3685
3690
  running: o
3686
3691
  };
3687
- }, [xr, Go] = N(() => /* @__PURE__ */ new Set()), Ae = tt(() => {
3692
+ }, [xr, Go] = E(() => /* @__PURE__ */ new Set()), Ae = tt(() => {
3688
3693
  if (!$e || xr.has($e.mode)) return;
3689
3694
  if (!$e.onDismiss) return $e;
3690
3695
  const e = $e.onDismiss, r = $e.mode;
@@ -3722,7 +3727,7 @@ const Is = Zo(
3722
3727
  onClick: () => cr("document")
3723
3728
  });
3724
3729
  const Tr = (e, r) => Y ? /* @__PURE__ */ t(
3725
- us,
3730
+ fs,
3726
3731
  {
3727
3732
  side: r === "document" ? "top" : "bottom",
3728
3733
  templates: Y.templates,
@@ -3733,15 +3738,15 @@ const Is = Zo(
3733
3738
  trigger: e
3734
3739
  }
3735
3740
  ) : null, Er = (w ?? []).filter(
3736
- (e) => !e.contexts || L !== void 0 && e.contexts.includes(L)
3741
+ (e) => !e.contexts || _ !== void 0 && e.contexts.includes(_)
3737
3742
  );
3738
- S(() => {
3743
+ L(() => {
3739
3744
  (pt || jt !== null || m) && Re(!1);
3740
- }, [pt, jt, m, Re]), S(() => {
3745
+ }, [pt, jt, m, Re]), L(() => {
3741
3746
  be && !(w ?? []).some(
3742
- (e) => e.id === be.extension.id && (!e.contexts || L !== void 0 && e.contexts.includes(L))
3747
+ (e) => e.id === be.extension.id && (!e.contexts || _ !== void 0 && e.contexts.includes(_))
3743
3748
  ) && Re();
3744
- }, [w, L, be, Re]);
3749
+ }, [w, _, be, Re]);
3745
3750
  const Ko = (e) => {
3746
3751
  var Te, dt;
3747
3752
  if (ln) return;
@@ -3813,7 +3818,7 @@ const Is = Zo(
3813
3818
  ), Vo = Nr.every(
3814
3819
  (e) => e.length > 0
3815
3820
  ), Wo = Er.length > 0 ? /* @__PURE__ */ t(
3816
- Hs,
3821
+ $s,
3817
3822
  {
3818
3823
  groupedExtensions: Nr,
3819
3824
  showExtensionGroups: Vo,
@@ -3837,13 +3842,13 @@ const Is = Zo(
3837
3842
  "div",
3838
3843
  {
3839
3844
  ref: W,
3840
- className: [Ns(), _].filter(Boolean).join(" "),
3845
+ className: [Rs(), M].filter(Boolean).join(" "),
3841
3846
  "data-component": "rich-text-editor",
3842
3847
  "data-component-id": n,
3843
3848
  "data-min-height": y,
3844
3849
  children: [
3845
3850
  !ue && !m ? /* @__PURE__ */ t(
3846
- gs,
3851
+ bs,
3847
3852
  {
3848
3853
  run: Ke,
3849
3854
  active: bn,
@@ -3853,9 +3858,9 @@ const Is = Zo(
3853
3858
  saveSelection: st,
3854
3859
  restoreSelection: ge,
3855
3860
  getSelectedText: xo,
3856
- uploadImage: z || M ? tr : void 0,
3861
+ uploadImage: S || R ? tr : void 0,
3857
3862
  enableColor: (d == null ? void 0 : d.includes("fontcolor")) ?? !1,
3858
- enableImage: !!(z || M),
3863
+ enableImage: !!(S || R),
3859
3864
  enableTable: (d == null ? void 0 : d.includes("table")) ?? !1,
3860
3865
  showExtensions: k,
3861
3866
  extensionControl: Wo,
@@ -3876,7 +3881,7 @@ const Is = Zo(
3876
3881
  placeholder: Ct || void 0,
3877
3882
  onChange: ue ? $o : void 0,
3878
3883
  readOnly: ue ? m : void 0,
3879
- className: ue ? Rs() : void 0
3884
+ className: ue ? Ss() : void 0
3880
3885
  }
3881
3886
  ),
3882
3887
  Ut ? /* @__PURE__ */ t(
@@ -3908,7 +3913,7 @@ const Is = Zo(
3908
3913
  "data-component-part": `ai-${e.key}`,
3909
3914
  disabled: Ut && !e.running || void 0,
3910
3915
  "aria-label": e.label,
3911
- className: e.recording ? Ss : zs,
3916
+ className: e.recording ? _s : Ls,
3912
3917
  children: e.icon
3913
3918
  }
3914
3919
  );
@@ -3979,7 +3984,7 @@ const Is = Zo(
3979
3984
  onDictate: F,
3980
3985
  privacyNotice: dr
3981
3986
  }) : V ? /* @__PURE__ */ t(
3982
- qi,
3987
+ Pi,
3983
3988
  {
3984
3989
  open: pt && !ke,
3985
3990
  onClose: () => De(!1),
@@ -3992,7 +3997,7 @@ const Is = Zo(
3992
3997
  onDictate: F
3993
3998
  }
3994
3999
  ) : null,
3995
- E ? /* @__PURE__ */ t(
4000
+ T ? /* @__PURE__ */ t(
3996
4001
  Ln,
3997
4002
  {
3998
4003
  open: jt !== null,
@@ -4005,10 +4010,10 @@ const Is = Zo(
4005
4010
  children: /* @__PURE__ */ t(
4006
4011
  ia,
4007
4012
  {
4008
- granted: E.granted,
4009
- grantedAt: E.grantedAt,
4010
- grantedBy: E.grantedBy,
4011
- canGrant: (E.canGrant ?? !0) && E.onGrant !== void 0,
4013
+ granted: T.granted,
4014
+ grantedAt: T.grantedAt,
4015
+ grantedBy: T.grantedBy,
4016
+ canGrant: (T.canGrant ?? !0) && T.onGrant !== void 0,
4012
4017
  pending: Lo,
4013
4018
  onGrantConsent: _o,
4014
4019
  headingLevel: U,
@@ -4022,7 +4027,7 @@ const Is = Zo(
4022
4027
  ) : null
4023
4028
  ] }),
4024
4029
  !ue && !m && ((d == null ? void 0 : d.includes("table")) ?? !1) ? /* @__PURE__ */ t(
4025
- es,
4030
+ ns,
4026
4031
  {
4027
4032
  active: bn,
4028
4033
  run: Ke,
@@ -4034,7 +4039,7 @@ const Is = Zo(
4034
4039
  }
4035
4040
  ) : null,
4036
4041
  !ue && !m ? /* @__PURE__ */ t(
4037
- ds,
4042
+ ms,
4038
4043
  {
4039
4044
  areaRef: gt,
4040
4045
  activeImageEl: go,
@@ -4043,7 +4048,7 @@ const Is = Zo(
4043
4048
  }
4044
4049
  ) : null,
4045
4050
  Xo ? /* @__PURE__ */ t(
4046
- hs,
4051
+ ps,
4047
4052
  {
4048
4053
  active: bn,
4049
4054
  run: Ke,
@@ -4157,7 +4162,7 @@ const Is = Zo(
4157
4162
  it ? /* @__PURE__ */ t(
4158
4163
  "div",
4159
4164
  {
4160
- className: Ms,
4165
+ className: zs,
4161
4166
  style: {
4162
4167
  "--rte-typeahead-x": `${it.left}px`,
4163
4168
  "--rte-typeahead-y": `${it.top}px`
@@ -4214,10 +4219,10 @@ const Is = Zo(
4214
4219
  );
4215
4220
  }
4216
4221
  );
4217
- Is.displayName = "RichTextEditor";
4222
+ Ds.displayName = "RichTextEditor";
4218
4223
  export {
4219
- Is as R,
4220
- Ii as r,
4221
- Ns as w
4224
+ Ds as R,
4225
+ Di as r,
4226
+ Rs as w
4222
4227
  };
4223
- //# sourceMappingURL=rich-text-editor-CkFfmA3v.js.map
4228
+ //# sourceMappingURL=rich-text-editor-DTnNZ4Ff.js.map