@uva-glass/component-library 3.0.8 → 3.0.9

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 (176) hide show
  1. package/dist/Lexical.prod-BqkvGy5o.js +4879 -0
  2. package/dist/Lexical.prod-BqkvGy5o.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-D9CvlqSO.js → LexicalClipboard.prod-BSR9LEVL.js} +39 -39
  4. package/dist/{LexicalClipboard.prod-D9CvlqSO.js.map → LexicalClipboard.prod-BSR9LEVL.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-__08uNAw.js → LexicalLink.prod-D-CG9yYv.js} +44 -44
  6. package/dist/LexicalLink.prod-D-CG9yYv.js.map +1 -0
  7. package/dist/LexicalList.prod-CDTuG8cz.js +600 -0
  8. package/dist/LexicalList.prod-CDTuG8cz.js.map +1 -0
  9. package/dist/LexicalSelection.prod-BxYY0fGG.js +86 -0
  10. package/dist/LexicalSelection.prod-BxYY0fGG.js.map +1 -0
  11. package/dist/LexicalTable.prod-Ckge-lZb.js +1515 -0
  12. package/dist/LexicalTable.prod-Ckge-lZb.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-BYrJ1Iih.js → LexicalUtils.prod-CIQUUsvA.js} +44 -44
  14. package/dist/LexicalUtils.prod-CIQUUsvA.js.map +1 -0
  15. package/dist/{TablePlugin-BHY7_5Z8.js → TablePlugin-BBgBJKsb.js} +41 -41
  16. package/dist/{TablePlugin-BHY7_5Z8.js.map → TablePlugin-BBgBJKsb.js.map} +1 -1
  17. package/dist/assets/VarIndicator.css +1 -0
  18. package/dist/components/Accordion/Accordion.stories.d.ts +2 -2
  19. package/dist/components/Accordion/Accordion.test.js +3 -3
  20. package/dist/components/AccordionCard/AccordionCard.stories.d.ts +1 -1
  21. package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
  22. package/dist/components/ActionList/ActionList.stories.d.ts +1 -1
  23. package/dist/components/ActionList/ActionList.test.js +3 -3
  24. package/dist/components/AppStatusBar/AppStatusBar.stories.d.ts +1 -1
  25. package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
  26. package/dist/components/Attention/Attention.stories.d.ts +1 -1
  27. package/dist/components/Attention/Attention.test.js +2 -2
  28. package/dist/components/Backdrop/Backdrop.stories.d.ts +1 -1
  29. package/dist/components/Backdrop/Backdrop.test.js +2 -2
  30. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +1 -1
  31. package/dist/components/Buttons/Button.stories.d.ts +2 -2
  32. package/dist/components/Buttons/Button.stories.js +1 -1
  33. package/dist/components/Buttons/Button.test.js +2 -2
  34. package/dist/components/Buttons/LinkButton.stories.d.ts +2 -2
  35. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  36. package/dist/components/Buttons/LinkButton.test.js +2 -2
  37. package/dist/components/Buttons/MenuButton.stories.d.ts +3 -3
  38. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  39. package/dist/components/Buttons/MenuButton.test.js +2 -2
  40. package/dist/components/Card/Card.stories.d.ts +3 -3
  41. package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -2
  42. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  43. package/dist/components/CheckboxButton/CheckboxButton.stories.d.ts +1 -1
  44. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  45. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.d.ts +1 -1
  46. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  47. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  48. package/dist/components/CheckboxTree/CheckboxTree.stories.d.ts +1 -1
  49. package/dist/components/CheckboxTree/CheckboxTree.stories.js +109 -87
  50. package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
  51. package/dist/components/Chip/Chip.stories.d.ts +2 -2
  52. package/dist/components/Chip/Chip.stories.js +1 -1
  53. package/dist/components/Drawer/Drawer.stories.d.ts +2 -2
  54. package/dist/components/Drawer/Drawer.stories.js +1 -1
  55. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.d.ts +1 -1
  56. package/dist/components/FeedbackBox/FeedbackBox.stories.d.ts +1 -1
  57. package/dist/components/FieldHint/FieldHint.stories.d.ts +2 -2
  58. package/dist/components/Fieldset/Fieldset.stories.d.ts +2 -2
  59. package/dist/components/FormField/FormField.stories.d.ts +1 -1
  60. package/dist/components/FormInput/FormInput.js +1 -1
  61. package/dist/components/FormInput/FormInput.stories.d.ts +2 -2
  62. package/dist/components/FormInput/FormInput.stories.js +1 -1
  63. package/dist/components/GridRow/GridRow.stories.d.ts +2 -2
  64. package/dist/components/HorizontalList/HorizontalList.stories.d.ts +2 -2
  65. package/dist/components/Icon/Icon.stories.d.ts +1 -1
  66. package/dist/components/Icon/icons/index.d.ts +30 -0
  67. package/dist/components/Icon/icons/index.js +160 -135
  68. package/dist/components/Icon/icons/index.js.map +1 -1
  69. package/dist/components/IconButton/IconButton.stories.d.ts +1 -1
  70. package/dist/components/IconButton/IconButton.stories.js +1 -1
  71. package/dist/components/InfoMessage/InfoMessage.stories.d.ts +1 -1
  72. package/dist/components/Input/Input.stories.d.ts +4 -4
  73. package/dist/components/InputField/InputField.stories.d.ts +3 -3
  74. package/dist/components/InputField/InputField.stories.js +2 -2
  75. package/dist/components/Label/Label.stories.d.ts +2 -2
  76. package/dist/components/Label/Label.test.js +2 -2
  77. package/dist/components/MenuLink/MenuLink.stories.d.ts +2 -2
  78. package/dist/components/MetaDataList/MetaDataList.stories.d.ts +1 -1
  79. package/dist/components/ModalDialog/ModalDialog.stories.d.ts +3 -3
  80. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  81. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  82. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +3 -3
  83. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  84. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  85. package/dist/components/MultiSelect/index.js +1 -1
  86. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.d.ts +1 -1
  87. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +4 -4
  88. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  89. package/dist/components/OverlayStepBar/OverlayStepBar.stories.d.ts +1 -1
  90. package/dist/components/PageOverlay/PageOverlay.stories.d.ts +3 -3
  91. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  92. package/dist/components/PeriodSelector/PeriodSelector.stories.d.ts +1 -1
  93. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  94. package/dist/components/Periods/Periods.stories.d.ts +1 -1
  95. package/dist/components/ProgrammeCard/ProgrammeCard.stories.d.ts +3 -3
  96. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
  97. package/dist/components/RadioButton/RadioButton.stories.d.ts +1 -1
  98. package/dist/components/Repeater/Repeater.stories.d.ts +1 -1
  99. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  100. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +5 -5
  101. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  102. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  103. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  104. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +45 -45
  105. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  106. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +27 -27
  107. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +10 -10
  108. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  109. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  110. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +19 -19
  111. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  112. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +9 -9
  113. package/dist/components/RteEditor/Plugins/index.js +1 -1
  114. package/dist/components/RteEditor/RteEditor.js +259 -259
  115. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  116. package/dist/components/RteEditor/RteEditor.stories.d.ts +1 -1
  117. package/dist/components/RteEditor/helpers.js +12 -12
  118. package/dist/components/SectionNotification/SectionNotification.stories.d.ts +1 -1
  119. package/dist/components/SelectListbox/SelectListBox.stories.d.ts +2 -2
  120. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  121. package/dist/components/Sortable/Sortable.stories.d.ts +3 -3
  122. package/dist/components/Sortable/Sortable.stories.js +7 -7
  123. package/dist/components/Spinner/Spinner.stories.d.ts +1 -1
  124. package/dist/components/StatusPill/StatusPill.stories.d.ts +1 -1
  125. package/dist/components/ToggleSwitch/ToggleSwitch.stories.d.ts +1 -1
  126. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +5 -5
  127. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
  128. package/dist/components/VarIndicator/VarIndicator.d.ts +9 -0
  129. package/dist/components/VarIndicator/VarIndicator.js +32 -0
  130. package/dist/components/VarIndicator/VarIndicator.js.map +1 -0
  131. package/dist/components/VarIndicator/VarIndicator.stories.d.ts +5 -0
  132. package/dist/components/VarIndicator/VarIndicator.stories.js +30 -0
  133. package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -0
  134. package/dist/components/VarIndicator/VarIndicator.test.d.ts +0 -0
  135. package/dist/components/VarIndicator/VarIndicator.test.js +58 -0
  136. package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -0
  137. package/dist/components/VarIndicator/index.d.ts +1 -0
  138. package/dist/components/VarIndicator/index.js +5 -0
  139. package/dist/components/VarIndicator/index.js.map +1 -0
  140. package/dist/components/index.d.ts +1 -0
  141. package/dist/components/index.js +32 -30
  142. package/dist/components/index.js.map +1 -1
  143. package/dist/{helpers-Cgw7V6LR.js → helpers-CzeCSkV-.js} +42 -42
  144. package/dist/{helpers-Cgw7V6LR.js.map → helpers-CzeCSkV-.js.map} +1 -1
  145. package/dist/index-BldK5xU9.js +9513 -0
  146. package/dist/index-BldK5xU9.js.map +1 -0
  147. package/dist/{index-OJvb7CGo.js → index-DMVXQIB9.js} +2 -2
  148. package/dist/{index-OJvb7CGo.js.map → index-DMVXQIB9.js.map} +1 -1
  149. package/dist/index-DpyOH4wL.js +14735 -0
  150. package/dist/index-DpyOH4wL.js.map +1 -0
  151. package/dist/{index-BqHyOZsF.js → index-Z7qwJmRM.js} +2 -2
  152. package/dist/{index-BqHyOZsF.js.map → index-Z7qwJmRM.js.map} +1 -1
  153. package/dist/index.js +32 -30
  154. package/dist/index.js.map +1 -1
  155. package/dist/{react.esm-BZoQ2TxA.js → react.esm-BOUd0cvD.js} +3 -3
  156. package/dist/{react.esm-BZoQ2TxA.js.map → react.esm-BOUd0cvD.js.map} +1 -1
  157. package/dist/setupTests.js +1 -1
  158. package/dist/storybook__react.d.js +8528 -537
  159. package/dist/storybook__react.d.js.map +1 -1
  160. package/dist/{test-utils-CTqdUiUm.js → test-utils-uaSbIYda.js} +2 -2
  161. package/dist/{test-utils-CTqdUiUm.js.map → test-utils-uaSbIYda.js.map} +1 -1
  162. package/package.json +24 -24
  163. package/dist/Lexical.prod-D0woeN3R.js +0 -4770
  164. package/dist/Lexical.prod-D0woeN3R.js.map +0 -1
  165. package/dist/LexicalLink.prod-__08uNAw.js.map +0 -1
  166. package/dist/LexicalList.prod-BgI8r9BS.js +0 -579
  167. package/dist/LexicalList.prod-BgI8r9BS.js.map +0 -1
  168. package/dist/LexicalSelection.prod-B-SXpOS9.js +0 -86
  169. package/dist/LexicalSelection.prod-B-SXpOS9.js.map +0 -1
  170. package/dist/LexicalTable.prod-DJWDvnB3.js +0 -1494
  171. package/dist/LexicalTable.prod-DJWDvnB3.js.map +0 -1
  172. package/dist/LexicalUtils.prod-BYrJ1Iih.js.map +0 -1
  173. package/dist/index-2mUSc_Ki.js +0 -8
  174. package/dist/index-2mUSc_Ki.js.map +0 -1
  175. package/dist/index-CcK2jjMp.js +0 -23343
  176. package/dist/index-CcK2jjMp.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { jsx as h, jsxs as A, Fragment as Pe } from "react/jsx-runtime";
