@uva-glass/component-library 3.0.6 → 3.0.8

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