@uva-glass/component-library 3.55.4 → 3.55.5

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 (253) hide show
  1. package/dist/{Accordion-BpnBHYIx.js → Accordion-DvblEUVu.js} +16 -17
  2. package/dist/{Accordion-BpnBHYIx.js.map → Accordion-DvblEUVu.js.map} +1 -1
  3. package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js → AddCatalogueLinkForm-rph4K9P0.js} +24 -25
  4. package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js.map → AddCatalogueLinkForm-rph4K9P0.js.map} +1 -1
  5. package/dist/{CheckboxButtonBar-CalU0IYK.js → CheckboxButtonBar-5UMIFMKH.js} +2 -2
  6. package/dist/{CheckboxButtonBar-CalU0IYK.js.map → CheckboxButtonBar-5UMIFMKH.js.map} +1 -1
  7. package/dist/{ControlsButton-zemVxTlg.js → ControlsButton-B1XRpMUM.js} +15 -16
  8. package/dist/{ControlsButton-zemVxTlg.js.map → ControlsButton-B1XRpMUM.js.map} +1 -1
  9. package/dist/{Drawer-Ggofac6y.js → Drawer-e7UFHVg9.js} +29 -30
  10. package/dist/{Drawer-Ggofac6y.js.map → Drawer-e7UFHVg9.js.map} +1 -1
  11. package/dist/{FieldHint-D0HtbTnt.js → FieldHint-fxnEOsVZ.js} +2 -2
  12. package/dist/{FieldHint-D0HtbTnt.js.map → FieldHint-fxnEOsVZ.js.map} +1 -1
  13. package/dist/Fieldset-0LFsZ3Mz.js +22 -0
  14. package/dist/{Fieldset-CoNu_Owa.js.map → Fieldset-0LFsZ3Mz.js.map} +1 -1
  15. package/dist/{Lexical.prod-DIglXatJ.js → Lexical.prod-sbwgNRjw.js} +575 -568
  16. package/dist/Lexical.prod-sbwgNRjw.js.map +1 -0
  17. package/dist/{LexicalClipboard.prod-Bnzu0sh_.js → LexicalClipboard.prod-DdImsyd1.js} +82 -82
  18. package/dist/{LexicalClipboard.prod-Bnzu0sh_.js.map → LexicalClipboard.prod-DdImsyd1.js.map} +1 -1
  19. package/dist/{LexicalExtension.prod-COPHoPpX.js → LexicalExtension.prod-jTSDl1mh.js} +208 -198
  20. package/dist/LexicalExtension.prod-jTSDl1mh.js.map +1 -0
  21. package/dist/{LexicalLink.prod-Bf9JUdMv.js → LexicalLink.prod-BKLNLyu8.js} +155 -149
  22. package/dist/LexicalLink.prod-BKLNLyu8.js.map +1 -0
  23. package/dist/{LexicalList.prod-DRz8vsM9.js → LexicalList.prod-DEtc4lSr.js} +222 -222
  24. package/dist/{LexicalList.prod-DRz8vsM9.js.map → LexicalList.prod-DEtc4lSr.js.map} +1 -1
  25. package/dist/{LexicalTable.prod-D16GW-aZ.js → LexicalTable.prod-CpIPDW6z.js} +436 -428
  26. package/dist/LexicalTable.prod-CpIPDW6z.js.map +1 -0
  27. package/dist/LexicalUtils.prod-DjjGkphN.js +360 -0
  28. package/dist/LexicalUtils.prod-DjjGkphN.js.map +1 -0
  29. package/dist/{LinkContextMenu-m_CGQEiX.js → LinkContextMenu-CTkNPiIW.js} +2 -2
  30. package/dist/{LinkContextMenu-m_CGQEiX.js.map → LinkContextMenu-CTkNPiIW.js.map} +1 -1
  31. package/dist/{ModalDialog-HUkDdAJ-.js → ModalDialog-N50NGnd4.js} +2 -2
  32. package/dist/{ModalDialog-HUkDdAJ-.js.map → ModalDialog-N50NGnd4.js.map} +1 -1
  33. package/dist/{PageOverlay-D_wG2oie.js → PageOverlay-S4xsqJha.js} +2 -2
  34. package/dist/{PageOverlay-D_wG2oie.js.map → PageOverlay-S4xsqJha.js.map} +1 -1
  35. package/dist/{PasteHandlerPlugin-DjD1wryY.js → PasteHandlerPlugin-YpQruA-w.js} +4 -4
  36. package/dist/{PasteHandlerPlugin-DjD1wryY.js.map → PasteHandlerPlugin-YpQruA-w.js.map} +1 -1
  37. package/dist/{RteEditor.module-Jk80F1FA.js → RteEditor.module-BJLUYSpf.js} +9 -10
  38. package/dist/{RteEditor.module-Jk80F1FA.js.map → RteEditor.module-BJLUYSpf.js.map} +1 -1
  39. package/dist/{Sortable.module-BTUOSbOU.js → Sortable.module-8SoaHfuE.js} +6 -7
  40. package/dist/{Sortable.module-BTUOSbOU.js.map → Sortable.module-8SoaHfuE.js.map} +1 -1
  41. package/dist/{SortableProvider-Dc7hwkb5.js → SortableProvider-8HYiBXJS.js} +2 -2
  42. package/dist/{SortableProvider-Dc7hwkb5.js.map → SortableProvider-8HYiBXJS.js.map} +1 -1
  43. package/dist/Spinner-BpElTDIu.js +30 -0
  44. package/dist/{Spinner-D8tWqg9j.js.map → Spinner-BpElTDIu.js.map} +1 -1
  45. package/dist/{TableCellResizerPlugin-CgYsYsuY.js → TableCellResizerPlugin-Ceof6StD.js} +17 -17
  46. package/dist/{TableCellResizerPlugin-CgYsYsuY.js.map → TableCellResizerPlugin-Ceof6StD.js.map} +1 -1
  47. package/dist/{TextArea-DqKIpOfT.js → TextArea-CuASC9bX.js} +16 -17
  48. package/dist/{TextArea-DqKIpOfT.js.map → TextArea-CuASC9bX.js.map} +1 -1
  49. package/dist/{Tooltip-BzB3jznk.js → Tooltip-D27p9kh4.js} +13 -14
  50. package/dist/{Tooltip-BzB3jznk.js.map → Tooltip-D27p9kh4.js.map} +1 -1
  51. package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js → chunk-SZQXB3JV-KiB8lSa9.js} +5 -5
  52. package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js.map → chunk-SZQXB3JV-KiB8lSa9.js.map} +1 -1
  53. package/dist/{client-UU-mS47K.js → client-CHQ7u_QI.js} +9 -9
  54. package/dist/{client-UU-mS47K.js.map → client-CHQ7u_QI.js.map} +1 -1
  55. package/dist/components/Accordion/Accordion.js +1 -1
  56. package/dist/components/Accordion/Accordion.stories.js +1 -1
  57. package/dist/components/Accordion/Accordion.test.js +4 -7
  58. package/dist/components/Accordion/Accordion.test.js.map +1 -1
  59. package/dist/components/Accordion/index.js +1 -1
  60. package/dist/components/AccordionCard/AccordionCard.test.js +3 -6
  61. package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
  62. package/dist/components/ActionList/ActionList.test.js +3 -6
  63. package/dist/components/ActionList/ActionList.test.js.map +1 -1
  64. package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -5
  65. package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
  66. package/dist/components/Attention/Attention.test.js +2 -5
  67. package/dist/components/Attention/Attention.test.js.map +1 -1
  68. package/dist/components/Backdrop/Backdrop.test.js +2 -5
  69. package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
  70. package/dist/components/Buttons/Button.stories.js +1 -1
  71. package/dist/components/Buttons/Button.test.js +2 -5
  72. package/dist/components/Buttons/Button.test.js.map +1 -1
  73. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  74. package/dist/components/Buttons/LinkButton.test.js +2 -5
  75. package/dist/components/Buttons/LinkButton.test.js.map +1 -1
  76. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  77. package/dist/components/Buttons/MenuButton.test.js +2 -5
  78. package/dist/components/Buttons/MenuButton.test.js.map +1 -1
  79. package/dist/components/Card/Card.test.js +2 -5
  80. package/dist/components/Card/Card.test.js.map +1 -1
  81. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  82. package/dist/components/Checkbox/Checkbox.test.js +3 -6
  83. package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
  84. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +1 -1
  85. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +2 -2
  86. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -6
  87. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
  88. package/dist/components/CheckboxButtonBar/index.js +1 -1
  89. package/dist/components/CheckboxTree/CheckboxTree.js +1 -2
  90. package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -4
  91. package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
  92. package/dist/components/CheckboxTree/index.js +1 -2
  93. package/dist/components/Chip/Chip.stories.js +1 -1
  94. package/dist/components/ControlsButton/ControlsButton.js +1 -1
  95. package/dist/components/ControlsButton/ControlsButton.stories.js +2 -2
  96. package/dist/components/ControlsButton/index.js +1 -1
  97. package/dist/components/Drawer/Drawer.js +1 -1
  98. package/dist/components/Drawer/Drawer.stories.js +2 -2
  99. package/dist/components/Drawer/index.js +1 -1
  100. package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -5
  101. package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
  102. package/dist/components/FieldHint/FieldHint.js +1 -1
  103. package/dist/components/FieldHint/FieldHint.stories.js +1 -1
  104. package/dist/components/FieldHint/index.js +1 -1
  105. package/dist/components/Fieldset/Fieldset.js +1 -1
  106. package/dist/components/Fieldset/Fieldset.stories.js +1 -1
  107. package/dist/components/Fieldset/index.js +1 -1
  108. package/dist/components/FormInput/FormInput.js +1 -2
  109. package/dist/components/FormInput/FormInput.stories.js +2 -3
  110. package/dist/components/FormInput/FormInput.stories.js.map +1 -1
  111. package/dist/components/FormInput/index.js +1 -2
  112. package/dist/components/IconButton/IconButton.stories.js +6 -7
  113. package/dist/components/IconButton/IconButton.stories.js.map +1 -1
  114. package/dist/components/InputField/InputField.stories.js +1 -3
  115. package/dist/components/InputField/InputField.stories.js.map +1 -1
  116. package/dist/components/Label/Label.test.js +2 -5
  117. package/dist/components/Label/Label.test.js.map +1 -1
  118. package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -4
  119. package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
  120. package/dist/components/ModalDialog/ModalDialog.js +1 -1
  121. package/dist/components/ModalDialog/ModalDialog.stories.js +2 -2
  122. package/dist/components/ModalDialog/index.js +1 -1
  123. package/dist/components/MultiSelect/MultiSelect.js +1 -2
  124. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -3
  125. package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
  126. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -2
  127. package/dist/components/MultiSelect/index.js +1 -2
  128. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  129. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -5
  130. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
  131. package/dist/components/Notification/Notification.stories.js +1 -1
  132. package/dist/components/Notification/Notification.test.js +2 -5
  133. package/dist/components/Notification/Notification.test.js.map +1 -1
  134. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +6 -7
  135. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
  136. package/dist/components/PageOverlay/PageOverlay.js +1 -1
  137. package/dist/components/PageOverlay/PageOverlay.stories.js +1 -1
  138. package/dist/components/PageOverlay/index.js +1 -1
  139. package/dist/components/PeriodSelector/PeriodSelector.js +1 -2
  140. package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -3
  141. package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
  142. package/dist/components/PeriodSelector/index.js +1 -2
  143. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +0 -2
  144. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  145. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  146. package/dist/components/RadioGroup/Radiogroup.test.js +2 -5
  147. package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
  148. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -2
  149. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -3
  150. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
  151. package/dist/components/RadioTabSelector/index.js +1 -2
  152. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -2
  153. package/dist/components/RteEditor/EditorHeader/index.js +1 -2
  154. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
  155. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +1 -1
  156. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +1 -1
  157. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +30 -30
  158. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -2
  159. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -2
  160. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -2
  161. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  162. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -2
  163. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  164. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -2
  165. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +6 -6
  166. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
  167. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
  168. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
  169. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  170. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -2
  171. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -2
  172. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +16 -16
  173. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -2
  174. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -2
  175. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -2
  176. package/dist/components/RteEditor/Plugins/index.js +3 -3
  177. package/dist/components/RteEditor/RteEditor.js +1 -2
  178. package/dist/components/RteEditor/RteEditor.stories.js +1 -2
  179. package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
  180. package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
  181. package/dist/components/RteEditor/helpers.js +5 -5
  182. package/dist/components/RteEditor/index.js +1 -2
  183. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +14 -14
  184. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +19 -19
  185. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  186. package/dist/components/Sortable/Sortable.js +1 -1
  187. package/dist/components/Sortable/Sortable.stories.js +1 -1
  188. package/dist/components/Sortable/SortableProvider.js +1 -1
  189. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  190. package/dist/components/Sortable/components/SortableHandle.js +1 -1
  191. package/dist/components/Sortable/components/SortableItem.js +2 -2
  192. package/dist/components/Spinner/Spinner.js +1 -1
  193. package/dist/components/Spinner/Spinner.stories.js +1 -1
  194. package/dist/components/Spinner/index.js +1 -1
  195. package/dist/components/StatusBadge/StatusBadge.test.js +2 -5
  196. package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
  197. package/dist/components/TextArea/TextArea.js +1 -1
  198. package/dist/components/TextArea/TextArea.stories.js +2 -2
  199. package/dist/components/TextArea/TextArea.test.js +4 -7
  200. package/dist/components/TextArea/TextArea.test.js.map +1 -1
  201. package/dist/components/TextArea/index.js +1 -1
  202. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  203. package/dist/components/Tooltip/Tooltip.js +1 -1
  204. package/dist/components/Tooltip/Tooltip.stories.js +1 -1
  205. package/dist/components/Tooltip/index.js +1 -1
  206. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  207. package/dist/components/VarIndicator/VarIndicator.test.js +3 -6
  208. package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
  209. package/dist/components/index.js +12 -13
  210. package/dist/{components-MNvdQLv1.js → components-DAwjkky5.js} +436 -436
  211. package/dist/components-DAwjkky5.js.map +1 -0
  212. package/dist/{dist-2TKCXdYZ.js → dist-BIkFjHck.js} +181 -181
  213. package/dist/{dist-2TKCXdYZ.js.map → dist-BIkFjHck.js.map} +1 -1
  214. package/dist/{esm-UNe_gmRA.js → esm-ipAmzhQq.js} +4 -4
  215. package/dist/{esm-UNe_gmRA.js.map → esm-ipAmzhQq.js.map} +1 -1
  216. package/dist/{helpers-BBSxTGRl.js → helpers-MNJmfDe_.js} +7 -7
  217. package/dist/{helpers-BBSxTGRl.js.map → helpers-MNJmfDe_.js.map} +1 -1
  218. package/dist/index.js +12 -13
  219. package/dist/{react-18-CRbkdI-3.js → react-18-Dwpebadr.js} +2 -2
  220. package/dist/{react-18-CRbkdI-3.js.map → react-18-Dwpebadr.js.map} +1 -1
  221. package/dist/{react.esm-CzIhAqlo.js → react.esm-R7eBXTUI.js} +587 -587
  222. package/dist/{react.esm-CzIhAqlo.js.map → react.esm-R7eBXTUI.js.map} +1 -1
  223. package/dist/setupTests.js +1 -2
  224. package/dist/setupTests.js.map +1 -1
  225. package/dist/storybook__react.d.js +97 -97
  226. package/dist/storybook__react.d.js.map +1 -1
  227. package/dist/{test-DQruvi8i.js → test-Cr_l59hN.js} +12 -10
  228. package/dist/{test-DQruvi8i.js.map → test-Cr_l59hN.js.map} +1 -1
  229. package/package.json +27 -27
  230. package/dist/Fieldset-CoNu_Owa.js +0 -23
  231. package/dist/Lexical.prod-DIglXatJ.js.map +0 -1
  232. package/dist/LexicalExtension.prod-COPHoPpX.js.map +0 -1
  233. package/dist/LexicalLink.prod-Bf9JUdMv.js.map +0 -1
  234. package/dist/LexicalTable.prod-D16GW-aZ.js.map +0 -1
  235. package/dist/LexicalUtils.prod-BBTLliac.js +0 -360
  236. package/dist/LexicalUtils.prod-BBTLliac.js.map +0 -1
  237. package/dist/Spinner-D8tWqg9j.js +0 -31
  238. package/dist/components-MNvdQLv1.js.map +0 -1
  239. /package/dist/assets/favicon/{android-chrome-192x192.png → src/assets/favicon/android-chrome-192x192.png} +0 -0
  240. /package/dist/assets/favicon/{android-chrome-512x512.png → src/assets/favicon/android-chrome-512x512.png} +0 -0
  241. /package/dist/assets/favicon/{apple-touch-icon.png → src/assets/favicon/apple-touch-icon.png} +0 -0
  242. /package/dist/assets/favicon/{favicon-16x16.png → src/assets/favicon/favicon-16x16.png} +0 -0
  243. /package/dist/assets/favicon/{favicon-32x32.png → src/assets/favicon/favicon-32x32.png} +0 -0
  244. /package/dist/assets/favicon/{favicon.ico → src/assets/favicon/favicon.ico} +0 -0
  245. /package/dist/assets/favicon/{favicon.svg → src/assets/favicon/favicon.svg} +0 -0
  246. /package/dist/assets/favicon/{site.webmanifest → src/assets/favicon/site.webmanifest} +0 -0
  247. /package/dist/assets/fonts/{SourceSans3-Regular.otf.woff → src/assets/fonts/SourceSans3-Regular.otf.woff} +0 -0
  248. /package/dist/assets/fonts/{SourceSans3-Regular.otf.woff2 → src/assets/fonts/SourceSans3-Regular.otf.woff2} +0 -0
  249. /package/dist/assets/fonts/{SourceSans3-Semibold.otf.woff → src/assets/fonts/SourceSans3-Semibold.otf.woff} +0 -0
  250. /package/dist/assets/fonts/{SourceSans3-Semibold.otf.woff2 → src/assets/fonts/SourceSans3-Semibold.otf.woff2} +0 -0
  251. /package/dist/assets/{fonts.css → src/css/fonts.css} +0 -0
  252. /package/dist/assets/{globals.css → src/css/globals.css} +0 -0
  253. /package/dist/assets/{variables.css → src/css/variables.css} +0 -0