2
- import { o as We, l as Ve, u as P } from "../../LexicalComposerContext.prod--Rm7-Z9o.js";
3
- import { au as Te, a3 as O, f as Re, h as p, Q as q, Y as J, d as Xe, W as I, G as g, A as Ye, e as m, av as Ge, a2 as Ie, a as Ze, J as Me, aw as Qe, w as et, at as z, aq as tt, ax as nt, ay as rt, az as ot, j as ne, aA as it, aB as at, L as st, b as lt, q as ut, S as ct, aC as dt, aD as fe, r as me, T as ft, s as re, v as mt, N as Fe, aE as pe, l as pt, _ as gt, y as ht, a9 as ge, m as Ct, aF as yt, aG as vt, aH as wt, ap as Et, P as bt, x as St, aI as _t, z as xt, o as kt, n as Nt, ad as Lt, g as he, aJ as $t, R as Dt, af as Y, ae as G, aK as Pt, aL as Tt, ah as Rt, ag as It } from "../../Lexical.prod-D0woeN3R.js";
1
+ import { jsx as h, jsxs as F, Fragment as Pe } from "react/jsx-runtime";
2
+ import { o as qe, l as Ve, u as P } from "../../LexicalComposerContext.prod--Rm7-Z9o.js";
3
+ import { aw as Te, a7 as A, T as Re, N as p, a1 as J, d as W, w as Xe, Z as M, a as g, B as Ge, l as m, ax as Ye, a6 as Me, c as Ze, n as Ie, ay as Qe, $ as et, av as K, as as tt, az as nt, aA as rt, aB as ot, r as ne, aC as it, aD as st, W as at, b as lt, h as ut, O as ct, aE as dt, aF as fe, g as me, M as ft, v as re, A as mt, a0 as Oe, aG as pe, q as pt, p as gt, P as ht, ac as ge, o as Ct, aH as yt, aI as vt, aJ as wt, ar as Et, K as bt, S as St, aK as _t, z as kt, x as xt, y as Nt, k as Lt, E as he, aL as $t, t as Dt, ah as G, ag as Y, aM as Pt, aN as Tt, aj as Rt, ai as Mt } from "../../Lexical.prod-BqkvGy5o.js";
4
4
  import * as oe from "react";
5
- import { useMemo as W, useLayoutEffect as U, useEffect as x, useState as M, useRef as ze, Suspense as Mt, forwardRef as Ae, useCallback as Ft } from "react";
6
- import { j, x as K, p as zt, m as de } from "../../LexicalUtils.prod-BYrJ1Iih.js";
7
- import { flushSync as At, createPortal as Kt } from "react-dom";
8
- import { N as Ce, O as ye, h as Ot, m as Bt } from "../../LexicalClipboard.prod-D9CvlqSO.js";
9
- import { H as ve, q as we } from "../../LexicalSelection.prod-B-SXpOS9.js";
10
- import { V as Ke, I as Oe, Z as Ut } from "../../LexicalList.prod-BgI8r9BS.js";
11
- import { f as Be, N as Ee, w as ie, m as jt, U as Ht } from "../../LexicalLink.prod-__08uNAw.js";
12
- import { I as qt, t as Jt, e as Wt, Z as Vt, h as Ue, S as Xt, U as Yt } from "../../LexicalTable.prod-DJWDvnB3.js";
13
- import { a as Gt, F as Zt, M as Qt } from "../../helpers-Cgw7V6LR.js";
5
+ import { useMemo as q, useLayoutEffect as B, useEffect as k, useState as I, useRef as Ke, Suspense as It, forwardRef as Fe, useCallback as Ot } from "react";
6
+ import { j, S as z, h as Kt, v as de } from "../../LexicalUtils.prod-CIQUUsvA.js";
7
+ import { flushSync as Ft, createPortal as zt } from "react-dom";
8
+ import { N as Ce, O as ye, h as At, m as Ut } from "../../LexicalClipboard.prod-BSR9LEVL.js";
9
+ import { U as ve, X as we } from "../../LexicalSelection.prod-BxYY0fGG.js";
10
+ import { q as ze, B as Ae, s as Bt } from "../../LexicalList.prod-CDTuG8cz.js";
11
+ import { f as Ue, N as Ee, w as ie, m as jt, U as Ht } from "../../LexicalLink.prod-D-CG9yYv.js";
12
+ import { U as Jt, o as Wt, n as qt, t as Vt, d as Be, w as Xt, J as Gt } from "../../LexicalTable.prod-Ckge-lZb.js";
13
+ import { a as Yt, F as Zt, M as Qt } from "../../helpers-CzeCSkV-.js";
14
14
  import { c as en } from "../../clsx-OuTLNxxd.js";
15
15
  import { exportMap as tn, isStartingWithHtmlTag as nn, mergeBoldStrongTags as rn } from "./helpers.js";
16
16
  import { s as R } from "../../RteEditor.module-oFMKEW6f.js";
17
17
  import { ToolBarPlugin as on } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
18
- import { useTranslation as an } from "./hooks/useTranslation.js";
19
- import "../../TablePlugin-BHY7_5Z8.js";
18
+ import { useTranslation as sn } from "./hooks/useTranslation.js";
19
+ import "../../TablePlugin-BBgBJKsb.js";
20
20
  import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "./hooks/components/Flyout.js";
22
22
  import "../Buttons/Button.js";
@@ -27,7 +27,7 @@ import "@react-aria/dialog";
27
27
  import "@react-aria/focus";
28
28
  import "@react-aria/overlays";
29
29
  import "../OverlayCloseButton/OverlayCloseButton.js";
30
- import { FeedbackBox as sn } from "../FeedbackBox/FeedbackBox.js";
30
+ import { FeedbackBox as an } from "../FeedbackBox/FeedbackBox.js";
31
31
  import "../GridRow/GridRow.js";
32
32
  import "../IconButton/IconButton.js";
33
33
  import "../Input/Input.js";
@@ -41,14 +41,14 @@ import { UvaTheme as ln } from "./UvaTheme/UvaTheme.js";
41
41
  import { EditorHeader as un } from "./EditorHeader/EditorHeader.js";
42
42
  import { LanguageProvider as cn, useLanguage as dn } from "./Providers/LanguageProvider.js";