@@ -2,41 +2,41 @@ import { t as e } from "./clsx-BD2qMUU1.js";
2
2
  import { Icon as t } from "./components/Icon/Icon.js";
3
3
  import { Button as n } from "./components/Buttons/Button.js";
4
4
  import { t as r } from "./Checkbox-D6-b_4dC.js";
5
- import { t as i } from "./CheckboxButtonBar-CalU0IYK.js";
5
+ import { t as i } from "./CheckboxButtonBar-5UMIFMKH.js";
6
6
  import { t as a } from "./Label-o0BcWTUS.js";
7
7
  import { t as o } from "./FeedbackBox-Bu7uB9DP.js";
8
- import { t as s } from "./ControlsButton-zemVxTlg.js";
8
+ import { t as s } from "./ControlsButton-B1XRpMUM.js";
9
9
  import { useResponsive as c } from "./components/hooks/useResponsive.js";
10
10
  import { t as l } from "./FormField-BZSoQdp9.js";
11
11
  import { t as u } from "./InputField-BWAy19w9.js";
12
12
  import { n as d, t as f } from "./MultiSelectItem-BF5xRjz5.js";
13
13
  import { n as p, r as m, t as h } from "./LexicalComposerContext.prod-Ca-YN_fj.js";
14
- import { $ as g, A as _, At as v, Bn as y, C as b, Cn as x, Dn as S, Dt as C, E as w, En as T, G as E, Gt as D, H as O, Hn as ee, Ht as te, It as ne, Jt as re, Kt as ie, L as ae, Ln as oe, Mn as se, N as ce, Nn as k, O as le, Ot as ue, Pn as de, Pt as fe, St as A, Un as j, Ut as pe, V as me, Vt as he, W as ge, Y as _e, Zt as ve, _ as ye, _n as be, a as xe, at as Se, b as Ce, bn as M, bt as we, ct as Te, dt as Ee, et as N, f as De, fn as Oe, g as ke, h as Ae, ht as je, in as Me, kn as Ne, kt as Pe, ln as Fe, m as Ie, mn as Le, nt as Re, o as ze, ot as Be, p as Ve, pn as He, q as Ue, r as P, sn as We, t as Ge, tt as Ke, u as qe, vt as Je, wn as Ye, x as Xe, xt as Ze, yn as Qe, zt as $e } from "./Lexical.prod-DIglXatJ.js";
15
- import { n as et, t as tt } from "./TableCellResizerPlugin-CgYsYsuY.js";
16
- import { _ as nt, m as rt, n as it, o as F, s as I, t as at, y as ot } from "./LexicalUtils.prod-BBTLliac.js";
17
- import { a as st, i as ct, n as lt, o as L, r as ut, t as dt } from "./LexicalExtension.prod-COPHoPpX.js";
18
- import { a as ft, i as pt, n as mt, t as ht } from "./LexicalClipboard.prod-Bnzu0sh_.js";
19
- import { c as gt, o as _t, r as vt, t as yt } from "./LexicalList.prod-DRz8vsM9.js";
20
- import { c as bt, n as R, o as xt, r as St, s as Ct, t as wt } from "./LexicalLink.prod-Bf9JUdMv.js";
21
- import { _ as Tt, c as Et, i as Dt, l as Ot, m as kt, n as At, o as jt, p as Mt, t as Nt, w as Pt } from "./LexicalTable.prod-D16GW-aZ.js";
22
- import { a as Ft, i as It, n as Lt, r as Rt, t as zt } from "./helpers-BBSxTGRl.js";
23
- import { $createTableWrapperNode as Bt, TableWrapperNode as Vt } from "./components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js";
24
- import { CourseCatalogueLinkPlugin as Ht, CourseCatalogueNode as Ut } from "./components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js";
25
- import { cleanUpTable as Wt, exportMap as Gt, mergeBoldStrongTags as Kt, removeScrollableContainers as qt, setScrollableContainers as Jt } from "./components/RteEditor/helpers.js";
26
- import { t as z } from "./RteEditor.module-Jk80F1FA.js";
27
- import { LanguageProvider as Yt, useLanguage as Xt } from "./components/RteEditor/Providers/LanguageProvider.js";
28
- import { useTranslation as B } from "./components/RteEditor/hooks/useTranslation.js";
29
- import { CourseCataloguePlugin as Zt } from "./components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js";
30
- import { BlockFormatPlugin as Qt } from "./components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js";
31
- import { ListPlugin as $t } from "./components/RteEditor/Plugins/ListPlugin/ListPlugin.js";
32
- import { t as en } from "./LinkContextMenu-m_CGQEiX.js";
33
- import { useFlyout as tn } from "./components/RteEditor/hooks/useFlyout.js";
34
- import { createTable as nn, deleteColumn as rn, deleteRow as an, deleteTable as on, getEditorContentWidth as sn, getEditorParrentCellWidth as cn, insertColumn as ln, insertRow as un } from "./components/RteEditor/Plugins/TablePlugin/helpers.js";
35
- import { t as dn } from "./TableCellContextMenu-D0IMQr3E.js";
36
- import { t as fn } from "./PasteHandlerPlugin-DjD1wryY.js";
37
- import { UvaTheme as pn } from "./components/RteEditor/UvaTheme/UvaTheme.js";
38
- import * as mn from "react";
39
- import { Component as hn, Suspense as gn, createContext as _n, createElement as vn, createRef as yn, forwardRef as V, useCallback as bn, useEffect as H, useId as U, useImperativeHandle as xn, useLayoutEffect as W, useMemo as Sn, useRef as G, useState as K } from "react";
14
+ import { $ as g, A as _, Bn as v, C as y, Cn as b, Ct as x, Dn as S, Dt as C, Et as w, Fn as T, Gt as E, H as D, Hn as ee, Ht as te, Jt as ne, K as re, Lt as ie, Mn as ae, N as oe, Nt as se, On as ce, Ot as O, Pn as k, Pt as le, Q as ue, R as de, Rn as fe, S as pe, Tt as me, Un as he, Ut as ge, X as A, Y as _e, Yt as ve, Zt as j, _ as ye, _t as be, a as xe, at as M, bn as Se, c as Ce, cn as we, ct as Te, dn as Ee, en as De, f as Oe, fn as ke, gn as Ae, i as je, j as Me, jt as Ne, k as Pe, kn as Fe, kt as N, l as Ie, m as Le, mn as Re, mt as ze, p as Be, pn as Ve, pt as He, r as P, rt as Ue, s as We, t as Ge, u as Ke, ut as qe, v as Je, vn as Ye, wn as Xe, wt as Ze, y as Qe, yn as F } from "./Lexical.prod-sbwgNRjw.js";
15
+ import { n as $e, t as et } from "./TableCellResizerPlugin-Ceof6StD.js";
16
+ import { _ as tt, m as nt, n as rt, o as I, s as L, t as it, y as at } from "./LexicalUtils.prod-DjjGkphN.js";
17
+ import { a as ot, i as st, n as ct, o as lt, r as ut, t as R } from "./LexicalExtension.prod-jTSDl1mh.js";
18
+ import { a as dt, i as ft, n as pt, t as mt } from "./LexicalClipboard.prod-DdImsyd1.js";
19
+ import { c as ht, o as gt, r as _t, t as vt } from "./LexicalList.prod-DEtc4lSr.js";
20
+ import { a as yt, i as bt, n as xt, o as St, r as Ct, t as z } from "./LexicalLink.prod-BKLNLyu8.js";
21
+ import { _ as wt, a as Tt, c as Et, l as Dt, m as Ot, n as kt, o as At, p as jt, t as Mt, w as Nt } from "./LexicalTable.prod-CpIPDW6z.js";
22
+ import { a as Pt, i as Ft, n as It, r as Lt, t as Rt } from "./helpers-MNJmfDe_.js";
23
+ import { $createTableWrapperNode as zt, TableWrapperNode as Bt } from "./components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js";
24
+ import { CourseCatalogueLinkPlugin as Vt, CourseCatalogueNode as Ht } from "./components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js";
25
+ import { cleanUpTable as Ut, exportMap as Wt, mergeBoldStrongTags as Gt, removeScrollableContainers as Kt, setScrollableContainers as qt } from "./components/RteEditor/helpers.js";
26
+ import { t as B } from "./RteEditor.module-BJLUYSpf.js";
27
+ import { LanguageProvider as Jt, useLanguage as Yt } from "./components/RteEditor/Providers/LanguageProvider.js";
28
+ import { useTranslation as V } from "./components/RteEditor/hooks/useTranslation.js";
29
+ import { CourseCataloguePlugin as Xt } from "./components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js";
30
+ import { BlockFormatPlugin as Zt } from "./components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js";
31
+ import { ListPlugin as Qt } from "./components/RteEditor/Plugins/ListPlugin/ListPlugin.js";
32
+ import { t as $t } from "./LinkContextMenu-CTkNPiIW.js";
33
+ import { useFlyout as en } from "./components/RteEditor/hooks/useFlyout.js";
34
+ import { createTable as tn, deleteColumn as nn, deleteRow as rn, deleteTable as an, getEditorContentWidth as on, getEditorParrentCellWidth as sn, insertColumn as cn, insertRow as ln } from "./components/RteEditor/Plugins/TablePlugin/helpers.js";
35
+ import { t as un } from "./TableCellContextMenu-D0IMQr3E.js";
36
+ import { t as dn } from "./PasteHandlerPlugin-YpQruA-w.js";
37
+ import { UvaTheme as fn } from "./components/RteEditor/UvaTheme/UvaTheme.js";
38
+ import * as pn from "react";
39
+ import { Component as mn, Suspense as hn, createContext as gn, createElement as _n, createRef as vn, forwardRef as H, useCallback as yn, useEffect as U, useId as W, useImperativeHandle as bn, useLayoutEffect as xn, useMemo as Sn, useRef as G, useState as K } from "react";
40
40
  import { Fragment as Cn, jsx as q, jsxs as J } from "react/jsx-runtime";
41
41
  import { createPortal as wn, flushSync as Tn } from "react-dom";
42
42
  import './assets/components.css';//#region src/components/CheckboxTree/CheckboxTree.module.css
@@ -54,7 +54,7 @@ var Y = {
54
54
  if (e.length !== t.length) return !1;
55
55
  let n = (e) => e.reduce((e, t) => (e[t] = (e[t] || 0) + 1, e), {}), r = n(e), i = n(t);
56
56
  return !Object.keys(r).some((e) => r[e] !== i[e]);
57
- }, _ = (e) => (f.current[e] || (f.current[e] = yn()), f.current[e]), v = () => {
57
+ }, _ = (e) => (f.current[e] || (f.current[e] = vn()), f.current[e]), v = () => {
58
58
  let e = [];
59
59
  Object.entries(f.current).forEach(([t]) => {
60
60
  let n = f.current[t].current;
@@ -96,12 +96,12 @@ var Y = {
96
96
  let t = e.target;
97
97
  b(t, t.closest("[data-li]"));
98
98
  };
99
- return H(() => {
99
+ return U(() => {
100
100
  s && !g(s, p) && Object.entries(f.current).forEach(([e]) => {
101
101
  let t = f.current[e].current;
102
102
  t && (s?.includes(t.value) ? t.checked = !0 : t.checked = !1, t.name.indexOf("Group") !== -1 && m(s || []));
103
103
  });
104
- }, [s]), H(() => {
104
+ }, [s]), U(() => {
105
105
  Object.entries(f.current).forEach(([e]) => {
106
106
  let t = f.current[e].current;
107
107
  t && t.name.indexOf("Group") !== -1 && y(t.name);
@@ -257,7 +257,7 @@ var An = {
257
257
  }))), p = G(d.map((e) => e.reduce((e, t) => (n?.includes(t) && e.push(t), e), []))), [m, h] = K([]), g = (e) => e[jn].length !== 0 || e[Mn].length !== 0 ? [Nn] : e[Nn].length === 0 ? [] : [jn, Mn], _ = (e, t) => {
258
258
  p.current[t] = e.map((e) => Number(e)), h(g(p.current)), u([...p.current.flat()].sort());
259
259
  };
260
- return H(() => {
260
+ return U(() => {
261
261
  h(g(p.current));
262
262
  }, []), /* @__PURE__ */ J("div", {
263
263
  className: e(An["period-selector__container"], An[`period-selector__container--label-${s}`]),
@@ -320,10 +320,10 @@ var An = {
320
320
  })]
321
321
  })]
322
322
  });
323
- }, Bn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Vn = Bn ? W : H, Hn = { tag: C };
323
+ }, Bn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Vn = Bn ? xn : U, Hn = { tag: x };
324
324
  function Un({ initialConfig: e, children: t }) {
325
325
  let n = Sn(() => {
326
- let { theme: t, namespace: n, nodes: r, onError: i, editorState: a, html: o } = e, s = m(null, t), c = te({
326
+ let { theme: t, namespace: n, nodes: r, onError: i, editorState: a, html: o } = e, s = m(null, t), c = Ve({
327
327
  editable: e.editable,
328
328
  html: o,
329
329
  namespace: n,
@@ -334,9 +334,9 @@ function Un({ initialConfig: e, children: t }) {
334
334
  return function(e, t) {
335
335
  if (t !== null) {
336
336
  if (t === void 0) e.update(() => {
337
- let t = j();
337
+ let t = M();
338
338
  if (t.isEmpty()) {
339
- let n = A();
339
+ let n = N();
340
340
  t.append(n);
341
341
  let r = Bn ? document.activeElement : null;
342
342
  (P() !== null || r !== null && r === e.getRootElement()) && n.select();
@@ -352,7 +352,7 @@ function Un({ initialConfig: e, children: t }) {
352
352
  e.setEditorState(t, Hn);
353
353
  break;
354
354
  case "function": e.update(() => {
355
- j().isEmpty() && t(e);
355
+ M().isEmpty() && t(e);
356
356
  }, Hn);
357
357
  }
358
358
  }
@@ -368,11 +368,11 @@ function Un({ initialConfig: e, children: t }) {
368
368
  }
369
369
  //#endregion
370
370
  //#region node_modules/@lexical/react/LexicalReactProviderExtension.prod.mjs
371
- var Wn = _({ name: "@lexical/react/ReactProvider" });
371
+ var Wn = y({ name: "@lexical/react/ReactProvider" });
372
372
  //#endregion
373
373
  //#region node_modules/@lexical/text/LexicalText.prod.mjs
374
374
  function Gn() {
375
- return j().getTextContent();
375
+ return M().getTextContent();
376
376
  }
377
377
  function Kn(e, t = !0) {
378
378
  if (e) return !1;
@@ -381,17 +381,17 @@ function Kn(e, t = !0) {
381
381
  }
382
382
  function qn(e) {
383
383
  if (!Kn(e, !1)) return !1;
384
- let t = j().getChildren(), n = t.length;
384
+ let t = M().getChildren(), n = t.length;
385
385
  if (n > 1) return !1;
386
386
  for (let e = 0; e < n; e++) {
387
387
  let n = t[e];
388
- if (E(n)) return !1;
389
- if (Re(n)) {
390
- if (!v(n) || n.__indent !== 0) return !1;
388
+ if (_(n)) return !1;
389
+ if (Le(n)) {
390
+ if (!Se(n) || n.__indent !== 0) return !1;
391
391
  let t = n.getChildren(), r = t.length;
392
392
  for (let n = 0; n < r; n++) {
393
393
  let n = t[e];
394
- if (!y(n)) return !1;
394
+ if (!v(n)) return !1;
395
395
  }
396
396
  }
397
397
  }
@@ -425,7 +425,7 @@ function Yn(e) {
425
425
  let e = P();
426
426
  if (k(e)) {
427
427
  let t = e.anchor, c = t.getNode(), l = 0, u = 0;
428
- if (y(c) && r >= 0 && i >= 0 && (l = r, u = r + i, e.setTextNodeRange(c, l, c, u)), l === u && a === "" || (e.insertRawText(a), c = t.getNode()), y(c)) {
428
+ if (v(c) && r >= 0 && i >= 0 && (l = r, u = r + i, e.setTextNodeRange(c, l, c, u)), l === u && a === "" || (e.insertRawText(a), c = t.getNode()), v(c)) {
429
429
  l = o, u = o + s;
430
430
  let t = c.getTextContentSize();
431
431
  l = l > t ? t : l, u = u > t ? t : u, e.setTextNodeRange(c, l, c, u);
@@ -442,11 +442,11 @@ function Yn(e) {
442
442
  window.removeEventListener("message", n, !0);
443
443
  };
444
444
  }
445
- var Xn = _({
446
- build: (e, t, n) => L(t),
447
- config: Be({ disabled: typeof window > "u" }),
445
+ var Xn = y({
446
+ build: (e, t, n) => R(t),
447
+ config: Ne({ disabled: typeof window > "u" }),
448
448
  name: "@lexical/dragon",
449
- register: (e, t, n) => st(() => n.getOutput().disabled.value ? void 0 : Yn(e))
449
+ register: (e, t, n) => lt(() => n.getOutput().disabled.value ? void 0 : Yn(e))
450
450
  });
451
451
  //#endregion
452
452
  //#region node_modules/@lexical/rich-text/LexicalRichText.prod.mjs
@@ -467,7 +467,7 @@ function Zn(e, t) {
467
467
  }
468
468
  return null;
469
469
  }
470
- var Z = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Qn = Z && "documentMode" in document ? document.documentMode : null, $n = Z && /Mac|iPod|iPhone|iPad/.test(navigator.platform), er = !(!Z || !("InputEvent" in window) || Qn) && "getTargetRanges" in new window.InputEvent("input"), tr = Z && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), nr = Z && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, rr = Z && /^(?=.*Chrome).*/i.test(navigator.userAgent), ir = Z && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && $n && !rr, ar = Oe("DRAG_DROP_PASTE_FILE"), or = class e extends ze {
470
+ var Z = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Qn = Z && "documentMode" in document ? document.documentMode : null, $n = Z && /Mac|iPod|iPhone|iPad/.test(navigator.platform), er = !(!Z || !("InputEvent" in window) || Qn) && "getTargetRanges" in new window.InputEvent("input"), tr = Z && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, nr = Z && /Android/.test(navigator.userAgent), rr = Z && /Version\/[\d.]+.*Safari/.test(navigator.userAgent) && !nr, ir = Z && /^(?=.*Chrome).*/i.test(navigator.userAgent), ar = Z && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && $n && !ir, or = ke("DRAG_DROP_PASTE_FILE"), sr = class e extends g {
471
471
  static getType() {
472
472
  return "quote";
473
473
  }
@@ -476,20 +476,20 @@ var Z = typeof window < "u" && window.document !== void 0 && window.document.cre
476
476
  }
477
477
  createDOM(e) {
478
478
  let t = document.createElement("blockquote");
479
- return he(t, e.theme.quote), t;
479
+ return Ee(t, e.theme.quote), t;
480
480
  }
481
481
  updateDOM(e, t) {
482
482
  return !1;
483
483
  }
484
484
  static importDOM() {
485
485
  return { blockquote: (e) => ({
486
- conversion: ur,
486
+ conversion: dr,
487
487
  priority: 0
488
488
  }) };
489
489
  }
490
490
  exportDOM(e) {
491
491
  let { element: t } = super.exportDOM(e);
492
- if (Se(t)) {
492
+ if (ye(t)) {
493
493
  this.isEmpty() && t.append(document.createElement("br"));
494
494
  let e = this.getFormatType();
495
495
  e && (t.style.textAlign = e);
@@ -499,24 +499,24 @@ var Z = typeof window < "u" && window.document !== void 0 && window.document.cre
499
499
  return { element: t };
500
500
  }
501
501
  static importJSON(e) {
502
- return sr().updateFromJSON(e);
502
+ return cr().updateFromJSON(e);
503
503
  }
504
504
  insertNewAfter(e, t) {
505
- let n = A(), r = this.getDirection();
505
+ let n = N(), r = this.getDirection();
506
506
  return n.setDirection(r), this.insertAfter(n, t), n;
507
507
  }
508
508
  collapseAtStart() {
509
- let e = A();
509
+ let e = N();
510
510
  return this.getChildren().forEach((t) => e.append(t)), this.replace(e), !0;
511
511
  }
512
512
  canMergeWhenEmpty() {
513
513
  return !0;
514
514
  }
515
515
  };
516
- function sr() {
517
- return Me(new or());
516
+ function cr() {
517
+ return He(new sr());
518
518
  }
519
- var cr = class e extends ze {
519
+ var lr = class e extends g {
520
520
  __tag;
521
521
  static getType() {
522
522
  return "heading";
@@ -541,7 +541,7 @@ var cr = class e extends ze {
541
541
  let t = this.__tag, n = document.createElement(t), r = e.theme.heading;
542
542
  if (r !== void 0) {
543
543
  let e = r[t];
544
- he(n, e);
544
+ Ee(n, e);
545
545
  }
546
546
  return n;
547
547
  }
@@ -576,20 +576,20 @@ var cr = class e extends ze {
576
576
  }),
577
577
  p: (e) => {
578
578
  let t = e.firstChild;
579
- return t !== null && lr(t) ? {
579
+ return t !== null && ur(t) ? {
580
580
  conversion: () => ({ node: null }),
581
581
  priority: 3
582
582
  } : null;
583
583
  },
584
- span: (e) => lr(e) ? {
585
- conversion: (e) => ({ node: dr("h1") }),
584
+ span: (e) => ur(e) ? {
585
+ conversion: (e) => ({ node: fr("h1") }),
586
586
  priority: 3
587
587
  } : null
588
588
  };
589
589
  }
590
590
  exportDOM(e) {
591
591
  let { element: t } = super.exportDOM(e);
592
- if (Se(t)) {
592
+ if (ye(t)) {
593
593
  this.isEmpty() && t.append(document.createElement("br"));
594
594
  let e = this.getFormatType();
595
595
  e && (t.style.textAlign = e);
@@ -599,7 +599,7 @@ var cr = class e extends ze {
599
599
  return { element: t };
600
600
  }
601
601
  static importJSON(e) {
602
- return dr(e.tag).updateFromJSON(e);
602
+ return fr(e.tag).updateFromJSON(e);
603
603
  }
604
604
  updateFromJSON(e) {
605
605
  return super.updateFromJSON(e).setTag(e.tag);
@@ -611,38 +611,38 @@ var cr = class e extends ze {
611
611
  };
612
612
  }
613
613
  insertNewAfter(e, t = !0) {
614
- let n = e ? e.anchor.offset : 0, r = this.getLastDescendant(), i = !r || e && e.anchor.key === r.getKey() && n === r.getTextContentSize() || !e ? A() : dr(this.getTag()), a = this.getDirection();
614
+ let n = e ? e.anchor.offset : 0, r = this.getLastDescendant(), i = !r || e && e.anchor.key === r.getKey() && n === r.getTextContentSize() || !e ? N() : fr(this.getTag()), a = this.getDirection();
615
615
  if (i.setDirection(a), this.insertAfter(i, t), n === 0 && !this.isEmpty() && e) {
616
- let e = A();
616
+ let e = N();
617
617
  e.select(), this.replace(e, !0);
618
618
  }
619
619
  return i;
620
620
  }
621
621
  collapseAtStart() {
622
- let e = this.isEmpty() ? A() : dr(this.getTag());
622
+ let e = this.isEmpty() ? N() : fr(this.getTag());
623
623
  return this.getChildren().forEach((t) => e.append(t)), this.replace(e), !0;
624
624
  }
625
625
  extractWithChild() {
626
626
  return !0;
627
627
  }
628
628
  };
629
- function lr(e) {
629
+ function ur(e) {
630
630
  return e.nodeName.toLowerCase() === "span" && e.style.fontSize === "26pt";
631
631
  }
632
632
  function Q(e) {
633
633
  let t = e.nodeName.toLowerCase(), n = null;
634
- return t !== "h1" && t !== "h2" && t !== "h3" && t !== "h4" && t !== "h5" && t !== "h6" || (n = dr(t), e.style !== null && (we(e, n), n.setFormat(e.style.textAlign))), { node: n };
634
+ return t !== "h1" && t !== "h2" && t !== "h3" && t !== "h4" && t !== "h5" && t !== "h6" || (n = fr(t), e.style !== null && (je(e, n), n.setFormat(e.style.textAlign))), { node: n };
635
635
  }
636
- function ur(e) {
637
- let t = sr();
638
- return e.style !== null && (t.setFormat(e.style.textAlign), we(e, t)), { node: t };
636
+ function dr(e) {
637
+ let t = cr();
638
+ return e.style !== null && (t.setFormat(e.style.textAlign), je(e, t)), { node: t };
639
639
  }
640
- function dr(e = "h1") {
641
- return Me(new cr(e));
640
+ function fr(e = "h1") {
641
+ return He(new lr(e));
642
642
  }
643
- function fr(e) {
643
+ function pr(e) {
644
644
  let t = null;
645
- if (F(e, DragEvent) ? t = e.dataTransfer : F(e, ClipboardEvent) && (t = e.clipboardData), t === null) return [
645
+ if (I(e, DragEvent) ? t = e.dataTransfer : I(e, ClipboardEvent) && (t = e.clipboardData), t === null) return [
646
646
  !1,
647
647
  [],
648
648
  !1
@@ -654,119 +654,119 @@ function fr(e) {
654
654
  i
655
655
  ];
656
656
  }
657
- function pr(e) {
658
- return E(Ue(e));
659
- }
660
657
  function mr(e) {
658
+ return _(Me(e));
659
+ }
660
+ function hr(e) {
661
661
  for (let t of [
662
662
  "lowercase",
663
663
  "uppercase",
664
664
  "capitalize"
665
665
  ]) e.hasFormat(t) && e.toggleFormat(t);
666
666
  }
667
- function hr(e) {
668
- return x(e.registerCommand(Le, (e) => {
667
+ function gr(e) {
668
+ return j(e.registerCommand(Re, (e) => {
669
669
  let t = P();
670
- return !!N(t) && (t.clear(), !0);
671
- }, 0), e.registerCommand(S, (e) => {
670
+ return !!A(t) && (t.clear(), !0);
671
+ }, 0), e.registerCommand(ce, (e) => {
672
672
  let t = P();
673
- return k(t) ? (t.deleteCharacter(e), !0) : !!N(t) && (t.deleteNodes(), !0);
674
- }, 0), e.registerCommand(be, (e) => {
673
+ return k(t) ? (t.deleteCharacter(e), !0) : !!A(t) && (t.deleteNodes(), !0);
674
+ }, 0), e.registerCommand(Ae, (e) => {
675
675
  let t = P();
676
676
  return !!k(t) && (t.deleteWord(e), !0);
677
- }, 0), e.registerCommand(oe, (e) => {
677
+ }, 0), e.registerCommand(fe, (e) => {
678
678
  let t = P();
679
679
  return !!k(t) && (t.deleteLine(e), !0);
680
- }, 0), e.registerCommand(re, (t) => {
680
+ }, 0), e.registerCommand(ve, (t) => {
681
681
  let n = P();
682
682
  if (typeof t == "string") n !== null && n.insertText(t);
683
683
  else {
684
684
  if (n === null) return !1;
685
685
  let r = t.dataTransfer;
686
- if (r != null) mt(r, n, e);
686
+ if (r != null) pt(r, n, e);
687
687
  else if (k(n)) {
688
688
  let e = t.data;
689
689
  return e && n.insertText(e), !0;
690
690
  }
691
691
  }
692
692
  return !0;
693
- }, 0), e.registerCommand(fe, () => {
693
+ }, 0), e.registerCommand(se, () => {
694
694
  let e = P();
695
695
  return !!k(e) && (e.removeText(), !0);
696
- }, 0), e.registerCommand(Fe, (e) => {
696
+ }, 0), e.registerCommand(we, (e) => {
697
697
  let t = P();
698
698
  return !!k(t) && (t.formatText(e), !0);
699
699
  }, 0), e.registerCommand(ee, (e) => {
700
700
  let t = P();
701
- if (!k(t) && !N(t)) return !1;
701
+ if (!k(t) && !A(t)) return !1;
702
702
  let n = t.getNodes();
703
703
  for (let t of n) {
704
- let n = le(t, (e) => Re(e) && !e.isInline());
704
+ let n = C(t, (e) => Le(e) && !e.isInline());
705
705
  n !== null && n.setFormat(e);
706
706
  }
707
707
  return !0;
708
- }, 0), e.registerCommand(pe, (e) => {
708
+ }, 0), e.registerCommand(E, (e) => {
709
709
  let t = P();
710
710
  return !!k(t) && (t.insertLineBreak(e), !0);
711
- }, 0), e.registerCommand($e, () => {
711
+ }, 0), e.registerCommand(ge, () => {
712
712
  let e = P();
713
713
  return !!k(e) && (e.insertParagraph(), !0);
714
- }, 0), e.registerCommand(b, () => {
715
- let e = Ae(), t = P();
716
- return k(t) && (e.setFormat(t.format), e.setStyle(t.style)), T([e]), !0;
717
- }, 0), e.registerCommand(ge, () => at((e) => {
714
+ }, 0), e.registerCommand(Qe, () => {
715
+ let e = Ke(), t = P();
716
+ return k(t) && (e.setFormat(t.format), e.setStyle(t.style)), S([e]), !0;
717
+ }, 0), e.registerCommand(D, () => it((e) => {
718
718
  let t = e.getIndent();
719
719
  e.setIndent(t + 1);
720
- }), 0), e.registerCommand(ce, () => at((e) => {
720
+ }), 0), e.registerCommand(Pe, () => it((e) => {
721
721
  let t = e.getIndent();
722
722
  t > 0 && e.setIndent(Math.max(0, t - 1));
723
- }), 0), e.registerCommand(ne, (e) => {
723
+ }), 0), e.registerCommand(ie, (e) => {
724
724
  let t = P();
725
- if (N(t)) {
725
+ if (A(t)) {
726
726
  let n = t.getNodes();
727
727
  if (n.length > 0) return e.preventDefault(), n[0].selectPrevious(), !0;
728
728
  } else if (k(t)) {
729
- let n = We(t.focus, !0);
730
- if (!e.shiftKey && E(n) && !n.isIsolated() && !n.isInline()) return n.selectPrevious(), e.preventDefault(), !0;
729
+ let n = te(t.focus, !0);
730
+ if (!e.shiftKey && _(n) && !n.isIsolated() && !n.isInline()) return n.selectPrevious(), e.preventDefault(), !0;
731
731
  }
732
732
  return !1;
733
- }, 0), e.registerCommand(se, (e) => {
733
+ }, 0), e.registerCommand(ae, (e) => {
734
734
  let t = P();
735
- if (N(t)) {
735
+ if (A(t)) {
736
736
  let n = t.getNodes();
737
737
  if (n.length > 0) return e.preventDefault(), n[0].selectNext(0, 0), !0;
738
738
  } else if (k(t)) {
739
739
  if (function(e) {
740
740
  let t = e.focus;
741
- return t.key === "root" && t.offset === j().getChildrenSize();
741
+ return t.key === "root" && t.offset === M().getChildrenSize();
742
742
  }(t)) return e.preventDefault(), !0;
743
- let n = We(t.focus, !1);
744
- if (!e.shiftKey && E(n) && !n.isIsolated() && !n.isInline()) return n.selectNext(), e.preventDefault(), !0;
743
+ let n = te(t.focus, !1);
744
+ if (!e.shiftKey && _(n) && !n.isIsolated() && !n.isInline()) return n.selectNext(), e.preventDefault(), !0;
745
745
  }
746
746
  return !1;
747
- }, 0), e.registerCommand(je, (e) => {
747
+ }, 0), e.registerCommand(qe, (e) => {
748
748
  let t = P();
749
- if (N(t)) {
749
+ if (A(t)) {
750
750
  let n = t.getNodes();
751
- if (n.length > 0) return e.preventDefault(), rt(n[0]) ? n[0].selectNext(0, 0) : n[0].selectPrevious(), !0;
751
+ if (n.length > 0) return e.preventDefault(), nt(n[0]) ? n[0].selectNext(0, 0) : n[0].selectPrevious(), !0;
752
752
  }
753
753
  if (!k(t)) return !1;
754
- if (nt(t, !0)) {
754
+ if (tt(t, !0)) {
755
755
  let n = e.shiftKey;
756
- return e.preventDefault(), ot(t, n, !0), !0;
756
+ return e.preventDefault(), at(t, n, !0), !0;
757
757
  }
758
758
  return !1;
759
- }, 0), e.registerCommand(Ne, (e) => {
759
+ }, 0), e.registerCommand(Fe, (e) => {
760
760
  let t = P();
761
- if (N(t)) {
761
+ if (A(t)) {
762
762
  let n = t.getNodes();
763
- if (n.length > 0) return e.preventDefault(), rt(n[0]) ? n[0].selectPrevious() : n[0].selectNext(0, 0), !0;
763
+ if (n.length > 0) return e.preventDefault(), nt(n[0]) ? n[0].selectPrevious() : n[0].selectNext(0, 0), !0;
764
764
  }
765
765
  if (!k(t)) return !1;
766
766
  let n = e.shiftKey;
767
- return !!nt(t, !1) && (e.preventDefault(), ot(t, n, !1), !0);
768
- }, 0), e.registerCommand(_e, (t) => {
769
- if (pr(t.target)) return !1;
767
+ return !!tt(t, !1) && (e.preventDefault(), at(t, n, !1), !0);
768
+ }, 0), e.registerCommand(re, (t) => {
769
+ if (mr(t.target)) return !1;
770
770
  let n = P();
771
771
  if (k(n)) {
772
772
  if (function(e) {
@@ -774,105 +774,105 @@ function hr(e) {
774
774
  let { anchor: t } = e;
775
775
  if (t.offset !== 0) return !1;
776
776
  let n = t.getNode();
777
- if (O(n)) return !1;
778
- let r = it(n);
777
+ if (he(n)) return !1;
778
+ let r = rt(n);
779
779
  return r.getIndent() > 0 && (r.is(n) || n.is(r.getFirstDescendant()));
780
- }(n)) return t.preventDefault(), e.dispatchCommand(ce, void 0);
781
- if (nr && navigator.language === "ko-KR") return !1;
782
- } else if (!N(n)) return !1;
783
- return t.preventDefault(), e.dispatchCommand(S, !0);
784
- }, 0), e.registerCommand(Ke, (t) => {
785
- if (pr(t.target)) return !1;
780
+ }(n)) return t.preventDefault(), e.dispatchCommand(Pe, void 0);
781
+ if (tr && navigator.language === "ko-KR") return !1;
782
+ } else if (!A(n)) return !1;
783
+ return t.preventDefault(), e.dispatchCommand(ce, !0);
784
+ }, 0), e.registerCommand(ue, (t) => {
785
+ if (mr(t.target)) return !1;
786
786
  let n = P();
787
- return !(!k(n) && !N(n)) && (t.preventDefault(), e.dispatchCommand(S, !1));
788
- }, 0), e.registerCommand(Xe, (t) => {
787
+ return !(!k(n) && !A(n)) && (t.preventDefault(), e.dispatchCommand(ce, !1));
788
+ }, 0), e.registerCommand(Je, (t) => {
789
789
  let n = P();
790
790
  if (!k(n)) return !1;
791
- if (mr(n), t !== null) {
792
- if ((nr || tr || ir) && er) return !1;
793
- if (t.preventDefault(), t.shiftKey) return e.dispatchCommand(pe, !1);
791
+ if (hr(n), t !== null) {
792
+ if ((tr || rr || ar) && er) return !1;
793
+ if (t.preventDefault(), t.shiftKey) return e.dispatchCommand(E, !1);
794
794
  }
795
- return e.dispatchCommand($e, void 0);
796
- }, 0), e.registerCommand(xe, () => !!k(P()) && (e.blur(), !0), 0), e.registerCommand(me, (t) => {
797
- let [, n] = fr(t);
795
+ return e.dispatchCommand(ge, void 0);
796
+ }, 0), e.registerCommand(xe, () => !!k(P()) && (e.blur(), !0), 0), e.registerCommand(de, (t) => {
797
+ let [, n] = pr(t);
798
798
  if (n.length > 0) {
799
799
  let r = Zn(t.clientX, t.clientY);
800
800
  if (r !== null) {
801
- let { offset: t, node: i } = r, a = Ue(i);
801
+ let { offset: t, node: i } = r, a = Me(i);
802
802
  if (a !== null) {
803
- let e = ue();
804
- if (y(a)) e.anchor.set(a.getKey(), t, "text"), e.focus.set(a.getKey(), t, "text");
803
+ let e = me();
804
+ if (v(a)) e.anchor.set(a.getKey(), t, "text"), e.focus.set(a.getKey(), t, "text");
805
805
  else {
806
806
  let t = a.getParentOrThrow().getKey(), n = a.getIndexWithinParent() + 1;
807
807
  e.anchor.set(t, n, "element"), e.focus.set(t, n, "element");
808
808
  }
809
- Ve(ke(e));
809
+ Ze(Oe(e));
810
810
  }
811
- e.dispatchCommand(ar, n);
811
+ e.dispatchCommand(or, n);
812
812
  }
813
813
  return t.preventDefault(), !0;
814
814
  }
815
815
  return !!k(P());
816
- }, 0), e.registerCommand(Te, (e) => {
817
- let [t] = fr(e), n = P();
816
+ }, 0), e.registerCommand(Ue, (e) => {
817
+ let [t] = pr(e), n = P();
818
818
  return !(t && !k(n));
819
- }, 0), e.registerCommand(qe, (e) => {
820
- let [t] = fr(e), n = P();
819
+ }, 0), e.registerCommand(We, (e) => {
820
+ let [t] = pr(e), n = P();
821
821
  if (t && !k(n)) return !1;
822
822
  let r = Zn(e.clientX, e.clientY);
823
- return r !== null && E(Ue(r.node)) && e.preventDefault(), !0;
824
- }, 0), e.registerCommand(Je, () => (He(), !0), 0), e.registerCommand(ae, (t) => (ht(e, F(t, ClipboardEvent) ? t : null), !0), 0), e.registerCommand(ve, (t) => (async function(e, t) {
825
- await ht(t, F(e, ClipboardEvent) ? e : null), t.update(() => {
823
+ return r !== null && _(Me(r.node)) && e.preventDefault(), !0;
824
+ }, 0), e.registerCommand(ze, () => (Xe(), !0), 0), e.registerCommand(oe, (t) => (mt(e, I(t, ClipboardEvent) ? t : null), !0), 0), e.registerCommand(De, (t) => (async function(e, t) {
825
+ await mt(t, I(e, ClipboardEvent) ? e : null), t.update(() => {
826
826
  let e = P();
827
- k(e) ? e.removeText() : N(e) && e.getNodes().forEach((e) => e.remove());
827
+ k(e) ? e.removeText() : A(e) && e.getNodes().forEach((e) => e.remove());
828
828
  });
829
- }(t, e), !0), 0), e.registerCommand(D, (t) => {
830
- let [, n, r] = fr(t);
831
- return n.length > 0 && !r ? (e.dispatchCommand(ar, n), !0) : Ce(t.target) && ie(t.target) ? !1 : P() !== null && (function(e, t) {
829
+ }(t, e), !0), 0), e.registerCommand(ne, (t) => {
830
+ let [, n, r] = pr(t);
831
+ return n.length > 0 && !r ? (e.dispatchCommand(or, n), !0) : pe(t.target) && le(t.target) ? !1 : P() !== null && (function(e, t) {
832
832
  e.preventDefault(), t.update(() => {
833
- let n = P(), r = F(e, InputEvent) || F(e, KeyboardEvent) ? null : e.clipboardData;
834
- r != null && n !== null && mt(r, n, t);
833
+ let n = P(), r = I(e, InputEvent) || I(e, KeyboardEvent) ? null : e.clipboardData;
834
+ r != null && n !== null && pt(r, n, t);
835
835
  }, { tag: "paste" });
836
836
  }(t, e), !0);
837
- }, 0), e.registerCommand(g, (e) => {
837
+ }, 0), e.registerCommand(_e, (e) => {
838
838
  let t = P();
839
- return k(t) && mr(t), !1;
840
- }, 0), e.registerCommand(ye, (e) => {
839
+ return k(t) && hr(t), !1;
840
+ }, 0), e.registerCommand(Be, (e) => {
841
841
  let t = P();
842
- return k(t) && mr(t), !1;
842
+ return k(t) && hr(t), !1;
843
843
  }, 0));
844
844
  }
845
- _({
845
+ y({
846
846
  conflictsWith: ["@lexical/plain-text"],
847
847
  dependencies: [Xn],
848
848
  name: "@lexical/rich-text",
849
- nodes: () => [cr, or],
850
- register: hr
849
+ nodes: () => [lr, sr],
850
+ register: gr
851
851
  });
852
852
  //#endregion
853
853
  //#region node_modules/@lexical/react/LexicalRichTextPlugin.prod.mjs
854
- function gr(e, ...t) {
854
+ function _r(e, ...t) {
855
855
  let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
856
856
  r.append("code", e);
857
857
  for (let e of t) r.append("v", e);
858
858
  throw n.search = r.toString(), Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
859
859
  }
860
- var _r = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? W : H;
861
- function vr({ editor: e, ErrorBoundary: t }) {
860
+ var vr = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? xn : U;
861
+ function yr({ editor: e, ErrorBoundary: t }) {
862
862
  return function(e, t) {
863
863
  let [n, r] = K(() => e.getDecorators());
864
- return _r(() => e.registerDecoratorListener((e) => {
864
+ return vr(() => e.registerDecoratorListener((e) => {
865
865
  Tn(() => {
866
866
  r(e);
867
867
  });
868
- }), [e]), H(() => {
868
+ }), [e]), U(() => {
869
869
  r(e.getDecorators());
870
870
  }, [e]), Sn(() => {
871
871
  let r = [], i = Object.keys(n);
872
872
  for (let a = 0; a < i.length; a++) {
873
873
  let o = i[a], s = q(t, {
874
874
  onError: (t) => e._onError(t),
875
- children: q(gn, {
875
+ children: q(hn, {
876
876
  fallback: null,
877
877
  children: n[o]
878
878
  })
@@ -887,63 +887,63 @@ function vr({ editor: e, ErrorBoundary: t }) {
887
887
  ]);
888
888
  }(e, t);
889
889
  }
890
- function yr({ editor: e, ErrorBoundary: t }) {
890
+ function br({ editor: e, ErrorBoundary: t }) {
891
891
  return function(e) {
892
- let t = ct.maybeFromEditor(e);
892
+ let t = ut.maybeFromEditor(e);
893
893
  if (t && t.hasExtensionByName(Wn.name)) {
894
- for (let e of ["@lexical/plain-text", "@lexical/rich-text"]) t.hasExtensionByName(e) && gr(320, e);
894
+ for (let e of ["@lexical/plain-text", "@lexical/rich-text"]) t.hasExtensionByName(e) && _r(320, e);
895
895
  return !0;
896
896
  }
897
897
  return !1;
898
- }(e) ? null : q(vr, {
898
+ }(e) ? null : q(yr, {
899
899
  editor: e,
900
900
  ErrorBoundary: t
901
901
  });
902
902
  }
903
- function br(e) {
903
+ function xr(e) {
904
904
  return e.getEditorState().read(Jn(e.isComposing()));
905
905
  }
906
- function xr({ contentEditable: e, placeholder: t = null, ErrorBoundary: n }) {
906
+ function Sr({ contentEditable: e, placeholder: t = null, ErrorBoundary: n }) {
907
907
  let [r] = h();
908
908
  return function(e) {
909
- _r(() => x(hr(e), Yn(e)), [e]);
909
+ vr(() => j(gr(e), Yn(e)), [e]);
910
910
  }(r), J(Cn, { children: [
911
911
  e,
912
- q(Sr, { content: t }),
913
- q(yr, {
912
+ q(Cr, { content: t }),
913
+ q(br, {
914
914
  editor: r,
915
915
  ErrorBoundary: n
916
916
  })
917
917
  ] });
918
918
  }
919
- function Sr({ content: e }) {
919
+ function Cr({ content: e }) {
920
920
  let [t] = h(), n = function(e) {
921
- let [t, n] = K(() => br(e));
922
- return _r(() => {
921
+ let [t, n] = K(() => xr(e));
922
+ return vr(() => {
923
923
  function t() {
924
- n(br(e));
924
+ n(xr(e));
925
925
  }
926
- return t(), x(e.registerUpdateListener(() => {
926
+ return t(), j(e.registerUpdateListener(() => {
927
927
  t();
928
928
  }), e.registerEditableListener(() => {
929
929
  t();
930
930
  }));
931
931
  }, [e]), t;
932
- }(t), r = et();
932
+ }(t), r = $e();
933
933
  return n ? typeof e == "function" ? e(r) : e : null;
934
934
  }
935
935
  //#endregion
936
936
  //#region node_modules/@lexical/react/LexicalContentEditable.prod.mjs
937
- var Cr = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? W : H;
938
- function wr({ editor: e, ariaActiveDescendant: t, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaErrorMessage: a, ariaExpanded: o, ariaInvalid: s, ariaLabel: c, ariaLabelledBy: l, ariaMultiline: u, ariaOwns: d, ariaRequired: f, autoCapitalize: p, className: m, id: h, role: g = "textbox", spellCheck: _ = !0, style: v, tabIndex: y, "data-testid": b, ...x }, S) {
939
- let [C, w] = K(e.isEditable()), T = bn((t) => {
937
+ var wr = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? xn : U;
938
+ function Tr({ editor: e, ariaActiveDescendant: t, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaErrorMessage: a, ariaExpanded: o, ariaInvalid: s, ariaLabel: c, ariaLabelledBy: l, ariaMultiline: u, ariaOwns: d, ariaRequired: f, autoCapitalize: p, className: m, id: h, role: g = "textbox", spellCheck: _ = !0, style: v, tabIndex: y, "data-testid": b, ...x }, S) {
939
+ let [C, w] = K(e.isEditable()), T = yn((t) => {
940
940
  t && t.ownerDocument && t.ownerDocument.defaultView ? e.setRootElement(t) : e.setRootElement(null);
941
941
  }, [e]), E = Sn(() => function(...e) {
942
942
  return (t) => {
943
943
  for (let n of e) typeof n == "function" ? n(t) : n != null && (n.current = t);
944
944
  };
945
945
  }(S, T), [T, S]);
946
- return Cr(() => (w(e.isEditable()), e.registerEditableListener((e) => {
946
+ return wr(() => (w(e.isEditable()), e.registerEditableListener((e) => {
947
947
  w(e);
948
948
  })), [e]), q("div", {
949
949
  "aria-activedescendant": C ? t : void 0,
@@ -972,37 +972,37 @@ function wr({ editor: e, ariaActiveDescendant: t, ariaAutoComplete: n, ariaContr
972
972
  ...x
973
973
  });
974
974
  }
975
- var Tr = V(wr);
976
- function Er(e) {
975
+ var Er = H(Tr);
976
+ function Dr(e) {
977
977
  return e.getEditorState().read(Jn(e.isComposing()));
978
978
  }
979
- var Dr = V(Or);
980
- function Or(e, t) {
979
+ var Or = H(kr);
980
+ function kr(e, t) {
981
981
  let { placeholder: n, ...r } = e, [i] = h();
982
- return J(Cn, { children: [q(Tr, {
982
+ return J(Cn, { children: [q(Er, {
983
983
  editor: i,
984
984
  ...r,
985
985
  ref: t
986
- }), n != null && q(kr, {
986
+ }), n != null && q(Ar, {
987
987
  editor: i,
988
988
  content: n
989
989
  })] });
990
990
  }
991
- function kr({ content: e, editor: t }) {
991
+ function Ar({ content: e, editor: t }) {
992
992
  let n = function(e) {
993
- let [t, n] = K(() => Er(e));
994
- return Cr(() => {
993
+ let [t, n] = K(() => Dr(e));
994
+ return wr(() => {
995
995
  function t() {
996
- n(Er(e));
996
+ n(Dr(e));
997
997
  }
998
- return t(), x(e.registerUpdateListener(() => {
998
+ return t(), j(e.registerUpdateListener(() => {
999
999
  t();
1000
1000
  }), e.registerEditableListener(() => {
1001
1001
  t();
1002
1002
  }));
1003
1003
  }, [e]), t;
1004
1004
  }(t), [r, i] = K(t.isEditable());
1005
- if (W(() => (i(t.isEditable()), t.registerEditableListener((e) => {
1005
+ if (xn(() => (i(t.isEditable()), t.registerEditableListener((e) => {
1006
1006
  i(e);
1007
1007
  })), [t]), !n) return null;
1008
1008
  let a = null;
@@ -1013,12 +1013,12 @@ function kr({ content: e, editor: t }) {
1013
1013
  }
1014
1014
  //#endregion
1015
1015
  //#region node_modules/react-error-boundary/dist/react-error-boundary.js
1016
- var Ar = _n(null), jr = {
1016
+ var jr = gn(null), Mr = {
1017
1017
  didCatch: !1,
1018
1018
  error: null
1019
- }, Mr = class extends hn {
1019
+ }, Nr = class extends mn {
1020
1020
  constructor(e) {
1021
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = jr;
1021
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Mr;
1022
1022
  }
1023
1023
  static getDerivedStateFromError(e) {
1024
1024
  return {
@@ -1031,18 +1031,18 @@ var Ar = _n(null), jr = {
1031
1031
  t !== null && (this.props.onReset?.({
1032
1032
  args: e,
1033
1033
  reason: "imperative-api"
1034
- }), this.setState(jr));
1034
+ }), this.setState(Mr));
1035
1035
  }
1036
1036
  componentDidCatch(e, t) {
1037
1037
  this.props.onError?.(e, t);
1038
1038
  }
1039
1039
  componentDidUpdate(e, t) {
1040
1040
  let { didCatch: n } = this.state, { resetKeys: r } = this.props;
1041
- n && t.error !== null && Nr(e.resetKeys, r) && (this.props.onReset?.({
1041
+ n && t.error !== null && Pr(e.resetKeys, r) && (this.props.onReset?.({
1042
1042
  next: r,
1043
1043
  prev: e.resetKeys,
1044
1044
  reason: "keys"
1045
- }), this.setState(jr));
1045
+ }), this.setState(Mr));
1046
1046
  }
1047
1047
  render() {
1048
1048
  let { children: e, fallbackRender: t, FallbackComponent: n, fallback: r } = this.props, { didCatch: i, error: a } = this.state, o = e;
@@ -1052,24 +1052,24 @@ var Ar = _n(null), jr = {
1052
1052
  resetErrorBoundary: this.resetErrorBoundary
1053
1053
  };
1054
1054
  if (typeof t == "function") o = t(e);
1055
- else if (n) o = vn(n, e);
1055
+ else if (n) o = _n(n, e);
1056
1056
  else if (r !== void 0) o = r;
1057
1057
  else throw a;
1058
1058
  }
1059
- return vn(Ar.Provider, { value: {
1059
+ return _n(jr.Provider, { value: {
1060
1060
  didCatch: i,
1061
1061
  error: a,
1062
1062
  resetErrorBoundary: this.resetErrorBoundary
1063
1063
  } }, o);
1064
1064
  }
1065
1065
  };
1066
- function Nr(e = [], t = []) {
1066
+ function Pr(e = [], t = []) {
1067
1067
  return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
1068
1068
  }
1069
1069
  //#endregion
1070
1070
  //#region node_modules/@lexical/react/LexicalErrorBoundary.prod.mjs
1071
- function Pr({ children: e, onError: t }) {
1072
- return q(Mr, {
1071
+ function Fr({ children: e, onError: t }) {
1072
+ return q(Nr, {
1073
1073
  fallback: q("div", {
1074
1074
  style: {
1075
1075
  border: "1px solid #f00",
@@ -1084,10 +1084,10 @@ function Pr({ children: e, onError: t }) {
1084
1084
  }
1085
1085
  //#endregion
1086
1086
  //#region node_modules/@lexical/react/LexicalOnChangePlugin.prod.mjs
1087
- var Fr = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? W : H;
1088
- function Ir({ ignoreHistoryMergeTagChange: e = !0, ignoreSelectionChange: t = !1, onChange: n }) {
1087
+ var Ir = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? xn : U;
1088
+ function Lr({ ignoreHistoryMergeTagChange: e = !0, ignoreSelectionChange: t = !1, onChange: n }) {
1089
1089
  let [r] = h();
1090
- return Fr(() => {
1090
+ return Ir(() => {
1091
1091
  if (n) return r.registerUpdateListener(({ editorState: i, dirtyElements: a, dirtyLeaves: o, prevEditorState: s, tags: c }) => {
1092
1092
  t && a.size === 0 && o.size === 0 || e && c.has("history-merge") || s.isEmpty() || n(i, r, c);
1093
1093
  });
@@ -1100,25 +1100,25 @@ function Ir({ ignoreHistoryMergeTagChange: e = !0, ignoreSelectionChange: t = !1
1100
1100
  }
1101
1101
  //#endregion
1102
1102
  //#region node_modules/@lexical/react/LexicalListPlugin.prod.mjs
1103
- function Lr({ hasStrictIndent: e = !1, shouldPreserveNumbering: t = !1 }) {
1103
+ function Rr({ hasStrictIndent: e = !1, shouldPreserveNumbering: t = !1 }) {
1104
1104
  let [n] = h();
1105
- return H(() => {
1106
- if (!n.hasNodes([_t, gt])) throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
1107
- }, [n]), H(() => x(yt(n, { restoreNumbering: t }), e ? vt(n) : () => {}), [
1105
+ return U(() => {
1106
+ if (!n.hasNodes([gt, ht])) throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
1107
+ }, [n]), U(() => j(vt(n, { restoreNumbering: t }), e ? _t(n) : () => {}), [
1108
1108
  n,
1109
1109
  e,
1110
1110
  t
1111
1111
  ]), function(e) {
1112
- H(() => yt(e), [e]);
1112
+ U(() => vt(e), [e]);
1113
1113
  }(n), null;
1114
1114
  }
1115
1115
  //#endregion
1116
1116
  //#region node_modules/@lexical/react/LexicalLinkPlugin.prod.mjs
1117
- function Rr({ validateUrl: e, attributes: t }) {
1117
+ function zr({ validateUrl: e, attributes: t }) {
1118
1118
  let [n] = h();
1119
- return H(() => {
1120
- if (!n.hasNodes([R])) throw Error("LinkPlugin: LinkNode not registered on editor");
1121
- }), H(() => St(n, L({
1119
+ return U(() => {
1120
+ if (!n.hasNodes([z])) throw Error("LinkPlugin: LinkNode not registered on editor");
1121
+ }), U(() => Ct(n, R({
1122
1122
  attributes: t,
1123
1123
  validateUrl: e
1124
1124
  })), [
@@ -1129,9 +1129,9 @@ function Rr({ validateUrl: e, attributes: t }) {
1129
1129
  }
1130
1130
  //#endregion
1131
1131
  //#region node_modules/@lexical/react/LexicalClickableLinkPlugin.prod.mjs
1132
- function zr({ newTab: e = !0, disabled: t = !1 }) {
1132
+ function Br({ newTab: e = !0, disabled: t = !1 }) {
1133
1133
  let [n] = h();
1134
- return H(() => Ct(n, L({
1134
+ return U(() => yt(n, R({
1135
1135
  disabled: t,
1136
1136
  newTab: e
1137
1137
  })), [
@@ -1142,7 +1142,7 @@ function zr({ newTab: e = !0, disabled: t = !1 }) {
1142
1142
  }
1143
1143
  //#endregion
1144
1144
  //#region node_modules/@lexical/history/LexicalHistory.prod.mjs
1145
- function Br(e, t, n, r, i) {
1145
+ function Vr(e, t, n, r, i) {
1146
1146
  if (e === null || n.size === 0 && r.size === 0 && !i) return 0;
1147
1147
  let a = t._selection, o = e._selection;
1148
1148
  if (i) return 1;
@@ -1156,17 +1156,17 @@ function Br(e, t, n, r, i) {
1156
1156
  for (let [e, t] of n) {
1157
1157
  if (!t) continue;
1158
1158
  let n = r.get(e);
1159
- n === void 0 || O(n) || i.push(n);
1159
+ n === void 0 || he(n) || i.push(n);
1160
1160
  }
1161
1161
  return i;
1162
1162
  }(t, n, r);
1163
1163
  if (s.length === 0) return 0;
1164
1164
  if (s.length > 1) {
1165
1165
  let n = t._nodeMap, r = n.get(a.anchor.key), i = n.get(o.anchor.key);
1166
- return r && i && !e._nodeMap.has(r.__key) && y(r) && r.__text.length === 1 && a.anchor.offset === 1 ? 2 : 0;
1166
+ return r && i && !e._nodeMap.has(r.__key) && v(r) && r.__text.length === 1 && a.anchor.offset === 1 ? 2 : 0;
1167
1167
  }
1168
1168
  let c = s[0], l = e._nodeMap.get(c.__key);
1169
- if (!y(l) || !y(c) || l.__mode !== c.__mode) return 0;
1169
+ if (!v(l) || !v(c) || l.__mode !== c.__mode) return 0;
1170
1170
  let u = l.__text, d = c.__text;
1171
1171
  if (u === d) return 0;
1172
1172
  let f = a.anchor, p = o.anchor;
@@ -1174,14 +1174,14 @@ function Br(e, t, n, r, i) {
1174
1174
  let m = f.offset, h = p.offset, g = d.length - u.length;
1175
1175
  return g === 1 && h === m - 1 ? 2 : g === -1 && h === m + 1 ? 3 : g === -1 && h === m ? 4 : 0;
1176
1176
  }
1177
- function Vr(e, t, n) {
1177
+ function Hr(e, t, n) {
1178
1178
  let r = n(), i = 0, a = r, o = 0, s = null;
1179
1179
  return (c, l, u, d, f, p) => {
1180
1180
  let m = n();
1181
1181
  if (p.has("composition-start") && (a = r, o = i, s = c), p.has("historic")) return i = 0, r = m, 2;
1182
1182
  p.has("composition-end") && s && (r = a, i = o, c = s);
1183
- let h = Br(c, l, d, f, e.isComposing()), g = (() => {
1184
- let n = u === null || u.editor === e, a = p.has(De);
1183
+ let h = Vr(c, l, d, f, e.isComposing()), g = (() => {
1184
+ let n = u === null || u.editor === e, a = p.has(Ce);
1185
1185
  if (!a && n && p.has("history-merge")) return 0;
1186
1186
  if (h === 1) return 2;
1187
1187
  if (c === null) return 1;
@@ -1190,36 +1190,36 @@ function Vr(e, t, n) {
1190
1190
  let s = typeof t == "number" ? t : t.peek();
1191
1191
  return !1 === a && h !== 0 && h === i && m < r + s && n || d.size === 1 && function(e, t, n) {
1192
1192
  let r = t._nodeMap.get(e), i = n._nodeMap.get(e), a = t._selection, o = n._selection;
1193
- return !(k(a) && k(o) && a.anchor.type === "element" && a.focus.type === "element" && o.anchor.type === "text" && o.focus.type === "text" || !y(r) || !y(i) || r.__parent !== i.__parent) && JSON.stringify(t.read(() => r.exportJSON())) === JSON.stringify(n.read(() => i.exportJSON()));
1193
+ return !(k(a) && k(o) && a.anchor.type === "element" && a.focus.type === "element" && o.anchor.type === "text" && o.focus.type === "text" || !v(r) || !v(i) || r.__parent !== i.__parent) && JSON.stringify(t.read(() => r.exportJSON())) === JSON.stringify(n.read(() => i.exportJSON()));
1194
1194
  }(Array.from(d)[0], c, l) ? 0 : 1;
1195
1195
  })();
1196
1196
  return r = m, i = h, g;
1197
1197
  };
1198
1198
  }
1199
- function Hr(e) {
1199
+ function Ur(e) {
1200
1200
  e.undoStack = [], e.redoStack = [], e.current = null;
1201
1201
  }
1202
- function Ur(e, t, n, r = Date.now) {
1203
- let i = Vr(e, n, r);
1204
- return x(e.registerCommand(de, () => (function(e, t) {
1202
+ function Wr(e, t, n, r = Date.now) {
1203
+ let i = Hr(e, n, r);
1204
+ return j(e.registerCommand(T, () => (function(e, t) {
1205
1205
  let n = t.redoStack, r = t.undoStack;
1206
1206
  if (r.length !== 0) {
1207
1207
  let i = t.current, a = r.pop();
1208
- i !== null && (n.push(i), e.dispatchCommand(Pe, !0)), r.length === 0 && e.dispatchCommand(M, !1), t.current = a || null, a && a.editor.setEditorState(a.editorState, { tag: "historic" });
1208
+ i !== null && (n.push(i), e.dispatchCommand(O, !0)), r.length === 0 && e.dispatchCommand(F, !1), t.current = a || null, a && a.editor.setEditorState(a.editorState, { tag: "historic" });
1209
1209
  }
1210
1210
  }(e, t), !0), 0), e.registerCommand(Ie, () => (function(e, t) {
1211
1211
  let n = t.redoStack, r = t.undoStack;
1212
1212
  if (n.length !== 0) {
1213
1213
  let i = t.current;
1214
- i !== null && (r.push(i), e.dispatchCommand(M, !0));
1214
+ i !== null && (r.push(i), e.dispatchCommand(F, !0));
1215
1215
  let a = n.pop();
1216
- n.length === 0 && e.dispatchCommand(Pe, !1), t.current = a || null, a && a.editor.setEditorState(a.editorState, { tag: "historic" });
1216
+ n.length === 0 && e.dispatchCommand(O, !1), t.current = a || null, a && a.editor.setEditorState(a.editorState, { tag: "historic" });
1217
1217
  }
1218
- }(e, t), !0), 0), e.registerCommand(Ge, () => (Hr(t), !1), 0), e.registerCommand(Ze, () => (Hr(t), e.dispatchCommand(Pe, !1), e.dispatchCommand(M, !1), !0), 0), e.registerUpdateListener(({ editorState: n, prevEditorState: r, dirtyLeaves: a, dirtyElements: o, tags: s }) => {
1218
+ }(e, t), !0), 0), e.registerCommand(Ge, () => (Ur(t), !1), 0), e.registerCommand(be, () => (Ur(t), e.dispatchCommand(O, !1), e.dispatchCommand(F, !1), !0), 0), e.registerUpdateListener(({ editorState: n, prevEditorState: r, dirtyLeaves: a, dirtyElements: o, tags: s }) => {
1219
1219
  let c = t.current, l = t.redoStack, u = t.undoStack, d = c === null ? null : c.editorState;
1220
1220
  if (c !== null && n === d) return;
1221
1221
  let f = i(r, n, c, a, o, s);
1222
- if (f === 1) l.length !== 0 && (t.redoStack = [], e.dispatchCommand(Pe, !1)), c !== null && (u.push({ ...c }), e.dispatchCommand(M, !0));
1222
+ if (f === 1) l.length !== 0 && (t.redoStack = [], e.dispatchCommand(O, !1)), c !== null && (u.push({ ...c }), e.dispatchCommand(F, !0));
1223
1223
  else if (f === 2) return;
1224
1224
  t.current = {
1225
1225
  editor: e,
@@ -1227,22 +1227,22 @@ function Ur(e, t, n, r = Date.now) {
1227
1227
  };
1228
1228
  }));
1229
1229
  }
1230
- function Wr() {
1230
+ function Gr() {
1231
1231
  return {
1232
1232
  current: null,
1233
1233
  redoStack: [],
1234
1234
  undoStack: []
1235
1235
  };
1236
1236
  }
1237
- var Gr = _({
1238
- build: (e, { delay: t, createInitialHistoryState: n, disabled: r, now: i }) => L({
1237
+ var Kr = y({
1238
+ build: (e, { delay: t, createInitialHistoryState: n, disabled: r, now: i }) => R({
1239
1239
  delay: t,
1240
1240
  disabled: r,
1241
1241
  historyState: n(e),
1242
1242
  now: i
1243
1243
  }),
1244
- config: Be({
1245
- createInitialHistoryState: Wr,
1244
+ config: Ne({
1245
+ createInitialHistoryState: Gr,
1246
1246
  delay: 300,
1247
1247
  disabled: typeof window > "u",
1248
1248
  now: Date.now
@@ -1250,29 +1250,29 @@ var Gr = _({
1250
1250
  name: "@lexical/history/History",
1251
1251
  register: (e, t, n) => {
1252
1252
  let r = n.getOutput();
1253
- return st(() => r.disabled.value ? void 0 : Ur(e, r.historyState.value, r.delay, () => r.now.peek()()));
1253
+ return lt(() => r.disabled.value ? void 0 : Wr(e, r.historyState.value, r.delay, () => r.now.peek()()));
1254
1254
  }
1255
1255
  });
1256
- _({
1257
- build: (e, { disabled: t, parentEditor: n }) => L({
1256
+ y({
1257
+ build: (e, { disabled: t, parentEditor: n }) => R({
1258
1258
  disabled: t,
1259
1259
  parentEditor: n || e._parentEditor
1260
1260
  }),
1261
- config: Be({
1261
+ config: Ne({
1262
1262
  disabled: !1,
1263
1263
  parentEditor: null
1264
1264
  }),
1265
- dependencies: [w(Gr, { disabled: !0 })],
1265
+ dependencies: [w(Kr, { disabled: !0 })],
1266
1266
  name: "@lexical/history/SharedHistory",
1267
- register: (e, t, n) => st(() => {
1267
+ register: (e, t, n) => lt(() => {
1268
1268
  let { disabled: e, parentEditor: t } = n.getOutput();
1269
1269
  if (!e.value) {
1270
- let { output: e } = n.getDependency(Gr), r = function(e) {
1271
- return e ? lt(e, Gr.name) : null;
1270
+ let { output: e } = n.getDependency(Kr), r = function(e) {
1271
+ return e ? st(e, Kr.name) : null;
1272
1272
  }(t.value);
1273
1273
  if (!r) return;
1274
1274
  let i = r.output;
1275
- dt(() => {
1275
+ ct(() => {
1276
1276
  e.delay.value = i.delay.value, e.historyState.value = i.historyState.value, e.now.value = i.now.value, e.disabled.value = i.disabled.value;
1277
1277
  });
1278
1278
  }
@@ -1280,11 +1280,11 @@ _({
1280
1280
  });
1281
1281
  //#endregion
1282
1282
  //#region node_modules/@lexical/react/LexicalHistoryPlugin.prod.mjs
1283
- function Kr({ delay: e, externalHistoryState: t }) {
1283
+ function qr({ delay: e, externalHistoryState: t }) {
1284
1284
  let [n] = h();
1285
1285
  return function(e, t, n = 1e3) {
1286
- let r = Sn(() => t || Wr(), [t]);
1287
- H(() => Ur(e, r, n), [
1286
+ let r = Sn(() => t || Gr(), [t]);
1287
+ U(() => Wr(e, r, n), [
1288
1288
  n,
1289
1289
  e,
1290
1290
  r
@@ -1293,19 +1293,19 @@ function Kr({ delay: e, externalHistoryState: t }) {
1293
1293
  }
1294
1294
  //#endregion
1295
1295
  //#region node_modules/@lexical/react/LexicalTablePlugin.prod.mjs
1296
- function qr({ hasCellMerge: e = !0, hasCellBackgroundColor: t = !0, hasTabHandler: n = !0, hasHorizontalScroll: r = !1, hasNestedTables: i = !1 }) {
1296
+ function Jr({ hasCellMerge: e = !0, hasCellBackgroundColor: t = !0, hasTabHandler: n = !0, hasHorizontalScroll: r = !1, hasNestedTables: i = !1 }) {
1297
1297
  let [a] = h();
1298
- H(() => {
1299
- kt(a) !== r && (Pt(a, r), a.registerNodeTransform(Ot, () => {})());
1298
+ U(() => {
1299
+ Ot(a) !== r && (Nt(a, r), a.registerNodeTransform(Dt, () => {})());
1300
1300
  }, [a, r]);
1301
1301
  let o = function(e) {
1302
- let [t] = K(() => ut(e));
1302
+ let [t] = K(() => ot(e));
1303
1303
  return t.peek() !== e && (t.value = e), t;
1304
1304
  }(i);
1305
- return H(() => At(a, { hasNestedTables: o }), [a, o]), H(() => Et(a, n), [a, n]), H(() => {
1306
- if (!e) return Tt(a);
1307
- }, [a, e]), H(() => {
1308
- if (!t) return a.registerNodeTransform(jt, (e) => {
1305
+ return U(() => kt(a, { hasNestedTables: o }), [a, o]), U(() => Et(a, n), [a, n]), U(() => {
1306
+ if (!e) return wt(a);
1307
+ }, [a, e]), U(() => {
1308
+ if (!t) return a.registerNodeTransform(Tt, (e) => {
1309
1309
  e.getBackgroundColor() !== null && e.setBackgroundColor(null);
1310
1310
  });
1311
1311
  }, [
@@ -1316,22 +1316,22 @@ function qr({ hasCellMerge: e = !0, hasCellBackgroundColor: t = !0, hasTabHandle
1316
1316
  }
1317
1317
  //#endregion
1318
1318
  //#region node_modules/@lexical/react/LexicalEditorRefPlugin.prod.mjs
1319
- function Jr({ editorRef: e }) {
1319
+ function Yr({ editorRef: e }) {
1320
1320
  let [t] = h();
1321
- return mn.useEffect(() => {
1321
+ return pn.useEffect(() => {
1322
1322
  typeof e == "function" ? e(t) : typeof e == "object" && (e.current = t);
1323
1323
  }, [t]), null;
1324
1324
  }
1325
1325
  //#endregion
1326
1326
  //#region src/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.tsx
1327
- var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchResponse: n }) => {
1328
- let [r] = h(), [i, a] = K(null), o = G(null), s = bn(() => {
1327
+ var Xr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchResponse: n }) => {
1328
+ let [r] = h(), [i, a] = K(null), o = G(null), s = yn(() => {
1329
1329
  let e = P();
1330
1330
  if (!k(e)) {
1331
1331
  a(null);
1332
1332
  return;
1333
1333
  }
1334
- let t = Mt(e.anchor.getNode());
1334
+ let t = jt(e.anchor.getNode());
1335
1335
  if (!t) {
1336
1336
  a(null);
1337
1337
  return;
@@ -1346,76 +1346,76 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1346
1346
  });
1347
1347
  }, [r]), c = (e) => {
1348
1348
  o.current?.mutateTable(e);
1349
- }, l = bn(() => {
1349
+ }, l = yn(() => {
1350
1350
  r.update(() => {
1351
1351
  let e = P();
1352
- k(e) && Mt(e.anchor.getNode()) && (Ve(null), a(null));
1352
+ k(e) && jt(e.anchor.getNode()) && (Ze(null), a(null));
1353
1353
  });
1354
1354
  }, [r]);
1355
- return H(() => x(r.registerUpdateListener(({ editorState: e }) => {
1355
+ return U(() => j(r.registerUpdateListener(({ editorState: e }) => {
1356
1356
  e.read(s);
1357
- }), r.registerCommand(Ee, () => (Jt(l), !1), 1), r.registerRootListener((e, t) => {
1358
- t && qt(l), e && Jt(l);
1357
+ }), r.registerCommand(Te, () => (qt(l), !1), 1), r.registerRootListener((e, t) => {
1358
+ t && Kt(l), e && qt(l);
1359
1359
  })), [
1360
1360
  r,
1361
1361
  s,
1362
1362
  l
1363
1363
  ]), /* @__PURE__ */ J("div", {
1364
- className: z.editor__toolbar,
1364
+ className: B.editor__toolbar,
1365
1365
  children: [
1366
+ /* @__PURE__ */ q(Zt, {}),
1366
1367
  /* @__PURE__ */ q(Qt, {}),
1367
- /* @__PURE__ */ q($t, {}),
1368
- /* @__PURE__ */ q(oi, {
1368
+ /* @__PURE__ */ q(ri, {
1369
1369
  isActive: !!i,
1370
1370
  ref: o
1371
1371
  }),
1372
- i && /* @__PURE__ */ q(dn, {
1372
+ i && /* @__PURE__ */ q(un, {
1373
1373
  position: i,
1374
1374
  parentScrollPosition: e,
1375
1375
  onAction: c
1376
1376
  }),
1377
- /* @__PURE__ */ q(ei, { parentScrollPosition: e }),
1378
- t && n && /* @__PURE__ */ q(Zt, {
1377
+ /* @__PURE__ */ q($r, { parentScrollPosition: e }),
1378
+ t && n && /* @__PURE__ */ q(Xt, {
1379
1379
  parentScrollPosition: e,
1380
1380
  onSearch: t,
1381
1381
  searchResponse: n
1382
1382
  }),
1383
- /* @__PURE__ */ q(ti, {})
1383
+ /* @__PURE__ */ q(ei, {})
1384
1384
  ]
1385
1385
  });
1386
- }, Xr = "_linkform_1anda_1", Zr = "_linkform__footer_1anda_12", $ = {
1387
- linkform: Xr,
1386
+ }, $ = {
1387
+ linkform: "_linkform_1anda_1",
1388
1388
  "linkform__input-field": "_linkform__input-field_1anda_5",
1389
- linkform__footer: Zr,
1389
+ linkform__footer: "_linkform__footer_1anda_12",
1390
1390
  "linkform__input-url-wrapper": "_linkform__input-url-wrapper_1anda_19",
1391
1391
  "linkform__open-url-button": "_linkform__open-url-button_1anda_31",
1392
1392
  "editor__toolbar-button": "_editor__toolbar-button_1anda_55"
1393
- }, Qr = V(({ onCloseHandler: e, onSaveHandler: r, isLink: i = {
1393
+ }, Zr = H(({ onCloseHandler: e, onSaveHandler: r, isLink: i = {
1394
1394
  active: !1,
1395
1395
  url: "",
1396
1396
  linktext: ""
1397
1397
  } }, s) => {
1398
- let c = B(), [d, f] = K(i.url || ""), [p, m] = K(i.linktext || ""), [h, g] = K(!1), [_, v] = K(null), [y, b] = K(null), x = G(null), S = `link_${U()}`, C = `text_${U()}`, w = () => {
1399
- window.open(Lt(d), "_blank");
1398
+ let c = V(), [d, f] = K(i.url || ""), [p, m] = K(i.linktext || ""), [h, g] = K(!1), [_, v] = K(null), [y, b] = K(null), x = G(null), S = `link_${W()}`, C = `text_${W()}`, w = () => {
1399
+ window.open(It(d), "_blank");
1400
1400
  }, T = (e) => {
1401
1401
  f(e.target.value);
1402
1402
  }, E = (e) => {
1403
1403
  m(e.target.value);
1404
- }, D = (e) => It(e) === !1 || e.trim() === "" ? (v(c.errortext.urlNotValid), !1) : (v(null), !0), O = (e) => e.trim() === "" ? (b(c.errortext.linkTextNotValid), !1) : (b(null), !0), ee = () => {
1405
- !D(d) || h && !O(p) || (r(d, p), ne());
1406
- }, te = () => {
1407
- e(), ne();
1404
+ }, D = (e) => Ft(e) === !1 || e.trim() === "" ? (v(c.errortext.urlNotValid), !1) : (v(null), !0), ee = (e) => e.trim() === "" ? (b(c.errortext.linkTextNotValid), !1) : (b(null), !0), te = () => {
1405
+ !D(d) || h && !ee(p) || (r(d, p), re());
1408
1406
  }, ne = () => {
1407
+ e(), re();
1408
+ }, re = () => {
1409
1409
  f(""), g(!1), v(null), b(null);
1410
- }, re = (e, t) => {
1410
+ }, ie = (e, t) => {
1411
1411
  f(e), !t && !e && g(!0);
1412
- }, ie = () => {
1412
+ }, ae = () => {
1413
1413
  x.current && x.current.focus();
1414
1414
  };
1415
- return xn(s, () => ({
1416
- clearForm: ne,
1417
- focusFirstField: ie,
1418
- setDefaults: re
1415
+ return bn(s, () => ({
1416
+ clearForm: re,
1417
+ focusFirstField: ae,
1418
+ setDefaults: ie
1419
1419
  })), /* @__PURE__ */ J("div", {
1420
1420
  className: $.linkform,
1421
1421
  children: [
@@ -1476,13 +1476,13 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1476
1476
  className: $.linkform__footer,
1477
1477
  children: [/* @__PURE__ */ q(n, {
1478
1478
  variant: "secondary",
1479
- onClick: te,
1479
+ onClick: ne,
1480
1480
  "aria-label": c.common.cancel,
1481
1481
  type: "button",
1482
1482
  children: c.common.cancel
1483
1483
  }), /* @__PURE__ */ q(n, {
1484
1484
  variant: "primary",
1485
- onClick: ee,
1485
+ onClick: te,
1486
1486
  "aria-label": c.aria.labels.linkOkButton,
1487
1487
  type: "button",
1488
1488
  children: c.links.addLink
@@ -1490,26 +1490,26 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1490
1490
  })
1491
1491
  ]
1492
1492
  });
1493
- }), $r = 200, ei = ({ parentScrollPosition: n }) => {
1494
- let r = B(), [i] = h(), { flyout: a, showFlyout: o, hideFlyout: s, isVisible: c } = tn(), l = G(void 0), u = G(!1), d = G(""), f = G(""), [p, m] = K({
1493
+ }), Qr = 200, $r = ({ parentScrollPosition: n }) => {
1494
+ let r = V(), [i] = h(), { flyout: a, showFlyout: o, hideFlyout: s, isVisible: c } = en(), l = G(void 0), u = G(!1), d = G(""), f = G(""), [p, m] = K({
1495
1495
  active: !1,
1496
1496
  url: "",
1497
1497
  linktext: ""
1498
- }), g = G(c), _ = G(null), v = G(null), y = G(void 0), b = () => {
1498
+ }), g = G(c), _ = G(null), v = G(null), y = G(void 0), x = () => {
1499
1499
  i.update(() => {
1500
1500
  _.current = P();
1501
1501
  });
1502
1502
  }, S = () => {
1503
1503
  i.update(() => {
1504
- _.current && Ve(_.current);
1504
+ _.current && Ze(_.current);
1505
1505
  });
1506
1506
  }, C = (e, t) => {
1507
1507
  o({
1508
1508
  position: t,
1509
- children: /* @__PURE__ */ q(en, {
1509
+ children: /* @__PURE__ */ q($t, {
1510
1510
  url: e,
1511
1511
  onSave: (e) => D(e, ""),
1512
- onDelete: () => O(),
1512
+ onDelete: () => ee(),
1513
1513
  onClose: w,
1514
1514
  ref: y
1515
1515
  })
@@ -1518,12 +1518,12 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1518
1518
  y.current?.clearForm(), s(), S();
1519
1519
  }, T = () => {
1520
1520
  let e = v.current?.getBoundingClientRect();
1521
- !u.current && e && (b(), o({
1521
+ !u.current && e && (x(), o({
1522
1522
  position: {
1523
1523
  top: e.bottom,
1524
1524
  left: e.left
1525
1525
  },
1526
- ...ee
1526
+ ...te
1527
1527
  }), setTimeout(() => l.current?.setDefaults("", f.current), 0));
1528
1528
  }, E = () => {
1529
1529
  s(), S();
@@ -1531,10 +1531,10 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1531
1531
  i.update(() => {
1532
1532
  let n = P();
1533
1533
  if (k(n)) {
1534
- let r = I(n.anchor.getNode(), R);
1534
+ let r = L(n.anchor.getNode(), z);
1535
1535
  if (t && t !== "") {
1536
1536
  if (r) {
1537
- let e = Qe(t);
1537
+ let e = Ye(t);
1538
1538
  r.replace(e), e.select();
1539
1539
  }
1540
1540
  if (t !== d.current && d.current === "") {
@@ -1542,24 +1542,24 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1542
1542
  n.insertText(t), e.offset -= t.length, r.offset = e.offset + t.length;
1543
1543
  }
1544
1544
  }
1545
- xt(Lt(e), { target: "_blank" });
1545
+ xt(It(e), { target: "_blank" });
1546
1546
  }
1547
1547
  E();
1548
1548
  });
1549
- }, O = () => {
1550
- i.dispatchCommand(wt, null), w();
1551
- }, ee = { children: /* @__PURE__ */ q(Qr, {
1549
+ }, ee = () => {
1550
+ i.dispatchCommand(bt, null), w();
1551
+ }, te = { children: /* @__PURE__ */ q(Zr, {
1552
1552
  isLink: p,
1553
1553
  onCloseHandler: E,
1554
1554
  onSaveHandler: (e, t) => D(e, t),
1555
1555
  ref: l
1556
1556
  }) };
1557
- H(() => {
1558
- c ? (u.current = !0, l.current?.focusFirstField()) : (l.current?.clearForm(), d.current = f.current = "", setTimeout(() => u.current = !1, $r));
1559
- }, [l, c]), H(() => {
1557
+ U(() => {
1558
+ c ? (u.current = !0, l.current?.focusFirstField()) : (l.current?.clearForm(), d.current = f.current = "", setTimeout(() => u.current = !1, Qr));
1559
+ }, [l, c]), U(() => {
1560
1560
  let e = (e) => {
1561
1561
  if (k(e) && e.isCollapsed()) {
1562
- let t = I(e.anchor.getNode(), R);
1562
+ let t = L(e.anchor.getNode(), z);
1563
1563
  if (t) {
1564
1564
  let n = i.getElementByKey(e.anchor.getNode().getKey()), r = n ? {
1565
1565
  top: n.getBoundingClientRect().bottom,
@@ -1572,22 +1572,22 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1572
1572
  }
1573
1573
  }
1574
1574
  return !1;
1575
- }, t = i.registerCommand(Ye, () => {
1575
+ }, t = i.registerCommand(b, () => {
1576
1576
  let t = P();
1577
1577
  return f.current = t?.getTextContent() ?? "", e(t), !1;
1578
- }, 0), n = i.registerCommand(Le, (t) => {
1578
+ }, 0), n = i.registerCommand(Re, (t) => {
1579
1579
  let n = P();
1580
- return b(), t.preventDefault(), t.stopPropagation(), t.stopImmediatePropagation(), e(n), !1;
1580
+ return x(), t.preventDefault(), t.stopPropagation(), t.stopImmediatePropagation(), e(n), !1;
1581
1581
  }, 0);
1582
1582
  return () => {
1583
1583
  n(), t();
1584
1584
  };
1585
- }, [i]), H(() => {
1586
- let e = i.registerCommand(Ee, (e) => {
1585
+ }, [i]), U(() => {
1586
+ let e = i.registerCommand(Te, (e) => {
1587
1587
  if (e.ctrlKey && e.shiftKey && e.key === "U") {
1588
1588
  let t = P();
1589
- if (b(), !k(t)) return !1;
1590
- let n = I(t.anchor.getNode(), R), r = (e = "", t = "") => {
1589
+ if (x(), !k(t)) return !1;
1590
+ let n = L(t.anchor.getNode(), z), r = (e = "", t = "") => {
1591
1591
  T(), setTimeout(() => l.current?.setDefaults(e, t), 0);
1592
1592
  };
1593
1593
  if (n) return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), d.current = n.getTextContent(), r(n.getURL(), n.getTextContent()), !0;
@@ -1598,8 +1598,8 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1598
1598
  }, 4), t = i.registerUpdateListener(({ editorState: e }) => {
1599
1599
  m(e.read(() => {
1600
1600
  let e = P();
1601
- if (b(), k(e)) {
1602
- let t = I(e.anchor.getNode(), R);
1601
+ if (x(), k(e)) {
1602
+ let t = L(e.anchor.getNode(), z);
1603
1603
  if (t) return {
1604
1604
  active: !0,
1605
1605
  url: t.getURL(),
@@ -1616,26 +1616,26 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1616
1616
  return () => {
1617
1617
  e(), t();
1618
1618
  };
1619
- }, [i]), H(() => {
1619
+ }, [i]), U(() => {
1620
1620
  g.current = c, c || y.current?.clearForm();
1621
- }, [c]), H(() => {
1621
+ }, [c]), U(() => {
1622
1622
  c && E();
1623
- }, [n]), H(() => {
1623
+ }, [n]), U(() => {
1624
1624
  p.active || s();
1625
1625
  }, [p]);
1626
- let te = () => {
1626
+ let ne = () => {
1627
1627
  s();
1628
1628
  };
1629
- return H(() => x(i.registerCommand(Ee, (e) => e.key === "Escape" && g.current ? (e.preventDefault(), E(), !0) : !1, 1), i.registerRootListener((e, t) => {
1630
- t && t.removeEventListener("scroll", te), e && e.addEventListener("scroll", te);
1629
+ return U(() => j(i.registerCommand(Te, (e) => e.key === "Escape" && g.current ? (e.preventDefault(), E(), !0) : !1, 1), i.registerRootListener((e, t) => {
1630
+ t && t.removeEventListener("scroll", ne), e && e.addEventListener("scroll", ne);
1631
1631
  })), [i]), /* @__PURE__ */ q("div", {
1632
- className: z["editor__toolbar-button-group"],
1632
+ className: B["editor__toolbar-button-group"],
1633
1633
  children: /* @__PURE__ */ J("div", {
1634
- className: z["editor__toolbar-button-flyoutwrapper"],
1634
+ className: B["editor__toolbar-button-flyoutwrapper"],
1635
1635
  children: [/* @__PURE__ */ q("button", {
1636
1636
  onClick: T,
1637
1637
  title: r.links.linkTooltip,
1638
- className: e(z["editor__toolbar-button"], z["editor__toolbar-button--link"], p.active && z["editor__toolbar-button--active"]),
1638
+ className: e(B["editor__toolbar-button"], B["editor__toolbar-button--link"], p.active && B["editor__toolbar-button--active"]),
1639
1639
  "aria-label": r.aria.labels.link,
1640
1640
  "aria-keyshortcuts": r.aria.keyshortcuts.link,
1641
1641
  type: "button",
@@ -1647,17 +1647,15 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1647
1647
  }), a]
1648
1648
  })
1649
1649
  });
1650
- }, ti = () => {
1651
- let n = B(), [r] = h(), [i, a] = K(!1), [o, s] = K(!1), c = () => {
1652
- r.dispatchCommand(de, void 0);
1653
- }, l = () => {
1654
- r.dispatchCommand(Ie, void 0);
1655
- };
1656
- return H(() => r.registerCommand(M, (e) => (a(e), !1), 1), [r]), H(() => r.registerCommand(Pe, (e) => (s(e), !1), 1), [r]), /* @__PURE__ */ J("div", {
1657
- className: z["editor__toolbar-button-group"],
1650
+ }, ei = () => {
1651
+ let n = V(), [r] = h(), [i, a] = K(!1), [o, s] = K(!1);
1652
+ return U(() => r.registerCommand(F, (e) => (a(e), !1), 1), [r]), U(() => r.registerCommand(O, (e) => (s(e), !1), 1), [r]), /* @__PURE__ */ J("div", {
1653
+ className: B["editor__toolbar-button-group"],
1658
1654
  children: [/* @__PURE__ */ q("button", {
1659
- onClick: c,
1660
- className: e(z["editor__toolbar-button"], z["editor__toolbar-button--undo"]),
1655
+ onClick: () => {
1656
+ r.dispatchCommand(T, void 0);
1657
+ },
1658
+ className: e(B["editor__toolbar-button"], B["editor__toolbar-button--undo"]),
1661
1659
  "aria-label": n.aria.labels.undo,
1662
1660
  "aria-keyshortcuts": n.aria.keyshortcuts.undo,
1663
1661
  disabled: !i,
@@ -1668,8 +1666,10 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1668
1666
  size: 24
1669
1667
  })
1670
1668
  }), /* @__PURE__ */ q("button", {
1671
- onClick: l,
1672
- className: e(z["editor__toolbar-button"], z["editor__toolbar-button--redo"]),
1669
+ onClick: () => {
1670
+ r.dispatchCommand(Ie, void 0);
1671
+ },
1672
+ className: e(B["editor__toolbar-button"], B["editor__toolbar-button--redo"]),
1673
1673
  "aria-label": n.aria.labels.redo,
1674
1674
  "aria-keyshortcuts": n.aria.keyshortcuts.redo,
1675
1675
  disabled: !o,
@@ -1681,12 +1681,12 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1681
1681
  })
1682
1682
  })]
1683
1683
  });
1684
- }, ni = "_tableform_t5fpq_1", ri = "_tableform__footer_t5fpq_12", ii = {
1685
- tableform: ni,
1684
+ }, ti = {
1685
+ tableform: "_tableform_t5fpq_1",
1686
1686
  "tableform__input-field": "_tableform__input-field_t5fpq_5",
1687
- tableform__footer: ri
1688
- }, ai = V(({ onCloseHandler: e, onSaveHandler: t }, r) => {
1689
- let i = B(), [o, s] = K(), [c, d] = K(), f = G(null), p = `row_${U()}`, m = `column_${U()}`, h = (e, t) => {
1687
+ tableform__footer: "_tableform__footer_t5fpq_12"
1688
+ }, ni = H(({ onCloseHandler: e, onSaveHandler: t }, r) => {
1689
+ let i = V(), [o, s] = K(), [c, d] = K(), f = G(null), p = `row_${W()}`, m = `column_${W()}`, h = (e, t) => {
1690
1690
  let n = e.target.value;
1691
1691
  t === "row" ? s(parseInt(n)) : d(parseInt(n));
1692
1692
  }, g = () => {
@@ -1696,21 +1696,21 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1696
1696
  }, v = () => {
1697
1697
  s(void 0), d(void 0);
1698
1698
  };
1699
- return xn(r, () => ({
1699
+ return bn(r, () => ({
1700
1700
  clearForm: v,
1701
1701
  focusFirstField: () => f.current?.focus()
1702
- })), H(() => {
1702
+ })), U(() => {
1703
1703
  let e = () => {
1704
1704
  _();
1705
1705
  };
1706
- return Jt(e), window.addEventListener("scroll", e), window.addEventListener("resize", e), () => {
1707
- window.removeEventListener("scroll", e), window.removeEventListener("resize", e), qt(e);
1706
+ return qt(e), window.addEventListener("scroll", e), window.addEventListener("resize", e), () => {
1707
+ window.removeEventListener("scroll", e), window.removeEventListener("resize", e), Kt(e);
1708
1708
  };
1709
1709
  }, []), /* @__PURE__ */ J("div", {
1710
- className: ii.tableform,
1710
+ className: ti.tableform,
1711
1711
  children: [
1712
1712
  /* @__PURE__ */ J(l, {
1713
- className: ii["tableform__input-field"],
1713
+ className: ti["tableform__input-field"],
1714
1714
  children: [/* @__PURE__ */ q(a, {
1715
1715
  htmlFor: p,
1716
1716
  children: i.table.nrofRows
@@ -1724,7 +1724,7 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1724
1724
  })]
1725
1725
  }),
1726
1726
  /* @__PURE__ */ J(l, {
1727
- className: ii["tableform__input-field"],
1727
+ className: ti["tableform__input-field"],
1728
1728
  children: [/* @__PURE__ */ q(a, {
1729
1729
  htmlFor: m,
1730
1730
  children: i.table.nrofColumns
@@ -1737,7 +1737,7 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1737
1737
  })]
1738
1738
  }),
1739
1739
  /* @__PURE__ */ J("div", {
1740
- className: ii.tableform__footer,
1740
+ className: ti.tableform__footer,
1741
1741
  children: [/* @__PURE__ */ q(n, {
1742
1742
  variant: "secondary",
1743
1743
  onClick: _,
@@ -1753,8 +1753,8 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1753
1753
  })
1754
1754
  ]
1755
1755
  });
1756
- }), oi = V(({ isActive: n }, r) => {
1757
- let i = B(), [a] = h(), { flyout: o, showFlyout: s, hideFlyout: c, isVisible: l } = tn(), u = G(void 0), d = G(null), f = G(!1), p = G(l), m = () => {
1756
+ }), ri = H(({ isActive: n }, r) => {
1757
+ let i = V(), [a] = h(), { flyout: o, showFlyout: s, hideFlyout: c, isVisible: l } = en(), u = G(void 0), d = G(null), f = G(!1), p = G(l), m = () => {
1758
1758
  let e = d.current?.getBoundingClientRect();
1759
1759
  !f.current && e && s({
1760
1760
  position: {
@@ -1767,10 +1767,10 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1767
1767
  c();
1768
1768
  }, _ = (e, t) => {
1769
1769
  a.update(() => {
1770
- let n = P(), r = nn(e, t), i = k(n) && n.anchor.getNode() || N(n) && n.getNodes()[0] || null, o = i ? I(i, jt) : null, s = o ? cn(o, t, a) : sn(a) || 320, c = Math.max(48, Math.floor(s / Math.max(1, t))), l = Array.from({ length: t }, () => c);
1770
+ let n = P(), r = tn(e, t), i = k(n) && n.anchor.getNode() || A(n) && n.getNodes()[0] || null, o = i ? L(i, Tt) : null, s = o ? sn(o, t, a) : on(a) || 320, c = Math.max(48, Math.floor(s / Math.max(1, t))), l = Array.from({ length: t }, () => c);
1771
1771
  r.setColWidths(l);
1772
- let u = Bt();
1773
- u.append(r), k(n) ? n.insertNodes([u]) : j().append(u);
1772
+ let u = zt();
1773
+ u.append(r), k(n) ? n.insertNodes([u]) : M().append(u);
1774
1774
  let d = u.getFirstDescendant();
1775
1775
  d && d.select();
1776
1776
  }), g();
@@ -1778,57 +1778,57 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1778
1778
  a.update(() => {
1779
1779
  let t = P();
1780
1780
  if (k(t)) {
1781
- let n = Mt(t.anchor.getNode());
1782
- if (Nt(n)) switch (e) {
1781
+ let n = jt(t.anchor.getNode());
1782
+ if (Mt(n)) switch (e) {
1783
1783
  case "insertRowAbove":
1784
1784
  case "insertRowBelow":
1785
- un(n, e);
1785
+ ln(n, e);
1786
1786
  break;
1787
1787
  case "deleteRow":
1788
- an(n);
1788
+ rn(n);
1789
1789
  break;
1790
1790
  case "insertColumnLeft":
1791
1791
  case "insertColumnRight":
1792
- ln(n, e);
1792
+ cn(n, e);
1793
1793
  break;
1794
1794
  case "deleteColumn":
1795
- rn(n);
1795
+ nn(n);
1796
1796
  break;
1797
1797
  case "deleteTable":
1798
- on(n);
1798
+ an(n);
1799
1799
  break;
1800
1800
  }
1801
1801
  }
1802
1802
  });
1803
- }, y = { children: /* @__PURE__ */ q(ai, {
1803
+ }, y = { children: /* @__PURE__ */ q(ni, {
1804
1804
  onCloseHandler: g,
1805
1805
  onSaveHandler: (e, t) => _(e, t),
1806
1806
  ref: u
1807
1807
  }) };
1808
- return H(() => {
1808
+ return U(() => {
1809
1809
  l ? (f.current = !0, u.current?.focusFirstField()) : (u.current?.clearForm(), setTimeout(() => f.current = !1, 200));
1810
- }, [u, l]), H(() => {
1811
- let e = a.registerCommand(Ee, (e) => e.ctrlKey && e.shiftKey && e.code === "Digit9" ? (e.preventDefault(), m(), !0) : !1, 4);
1810
+ }, [u, l]), U(() => {
1811
+ let e = a.registerCommand(Te, (e) => e.ctrlKey && e.shiftKey && e.code === "Digit9" ? (e.preventDefault(), m(), !0) : !1, 4);
1812
1812
  return () => {
1813
1813
  e();
1814
1814
  };
1815
- }, [a]), H(() => {
1815
+ }, [a]), U(() => {
1816
1816
  p.current = l;
1817
- }, [l]), H(() => {
1817
+ }, [l]), U(() => {
1818
1818
  let e = (e) => {
1819
1819
  e.key === "Escape" && p.current && (e.preventDefault(), e.stopPropagation(), g());
1820
1820
  };
1821
1821
  return document.addEventListener("keydown", e, { capture: !0 }), () => {
1822
1822
  document.removeEventListener("keydown", e);
1823
1823
  };
1824
- }, []), xn(r, () => ({ mutateTable: v })), /* @__PURE__ */ q("div", {
1825
- className: z["editor__toolbar-button-group"],
1824
+ }, []), bn(r, () => ({ mutateTable: v })), /* @__PURE__ */ q("div", {
1825
+ className: B["editor__toolbar-button-group"],
1826
1826
  children: /* @__PURE__ */ J("div", {
1827
- className: z["editor__toolbar-button-flyoutwrapper"],
1827
+ className: B["editor__toolbar-button-flyoutwrapper"],
1828
1828
  children: [/* @__PURE__ */ q("button", {
1829
1829
  onClick: m,
1830
1830
  title: i.table.tableTooltip,
1831
- className: e(z["editor__toolbar-button"], n && z["editor__toolbar-button--active"]),
1831
+ className: e(B["editor__toolbar-button"], n && B["editor__toolbar-button--active"]),
1832
1832
  "aria-label": i.aria.labels.table,
1833
1833
  "aria-keyshortcuts": i.aria.keyshortcuts.table,
1834
1834
  ref: d,
@@ -1840,73 +1840,73 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1840
1840
  }), o]
1841
1841
  })
1842
1842
  });
1843
- }), si = {
1843
+ }), ii = {
1844
1844
  "editor-header__container": "_editor-header__container_1y1mc_1",
1845
1845
  "editor-header__info": "_editor-header__info_1y1mc_10"
1846
- }, ci = ({ label: e, info: t = "", required: n = !1 }) => {
1847
- let r = `info_${U()}`;
1846
+ }, ai = ({ label: e, info: t = "", required: n = !1 }) => {
1847
+ let r = `info_${W()}`;
1848
1848
  return /* @__PURE__ */ J("div", {
1849
- className: si["editor-header__container"],
1849
+ className: ii["editor-header__container"],
1850
1850
  children: [e !== "" && /* @__PURE__ */ q("div", { children: /* @__PURE__ */ q(a, {
1851
1851
  htmlFor: r,
1852
1852
  required: n,
1853
1853
  children: e
1854
1854
  }) }), t !== "" && /* @__PURE__ */ q("div", {
1855
- className: si["editor-header__info"],
1855
+ className: ii["editor-header__info"],
1856
1856
  dangerouslySetInnerHTML: { __html: t }
1857
1857
  })]
1858
1858
  });
1859
- }, li = ({ currentLanguage: t = "NL", editorId: n, initialValue: r = "", placeholder: i = "", label: a = "", info: s = "", required: c = !1, notValid: l = !1, notValidatedText: u = "", maxHeightInRem: d = "20rem", maxWords: f, rteRef: p = null, onChange: m, onCatalogueLinkSearch: h, catalogueSearchResponse: g = {
1859
+ }, oi = ({ currentLanguage: t = "NL", editorId: n, initialValue: r = "", placeholder: i = "", label: a = "", info: s = "", required: c = !1, notValid: l = !1, notValidatedText: u = "", maxHeightInRem: d = "20rem", maxWords: f, rteRef: p = null, onChange: m, onCatalogueLinkSearch: h, catalogueSearchResponse: g = {
1860
1860
  state: "idle",
1861
1861
  results: []
1862
1862
  } }) => {
1863
- let { switchLanguage: _ } = Xt(), v = B(), [y] = K(() => te()), [b, x] = K(0), [S, C] = K(0), w = U(), E = {
1864
- html: { export: Gt },
1863
+ let { switchLanguage: _ } = Yt(), v = V(), [y] = K(() => Ve()), [b, x] = K(0), [C, w] = K(0), T = W(), E = {
1864
+ html: { export: Wt },
1865
1865
  namespace: `UvaRte-${n.replace(/\s+/g, "-").toLowerCase()}`,
1866
1866
  editor: y,
1867
- theme: pn,
1867
+ theme: fn,
1868
1868
  onError(e) {
1869
1869
  throw e;
1870
1870
  },
1871
1871
  nodes: [
1872
- _t,
1873
1872
  gt,
1874
- R,
1875
- bt,
1876
- jt,
1873
+ ht,
1874
+ z,
1875
+ St,
1876
+ Tt,
1877
+ At,
1877
1878
  Dt,
1878
- Ot,
1879
- Vt,
1880
- Ut
1879
+ Bt,
1880
+ Ht
1881
1881
  ],
1882
1882
  editorState: (e) => {
1883
- let t = ft(e, new DOMParser().parseFromString(r, "text/html"));
1884
- j().clear(), T(t), Ve(null);
1883
+ let t = dt(e, new DOMParser().parseFromString(r, "text/html"));
1884
+ M().clear(), S(t), Ze(null);
1885
1885
  }
1886
- }, D = (e) => e.trim().length === 0 ? 0 : e.split(" ").length, O = (e, t) => {
1886
+ }, D = (e) => e.trim().length === 0 ? 0 : e.split(" ").length, ee = (e, t) => {
1887
1887
  e.read(() => {
1888
1888
  let e = "";
1889
- x(D(j().getTextContent().replace(/\s+/g, " ").trim())), e = Kt(pt(t)), e = Wt(e), m(e);
1889
+ x(D(M().getTextContent().replace(/\s+/g, " ").trim())), e = Gt(ft(t)), e = Ut(e), m(e);
1890
1890
  });
1891
1891
  };
1892
- return H(() => {
1892
+ return U(() => {
1893
1893
  _(t.toUpperCase());
1894
- }, [t, _]), H(() => {
1894
+ }, [t, _]), U(() => {
1895
1895
  x(D(r.replace(/<br\s*\/?>|&nbsp;/gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim()));
1896
1896
  }, [r]), /* @__PURE__ */ J("div", {
1897
- className: z.editor__container,
1897
+ className: B.editor__container,
1898
1898
  children: [
1899
1899
  (a || s || f) && /* @__PURE__ */ J("div", {
1900
- className: z.editor__header,
1901
- children: [/* @__PURE__ */ q(ci, {
1900
+ className: B.editor__header,
1901
+ children: [/* @__PURE__ */ q(ai, {
1902
1902
  label: a,
1903
1903
  info: s,
1904
1904
  required: c
1905
1905
  }), f && f > 0 && /* @__PURE__ */ J("div", {
1906
- className: z["editor__header-word-count"],
1906
+ className: B["editor__header-word-count"],
1907
1907
  children: [
1908
1908
  /* @__PURE__ */ q("span", {
1909
- className: e({ [z["editor__header-word-count--alert"]]: b > f }),
1909
+ className: e({ [B["editor__header-word-count--alert"]]: b > f }),
1910
1910
  children: b
1911
1911
  }),
1912
1912
  "\xA0/\xA0",
@@ -1915,51 +1915,51 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1915
1915
  })]
1916
1916
  }),
1917
1917
  /* @__PURE__ */ q("div", {
1918
- className: e(z.editor, { [z["not-valid"]]: l }),
1918
+ className: e(B.editor, { [B["not-valid"]]: l }),
1919
1919
  children: /* @__PURE__ */ J(Un, {
1920
1920
  initialConfig: E,
1921
- children: [/* @__PURE__ */ q(Yr, {
1922
- editorScrollPosition: S,
1921
+ children: [/* @__PURE__ */ q(Xr, {
1922
+ editorScrollPosition: C,
1923
1923
  onCatalogueLinkSearch: h,
1924
1924
  catalogueSearchResponse: g
1925
1925
  }), /* @__PURE__ */ J("div", {
1926
- className: z["editor__field-wrapper"],
1926
+ className: B["editor__field-wrapper"],
1927
1927
  children: [
1928
- /* @__PURE__ */ q(xr, {
1929
- contentEditable: /* @__PURE__ */ q(Dr, {
1930
- className: z.editor__field,
1928
+ /* @__PURE__ */ q(Sr, {
1929
+ contentEditable: /* @__PURE__ */ q(Or, {
1930
+ className: B.editor__field,
1931
1931
  "aria-label": v.common.rteAriaLabel,
1932
1932
  "aria-placeholder": i,
1933
1933
  title: v.common.rteTitle,
1934
1934
  placeholder: /* @__PURE__ */ q("div", {
1935
- className: z.editor__placeholder,
1935
+ className: B.editor__placeholder,
1936
1936
  children: i
1937
1937
  }),
1938
1938
  spellCheck: !1,
1939
- id: `${w}_rteEditor`,
1939
+ id: `${T}_rteEditor`,
1940
1940
  style: {
1941
1941
  height: `${d}`,
1942
1942
  maxHeight: `${d}`
1943
1943
  },
1944
- onScroll: (e) => C(e.currentTarget.scrollTop)
1944
+ onScroll: (e) => w(e.currentTarget.scrollTop)
1945
1945
  }),
1946
1946
  placeholder: /* @__PURE__ */ q("div", {
1947
- className: z.editor__placeholder,
1947
+ className: B.editor__placeholder,
1948
1948
  children: i
1949
1949
  }),
1950
- ErrorBoundary: Pr
1950
+ ErrorBoundary: Fr
1951
1951
  }),
1952
+ /* @__PURE__ */ q(Jr, {}),
1953
+ /* @__PURE__ */ q(et, {}),
1952
1954
  /* @__PURE__ */ q(qr, {}),
1953
- /* @__PURE__ */ q(tt, {}),
1954
- /* @__PURE__ */ q(Kr, {}),
1955
- /* @__PURE__ */ q(Lr, {}),
1956
- /* @__PURE__ */ q(Rr, { validateUrl: Rt }),
1957
- /* @__PURE__ */ q(Ft, { matchers: zt }),
1958
- /* @__PURE__ */ q(zr, {}),
1959
- /* @__PURE__ */ q(Ir, { onChange: O }),
1960
- /* @__PURE__ */ q(fn, {}),
1961
- /* @__PURE__ */ q(Ht, {}),
1962
- p && /* @__PURE__ */ q(Jr, { editorRef: p })
1955
+ /* @__PURE__ */ q(Rr, {}),
1956
+ /* @__PURE__ */ q(zr, { validateUrl: Lt }),
1957
+ /* @__PURE__ */ q(Pt, { matchers: Rt }),
1958
+ /* @__PURE__ */ q(Br, {}),
1959
+ /* @__PURE__ */ q(Lr, { onChange: ee }),
1960
+ /* @__PURE__ */ q(dn, {}),
1961
+ /* @__PURE__ */ q(Vt, {}),
1962
+ p && /* @__PURE__ */ q(Yr, { editorRef: p })
1963
1963
  ]
1964
1964
  })]
1965
1965
  })
@@ -1970,10 +1970,10 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1970
1970
  })
1971
1971
  ]
1972
1972
  });
1973
- }, ui = ({ currentLanguage: e = "NL", editorId: t, initialValue: n = "", placeholder: r = "", label: i = "", info: a = "", required: o = !1, notValid: s = !1, notValidatedText: c = "", maxWords: l, rteRef: u, onChange: d, onCatalogueLinkSearch: f, catalogueSearchResponse: p = {
1973
+ }, si = ({ currentLanguage: e = "NL", editorId: t, initialValue: n = "", placeholder: r = "", label: i = "", info: a = "", required: o = !1, notValid: s = !1, notValidatedText: c = "", maxWords: l, rteRef: u, onChange: d, onCatalogueLinkSearch: f, catalogueSearchResponse: p = {
1974
1974
  state: "idle",
1975
1975
  results: []
1976
- } }) => /* @__PURE__ */ q(Yt, { children: /* @__PURE__ */ q(li, {
1976
+ } }) => /* @__PURE__ */ q(Jt, { children: /* @__PURE__ */ q(oi, {
1977
1977
  currentLanguage: e.toUpperCase(),
1978
1978
  editorId: t,
1979
1979
  initialValue: n,
@@ -1990,6 +1990,6 @@ var Yr = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchRe
1990
1990
  catalogueSearchResponse: p
1991
1991
  }) });
1992
1992
  //#endregion
1993
- export { ai as a, Qr as c, Ln as d, kn as f, En as h, oi as i, Yr as l, Dn as m, ui as n, ti as o, On as p, ci as r, ei as s, li as t, zn as u };
1993
+ export { ni as a, Zr as c, Ln as d, kn as f, En as h, ri as i, Xr as l, Dn as m, si as n, ei as o, On as p, ai as r, $r as s, oi as t, zn as u };
1994
1994
 
1995
- //# sourceMappingURL=components-MNvdQLv1.js.map
1995
+ //# sourceMappingURL=components-DAwjkky5.js.map