43
43
  import { PasteHandlerPlugin as fn } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
44
- const je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mn = je ? U : x, Z = { tag: "history-merge" };
44
+ const je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mn = je ? B : k, Z = { tag: "history-merge" };
45
45
  function pn({ initialConfig: t, children: e }) {
46
- const n = W(() => {
47
- const { theme: r, namespace: i, nodes: o, onError: a, editorState: s, html: l } = t, u = We(null, r), c = Te({ editable: t.editable, html: l, namespace: i, nodes: o, onError: (d) => a(d, c), theme: r });
46
+ const n = q(() => {
47
+ const { theme: r, namespace: i, nodes: o, onError: s, editorState: a, html: l } = t, u = qe(null, r), c = Te({ editable: t.editable, html: l, namespace: i, nodes: o, onError: (d) => s(d, c), theme: r });
48
48
  return function(d, f) {
49
49
  if (f !== null) {
50
50
  if (f === void 0) d.update(() => {
51
- const C = O();
51
+ const C = A();
52
52
  if (C.isEmpty()) {
53
53
  const y = Re();
54
54
  C.append(y);
@@ -67,34 +67,34 @@ function pn({ initialConfig: t, children: e }) {
67
67
  break;
68
68
  case "function":
69
69
  d.update(() => {
70
- O().isEmpty() && f(d);
70
+ A().isEmpty() && f(d);
71
71
  }, Z);
72
72
  }
73
73
  }
74
- }(c, s), [c, u];
74
+ }(c, a), [c, u];
75
75
  }, []);
76
76
  return mn(() => {
77
77
  const r = t.editable, [i] = n;
78
78
  i.setEditable(r === void 0 || r);
79
79
  }, []), h(Ve.Provider, { value: n, children: e });
80
80
  }
81
- const gn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : x;
81
+ const gn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? B : k;
82
82
  function hn(t) {
83
83
  return { initialValueFn: () => t.isEditable(), subscribe: (e) => t.registerEditableListener(e) };
84
84
  }
85
85
  function Cn() {
86
86
  return function(t) {
87
- const [e] = P(), n = W(() => t(e), [e, t]), [r, i] = M(() => n.initialValueFn()), o = ze(r);
87
+ const [e] = P(), n = q(() => t(e), [e, t]), [r, i] = I(() => n.initialValueFn()), o = Ke(r);
88
88
  return gn(() => {
89
- const { initialValueFn: a, subscribe: s } = n, l = a();
90
- return o.current !== l && (o.current = l, i(l)), s((u) => {
89
+ const { initialValueFn: s, subscribe: a } = n, l = s();
90
+ return o.current !== l && (o.current = l, i(l)), a((u) => {
91
91
  o.current = u, i(u);
92
92
  });
93
93
  }, [n, t]), r;
94
94
  }(hn);
95
95
  }
96
96
  function yn() {
97
- return O().getTextContent();
97
+ return A().getTextContent();
98
98
  }
99
99
  function vn(t, e = !0) {
100
100
  if (t) return !1;
@@ -103,17 +103,17 @@ function vn(t, e = !0) {
103
103
  }
104
104
  function wn(t) {
105
105
  if (!vn(t, !1)) return !1;
106
- const e = O().getChildren(), n = e.length;
106
+ const e = A().getChildren(), n = e.length;
107
107
  if (n > 1) return !1;
108
108
  for (let r = 0; r < n; r++) {
109
109
  const i = e[r];
110
- if (q(i)) return !1;
111
- if (J(i)) {
110
+ if (J(i)) return !1;
111
+ if (W(i)) {
112
112
  if (!Xe(i) || i.__indent !== 0) return !1;
113
- const o = i.getChildren(), a = o.length;
114
- for (let s = 0; s < a; s++) {
113
+ const o = i.getChildren(), s = o.length;
114
+ for (let a = 0; a < s; a++) {
115
115
  const l = o[r];
116
- if (!I(l)) return !1;
116
+ if (!M(l)) return !1;
117
117
  }
118
118
  }
119
119
  }
@@ -138,24 +138,24 @@ function bn(t) {
138
138
  if (document.activeElement !== i) return;
139
139
  const o = r.data;
140
140
  if (typeof o == "string") {
141
- let a;
141
+ let s;
142
142
  try {
143
- a = JSON.parse(o);
143
+ s = JSON.parse(o);
144
144
  } catch {
145
145
  return;
146
146
  }
147
- if (a && a.protocol === "nuanria_messaging" && a.type === "request") {
148
- const s = a.payload;
149
- if (s && s.functionId === "makeChanges") {
150
- const l = s.args;
147
+ if (s && s.protocol === "nuanria_messaging" && s.type === "request") {
148
+ const a = s.payload;
149
+ if (a && a.functionId === "makeChanges") {
150
+ const l = a.args;
151
151
  if (l) {
152
152
  const [u, c, d, f, C, y] = l;
153
153
  t.update(() => {
154
154
  const E = p();
155
155
  if (g(E)) {
156
- const k = E.anchor;
157
- let v = k.getNode(), w = 0, S = 0;
158
- if (I(v) && u >= 0 && c >= 0 && (w = u, S = u + c, E.setTextNodeRange(v, w, v, S)), w === S && d === "" || (E.insertRawText(d), v = k.getNode()), I(v)) {
156
+ const x = E.anchor;
157
+ let v = x.getNode(), w = 0, S = 0;
158
+ if (M(v) && u >= 0 && c >= 0 && (w = u, S = u + c, E.setTextNodeRange(v, w, v, S)), w === S && d === "" || (E.insertRawText(d), v = x.getNode()), M(v)) {
159
159
  w = f, S = f + C;
160
160
  const N = v.getTextContentSize();
161
161
  w = w > N ? N : w, S = S > N ? N : S, E.setTextNodeRange(v, w, v, S);
@@ -183,48 +183,48 @@ function be(t, e) {
183
183
  }
184
184
  return null;
185
185
  }
186
- const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Sn = H && "documentMode" in document ? document.documentMode : null, _n = !(!H || !("InputEvent" in window) || Sn) && "getTargetRanges" in new window.InputEvent("input"), xn = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Se = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, kn = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), Nn = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !kn, _e = Ze();
186
+ const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Sn = H && "documentMode" in document ? document.documentMode : null, _n = !(!H || !("InputEvent" in window) || Sn) && "getTargetRanges" in new window.InputEvent("input"), kn = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Se = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, xn = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), Nn = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !xn, _e = Ze();
187
187
  function Q(t) {
188
188
  let e = null;
189
- if (K(t, DragEvent) ? e = t.dataTransfer : K(t, ClipboardEvent) && (e = t.clipboardData), e === null) return [!1, [], !1];
189
+ if (z(t, DragEvent) ? e = t.dataTransfer : z(t, ClipboardEvent) && (e = t.clipboardData), e === null) return [!1, [], !1];
190
190
  const n = e.types, r = n.includes("Files"), i = n.includes("text/html") || n.includes("text/plain");
191
191
  return [r, Array.from(e.files), i];
192
192
  }
193
- function xe(t) {
193
+ function ke(t) {
194
194
  const e = p();
195
195
  if (!g(e)) return !1;
196
196
  const n = /* @__PURE__ */ new Set(), r = e.getNodes();
197
197
  for (let i = 0; i < r.length; i++) {
198
- const o = r[i], a = o.getKey();
199
- if (n.has(a)) continue;
200
- const s = de(o, (u) => J(u) && !u.isInline());
201
- if (s === null) continue;
202
- const l = s.getKey();
203
- s.canIndent() && !n.has(l) && (n.add(l), t(s));
198
+ const o = r[i], s = o.getKey();
199
+ if (n.has(s)) continue;
200
+ const a = de(o, (u) => W(u) && !u.isInline());
201
+ if (a === null) continue;
202
+ const l = a.getKey();
203
+ a.canIndent() && !n.has(l) && (n.add(l), t(a));
204
204
  }
205
205
  return n.size > 0;
206
206
  }
207
207
  function ee(t) {
208
208
  const e = ne(t);
209
- return q(e);
209
+ return J(e);
210
210
  }
211
- function ae(t) {
211
+ function se(t) {
212
212
  for (const e of ["lowercase", "uppercase", "capitalize"]) t.hasFormat(e) && t.toggleFormat(e);
213
213
  }
214
214
  function Ln(t) {
215
215
  return j(t.registerCommand(Lt, (e) => {
216
216
  const n = p();
217
- return !!z(n) && (n.clear(), !0);
217
+ return !!K(n) && (n.clear(), !0);
218
218
  }, 0), t.registerCommand(re, (e) => {
219
219
  const n = p();
220
220
  return !!g(n) && (n.deleteCharacter(e), !0);
221
221
  }, m), t.registerCommand(Nt, (e) => {
222
222
  const n = p();
223
223
  return !!g(n) && (n.deleteWord(e), !0);
224
- }, m), t.registerCommand(kt, (e) => {
224
+ }, m), t.registerCommand(xt, (e) => {
225
225
  const n = p();
226
226
  return !!g(n) && (n.deleteLine(e), !0);
227
- }, m), t.registerCommand(xt, (e) => {
227
+ }, m), t.registerCommand(kt, (e) => {
228
228
  const n = p();
229
229
  if (typeof e == "string") n !== null && n.insertText(e);
230
230
  else {
@@ -245,10 +245,10 @@ function Ln(t) {
245
245
  return !!g(n) && (n.formatText(e), !0);
246
246
  }, m), t.registerCommand(bt, (e) => {
247
247
  const n = p();
248
- if (!g(n) && !z(n)) return !1;
248
+ if (!g(n) && !K(n)) return !1;
249
249
  const r = n.getNodes();
250
250
  for (const i of r) {
251
- const o = de(i, (a) => J(a) && !a.isInline());
251
+ const o = de(i, (s) => W(s) && !s.isInline());
252
252
  o !== null && o.setFormat(e);
253
253
  }
254
254
  return !0;
@@ -258,39 +258,39 @@ function Ln(t) {
258
258
  }, m), t.registerCommand(me, () => {
259
259
  const e = p();
260
260
  return !!g(e) && (e.insertParagraph(), !0);
261
- }, m), t.registerCommand(vt, () => (wt([Et()]), !0), m), t.registerCommand(yt, () => xe((e) => {
261
+ }, m), t.registerCommand(vt, () => (wt([Et()]), !0), m), t.registerCommand(yt, () => ke((e) => {
262
262
  const n = e.getIndent();
263
263
  e.setIndent(n + 1);
264
- }), m), t.registerCommand(pe, () => xe((e) => {
264
+ }), m), t.registerCommand(pe, () => ke((e) => {
265
265
  const n = e.getIndent();
266
266
  n > 0 && e.setIndent(n - 1);
267
267
  }), m), t.registerCommand(Ct, (e) => {
268
268
  const n = p();
269
- if (z(n) && !ee(e.target)) {
269
+ if (K(n) && !ee(e.target)) {
270
270
  const r = n.getNodes();
271
271
  if (r.length > 0) return r[0].selectPrevious(), !0;
272
272
  } else if (g(n)) {
273
273
  const r = ge(n.focus, !0);
274
- if (!e.shiftKey && q(r) && !r.isIsolated() && !r.isInline()) return r.selectPrevious(), e.preventDefault(), !0;
274
+ if (!e.shiftKey && J(r) && !r.isIsolated() && !r.isInline()) return r.selectPrevious(), e.preventDefault(), !0;
275
275
  }
276
276
  return !1;
277
277
  }, m), t.registerCommand(ht, (e) => {
278
278
  const n = p();
279
- if (z(n)) {
279
+ if (K(n)) {
280
280
  const r = n.getNodes();
281
281
  if (r.length > 0) return r[0].selectNext(0, 0), !0;
282
282
  } else if (g(n)) {
283
283
  if (function(i) {
284
284
  const o = i.focus;
285
- return o.key === "root" && o.offset === O().getChildrenSize();
285
+ return o.key === "root" && o.offset === A().getChildrenSize();
286
286
  }(n)) return e.preventDefault(), !0;
287
287
  const r = ge(n.focus, !1);
288
- if (!e.shiftKey && q(r) && !r.isIsolated() && !r.isInline()) return r.selectNext(), e.preventDefault(), !0;
288
+ if (!e.shiftKey && J(r) && !r.isIsolated() && !r.isInline()) return r.selectNext(), e.preventDefault(), !0;
289
289
  }
290
290
  return !1;
291
291
  }, m), t.registerCommand(gt, (e) => {
292
292
  const n = p();
293
- if (z(n)) {
293
+ if (K(n)) {
294
294
  const r = n.getNodes();
295
295
  if (r.length > 0) return e.preventDefault(), r[0].selectPrevious(), !0;
296
296
  }
@@ -302,7 +302,7 @@ function Ln(t) {
302
302
  return !1;
303
303
  }, m), t.registerCommand(pt, (e) => {
304
304
  const n = p();
305
- if (z(n) && !ee(e.target)) {
305
+ if (K(n) && !ee(e.target)) {
306
306
  const i = n.getNodes();
307
307
  if (i.length > 0) return e.preventDefault(), i[0].selectNext(0, 0), !0;
308
308
  }
@@ -314,7 +314,7 @@ function Ln(t) {
314
314
  const n = p();
315
315
  if (!g(n)) return !1;
316
316
  const { anchor: r } = n, i = r.getNode();
317
- return n.isCollapsed() && r.offset === 0 && !Fe(i) && zt(i).getIndent() > 0 ? (e.preventDefault(), t.dispatchCommand(pe, void 0)) : (!Se || navigator.language !== "ko-KR") && (e.preventDefault(), t.dispatchCommand(re, !0));
317
+ return n.isCollapsed() && r.offset === 0 && !Oe(i) && Kt(i).getIndent() > 0 ? (e.preventDefault(), t.dispatchCommand(pe, void 0)) : (!Se || navigator.language !== "ko-KR") && (e.preventDefault(), t.dispatchCommand(re, !0));
318
318
  }, m), t.registerCommand(ft, (e) => {
319
319
  if (ee(e.target)) return !1;
320
320
  const n = p();
@@ -322,25 +322,25 @@ function Ln(t) {
322
322
  }, m), t.registerCommand(dt, (e) => {
323
323
  const n = p();
324
324
  if (!g(n)) return !1;
325
- if (ae(n), e !== null) {
326
- if ((Se || xn || Nn) && _n) return !1;
325
+ if (se(n), e !== null) {
326
+ if ((Se || kn || Nn) && _n) return !1;
327
327
  if (e.preventDefault(), e.shiftKey) return t.dispatchCommand(fe, !1);
328
328
  }
329
329
  return t.dispatchCommand(me, void 0);
330
330
  }, m), t.registerCommand(ct, () => {
331
331
  const e = p();
332
332
  return !!g(e) && (t.blur(), !0);
333
- }, m), t.registerCommand(at, (e) => {
333
+ }, m), t.registerCommand(st, (e) => {
334
334
  const [, n] = Q(e);
335
335
  if (n.length > 0) {
336
336
  const i = be(e.clientX, e.clientY);
337
337
  if (i !== null) {
338
- const { offset: o, node: a } = i, s = ne(a);
339
- if (s !== null) {
340
- const l = st();
341
- if (I(s)) l.anchor.set(s.getKey(), o, "text"), l.focus.set(s.getKey(), o, "text");
338
+ const { offset: o, node: s } = i, a = ne(s);
339
+ if (a !== null) {
340
+ const l = at();
341
+ if (M(a)) l.anchor.set(a.getKey(), o, "text"), l.focus.set(a.getKey(), o, "text");
342
342
  else {
343
- const c = s.getParentOrThrow().getKey(), d = s.getIndexWithinParent() + 1;
343
+ const c = a.getParentOrThrow().getKey(), d = a.getIndexWithinParent() + 1;
344
344
  l.anchor.set(c, d, "element"), l.focus.set(c, d, "element");
345
345
  }
346
346
  const u = lt(l);
@@ -361,114 +361,114 @@ function Ln(t) {
361
361
  const i = be(e.clientX, e.clientY);
362
362
  if (i !== null) {
363
363
  const o = ne(i.node);
364
- q(o) && e.preventDefault();
364
+ J(o) && e.preventDefault();
365
365
  }
366
366
  return !0;
367
- }, m), t.registerCommand(nt, () => (rt(), !0), m), t.registerCommand(tt, (e) => (ye(t, K(e, ClipboardEvent) ? e : null), !0), m), t.registerCommand(et, (e) => (async function(n, r) {
368
- await ye(r, K(n, ClipboardEvent) ? n : null), r.update(() => {
367
+ }, m), t.registerCommand(nt, () => (rt(), !0), m), t.registerCommand(tt, (e) => (ye(t, z(e, ClipboardEvent) ? e : null), !0), m), t.registerCommand(et, (e) => (async function(n, r) {
368
+ await ye(r, z(n, ClipboardEvent) ? n : null), r.update(() => {
369
369
  const i = p();
370
- g(i) ? i.removeText() : z(i) && i.getNodes().forEach((o) => o.remove());
370
+ g(i) ? i.removeText() : K(i) && i.getNodes().forEach((o) => o.remove());
371
371
  });
372
- }(e, t), !0), m), t.registerCommand(Ie, (e) => {
372
+ }(e, t), !0), m), t.registerCommand(Me, (e) => {
373
373
  const [, n, r] = Q(e);
374
- return n.length > 0 && !r ? (t.dispatchCommand(_e, n), !0) : Me(e.target) && Qe(e.target) ? !1 : p() !== null && (function(i, o) {
374
+ return n.length > 0 && !r ? (t.dispatchCommand(_e, n), !0) : Ie(e.target) && Qe(e.target) ? !1 : p() !== null && (function(i, o) {
375
375
  i.preventDefault(), o.update(() => {
376
- const a = p(), s = K(i, InputEvent) || K(i, KeyboardEvent) ? null : i.clipboardData;
377
- s != null && a !== null && Ce(s, a, o);
376
+ const s = p(), a = z(i, InputEvent) || z(i, KeyboardEvent) ? null : i.clipboardData;
377
+ a != null && s !== null && Ce(a, s, o);
378
378
  }, { tag: "paste" });
379
379
  }(e, t), !0);
380
- }, m), t.registerCommand(Ge, (e) => {
381
- const n = p();
382
- return g(n) && ae(n), !1;
383
380
  }, m), t.registerCommand(Ye, (e) => {
384
381
  const n = p();
385
- return g(n) && ae(n), !1;
382
+ return g(n) && se(n), !1;
383
+ }, m), t.registerCommand(Ge, (e) => {
384
+ const n = p();
385
+ return g(n) && se(n), !1;
386
386
  }, m));
387
387
  }
388
- const se = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : x;
389
- function ke(t) {
388
+ const ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? B : k;
389
+ function xe(t) {
390
390
  return t.getEditorState().read(He(t.isComposing()));
391
391
  }
392
392
  function $n({ contentEditable: t, placeholder: e = null, ErrorBoundary: n }) {
393
- const [r] = P(), i = function(o, a) {
394
- const [s, l] = M(() => o.getDecorators());
395
- return se(() => o.registerDecoratorListener((u) => {
396
- At(() => {
393
+ const [r] = P(), i = function(o, s) {
394
+ const [a, l] = I(() => o.getDecorators());
395
+ return ae(() => o.registerDecoratorListener((u) => {
396
+ Ft(() => {
397
397
  l(u);
398
398
  });
399
- }), [o]), x(() => {
399
+ }), [o]), k(() => {
400
400
  l(o.getDecorators());
401
- }, [o]), W(() => {
402
- const u = [], c = Object.keys(s);
401
+ }, [o]), q(() => {
402
+ const u = [], c = Object.keys(a);
403
403
  for (let d = 0; d < c.length; d++) {
404
- const f = c[d], C = h(a, { onError: (E) => o._onError(E), children: h(Mt, { fallback: null, children: s[f] }) }), y = o.getElementByKey(f);
405
- y !== null && u.push(Kt(C, y, f));
404
+ const f = c[d], C = h(s, { onError: (E) => o._onError(E), children: h(It, { fallback: null, children: a[f] }) }), y = o.getElementByKey(f);
405
+ y !== null && u.push(zt(C, y, f));
406
406
  }
407
407
  return u;
408
- }, [a, s, o]);
408
+ }, [s, a, o]);
409
409
  }(r, n);
410
410
  return function(o) {
411
- se(() => j(Ln(o), bn(o)), [o]);
412
- }(r), A(Pe, { children: [t, h(Dn, { content: e }), i] });
411
+ ae(() => j(Ln(o), bn(o)), [o]);
412
+ }(r), F(Pe, { children: [t, h(Dn, { content: e }), i] });
413
413
  }
414
414
  function Dn({ content: t }) {
415
415
  const [e] = P(), n = function(i) {
416
- const [o, a] = M(() => ke(i));
417
- return se(() => {
418
- function s() {
419
- const l = ke(i);
420
- a(l);
416
+ const [o, s] = I(() => xe(i));
417
+ return ae(() => {
418
+ function a() {
419
+ const l = xe(i);
420
+ s(l);
421
421
  }
422
- return s(), j(i.registerUpdateListener(() => {
423
- s();
422
+ return a(), j(i.registerUpdateListener(() => {
423
+ a();
424
424
  }), i.registerEditableListener(() => {
425
- s();
425
+ a();
426
426
  }));
427
427
  }, [i]), o;
428
428
  }(e), r = Cn();
429
429
  return n ? typeof t == "function" ? t(r) : t : null;
430
430
  }
431
- const qe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : x;
432
- function Pn({ editor: t, ariaActiveDescendant: e, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaErrorMessage: o, ariaExpanded: a, ariaInvalid: s, ariaLabel: l, ariaLabelledBy: u, ariaMultiline: c, ariaOwns: d, ariaRequired: f, autoCapitalize: C, className: y, id: E, role: k = "textbox", spellCheck: v = !0, style: w, tabIndex: S, "data-testid": N, ...b }, L) {
433
- const [_, T] = M(t.isEditable()), F = Ft(($) => {
431
+ const Je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? B : k;
432
+ function Pn({ editor: t, ariaActiveDescendant: e, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaErrorMessage: o, ariaExpanded: s, ariaInvalid: a, ariaLabel: l, ariaLabelledBy: u, ariaMultiline: c, ariaOwns: d, ariaRequired: f, autoCapitalize: C, className: y, id: E, role: x = "textbox", spellCheck: v = !0, style: w, tabIndex: S, "data-testid": N, ...b }, L) {
433
+ const [_, T] = I(t.isEditable()), O = Ot(($) => {
434
434
  $ && $.ownerDocument && $.ownerDocument.defaultView ? t.setRootElement($) : t.setRootElement(null);
435
- }, [t]), B = W(() => /* @__PURE__ */ function(...$) {
435
+ }, [t]), U = q(() => /* @__PURE__ */ function(...$) {
436
436
  return (V) => {
437
437
  $.forEach((X) => {
438
438
  typeof X == "function" ? X(V) : X != null && (X.current = V);
439
439
  });
440
440
  };
441
- }(L, F), [F, L]);
442
- return qe(() => (T(t.isEditable()), t.registerEditableListener(($) => {
441
+ }(L, O), [O, L]);
442
+ return Je(() => (T(t.isEditable()), t.registerEditableListener(($) => {
443
443
  T($);
444
- })), [t]), h("div", { "aria-activedescendant": _ ? e : void 0, "aria-autocomplete": _ ? n : "none", "aria-controls": _ ? r : void 0, "aria-describedby": i, ...o != null ? { "aria-errormessage": o } : {}, "aria-expanded": _ && k === "combobox" ? !!a : void 0, ...s != null ? { "aria-invalid": s } : {}, "aria-label": l, "aria-labelledby": u, "aria-multiline": c, "aria-owns": _ ? d : void 0, "aria-readonly": !_ || void 0, "aria-required": f, autoCapitalize: C, className: y, contentEditable: _, "data-testid": N, id: E, ref: B, role: _ ? k : void 0, spellCheck: v, style: w, tabIndex: S, ...b });
444
+ })), [t]), h("div", { "aria-activedescendant": _ ? e : void 0, "aria-autocomplete": _ ? n : "none", "aria-controls": _ ? r : void 0, "aria-describedby": i, ...o != null ? { "aria-errormessage": o } : {}, "aria-expanded": _ && x === "combobox" ? !!s : void 0, ...a != null ? { "aria-invalid": a } : {}, "aria-label": l, "aria-labelledby": u, "aria-multiline": c, "aria-owns": _ ? d : void 0, "aria-readonly": !_ || void 0, "aria-required": f, autoCapitalize: C, className: y, contentEditable: _, "data-testid": N, id: E, ref: U, role: _ ? x : void 0, spellCheck: v, style: w, tabIndex: S, ...b });
445
445
  }
446
- const Tn = Ae(Pn);
446
+ const Tn = Fe(Pn);
447
447
  function Ne(t) {
448
448
  return t.getEditorState().read(He(t.isComposing()));
449
449
  }
450
- const Rn = Ae(In);
451
- function In(t, e) {
450
+ const Rn = Fe(Mn);
451
+ function Mn(t, e) {
452
452
  const { placeholder: n, ...r } = t, [i] = P();
453
- return A(Pe, { children: [h(Tn, { editor: i, ...r, ref: e }), n != null && h(Mn, { editor: i, content: n })] });
453
+ return F(Pe, { children: [h(Tn, { editor: i, ...r, ref: e }), n != null && h(In, { editor: i, content: n })] });
454
454
  }
455
- function Mn({ content: t, editor: e }) {
456
- const n = function(a) {
457
- const [s, l] = M(() => Ne(a));
458
- return qe(() => {
455
+ function In({ content: t, editor: e }) {
456
+ const n = function(s) {
457
+ const [a, l] = I(() => Ne(s));
458
+ return Je(() => {
459
459
  function u() {
460
- const c = Ne(a);
460
+ const c = Ne(s);
461
461
  l(c);
462
462
  }
463
- return u(), j(a.registerUpdateListener(() => {
463
+ return u(), j(s.registerUpdateListener(() => {
464
464
  u();
465
- }), a.registerEditableListener(() => {
465
+ }), s.registerEditableListener(() => {
466
466
  u();
467
467
  }));
468
- }, [a]), s;
469
- }(e), [r, i] = M(e.isEditable());
470
- if (U(() => (i(e.isEditable()), e.registerEditableListener((a) => {
471
- i(a);
468
+ }, [s]), a;
469
+ }(e), [r, i] = I(e.isEditable());
470
+ if (B(() => (i(e.isEditable()), e.registerEditableListener((s) => {
471
+ i(s);
472
472
  })), [e]), !n) return null;
473
473
  let o = null;
474
474
  return typeof t == "function" ? o = t(r) : t !== null && (o = t), o === null ? null : h("div", { "aria-hidden": !0, children: o });
@@ -478,11 +478,11 @@ function le(t, e) {
478
478
  return n.__proto__ = r, n;
479
479
  }, le(t, e);
480
480
  }
481
- var Le = { error: null }, Fn = function(t) {
481
+ var Le = { error: null }, On = function(t) {
482
482
  var e, n;
483
483
  function r() {
484
- for (var o, a = arguments.length, s = new Array(a), l = 0; l < a; l++) s[l] = arguments[l];
485
- return (o = t.call.apply(t, [this].concat(s)) || this).state = Le, o.resetErrorBoundary = function() {
484
+ for (var o, s = arguments.length, a = new Array(s), l = 0; l < s; l++) a[l] = arguments[l];
485
+ return (o = t.call.apply(t, [this].concat(a)) || this).state = Le, o.resetErrorBoundary = function() {
486
486
  for (var u, c = arguments.length, d = new Array(c), f = 0; f < c; f++) d[f] = arguments[f];
487
487
  o.props.onReset == null || (u = o.props).onReset.apply(u, d), o.reset();
488
488
  }, o;
@@ -493,91 +493,91 @@ var Le = { error: null }, Fn = function(t) {
493
493
  var i = r.prototype;
494
494
  return i.reset = function() {
495
495
  this.setState(Le);
496
- }, i.componentDidCatch = function(o, a) {
497
- var s, l;
498
- (s = (l = this.props).onError) == null || s.call(l, o, a);
499
- }, i.componentDidUpdate = function(o, a) {
500
- var s, l, u, c, d = this.state.error, f = this.props.resetKeys;
501
- d !== null && a.error !== null && ((u = o.resetKeys) === void 0 && (u = []), (c = f) === void 0 && (c = []), u.length !== c.length || u.some(function(C, y) {
496
+ }, i.componentDidCatch = function(o, s) {
497
+ var a, l;
498
+ (a = (l = this.props).onError) == null || a.call(l, o, s);
499
+ }, i.componentDidUpdate = function(o, s) {
500
+ var a, l, u, c, d = this.state.error, f = this.props.resetKeys;
501
+ d !== null && s.error !== null && ((u = o.resetKeys) === void 0 && (u = []), (c = f) === void 0 && (c = []), u.length !== c.length || u.some(function(C, y) {
502
502
  return !Object.is(C, c[y]);
503
- })) && ((s = (l = this.props).onResetKeysChange) == null || s.call(l, o.resetKeys, f), this.reset());
503
+ })) && ((a = (l = this.props).onResetKeysChange) == null || a.call(l, o.resetKeys, f), this.reset());
504
504
  }, i.render = function() {
505
- var o = this.state.error, a = this.props, s = a.fallbackRender, l = a.FallbackComponent, u = a.fallback;
505
+ var o = this.state.error, s = this.props, a = s.fallbackRender, l = s.FallbackComponent, u = s.fallback;
506
506
  if (o !== null) {
507
507
  var c = { error: o, resetErrorBoundary: this.resetErrorBoundary };
508
508
  if (oe.isValidElement(u)) return u;
509
- if (typeof s == "function") return s(c);
509
+ if (typeof a == "function") return a(c);
510
510
  if (l) return oe.createElement(l, c);
511
511
  throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");
512
512
  }
513
513
  return this.props.children;
514
514
  }, r;
515
515
  }(oe.Component);
516
- function zn({ children: t, onError: e }) {
517
- return h(Fn, { fallback: h("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: t });
516
+ function Kn({ children: t, onError: e }) {
517
+ return h(On, { fallback: h("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: t });
518
518
  }
519
- const An = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : x;
520
- function Kn({ ignoreHistoryMergeTagChange: t = !0, ignoreSelectionChange: e = !1, onChange: n }) {
519
+ const Fn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? B : k;
520
+ function zn({ ignoreHistoryMergeTagChange: t = !0, ignoreSelectionChange: e = !1, onChange: n }) {
521
521
  const [r] = P();
522
- return An(() => {
523
- if (n) return r.registerUpdateListener(({ editorState: i, dirtyElements: o, dirtyLeaves: a, prevEditorState: s, tags: l }) => {
524
- e && o.size === 0 && a.size === 0 || t && l.has("history-merge") || s.isEmpty() || n(i, r, l);
522
+ return Fn(() => {
523
+ if (n) return r.registerUpdateListener(({ editorState: i, dirtyElements: o, dirtyLeaves: s, prevEditorState: a, tags: l }) => {
524
+ e && o.size === 0 && s.size === 0 || t && l.has("history-merge") || a.isEmpty() || n(i, r, l);
525
525
  });
526
526
  }, [r, t, e, n]), null;
527
527
  }
528
- function On() {
528
+ function An() {
529
529
  const [t] = P();
530
- return x(() => {
531
- if (!t.hasNodes([Ke, Oe])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
530
+ return k(() => {
531
+ if (!t.hasNodes([ze, Ae])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
532
532
  }, [t]), function(e) {
533
- x(() => Ut(e), [e]);
533
+ k(() => Bt(e), [e]);
534
534
  }(t), null;
535
535
  }
536
- function Bn({ validateUrl: t, attributes: e }) {
536
+ function Un({ validateUrl: t, attributes: e }) {
537
537
  const [n] = P();
538
- return x(() => {
539
- if (!n.hasNodes([Be])) throw new Error("LinkPlugin: LinkNode not registered on editor");
538
+ return k(() => {
539
+ if (!n.hasNodes([Ue])) throw new Error("LinkPlugin: LinkNode not registered on editor");
540
540
  return j(n.registerCommand(Ee, (r) => {
541
541
  if (r === null) return ie(r), !0;
542
542
  if (typeof r == "string") return !(t !== void 0 && !t(r)) && (ie(r, e), !0);
543
543
  {
544
- const { url: i, target: o, rel: a, title: s } = r;
545
- return ie(i, { ...e, rel: a, target: o, title: s }), !0;
544
+ const { url: i, target: o, rel: s, title: a } = r;
545
+ return ie(i, { ...e, rel: s, target: o, title: a }), !0;
546
546
  }
547
- }, he), t !== void 0 ? n.registerCommand(Ie, (r) => {
547
+ }, he), t !== void 0 ? n.registerCommand(Me, (r) => {
548
548
  const i = p();
549
- if (!g(i) || i.isCollapsed() || !K(r, ClipboardEvent)) return !1;
549
+ if (!g(i) || i.isCollapsed() || !z(r, ClipboardEvent)) return !1;
550
550
  const o = r;
551
551
  if (o.clipboardData === null) return !1;
552
- const a = o.clipboardData.getData("text");
553
- return !!t(a) && !i.getNodes().some((s) => J(s)) && (n.dispatchCommand(Ee, { ...e, url: a }), r.preventDefault(), !0);
552
+ const s = o.clipboardData.getData("text");
553
+ return !!t(s) && !i.getNodes().some((a) => W(a)) && (n.dispatchCommand(Ee, { ...e, url: s }), r.preventDefault(), !0);
554
554
  }, he) : () => {
555
555
  });
556
556
  }, [n, t, e]), null;
557
557
  }
558
- function Un({ newTab: t = !0, disabled: e = !1 }) {
558
+ function Bn({ newTab: t = !0, disabled: e = !1 }) {
559
559
  const [n] = P();
560
- return x(() => {
560
+ return k(() => {
561
561
  const r = (o) => {
562
- const a = o.target;
563
- if (!Me(a)) return;
564
- const s = $t(a);
565
- if (s === null) return;
562
+ const s = o.target;
563
+ if (!Ie(s)) return;
564
+ const a = $t(s);
565
+ if (a === null) return;
566
566
  let l = null, u = null;
567
- if (s.update(() => {
568
- const f = ne(a);
567
+ if (a.update(() => {
568
+ const f = ne(s);
569
569
  if (f !== null) {
570
- const C = de(f, J);
570
+ const C = de(f, W);
571
571
  if (!e) if (jt(C)) l = C.sanitizeUrl(C.getURL()), u = C.getTarget();
572
572
  else {
573
- const y = function(E, k) {
573
+ const y = function(E, x) {
574
574
  let v = E;
575
575
  for (; v != null; ) {
576
- if (k(v)) return v;
576
+ if (x(v)) return v;
577
577
  v = v.parentNode;
578
578
  }
579
579
  return null;
580
- }(a, Dt);
580
+ }(s, Dt);
581
581
  y !== null && (l = y.href, u = y.target);
582
582
  }
583
583
  }
@@ -589,18 +589,18 @@ function Un({ newTab: t = !0, disabled: e = !1 }) {
589
589
  }, i = (o) => {
590
590
  o.button === 1 && r(o);
591
591
  };
592
- return n.registerRootListener((o, a) => {
593
- a !== null && (a.removeEventListener("click", r), a.removeEventListener("mouseup", i)), o !== null && (o.addEventListener("click", r), o.addEventListener("mouseup", i));
592
+ return n.registerRootListener((o, s) => {
593
+ s !== null && (s.removeEventListener("click", r), s.removeEventListener("mouseup", i)), o !== null && (o.addEventListener("click", r), o.addEventListener("mouseup", i));
594
594
  });
595
595
  }, [n, t, e]), null;
596
596
  }
597
- const te = 0, ue = 1, ce = 2, D = 0, jn = 1, $e = 2, Hn = 3, qn = 4;
598
- function Jn(t, e, n, r, i) {
597
+ const te = 0, ue = 1, ce = 2, D = 0, jn = 1, $e = 2, Hn = 3, Jn = 4;
598
+ function Wn(t, e, n, r, i) {
599
599
  if (t === null || n.size === 0 && r.size === 0 && !i) return D;
600
- const o = e._selection, a = t._selection;
600
+ const o = e._selection, s = t._selection;
601
601
  if (i) return jn;
602
- if (!(g(o) && g(a) && a.isCollapsed() && o.isCollapsed())) return D;
603
- const s = function(v, w, S) {
602
+ if (!(g(o) && g(s) && s.isCollapsed() && o.isCollapsed())) return D;
603
+ const a = function(v, w, S) {
604
604
  const N = v._nodeMap, b = [];
605
605
  for (const L of w) {
606
606
  const _ = N.get(L);
@@ -609,38 +609,38 @@ function Jn(t, e, n, r, i) {
609
609
  for (const [L, _] of S) {
610
610
  if (!_) continue;
611
611
  const T = N.get(L);
612
- T === void 0 || Fe(T) || b.push(T);
612
+ T === void 0 || Oe(T) || b.push(T);
613
613
  }
614
614
  return b;
615
615
  }(e, n, r);
616
- if (s.length === 0) return D;
617
- if (s.length > 1) {
618
- const v = e._nodeMap, w = v.get(o.anchor.key), S = v.get(a.anchor.key);
619
- return w && S && !t._nodeMap.has(w.__key) && I(w) && w.__text.length === 1 && o.anchor.offset === 1 ? $e : D;
616
+ if (a.length === 0) return D;
617
+ if (a.length > 1) {
618
+ const v = e._nodeMap, w = v.get(o.anchor.key), S = v.get(s.anchor.key);
619
+ return w && S && !t._nodeMap.has(w.__key) && M(w) && w.__text.length === 1 && o.anchor.offset === 1 ? $e : D;
620
620
  }
621
- const l = s[0], u = t._nodeMap.get(l.__key);
622
- if (!I(u) || !I(l) || u.__mode !== l.__mode) return D;
621
+ const l = a[0], u = t._nodeMap.get(l.__key);
622
+ if (!M(u) || !M(l) || u.__mode !== l.__mode) return D;
623
623
  const c = u.__text, d = l.__text;
624
624
  if (c === d) return D;
625
- const f = o.anchor, C = a.anchor;
625
+ const f = o.anchor, C = s.anchor;
626
626
  if (f.key !== C.key || f.type !== "text") return D;
627
- const y = f.offset, E = C.offset, k = d.length - c.length;
628
- return k === 1 && E === y - 1 ? $e : k === -1 && E === y + 1 ? Hn : k === -1 && E === y ? qn : D;
627
+ const y = f.offset, E = C.offset, x = d.length - c.length;
628
+ return x === 1 && E === y - 1 ? $e : x === -1 && E === y + 1 ? Hn : x === -1 && E === y ? Jn : D;
629
629
  }
630
- function Wn(t, e) {
630
+ function qn(t, e) {
631
631
  let n = Date.now(), r = D;
632
- return (i, o, a, s, l, u) => {
632
+ return (i, o, s, a, l, u) => {
633
633
  const c = Date.now();
634
634
  if (u.has("historic")) return r = D, n = c, ce;
635
- const d = Jn(i, o, s, l, t.isComposing()), f = (() => {
636
- const C = a === null || a.editor === t, y = u.has("history-push");
635
+ const d = Wn(i, o, a, l, t.isComposing()), f = (() => {
636
+ const C = s === null || s.editor === t, y = u.has("history-push");
637
637
  if (!y && C && u.has("history-merge")) return te;
638
638
  if (i === null) return ue;
639
639
  const E = o._selection;
640
- return s.size > 0 || l.size > 0 ? y === !1 && d !== D && d === r && c < n + e && C || s.size === 1 && function(k, v, w) {
641
- const S = v._nodeMap.get(k), N = w._nodeMap.get(k), b = v._selection, L = w._selection;
642
- return !(g(b) && g(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !I(S) || !I(N) || S.__parent !== N.__parent) && JSON.stringify(v.read(() => S.exportJSON())) === JSON.stringify(w.read(() => N.exportJSON()));
643
- }(Array.from(s)[0], i, o) ? te : ue : E !== null ? te : ce;
640
+ return a.size > 0 || l.size > 0 ? y === !1 && d !== D && d === r && c < n + e && C || a.size === 1 && function(x, v, w) {
641
+ const S = v._nodeMap.get(x), N = w._nodeMap.get(x), b = v._selection, L = w._selection;
642
+ return !(g(b) && g(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !M(S) || !M(N) || S.__parent !== N.__parent) && JSON.stringify(v.read(() => S.exportJSON())) === JSON.stringify(w.read(() => N.exportJSON()));
643
+ }(Array.from(a)[0], i, o) ? te : ue : E !== null ? te : ce;
644
644
  })();
645
645
  return n = c, r = d, f;
646
646
  };
@@ -649,26 +649,26 @@ function De(t) {
649
649
  t.undoStack = [], t.redoStack = [], t.current = null;
650
650
  }
651
651
  function Vn(t, e, n) {
652
- const r = Wn(t, n);
653
- return j(t.registerCommand(It, () => (function(o, a) {
654
- const s = a.redoStack, l = a.undoStack;
652
+ const r = qn(t, n);
653
+ return j(t.registerCommand(Mt, () => (function(o, s) {
654
+ const a = s.redoStack, l = s.undoStack;
655
655
  if (l.length !== 0) {
656
- const u = a.current, c = l.pop();
657
- u !== null && (s.push(u), o.dispatchCommand(Y, !0)), l.length === 0 && o.dispatchCommand(G, !1), a.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
656
+ const u = s.current, c = l.pop();
657
+ u !== null && (a.push(u), o.dispatchCommand(G, !0)), l.length === 0 && o.dispatchCommand(Y, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
658
658
  }
659
- }(t, e), !0), m), t.registerCommand(Rt, () => (function(o, a) {
660
- const s = a.redoStack, l = a.undoStack;
661
- if (s.length !== 0) {
662
- const u = a.current;
663
- u !== null && (l.push(u), o.dispatchCommand(G, !0));
664
- const c = s.pop();
665
- s.length === 0 && o.dispatchCommand(Y, !1), a.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
659
+ }(t, e), !0), m), t.registerCommand(Rt, () => (function(o, s) {
660
+ const a = s.redoStack, l = s.undoStack;
661
+ if (a.length !== 0) {
662
+ const u = s.current;
663
+ u !== null && (l.push(u), o.dispatchCommand(Y, !0));
664
+ const c = a.pop();
665
+ a.length === 0 && o.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
666
666
  }
667
- }(t, e), !0), m), t.registerCommand(Tt, () => (De(e), !1), m), t.registerCommand(Pt, () => (De(e), t.dispatchCommand(Y, !1), t.dispatchCommand(G, !1), !0), m), t.registerUpdateListener(({ editorState: o, prevEditorState: a, dirtyLeaves: s, dirtyElements: l, tags: u }) => {
667
+ }(t, e), !0), m), t.registerCommand(Tt, () => (De(e), !1), m), t.registerCommand(Pt, () => (De(e), t.dispatchCommand(G, !1), t.dispatchCommand(Y, !1), !0), m), t.registerUpdateListener(({ editorState: o, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: u }) => {
668
668
  const c = e.current, d = e.redoStack, f = e.undoStack, C = c === null ? null : c.editorState;
669
669
  if (c !== null && o === C) return;
670
- const y = r(a, o, c, s, l, u);
671
- if (y === ue) d.length !== 0 && (e.redoStack = [], t.dispatchCommand(Y, !1)), c !== null && (f.push({ ...c }), t.dispatchCommand(G, !0));
670
+ const y = r(s, o, c, a, l, u);
671
+ if (y === ue) d.length !== 0 && (e.redoStack = [], t.dispatchCommand(G, !1)), c !== null && (f.push({ ...c }), t.dispatchCommand(Y, !0));
672
672
  else if (y === ce) return;
673
673
  e.current = { editor: t, editorState: o };
674
674
  }));
@@ -676,38 +676,38 @@ function Vn(t, e, n) {
676
676
  function Xn() {
677
677
  return { current: null, redoStack: [], undoStack: [] };
678
678
  }
679
- function Yn({ delay: t, externalHistoryState: e }) {
679
+ function Gn({ delay: t, externalHistoryState: e }) {
680
680
  const [n] = P();
681
681
  return function(r, i, o = 1e3) {
682
- const a = W(() => i || Xn(), [i]);
683
- x(() => Vn(r, a, o), [o, r, a]);
682
+ const s = q(() => i || Xn(), [i]);
683
+ k(() => Vn(r, s, o), [o, r, s]);
684
684
  }(n, e, t), null;
685
685
  }
686
- function Gn({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandler: n = !0, hasHorizontalScroll: r = !1 }) {
686
+ function Yn({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandler: n = !0, hasHorizontalScroll: r = !1 }) {
687
687
  const [i] = P();
688
- return x(() => {
689
- qt(i, r);
690
- }, [i, r]), x(() => Jt(i), [i]), x(() => Wt(i, n), [i, n]), x(() => {
688
+ return k(() => {
689
+ Jt(i, r);
690
+ }, [i, r]), k(() => Wt(i), [i]), k(() => qt(i, n), [i, n]), k(() => {
691
691
  if (!t) return Vt(i);
692
- }, [i, t]), x(() => {
693
- if (!e) return i.registerNodeTransform(Ue, (o) => {
692
+ }, [i, t]), k(() => {
693
+ if (!e) return i.registerNodeTransform(Be, (o) => {
694
694
  o.getBackgroundColor() !== null && o.setBackgroundColor(null);
695
695
  });
696
696
  }, [i, e, t]), null;
697
697
  }
698
- const Je = 200, Zn = ({
698
+ const We = 200, Zn = ({
699
699
  currentLanguage: t = "NL",
700
700
  initialValue: e = "",
701
701
  placeholder: n = "",
702
702
  label: r = "",
703
703
  info: i = "",
704
704
  required: o = !1,
705
- notValidatedText: a = "",
706
- maxHeightInRem: s = "20rem",
707
- maxWords: l = Je,
705
+ notValidatedText: s = "",
706
+ maxHeightInRem: a = "20rem",
707
+ maxWords: l = We,
708
708
  onChange: u
709
709
  }) => {
710
- const { switchLanguage: c } = dn(), d = an(), [f] = M(() => Te()), [C, y] = M(0), [E, k] = M(0), v = ze(null), w = {
710
+ const { switchLanguage: c } = dn(), d = sn(), [f] = I(() => Te()), [C, y] = I(0), [E, x] = I(0), v = Ke(null), w = {
711
711
  html: {
712
712
  export: tn
713
713
  },
@@ -717,43 +717,43 @@ const Je = 200, Zn = ({
717
717
  onError(b) {
718
718
  throw b;
719
719
  },
720
- nodes: [Ke, Oe, Be, Ht, Ue, Xt, Yt],
720
+ nodes: [ze, Ae, Ue, Ht, Be, Xt, Gt],
721
721
  editorState: (b) => {
722
- const _ = new DOMParser().parseFromString(e, "text/html"), T = Ot(b, _), F = O();
723
- if (F.clear(), nn(e))
724
- T.forEach((B) => {
725
- F.append(B);
722
+ const _ = new DOMParser().parseFromString(e, "text/html"), T = At(b, _), O = A();
723
+ if (O.clear(), nn(e))
724
+ T.forEach((U) => {
725
+ O.append(U);
726
726
  });
727
727
  else {
728
- const B = Re();
728
+ const U = Re();
729
729
  T.forEach(($, V) => {
730
- V === 0 ? (B.append($), F.append(B)) : F.append($);
730
+ V === 0 ? (U.append($), O.append(U)) : O.append($);
731
731
  });
732
732
  }
733
733
  }
734
734
  }, S = (b) => b.trim().length === 0 ? 0 : b.split(" ").length, N = (b, L) => {
735
735
  b.read(() => {
736
736
  let _ = "";
737
- y(S(O().getTextContent().replace(/\s+/g, " ").trim())), _ = rn(Bt(L)), u(_);
737
+ y(S(A().getTextContent().replace(/\s+/g, " ").trim())), _ = rn(Ut(L)), u(_);
738
738
  });
739
739
  };
740
- return x(() => {
740
+ return k(() => {
741
741
  c(t.toLocaleLowerCase());
742
- }, [t, c]), x(() => {
742
+ }, [t, c]), k(() => {
743
743
  const b = e.replace(/<br\s*\/?>|&nbsp;/gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim();
744
744
  y(S(b));
745
- }, []), /* @__PURE__ */ A("div", { className: R.editor__container, children: [
746
- /* @__PURE__ */ A("div", { className: R.editor__header, children: [
745
+ }, []), /* @__PURE__ */ F("div", { className: R.editor__container, children: [
746
+ /* @__PURE__ */ F("div", { className: R.editor__header, children: [
747
747
  /* @__PURE__ */ h(un, { label: r, info: i, required: o }),
748
- /* @__PURE__ */ A("div", { className: R["editor__header-word-count"], children: [
748
+ /* @__PURE__ */ F("div", { className: R["editor__header-word-count"], children: [
749
749
  /* @__PURE__ */ h("span", { className: en({ [R["editor__header-word-count--alert"]]: C > l }), children: C }),
750
750
  " / ",
751
751
  l
752
752
  ] })
753
753
  ] }),
754
- /* @__PURE__ */ h("div", { className: R.editor, children: /* @__PURE__ */ A(pn, { initialConfig: w, children: [
754
+ /* @__PURE__ */ h("div", { className: R.editor, children: /* @__PURE__ */ F(pn, { initialConfig: w, children: [
755
755
  /* @__PURE__ */ h(on, { editorScrollPosition: E }),
756
- /* @__PURE__ */ A("div", { className: R["editor__field-wrapper"], children: [
756
+ /* @__PURE__ */ F("div", { className: R["editor__field-wrapper"], children: [
757
757
  /* @__PURE__ */ h(
758
758
  $n,
759
759
  {
@@ -767,36 +767,36 @@ const Je = 200, Zn = ({
767
767
  placeholder: /* @__PURE__ */ h("div", { className: R.editor__placeholder, children: n }),
768
768
  spellCheck: !1,
769
769
  id: "rteEditor",
770
- style: { height: `${s}`, maxHeight: `${s}` },
771
- onScroll: (b) => k(b.currentTarget.scrollTop),
770
+ style: { height: `${a}`, maxHeight: `${a}` },
771
+ onScroll: (b) => x(b.currentTarget.scrollTop),
772
772
  ref: v
773
773
  }
774
774
  ),
775
775
  placeholder: /* @__PURE__ */ h("div", { className: R.editor__placeholder, children: n }),
776
- ErrorBoundary: zn
776
+ ErrorBoundary: Kn
777
777
  }
778
778
  ),
779
- /* @__PURE__ */ h(Gn, {}),
780
779
  /* @__PURE__ */ h(Yn, {}),
781
- /* @__PURE__ */ h(On, {}),
782
- /* @__PURE__ */ h(Bn, { validateUrl: Gt }),
780
+ /* @__PURE__ */ h(Gn, {}),
781
+ /* @__PURE__ */ h(An, {}),
782
+ /* @__PURE__ */ h(Un, { validateUrl: Yt }),
783
783
  /* @__PURE__ */ h(Zt, { matchers: Qt }),
784
- /* @__PURE__ */ h(Un, {}),
785
- /* @__PURE__ */ h(Kn, { onChange: N }),
784
+ /* @__PURE__ */ h(Bn, {}),
785
+ /* @__PURE__ */ h(zn, { onChange: N }),
786
786
  /* @__PURE__ */ h(fn, {})
787
787
  ] })
788
788
  ] }) }),
789
- a !== "" && /* @__PURE__ */ h(sn, { level: "error", feedback: a })
789
+ s !== "" && /* @__PURE__ */ h(an, { level: "error", feedback: s })
790
790
  ] });
791
- }, Br = ({
791
+ }, Ur = ({
792
792
  currentLanguage: t = "NL",
793
793
  initialValue: e = "",
794
794
  placeholder: n = "",
795
795
  label: r = "",
796
796
  info: i = "",
797
797
  required: o = !1,
798
- notValidatedText: a = "",
799
- maxWords: s = Je,
798
+ notValidatedText: s = "",
799
+ maxWords: a = We,
800
800
  onChange: l
801
801
  }) => /* @__PURE__ */ h(cn, { children: /* @__PURE__ */ h(
802
802
  Zn,
@@ -807,13 +807,13 @@ const Je = 200, Zn = ({
807
807
  label: r,
808
808
  info: i,
809
809
  required: o,
810
- notValidatedText: a,
811
- maxWords: s,
810
+ notValidatedText: s,
811
+ maxWords: a,
812
812
  onChange: l
813
813
  }
814
814
  ) });
815
815
  export {
816
816
  Zn as Rte,
817
- Br as RteEditor
817
+ Ur as RteEditor
818
818
  };
819
819
  //# sourceMappingURL=RteEditor.js.map