@uva-glass/component-library 1.64.0 → 1.64.1

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 (65) hide show
  1. package/dist/Lexical.prod-DSqOWcE1.js +4072 -0
  2. package/dist/Lexical.prod-DSqOWcE1.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-C6LsK5E6.js → LexicalClipboard.prod-DP0us-xV.js} +107 -107
  4. package/dist/{LexicalClipboard.prod-C6LsK5E6.js.map → LexicalClipboard.prod-DP0us-xV.js.map} +1 -1
  5. package/dist/LexicalLink.prod-DWrTW8iE.js +208 -0
  6. package/dist/LexicalLink.prod-DWrTW8iE.js.map +1 -0
  7. package/dist/LexicalList.prod-Cg8npow-.js +564 -0
  8. package/dist/LexicalList.prod-Cg8npow-.js.map +1 -0
  9. package/dist/LexicalTable.prod-DEA4KRzX.js +1221 -0
  10. package/dist/LexicalTable.prod-DEA4KRzX.js.map +1 -0
  11. package/dist/{LexicalUtils.prod-BTFNWAMw.js → LexicalUtils.prod-CicP_X7u.js} +44 -35
  12. package/dist/{LexicalUtils.prod-BTFNWAMw.js.map → LexicalUtils.prod-CicP_X7u.js.map} +1 -1
  13. package/dist/{TablePlugin-BLzR0g93.js → TablePlugin-BBOjr3TX.js} +56 -58
  14. package/dist/{TablePlugin-BLzR0g93.js.map → TablePlugin-BBOjr3TX.js.map} +1 -1
  15. package/dist/components/CheckboxTree/CheckboxTree.js +18 -21
  16. package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
  17. package/dist/components/FormInput/FormInput.js +12 -15
  18. package/dist/components/FormInput/FormInput.js.map +1 -1
  19. package/dist/components/InputField/InputField.stories.js +13 -16
  20. package/dist/components/InputField/InputField.stories.js.map +1 -1
  21. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  22. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  23. package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -6
  24. package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
  25. package/dist/components/MultiSelect/index.js +1 -1
  26. package/dist/components/PeriodSelector/PeriodSelector.js +19 -22
  27. package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -1
  28. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +17 -20
  29. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  30. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +4 -7
  31. package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +1 -1
  32. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +16 -16
  33. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +26 -28
  34. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +1 -1
  35. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +4 -7
  36. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js.map +1 -1
  37. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  38. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +100 -101
  39. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
  40. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  41. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +35 -35
  42. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
  43. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +15 -15
  44. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js.map +1 -1
  45. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -6
  46. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -1
  47. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -7
  48. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -1
  49. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +12 -12
  50. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  51. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +34 -34
  52. package/dist/components/RteEditor/Plugins/index.js +1 -1
  53. package/dist/components/RteEditor/RteEditor.js +354 -354
  54. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  55. package/dist/components/RteEditor/helpers.js +27 -27
  56. package/dist/components/index.js +1 -1
  57. package/dist/helpers-BuSJOvGF.js +168 -0
  58. package/dist/{helpers-B-pdj8pq.js.map → helpers-BuSJOvGF.js.map} +1 -1
  59. package/dist/index-DPQ9bZx5.js +231 -0
  60. package/dist/index-DPQ9bZx5.js.map +1 -0
  61. package/dist/index.js +1 -1
  62. package/package.json +8 -6
  63. package/dist/LexicalTable.prod-DqzrJuYr.js +0 -1221
  64. package/dist/LexicalTable.prod-DqzrJuYr.js.map +0 -1
  65. package/dist/helpers-B-pdj8pq.js +0 -168
@@ -1,21 +1,21 @@
1
- import { jsx as _, jsxs as K, Fragment as Pe } from "react/jsx-runtime";
2
- import { l as qe, o as Je, u as R } from "../../LexicalComposerContext.prod-Dyvim1tK.js";
3
- import { createEditor as Ie, $getRoot as U, $createParagraphNode as me, $getSelection as C, $isDecoratorNode as W, $isElementNode as j, $isParagraphNode as Qe, $isTextNode as L, $isRangeSelection as E, createCommand as Ze, PASTE_COMMAND as Ke, isSelectionCapturedInDecoratorInput as et, COMMAND_PRIORITY_EDITOR as p, CUT_COMMAND as tt, $isNodeSelection as I, COPY_COMMAND as nt, SELECT_ALL_COMMAND as rt, $selectAll as ot, DRAGOVER_COMMAND as it, $getNearestNodeFromDOMNode as ie, DRAGSTART_COMMAND as st, DROP_COMMAND as at, $createRangeSelection as lt, $normalizeSelection__EXPERIMENTAL as ct, $setSelection as dt, KEY_ESCAPE_COMMAND as ut, KEY_ENTER_COMMAND as ft, INSERT_LINE_BREAK_COMMAND as ge, INSERT_PARAGRAPH_COMMAND as he, KEY_DELETE_COMMAND as mt, DELETE_CHARACTER_COMMAND as se, KEY_BACKSPACE_COMMAND as pt, $isRootNode as Fe, OUTDENT_CONTENT_COMMAND as Ce, KEY_ARROW_RIGHT_COMMAND as gt, KEY_ARROW_LEFT_COMMAND as ht, KEY_ARROW_DOWN_COMMAND as Ct, $getAdjacentNode as Ee, KEY_ARROW_UP_COMMAND as Et, INDENT_CONTENT_COMMAND as _t, INSERT_TAB_COMMAND as Nt, $insertNodes as vt, $createTabNode as yt, FORMAT_ELEMENT_COMMAND as Mt, FORMAT_TEXT_COMMAND as Dt, REMOVE_TEXT_COMMAND as wt, CONTROLLED_TEXT_INSERTION_COMMAND as Ot, DELETE_LINE_COMMAND as At, DELETE_WORD_COMMAND as bt, CLICK_COMMAND as St, COMMAND_PRIORITY_LOW as _e, getNearestEditorFromDOMNode as Tt, isHTMLAnchorElement as Lt, CAN_REDO_COMMAND as q, CAN_UNDO_COMMAND as J, CLEAR_HISTORY_COMMAND as Rt, CLEAR_EDITOR_COMMAND as $t, REDO_COMMAND as kt, UNDO_COMMAND as xt, $getNodeByKey as Pt } from "lexical";
1
+ import { jsx as y, jsxs as K, Fragment as Oe } from "react/jsx-runtime";
2
+ import { l as Ye, o as Ze, u as P } from "../../LexicalComposerContext.prod-Dyvim1tK.js";
3
+ import { am as Fe, O as z, D as me, M as v, T as q, x as J, L as Ge, b as T, v as C, Y as Ke, an as Qe, a0 as p, n as et, a6 as F, aj as tt, ao as nt, ap as rt, aq as ot, C as ie, ar as it, as as st, K as at, P as lt, F as ct, i as dt, at as ut, au as ge, o as he, w as ft, s as se, l as mt, a9 as Ae, av as ve, p as pt, h as gt, e as ht, a8 as Ce, g as vt, aw as Ct, ax as yt, ay as wt, ah as Et, r as bt, q as $t, az as St, y as _t, k as xt, j as kt, a1 as Lt, t as Nt, I as ye, aA as Dt, a as Tt, a3 as Y, a2 as Z, aB as Pt, aC as Rt, a5 as Mt, a4 as It, H as Ot } from "../../Lexical.prod-DSqOWcE1.js";
4
4
  import * as ae from "react";
5
- import { useMemo as G, useLayoutEffect as Y, useEffect as O, useRef as Ue, useState as x, Suspense as It, forwardRef as Be, useCallback as Kt } from "react";
6
- import { L as B, i as F, e as Ft, t as pe, r as Ut, u as Bt } from "../../LexicalUtils.prod-BTFNWAMw.js";
7
- import { r as Ne } from "../../index-DsprzSCj.js";
8
- import { _ as ve, O as ye, L as Me, $ as De, h as zt, m as Yt } from "../../LexicalClipboard.prod-C6LsK5E6.js";
9
- import { ListNode as ze, ListItemNode as Ye, registerList as Ht } from "@lexical/list";
10
- import { LinkNode as He, TOGGLE_LINK_COMMAND as we, $toggleLink as le, $isLinkNode as Wt, AutoLinkNode as jt } from "@lexical/link";
11
- import { u as re, e as oe, c as We, K as Gt, n as Oe, r as Xt, d as Vt, b as qt, k as Jt, F as Qt, h as Ae, o as Zt, U as en } from "../../LexicalTable.prod-DqzrJuYr.js";
12
- import { a as tn, F as nn, M as rn } from "../../helpers-B-pdj8pq.js";
5
+ import { useMemo as W, useLayoutEffect as j, useEffect as x, useRef as ze, useState as I, Suspense as Ft, forwardRef as Be, useCallback as Kt } from "react";
6
+ import { L as B, i as A, e as At, t as pe, r as zt, u as Bt } from "../../LexicalUtils.prod-CicP_X7u.js";
7
+ import { r as we } from "../../index-DsprzSCj.js";
8
+ import { _ as Ee, O as be, L as $e, $ as Se, h as Ut, m as jt } from "../../LexicalClipboard.prod-DP0us-xV.js";
9
+ import { J as Ue, D as je, Z as Ht } from "../../LexicalList.prod-Cg8npow-.js";
10
+ import { a as He, U as _e, m as le, g as qt, f as Jt } from "../../LexicalLink.prod-DWrTW8iE.js";
11
+ import { u as re, e as oe, c as qe, K as Wt, n as xe, r as Vt, d as Xt, b as Yt, k as Zt, F as Gt, h as ke, o as Qt, U as en } from "../../LexicalTable.prod-DEA4KRzX.js";
12
+ import { a as tn, F as nn, M as rn } from "../../helpers-BuSJOvGF.js";
13
13
  import { c as on } from "../../clsx-OuTLNxxd.js";
14
14
  import { exportMap as sn, isStartingWithHtmlTag as an, mergeBoldStrongTags as ln } from "./helpers.js";
15
- import { s as k } from "../../RteEditor.module-DcvGRx3a.js";
15
+ import { s as M } from "../../RteEditor.module-DcvGRx3a.js";
16
16
  import { ToolBarPlugin as cn } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
17
17
  import { useTranslation as dn } from "./hooks/useTranslation.js";
18
- import "../../TablePlugin-BLzR0g93.js";
18
+ import "../../TablePlugin-BBOjr3TX.js";
19
19
  import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
20
20
  import "./hooks/components/Flyout.js";
21
21
  import "../Buttons/Button.js";
@@ -39,97 +39,97 @@ import { UvaTheme as fn } from "./UvaTheme/UvaTheme.js";
39
39
  import { EditorHeader as mn } from "./EditorHeader/EditorHeader.js";
40
40
  import { useLanguage as pn, LanguageProvider as gn } from "./Providers/LanguageProvider.js";
41
41
  import { PasteHandlerPlugin as hn } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
42
- const je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Cn = je ? Y : O, Q = { tag: "history-merge" };
43
- function En({ initialConfig: t, children: e }) {
44
- const n = G(() => {
45
- const { theme: r, namespace: i, nodes: o, onError: s, editorState: a, html: l } = t, c = Je(null, r), d = Ie({ editable: t.editable, html: l, namespace: i, nodes: o, onError: (u) => s(u, d), theme: r });
42
+ const Je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, vn = Je ? j : x, G = { tag: "history-merge" };
43
+ function Cn({ initialConfig: t, children: e }) {
44
+ const n = W(() => {
45
+ const { theme: r, namespace: i, nodes: o, onError: s, editorState: a, html: l } = t, c = Ze(null, r), d = Fe({ editable: t.editable, html: l, namespace: i, nodes: o, onError: (u) => s(u, d), theme: r });
46
46
  return function(u, f) {
47
47
  if (f !== null) {
48
48
  if (f === void 0) u.update(() => {
49
- const m = U();
49
+ const m = z();
50
50
  if (m.isEmpty()) {
51
51
  const g = me();
52
52
  m.append(g);
53
- const h = je ? document.activeElement : null;
54
- (C() !== null || h !== null && h === u.getRootElement()) && g.select();
53
+ const h = Je ? document.activeElement : null;
54
+ (v() !== null || h !== null && h === u.getRootElement()) && g.select();
55
55
  }
56
- }, Q);
56
+ }, G);
57
57
  else if (f !== null) switch (typeof f) {
58
58
  case "string": {
59
59
  const m = u.parseEditorState(f);
60
- u.setEditorState(m, Q);
60
+ u.setEditorState(m, G);
61
61
  break;
62
62
  }
63
63
  case "object":
64
- u.setEditorState(f, Q);
64
+ u.setEditorState(f, G);
65
65
  break;
66
66
  case "function":
67
67
  u.update(() => {
68
- U().isEmpty() && f(u);
69
- }, Q);
68
+ z().isEmpty() && f(u);
69
+ }, G);
70
70
  }
71
71
  }
72
72
  }(d, a), [d, c];
73
73
  }, []);
74
- return Cn(() => {
74
+ return vn(() => {
75
75
  const r = t.editable, [i] = n;
76
76
  i.setEditable(r === void 0 || r);
77
- }, []), _(qe.Provider, { value: n, children: e });
77
+ }, []), y(Ye.Provider, { value: n, children: e });
78
78
  }
79
- const _n = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Y : O;
80
- function Nn(t) {
79
+ const yn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
80
+ function wn(t) {
81
81
  return { initialValueFn: () => t.isEditable(), subscribe: (e) => t.registerEditableListener(e) };
82
82
  }
83
- function vn() {
83
+ function En() {
84
84
  return function(t) {
85
- const [e] = R(), n = G(() => t(e), [e, t]), r = Ue(n.initialValueFn()), [i, o] = x(r.current);
86
- return _n(() => {
85
+ const [e] = P(), n = W(() => t(e), [e, t]), r = ze(n.initialValueFn()), [i, o] = I(r.current);
86
+ return yn(() => {
87
87
  const { initialValueFn: s, subscribe: a } = n, l = s();
88
88
  return r.current !== l && (r.current = l, o(l)), a((c) => {
89
89
  r.current = c, o(c);
90
90
  });
91
91
  }, [n, t]), i;
92
- }(Nn);
92
+ }(wn);
93
93
  }
94
- function yn() {
95
- return U().getTextContent();
94
+ function bn() {
95
+ return z().getTextContent();
96
96
  }
97
- function Mn(t, e = !0) {
97
+ function $n(t, e = !0) {
98
98
  if (t) return !1;
99
- let n = yn();
99
+ let n = bn();
100
100
  return e && (n = n.trim()), n === "";
101
101
  }
102
- function Dn(t) {
103
- if (!Mn(t, !1)) return !1;
104
- const e = U().getChildren(), n = e.length;
102
+ function Sn(t) {
103
+ if (!$n(t, !1)) return !1;
104
+ const e = z().getChildren(), n = e.length;
105
105
  if (n > 1) return !1;
106
106
  for (let r = 0; r < n; r++) {
107
107
  const i = e[r];
108
- if (W(i)) return !1;
109
- if (j(i)) {
110
- if (!Qe(i) || i.__indent !== 0) return !1;
108
+ if (q(i)) return !1;
109
+ if (J(i)) {
110
+ if (!Ge(i) || i.__indent !== 0) return !1;
111
111
  const o = i.getChildren(), s = o.length;
112
112
  for (let a = 0; a < s; a++) {
113
113
  const l = o[r];
114
- if (!L(l)) return !1;
114
+ if (!T(l)) return !1;
115
115
  }
116
116
  }
117
117
  }
118
118
  return !0;
119
119
  }
120
- function Ge(t) {
121
- return () => Dn(t);
120
+ function We(t) {
121
+ return () => Sn(t);
122
122
  }
123
- function wn(t) {
123
+ function _n(t) {
124
124
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
125
125
  }
126
- wn(function(t) {
126
+ _n(function(t) {
127
127
  const e = new URLSearchParams();
128
128
  e.append("code", t);
129
129
  for (let n = 1; n < arguments.length; n++) e.append("v", arguments[n]);
130
130
  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.`);
131
131
  });
132
- function On(t) {
132
+ function xn(t) {
133
133
  const e = window.location.origin, n = (r) => {
134
134
  if (r.origin !== e) return;
135
135
  const i = t.getRootElement();
@@ -149,14 +149,14 @@ function On(t) {
149
149
  if (l) {
150
150
  const [c, d, u, f, m, g] = l;
151
151
  t.update(() => {
152
- const h = C();
153
- if (E(h)) {
154
- const D = h.anchor;
155
- let N = D.getNode(), v = 0, M = 0;
156
- if (L(N) && c >= 0 && d >= 0 && (v = c, M = c + d, h.setTextNodeRange(N, v, N, M)), v === M && u === "" || (h.insertRawText(u), N = D.getNode()), L(N)) {
157
- v = f, M = f + m;
158
- const A = N.getTextContentSize();
159
- v = v > A ? A : v, M = M > A ? A : M, h.setTextNodeRange(N, v, N, M);
152
+ const h = v();
153
+ if (C(h)) {
154
+ const S = h.anchor;
155
+ let w = S.getNode(), E = 0, $ = 0;
156
+ if (T(w) && c >= 0 && d >= 0 && (E = c, $ = c + d, h.setTextNodeRange(w, E, w, $)), E === $ && u === "" || (h.insertRawText(u), w = S.getNode()), T(w)) {
157
+ E = f, $ = f + m;
158
+ const k = w.getTextContentSize();
159
+ E = E > k ? k : E, $ = $ > k ? k : $, h.setTextNodeRange(w, E, w, $);
160
160
  }
161
161
  r.stopImmediatePropagation();
162
162
  }
@@ -170,7 +170,7 @@ function On(t) {
170
170
  window.removeEventListener("message", n, !0);
171
171
  };
172
172
  }
173
- function be(t, e) {
173
+ function Le(t, e) {
174
174
  if (document.caretRangeFromPoint !== void 0) {
175
175
  const n = document.caretRangeFromPoint(t, e);
176
176
  return n === null ? null : { node: n.startContainer, offset: n.startOffset };
@@ -181,21 +181,21 @@ function be(t, e) {
181
181
  }
182
182
  return null;
183
183
  }
184
- const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, An = H && "documentMode" in document ? document.documentMode : null, bn = !(!H || !("InputEvent" in window) || An) && "getTargetRanges" in new window.InputEvent("input"), Sn = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Tn = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Ln = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), Rn = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Ln, Se = Ze("DRAG_DROP_PASTE_FILE");
185
- function Z(t) {
184
+ const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, kn = H && "documentMode" in document ? document.documentMode : null, Ln = !(!H || !("InputEvent" in window) || kn) && "getTargetRanges" in new window.InputEvent("input"), Nn = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Dn = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Tn = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), Pn = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Tn, Ne = Nt();
185
+ function Q(t) {
186
186
  let e = null;
187
- if (F(t, DragEvent) ? e = t.dataTransfer : F(t, ClipboardEvent) && (e = t.clipboardData), e === null) return [!1, [], !1];
187
+ if (A(t, DragEvent) ? e = t.dataTransfer : A(t, ClipboardEvent) && (e = t.clipboardData), e === null) return [!1, [], !1];
188
188
  const n = e.types, r = n.includes("Files"), i = n.includes("text/html") || n.includes("text/plain");
189
189
  return [r, Array.from(e.files), i];
190
190
  }
191
- function Te(t) {
192
- const e = C();
193
- if (!E(e)) return !1;
191
+ function De(t) {
192
+ const e = v();
193
+ if (!C(e)) return !1;
194
194
  const n = /* @__PURE__ */ new Set(), r = e.getNodes();
195
195
  for (let i = 0; i < r.length; i++) {
196
196
  const o = r[i], s = o.getKey();
197
197
  if (n.has(s)) continue;
198
- const a = pe(o, (c) => j(c) && !c.isInline());
198
+ const a = pe(o, (c) => J(c) && !c.isInline());
199
199
  if (a === null) continue;
200
200
  const l = a.getKey();
201
201
  a.canIndent() && !n.has(l) && (n.add(l), t(a));
@@ -204,209 +204,209 @@ function Te(t) {
204
204
  }
205
205
  function ee(t) {
206
206
  const e = ie(t);
207
- return W(e);
207
+ return q(e);
208
208
  }
209
- function $n(t) {
210
- return B(t.registerCommand(St, (e) => {
211
- const n = C();
212
- return !!I(n) && (n.clear(), !0);
209
+ function Rn(t) {
210
+ return B(t.registerCommand(Lt, (e) => {
211
+ const n = v();
212
+ return !!F(n) && (n.clear(), !0);
213
213
  }, 0), t.registerCommand(se, (e) => {
214
- const n = C();
215
- return !!E(n) && (n.deleteCharacter(e), !0);
216
- }, p), t.registerCommand(bt, (e) => {
217
- const n = C();
218
- return !!E(n) && (n.deleteWord(e), !0);
219
- }, p), t.registerCommand(At, (e) => {
220
- const n = C();
221
- return !!E(n) && (n.deleteLine(e), !0);
222
- }, p), t.registerCommand(Ot, (e) => {
223
- const n = C();
214
+ const n = v();
215
+ return !!C(n) && (n.deleteCharacter(e), !0);
216
+ }, p), t.registerCommand(kt, (e) => {
217
+ const n = v();
218
+ return !!C(n) && (n.deleteWord(e), !0);
219
+ }, p), t.registerCommand(xt, (e) => {
220
+ const n = v();
221
+ return !!C(n) && (n.deleteLine(e), !0);
222
+ }, p), t.registerCommand(_t, (e) => {
223
+ const n = v();
224
224
  if (typeof e == "string") n !== null && n.insertText(e);
225
225
  else {
226
226
  if (n === null) return !1;
227
227
  const r = e.dataTransfer;
228
- if (r != null) ve(r, n, t);
229
- else if (E(n)) {
228
+ if (r != null) Ee(r, n, t);
229
+ else if (C(n)) {
230
230
  const i = e.data;
231
231
  return i && n.insertText(i), !0;
232
232
  }
233
233
  }
234
234
  return !0;
235
- }, p), t.registerCommand(wt, () => {
236
- const e = C();
237
- return !!E(e) && (e.removeText(), !0);
238
- }, p), t.registerCommand(Dt, (e) => {
239
- const n = C();
240
- return !!E(n) && (n.formatText(e), !0);
241
- }, p), t.registerCommand(Mt, (e) => {
242
- const n = C();
243
- if (!E(n) && !I(n)) return !1;
235
+ }, p), t.registerCommand(St, () => {
236
+ const e = v();
237
+ return !!C(e) && (e.removeText(), !0);
238
+ }, p), t.registerCommand($t, (e) => {
239
+ const n = v();
240
+ return !!C(n) && (n.formatText(e), !0);
241
+ }, p), t.registerCommand(bt, (e) => {
242
+ const n = v();
243
+ if (!C(n) && !F(n)) return !1;
244
244
  const r = n.getNodes();
245
245
  for (const i of r) {
246
- const o = pe(i, (s) => j(s) && !s.isInline());
246
+ const o = pe(i, (s) => J(s) && !s.isInline());
247
247
  o !== null && o.setFormat(e);
248
248
  }
249
249
  return !0;
250
250
  }, p), t.registerCommand(ge, (e) => {
251
- const n = C();
252
- return !!E(n) && (n.insertLineBreak(e), !0);
251
+ const n = v();
252
+ return !!C(n) && (n.insertLineBreak(e), !0);
253
253
  }, p), t.registerCommand(he, () => {
254
- const e = C();
255
- return !!E(e) && (e.insertParagraph(), !0);
256
- }, p), t.registerCommand(Nt, () => (vt([yt()]), !0), p), t.registerCommand(_t, () => Te((e) => {
254
+ const e = v();
255
+ return !!C(e) && (e.insertParagraph(), !0);
256
+ }, p), t.registerCommand(yt, () => (wt([Et()]), !0), p), t.registerCommand(Ct, () => De((e) => {
257
257
  const n = e.getIndent();
258
258
  e.setIndent(n + 1);
259
- }), p), t.registerCommand(Ce, () => Te((e) => {
259
+ }), p), t.registerCommand(ve, () => De((e) => {
260
260
  const n = e.getIndent();
261
261
  n > 0 && e.setIndent(n - 1);
262
- }), p), t.registerCommand(Et, (e) => {
263
- const n = C();
264
- if (I(n) && !ee(e.target)) {
262
+ }), p), t.registerCommand(vt, (e) => {
263
+ const n = v();
264
+ if (F(n) && !ee(e.target)) {
265
265
  const r = n.getNodes();
266
266
  if (r.length > 0) return r[0].selectPrevious(), !0;
267
- } else if (E(n)) {
268
- const r = Ee(n.focus, !0);
269
- if (!e.shiftKey && W(r) && !r.isIsolated() && !r.isInline()) return r.selectPrevious(), e.preventDefault(), !0;
267
+ } else if (C(n)) {
268
+ const r = Ce(n.focus, !0);
269
+ if (!e.shiftKey && q(r) && !r.isIsolated() && !r.isInline()) return r.selectPrevious(), e.preventDefault(), !0;
270
270
  }
271
271
  return !1;
272
- }, p), t.registerCommand(Ct, (e) => {
273
- const n = C();
274
- if (I(n)) {
272
+ }, p), t.registerCommand(ht, (e) => {
273
+ const n = v();
274
+ if (F(n)) {
275
275
  const r = n.getNodes();
276
276
  if (r.length > 0) return r[0].selectNext(0, 0), !0;
277
- } else if (E(n)) {
277
+ } else if (C(n)) {
278
278
  if (function(i) {
279
279
  const o = i.focus;
280
- return o.key === "root" && o.offset === U().getChildrenSize();
280
+ return o.key === "root" && o.offset === z().getChildrenSize();
281
281
  }(n)) return e.preventDefault(), !0;
282
- const r = Ee(n.focus, !1);
283
- if (!e.shiftKey && W(r) && !r.isIsolated() && !r.isInline()) return r.selectNext(), e.preventDefault(), !0;
282
+ const r = Ce(n.focus, !1);
283
+ if (!e.shiftKey && q(r) && !r.isIsolated() && !r.isInline()) return r.selectNext(), e.preventDefault(), !0;
284
284
  }
285
285
  return !1;
286
- }, p), t.registerCommand(ht, (e) => {
287
- const n = C();
288
- if (I(n)) {
286
+ }, p), t.registerCommand(gt, (e) => {
287
+ const n = v();
288
+ if (F(n)) {
289
289
  const r = n.getNodes();
290
290
  if (r.length > 0) return e.preventDefault(), r[0].selectPrevious(), !0;
291
291
  }
292
- if (!E(n)) return !1;
293
- if (Me(n, !0)) {
292
+ if (!C(n)) return !1;
293
+ if ($e(n, !0)) {
294
294
  const r = e.shiftKey;
295
- return e.preventDefault(), De(n, r, !0), !0;
295
+ return e.preventDefault(), Se(n, r, !0), !0;
296
296
  }
297
297
  return !1;
298
- }, p), t.registerCommand(gt, (e) => {
299
- const n = C();
300
- if (I(n) && !ee(e.target)) {
298
+ }, p), t.registerCommand(pt, (e) => {
299
+ const n = v();
300
+ if (F(n) && !ee(e.target)) {
301
301
  const i = n.getNodes();
302
302
  if (i.length > 0) return e.preventDefault(), i[0].selectNext(0, 0), !0;
303
303
  }
304
- if (!E(n)) return !1;
304
+ if (!C(n)) return !1;
305
305
  const r = e.shiftKey;
306
- return !!Me(n, !1) && (e.preventDefault(), De(n, r, !1), !0);
307
- }, p), t.registerCommand(pt, (e) => {
306
+ return !!$e(n, !1) && (e.preventDefault(), Se(n, r, !1), !0);
307
+ }, p), t.registerCommand(mt, (e) => {
308
308
  if (ee(e.target)) return !1;
309
- const n = C();
310
- if (!E(n)) return !1;
309
+ const n = v();
310
+ if (!C(n)) return !1;
311
311
  e.preventDefault();
312
312
  const { anchor: r } = n, i = r.getNode();
313
- return n.isCollapsed() && r.offset === 0 && !Fe(i) && Ft(i).getIndent() > 0 ? t.dispatchCommand(Ce, void 0) : t.dispatchCommand(se, !0);
314
- }, p), t.registerCommand(mt, (e) => {
315
- if (ee(e.target)) return !1;
316
- const n = C();
317
- return !!E(n) && (e.preventDefault(), t.dispatchCommand(se, !1));
313
+ return n.isCollapsed() && r.offset === 0 && !Ae(i) && At(i).getIndent() > 0 ? t.dispatchCommand(ve, void 0) : t.dispatchCommand(se, !0);
318
314
  }, p), t.registerCommand(ft, (e) => {
319
- const n = C();
320
- if (!E(n)) return !1;
315
+ if (ee(e.target)) return !1;
316
+ const n = v();
317
+ return !!C(n) && (e.preventDefault(), t.dispatchCommand(se, !1));
318
+ }, p), t.registerCommand(ut, (e) => {
319
+ const n = v();
320
+ if (!C(n)) return !1;
321
321
  if (e !== null) {
322
- if ((Tn || Sn || Rn) && bn) return !1;
322
+ if ((Dn || Nn || Pn) && Ln) return !1;
323
323
  if (e.preventDefault(), e.shiftKey) return t.dispatchCommand(ge, !1);
324
324
  }
325
325
  return t.dispatchCommand(he, void 0);
326
- }, p), t.registerCommand(ut, () => {
327
- const e = C();
328
- return !!E(e) && (t.blur(), !0);
329
- }, p), t.registerCommand(at, (e) => {
330
- const [, n] = Z(e);
326
+ }, p), t.registerCommand(dt, () => {
327
+ const e = v();
328
+ return !!C(e) && (t.blur(), !0);
329
+ }, p), t.registerCommand(st, (e) => {
330
+ const [, n] = Q(e);
331
331
  if (n.length > 0) {
332
- const i = be(e.clientX, e.clientY);
332
+ const i = Le(e.clientX, e.clientY);
333
333
  if (i !== null) {
334
334
  const { offset: o, node: s } = i, a = ie(s);
335
335
  if (a !== null) {
336
- const l = lt();
337
- if (L(a)) l.anchor.set(a.getKey(), o, "text"), l.focus.set(a.getKey(), o, "text");
336
+ const l = at();
337
+ if (T(a)) l.anchor.set(a.getKey(), o, "text"), l.focus.set(a.getKey(), o, "text");
338
338
  else {
339
339
  const d = a.getParentOrThrow().getKey(), u = a.getIndexWithinParent() + 1;
340
340
  l.anchor.set(d, u, "element"), l.focus.set(d, u, "element");
341
341
  }
342
- const c = ct(l);
343
- dt(c);
342
+ const c = lt(l);
343
+ ct(c);
344
344
  }
345
- t.dispatchCommand(Se, n);
345
+ t.dispatchCommand(Ne, n);
346
346
  }
347
347
  return e.preventDefault(), !0;
348
348
  }
349
- const r = C();
350
- return !!E(r);
351
- }, p), t.registerCommand(st, (e) => {
352
- const [n] = Z(e), r = C();
353
- return !(n && !E(r));
349
+ const r = v();
350
+ return !!C(r);
354
351
  }, p), t.registerCommand(it, (e) => {
355
- const [n] = Z(e), r = C();
356
- if (n && !E(r)) return !1;
357
- const i = be(e.clientX, e.clientY);
352
+ const [n] = Q(e), r = v();
353
+ return !(n && !C(r));
354
+ }, p), t.registerCommand(ot, (e) => {
355
+ const [n] = Q(e), r = v();
356
+ if (n && !C(r)) return !1;
357
+ const i = Le(e.clientX, e.clientY);
358
358
  if (i !== null) {
359
359
  const o = ie(i.node);
360
- W(o) && e.preventDefault();
360
+ q(o) && e.preventDefault();
361
361
  }
362
362
  return !0;
363
- }, p), t.registerCommand(rt, () => (ot(), !0), p), t.registerCommand(nt, (e) => (ye(t, F(e, ClipboardEvent) ? e : null), !0), p), t.registerCommand(tt, (e) => (async function(n, r) {
364
- await ye(r, F(n, ClipboardEvent) ? n : null), r.update(() => {
365
- const i = C();
366
- E(i) ? i.removeText() : I(i) && i.getNodes().forEach((o) => o.remove());
363
+ }, p), t.registerCommand(nt, () => (rt(), !0), p), t.registerCommand(tt, (e) => (be(t, A(e, ClipboardEvent) ? e : null), !0), p), t.registerCommand(et, (e) => (async function(n, r) {
364
+ await be(r, A(n, ClipboardEvent) ? n : null), r.update(() => {
365
+ const i = v();
366
+ C(i) ? i.removeText() : F(i) && i.getNodes().forEach((o) => o.remove());
367
367
  });
368
368
  }(e, t), !0), p), t.registerCommand(Ke, (e) => {
369
- const [, n, r] = Z(e);
370
- return n.length > 0 && !r ? (t.dispatchCommand(Se, n), !0) : et(e.target) ? !1 : C() !== null && (function(i, o) {
369
+ const [, n, r] = Q(e);
370
+ return n.length > 0 && !r ? (t.dispatchCommand(Ne, n), !0) : Qe(e.target) ? !1 : v() !== null && (function(i, o) {
371
371
  i.preventDefault(), o.update(() => {
372
- const s = C(), a = F(i, InputEvent) || F(i, KeyboardEvent) ? null : i.clipboardData;
373
- a != null && s !== null && ve(a, s, o);
372
+ const s = v(), a = A(i, InputEvent) || A(i, KeyboardEvent) ? null : i.clipboardData;
373
+ a != null && s !== null && Ee(a, s, o);
374
374
  }, { tag: "paste" });
375
375
  }(e, t), !0);
376
376
  }, p));
377
377
  }
378
- const ce = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Y : O;
379
- function Le(t) {
380
- return t.getEditorState().read(Ge(t.isComposing()));
378
+ const ce = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
379
+ function Te(t) {
380
+ return t.getEditorState().read(We(t.isComposing()));
381
381
  }
382
- function kn({ contentEditable: t, placeholder: e = null, ErrorBoundary: n }) {
383
- const [r] = R(), i = function(o, s) {
384
- const [a, l] = x(() => o.getDecorators());
382
+ function Mn({ contentEditable: t, placeholder: e = null, ErrorBoundary: n }) {
383
+ const [r] = P(), i = function(o, s) {
384
+ const [a, l] = I(() => o.getDecorators());
385
385
  return ce(() => o.registerDecoratorListener((c) => {
386
- Ne.flushSync(() => {
386
+ we.flushSync(() => {
387
387
  l(c);
388
388
  });
389
- }), [o]), O(() => {
389
+ }), [o]), x(() => {
390
390
  l(o.getDecorators());
391
- }, [o]), G(() => {
391
+ }, [o]), W(() => {
392
392
  const c = [], d = Object.keys(a);
393
393
  for (let u = 0; u < d.length; u++) {
394
- const f = d[u], m = _(s, { onError: (h) => o._onError(h), children: _(It, { fallback: null, children: a[f] }) }), g = o.getElementByKey(f);
395
- g !== null && c.push(Ne.createPortal(m, g, f));
394
+ const f = d[u], m = y(s, { onError: (h) => o._onError(h), children: y(Ft, { fallback: null, children: a[f] }) }), g = o.getElementByKey(f);
395
+ g !== null && c.push(we.createPortal(m, g, f));
396
396
  }
397
397
  return c;
398
398
  }, [s, a, o]);
399
399
  }(r, n);
400
400
  return function(o) {
401
- ce(() => B($n(o), On(o)), [o]);
402
- }(r), K(Pe, { children: [t, _(xn, { content: e }), i] });
401
+ ce(() => B(Rn(o), xn(o)), [o]);
402
+ }(r), K(Oe, { children: [t, y(In, { content: e }), i] });
403
403
  }
404
- function xn({ content: t }) {
405
- const [e] = R(), n = function(i) {
406
- const [o, s] = x(() => Le(i));
404
+ function In({ content: t }) {
405
+ const [e] = P(), n = function(i) {
406
+ const [o, s] = I(() => Te(i));
407
407
  return ce(() => {
408
408
  function a() {
409
- const l = Le(i);
409
+ const l = Te(i);
410
410
  s(l);
411
411
  }
412
412
  return a(), B(i.registerUpdateListener(() => {
@@ -415,39 +415,39 @@ function xn({ content: t }) {
415
415
  a();
416
416
  }));
417
417
  }, [i]), o;
418
- }(e), r = vn();
418
+ }(e), r = En();
419
419
  return n ? typeof t == "function" ? t(r) : t : null;
420
420
  }
421
- const Xe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Y : O;
422
- function Pn({ editor: t, ariaActiveDescendant: e, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaErrorMessage: o, ariaExpanded: s, ariaInvalid: a, ariaLabel: l, ariaLabelledBy: c, ariaMultiline: d, ariaOwns: u, ariaRequired: f, autoCapitalize: m, className: g, id: h, role: D = "textbox", spellCheck: N = !0, style: v, tabIndex: M, "data-testid": A, ...y }, b) {
423
- const [w, $] = x(t.isEditable()), P = Kt((S) => {
424
- S && S.ownerDocument && S.ownerDocument.defaultView ? t.setRootElement(S) : t.setRootElement(null);
425
- }, [t]), z = G(() => /* @__PURE__ */ function(...S) {
426
- return (X) => {
427
- S.forEach((V) => {
428
- typeof V == "function" ? V(X) : V != null && (V.current = X);
421
+ const Ve = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
422
+ function On({ editor: t, ariaActiveDescendant: e, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaErrorMessage: o, ariaExpanded: s, ariaInvalid: a, ariaLabel: l, ariaLabelledBy: c, ariaMultiline: d, ariaOwns: u, ariaRequired: f, autoCapitalize: m, className: g, id: h, role: S = "textbox", spellCheck: w = !0, style: E, tabIndex: $, "data-testid": k, ...b }, L) {
423
+ const [_, R] = I(t.isEditable()), O = Kt((N) => {
424
+ N && N.ownerDocument && N.ownerDocument.defaultView ? t.setRootElement(N) : t.setRootElement(null);
425
+ }, [t]), U = W(() => /* @__PURE__ */ function(...N) {
426
+ return (V) => {
427
+ N.forEach((X) => {
428
+ typeof X == "function" ? X(V) : X != null && (X.current = V);
429
429
  });
430
430
  };
431
- }(b, P), [P, b]);
432
- return Xe(() => ($(t.isEditable()), t.registerEditableListener((S) => {
433
- $(S);
434
- })), [t]), _("div", { ...y, "aria-activedescendant": w ? e : void 0, "aria-autocomplete": w ? n : "none", "aria-controls": w ? r : void 0, "aria-describedby": i, ...o != null ? { "aria-errormessage": o } : {}, "aria-expanded": w && D === "combobox" ? !!s : void 0, ...a != null ? { "aria-invalid": a } : {}, "aria-label": l, "aria-labelledby": c, "aria-multiline": d, "aria-owns": w ? u : void 0, "aria-readonly": !w || void 0, "aria-required": f, autoCapitalize: m, className: g, contentEditable: w, "data-testid": A, id: h, ref: z, role: w ? D : void 0, spellCheck: N, style: v, tabIndex: M });
431
+ }(L, O), [O, L]);
432
+ return Ve(() => (R(t.isEditable()), t.registerEditableListener((N) => {
433
+ R(N);
434
+ })), [t]), y("div", { ...b, "aria-activedescendant": _ ? e : void 0, "aria-autocomplete": _ ? n : "none", "aria-controls": _ ? r : void 0, "aria-describedby": i, ...o != null ? { "aria-errormessage": o } : {}, "aria-expanded": _ && S === "combobox" ? !!s : void 0, ...a != null ? { "aria-invalid": a } : {}, "aria-label": l, "aria-labelledby": c, "aria-multiline": d, "aria-owns": _ ? u : void 0, "aria-readonly": !_ || void 0, "aria-required": f, autoCapitalize: m, className: g, contentEditable: _, "data-testid": k, id: h, ref: U, role: _ ? S : void 0, spellCheck: w, style: E, tabIndex: $ });
435
435
  }
436
- const In = Be(Pn);
437
- function Re(t) {
438
- return t.getEditorState().read(Ge(t.isComposing()));
436
+ const Fn = Be(On);
437
+ function Pe(t) {
438
+ return t.getEditorState().read(We(t.isComposing()));
439
439
  }
440
- const Kn = Be(Fn);
441
- function Fn(t, e) {
442
- const { placeholder: n, ...r } = t, [i] = R();
443
- return K(Pe, { children: [_(In, { editor: i, ...r, ref: e }), n != null && _(Un, { editor: i, content: n })] });
440
+ const Kn = Be(An);
441
+ function An(t, e) {
442
+ const { placeholder: n, ...r } = t, [i] = P();
443
+ return K(Oe, { children: [y(Fn, { editor: i, ...r, ref: e }), n != null && y(zn, { editor: i, content: n })] });
444
444
  }
445
- function Un({ content: t, editor: e }) {
445
+ function zn({ content: t, editor: e }) {
446
446
  const n = function(s) {
447
- const [a, l] = x(() => Re(s));
448
- return Xe(() => {
447
+ const [a, l] = I(() => Pe(s));
448
+ return Ve(() => {
449
449
  function c() {
450
- const d = Re(s);
450
+ const d = Pe(s);
451
451
  l(d);
452
452
  }
453
453
  return c(), B(s.registerUpdateListener(() => {
@@ -456,23 +456,23 @@ function Un({ content: t, editor: e }) {
456
456
  c();
457
457
  }));
458
458
  }, [s]), a;
459
- }(e), [r, i] = x(e.isEditable());
460
- if (Y(() => (i(e.isEditable()), e.registerEditableListener((s) => {
459
+ }(e), [r, i] = I(e.isEditable());
460
+ if (j(() => (i(e.isEditable()), e.registerEditableListener((s) => {
461
461
  i(s);
462
462
  })), [e]), !n) return null;
463
463
  let o = null;
464
- return typeof t == "function" ? o = t(r) : t !== null && (o = t), o === null ? null : _("div", { "aria-hidden": !0, children: o });
464
+ return typeof t == "function" ? o = t(r) : t !== null && (o = t), o === null ? null : y("div", { "aria-hidden": !0, children: o });
465
465
  }
466
466
  function de(t, e) {
467
467
  return de = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
468
468
  return n.__proto__ = r, n;
469
469
  }, de(t, e);
470
470
  }
471
- var $e = { error: null }, Bn = function(t) {
471
+ var Re = { error: null }, Bn = function(t) {
472
472
  var e, n;
473
473
  function r() {
474
474
  for (var o, s = arguments.length, a = new Array(s), l = 0; l < s; l++) a[l] = arguments[l];
475
- return (o = t.call.apply(t, [this].concat(a)) || this).state = $e, o.resetErrorBoundary = function() {
475
+ return (o = t.call.apply(t, [this].concat(a)) || this).state = Re, o.resetErrorBoundary = function() {
476
476
  for (var c, d = arguments.length, u = new Array(d), f = 0; f < d; f++) u[f] = arguments[f];
477
477
  o.props.onReset == null || (c = o.props).onReset.apply(c, u), o.reset();
478
478
  }, o;
@@ -482,7 +482,7 @@ var $e = { error: null }, Bn = function(t) {
482
482
  };
483
483
  var i = r.prototype;
484
484
  return i.reset = function() {
485
- this.setState($e);
485
+ this.setState(Re);
486
486
  }, i.componentDidCatch = function(o, s) {
487
487
  var a, l;
488
488
  (a = (l = this.props).onError) == null || a.call(l, o, s);
@@ -503,77 +503,77 @@ var $e = { error: null }, Bn = function(t) {
503
503
  return this.props.children;
504
504
  }, r;
505
505
  }(ae.Component);
506
- function zn({ children: t, onError: e }) {
507
- return _(Bn, { fallback: _("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: t });
506
+ function Un({ children: t, onError: e }) {
507
+ return y(Bn, { fallback: y("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: t });
508
508
  }
509
- const Yn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Y : O;
509
+ const jn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
510
510
  function Hn({ ignoreHistoryMergeTagChange: t = !0, ignoreSelectionChange: e = !1, onChange: n }) {
511
- const [r] = R();
512
- return Yn(() => {
511
+ const [r] = P();
512
+ return jn(() => {
513
513
  if (n) return r.registerUpdateListener(({ editorState: i, dirtyElements: o, dirtyLeaves: s, prevEditorState: a, tags: l }) => {
514
514
  e && o.size === 0 && s.size === 0 || t && l.has("history-merge") || a.isEmpty() || n(i, r, l);
515
515
  });
516
516
  }, [r, t, e, n]), null;
517
517
  }
518
- function Wn() {
519
- const [t] = R();
520
- return O(() => {
521
- if (!t.hasNodes([ze, Ye])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
518
+ function qn() {
519
+ const [t] = P();
520
+ return x(() => {
521
+ if (!t.hasNodes([Ue, je])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
522
522
  }, [t]), function(e) {
523
- O(() => Ht(e), [e]);
523
+ x(() => Ht(e), [e]);
524
524
  }(t), null;
525
525
  }
526
- function jn({ validateUrl: t, attributes: e }) {
527
- const [n] = R();
528
- return O(() => {
526
+ function Jn({ validateUrl: t, attributes: e }) {
527
+ const [n] = P();
528
+ return x(() => {
529
529
  if (!n.hasNodes([He])) throw new Error("LinkPlugin: LinkNode not registered on editor");
530
- return B(n.registerCommand(we, (r) => {
530
+ return B(n.registerCommand(_e, (r) => {
531
531
  if (r === null) return le(r), !0;
532
532
  if (typeof r == "string") return !(t !== void 0 && !t(r)) && (le(r, e), !0);
533
533
  {
534
534
  const { url: i, target: o, rel: s, title: a } = r;
535
535
  return le(i, { ...e, rel: s, target: o, title: a }), !0;
536
536
  }
537
- }, _e), t !== void 0 ? n.registerCommand(Ke, (r) => {
538
- const i = C();
539
- if (!E(i) || i.isCollapsed() || !F(r, ClipboardEvent)) return !1;
537
+ }, ye), t !== void 0 ? n.registerCommand(Ke, (r) => {
538
+ const i = v();
539
+ if (!C(i) || i.isCollapsed() || !A(r, ClipboardEvent)) return !1;
540
540
  const o = r;
541
541
  if (o.clipboardData === null) return !1;
542
542
  const s = o.clipboardData.getData("text");
543
- return !!t(s) && !i.getNodes().some((a) => j(a)) && (n.dispatchCommand(we, { ...e, url: s }), r.preventDefault(), !0);
544
- }, _e) : () => {
543
+ return !!t(s) && !i.getNodes().some((a) => J(a)) && (n.dispatchCommand(_e, { ...e, url: s }), r.preventDefault(), !0);
544
+ }, ye) : () => {
545
545
  });
546
546
  }, [n, t, e]), null;
547
547
  }
548
- function Gn({ newTab: t = !0, disabled: e = !1 }) {
549
- const [n] = R();
550
- return O(() => {
548
+ function Wn({ newTab: t = !0, disabled: e = !1 }) {
549
+ const [n] = P();
550
+ return x(() => {
551
551
  const r = (o) => {
552
552
  const s = o.target;
553
553
  if (!(s instanceof Node)) return;
554
- const a = Tt(s);
554
+ const a = Dt(s);
555
555
  if (a === null) return;
556
556
  let l = null, c = null;
557
557
  if (a.update(() => {
558
558
  const f = ie(s);
559
559
  if (f !== null) {
560
- const m = pe(f, j);
561
- if (!e) if (Wt(m)) l = m.sanitizeUrl(m.getURL()), c = m.getTarget();
560
+ const m = pe(f, J);
561
+ if (!e) if (qt(m)) l = m.sanitizeUrl(m.getURL()), c = m.getTarget();
562
562
  else {
563
- const g = function(h, D) {
564
- let N = h;
565
- for (; N != null; ) {
566
- if (D(N)) return N;
567
- N = N.parentNode;
563
+ const g = function(h, S) {
564
+ let w = h;
565
+ for (; w != null; ) {
566
+ if (S(w)) return w;
567
+ w = w.parentNode;
568
568
  }
569
569
  return null;
570
- }(s, Lt);
570
+ }(s, Tt);
571
571
  g !== null && (l = g.href, c = g.target);
572
572
  }
573
573
  }
574
574
  }), l === null || l === "") return;
575
- const d = n.getEditorState().read(C);
576
- if (E(d) && !d.isCollapsed()) return void o.preventDefault();
575
+ const d = n.getEditorState().read(v);
576
+ if (C(d) && !d.isCollapsed()) return void o.preventDefault();
577
577
  const u = o.type === "auxclick" && o.button === 1;
578
578
  window.open(l, t || u || o.metaKey || o.ctrlKey || c === "_blank" ? "_blank" : "_self"), o.preventDefault();
579
579
  }, i = (o) => {
@@ -584,81 +584,81 @@ function Gn({ newTab: t = !0, disabled: e = !1 }) {
584
584
  });
585
585
  }, [n, t, e]), null;
586
586
  }
587
- const te = 0, ue = 1, fe = 2, T = 0, Xn = 1, ke = 2, Vn = 3, qn = 4;
588
- function Jn(t, e, n, r, i) {
589
- if (t === null || n.size === 0 && r.size === 0 && !i) return T;
587
+ const te = 0, ue = 1, fe = 2, D = 0, Vn = 1, Me = 2, Xn = 3, Yn = 4;
588
+ function Zn(t, e, n, r, i) {
589
+ if (t === null || n.size === 0 && r.size === 0 && !i) return D;
590
590
  const o = e._selection, s = t._selection;
591
- if (i) return Xn;
592
- if (!(E(o) && E(s) && s.isCollapsed() && o.isCollapsed())) return T;
593
- const a = function(N, v, M) {
594
- const A = N._nodeMap, y = [];
595
- for (const b of v) {
596
- const w = A.get(b);
597
- w !== void 0 && y.push(w);
591
+ if (i) return Vn;
592
+ if (!(C(o) && C(s) && s.isCollapsed() && o.isCollapsed())) return D;
593
+ const a = function(w, E, $) {
594
+ const k = w._nodeMap, b = [];
595
+ for (const L of E) {
596
+ const _ = k.get(L);
597
+ _ !== void 0 && b.push(_);
598
598
  }
599
- for (const [b, w] of M) {
600
- if (!w) continue;
601
- const $ = A.get(b);
602
- $ === void 0 || Fe($) || y.push($);
599
+ for (const [L, _] of $) {
600
+ if (!_) continue;
601
+ const R = k.get(L);
602
+ R === void 0 || Ae(R) || b.push(R);
603
603
  }
604
- return y;
604
+ return b;
605
605
  }(e, n, r);
606
- if (a.length === 0) return T;
606
+ if (a.length === 0) return D;
607
607
  if (a.length > 1) {
608
- const N = e._nodeMap, v = N.get(o.anchor.key), M = N.get(s.anchor.key);
609
- return v && M && !t._nodeMap.has(v.__key) && L(v) && v.__text.length === 1 && o.anchor.offset === 1 ? ke : T;
608
+ const w = e._nodeMap, E = w.get(o.anchor.key), $ = w.get(s.anchor.key);
609
+ return E && $ && !t._nodeMap.has(E.__key) && T(E) && E.__text.length === 1 && o.anchor.offset === 1 ? Me : D;
610
610
  }
611
611
  const l = a[0], c = t._nodeMap.get(l.__key);
612
- if (!L(c) || !L(l) || c.__mode !== l.__mode) return T;
612
+ if (!T(c) || !T(l) || c.__mode !== l.__mode) return D;
613
613
  const d = c.__text, u = l.__text;
614
- if (d === u) return T;
614
+ if (d === u) return D;
615
615
  const f = o.anchor, m = s.anchor;
616
- if (f.key !== m.key || f.type !== "text") return T;
617
- const g = f.offset, h = m.offset, D = u.length - d.length;
618
- return D === 1 && h === g - 1 ? ke : D === -1 && h === g + 1 ? Vn : D === -1 && h === g ? qn : T;
616
+ if (f.key !== m.key || f.type !== "text") return D;
617
+ const g = f.offset, h = m.offset, S = u.length - d.length;
618
+ return S === 1 && h === g - 1 ? Me : S === -1 && h === g + 1 ? Xn : S === -1 && h === g ? Yn : D;
619
619
  }
620
- function Qn(t, e) {
621
- let n = Date.now(), r = T;
620
+ function Gn(t, e) {
621
+ let n = Date.now(), r = D;
622
622
  return (i, o, s, a, l, c) => {
623
623
  const d = Date.now();
624
- if (c.has("historic")) return r = T, n = d, fe;
625
- const u = Jn(i, o, a, l, t.isComposing()), f = (() => {
624
+ if (c.has("historic")) return r = D, n = d, fe;
625
+ const u = Zn(i, o, a, l, t.isComposing()), f = (() => {
626
626
  const m = s === null || s.editor === t, g = c.has("history-push");
627
627
  if (!g && m && c.has("history-merge")) return te;
628
628
  if (i === null) return ue;
629
629
  const h = o._selection;
630
- return a.size > 0 || l.size > 0 ? g === !1 && u !== T && u === r && d < n + e && m || a.size === 1 && function(D, N, v) {
631
- const M = N._nodeMap.get(D), A = v._nodeMap.get(D), y = N._selection, b = v._selection;
632
- return !(E(y) && E(b) && y.anchor.type === "element" && y.focus.type === "element" && b.anchor.type === "text" && b.focus.type === "text" || !L(M) || !L(A) || M.__parent !== A.__parent) && JSON.stringify(N.read(() => M.exportJSON())) === JSON.stringify(v.read(() => A.exportJSON()));
630
+ return a.size > 0 || l.size > 0 ? g === !1 && u !== D && u === r && d < n + e && m || a.size === 1 && function(S, w, E) {
631
+ const $ = w._nodeMap.get(S), k = E._nodeMap.get(S), b = w._selection, L = E._selection;
632
+ return !(C(b) && C(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !T($) || !T(k) || $.__parent !== k.__parent) && JSON.stringify(w.read(() => $.exportJSON())) === JSON.stringify(E.read(() => k.exportJSON()));
633
633
  }(Array.from(a)[0], i, o) ? te : ue : h !== null ? te : fe;
634
634
  })();
635
635
  return n = d, r = u, f;
636
636
  };
637
637
  }
638
- function xe(t) {
638
+ function Ie(t) {
639
639
  t.undoStack = [], t.redoStack = [], t.current = null;
640
640
  }
641
- function Zn(t, e, n) {
642
- const r = Qn(t, n);
643
- return B(t.registerCommand(xt, () => (function(o, s) {
641
+ function Qn(t, e, n) {
642
+ const r = Gn(t, n);
643
+ return B(t.registerCommand(It, () => (function(o, s) {
644
644
  const a = s.redoStack, l = s.undoStack;
645
645
  if (l.length !== 0) {
646
646
  const c = s.current, d = l.pop();
647
- c !== null && (a.push(c), o.dispatchCommand(q, !0)), l.length === 0 && o.dispatchCommand(J, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
647
+ c !== null && (a.push(c), o.dispatchCommand(Y, !0)), l.length === 0 && o.dispatchCommand(Z, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
648
648
  }
649
- }(t, e), !0), p), t.registerCommand(kt, () => (function(o, s) {
649
+ }(t, e), !0), p), t.registerCommand(Mt, () => (function(o, s) {
650
650
  const a = s.redoStack, l = s.undoStack;
651
651
  if (a.length !== 0) {
652
652
  const c = s.current;
653
- c !== null && (l.push(c), o.dispatchCommand(J, !0));
653
+ c !== null && (l.push(c), o.dispatchCommand(Z, !0));
654
654
  const d = a.pop();
655
- a.length === 0 && o.dispatchCommand(q, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
655
+ a.length === 0 && o.dispatchCommand(Y, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
656
656
  }
657
- }(t, e), !0), p), t.registerCommand($t, () => (xe(e), !1), p), t.registerCommand(Rt, () => (xe(e), t.dispatchCommand(q, !1), t.dispatchCommand(J, !1), !0), p), t.registerUpdateListener(({ editorState: o, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: c }) => {
657
+ }(t, e), !0), p), t.registerCommand(Rt, () => (Ie(e), !1), p), t.registerCommand(Pt, () => (Ie(e), t.dispatchCommand(Y, !1), t.dispatchCommand(Z, !1), !0), p), t.registerUpdateListener(({ editorState: o, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: c }) => {
658
658
  const d = e.current, u = e.redoStack, f = e.undoStack, m = d === null ? null : d.editorState;
659
659
  if (d !== null && o === m) return;
660
660
  const g = r(s, o, d, a, l, c);
661
- if (g === ue) u.length !== 0 && (e.redoStack = [], t.dispatchCommand(q, !1)), d !== null && (f.push({ ...d }), t.dispatchCommand(J, !0));
661
+ if (g === ue) u.length !== 0 && (e.redoStack = [], t.dispatchCommand(Y, !1)), d !== null && (f.push({ ...d }), t.dispatchCommand(Z, !0));
662
662
  else if (g === fe) return;
663
663
  e.current = { editor: t, editorState: o };
664
664
  }));
@@ -667,10 +667,10 @@ function er() {
667
667
  return { current: null, redoStack: [], undoStack: [] };
668
668
  }
669
669
  function tr({ delay: t, externalHistoryState: e }) {
670
- const [n] = R();
670
+ const [n] = P();
671
671
  return function(r, i, o = 1e3) {
672
- const s = G(() => i || er(), [i]);
673
- O(() => Zn(r, s, o), [o, r, s]);
672
+ const s = W(() => i || er(), [i]);
673
+ x(() => Qn(r, s, o), [o, r, s]);
674
674
  }(n, e, t), null;
675
675
  }
676
676
  function nr(t) {
@@ -683,24 +683,24 @@ var ne = nr(function(t) {
683
683
  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.`);
684
684
  });
685
685
  function rr({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandler: n = !0 }) {
686
- const [r] = R();
687
- return O(() => (r.hasNodes([re, oe, We]) || ne(10), B(r.registerCommand(Xt, ({ columns: i, rows: o, includeHeaders: s }) => {
688
- const a = Vt(Number(o), Number(i), s);
689
- Ut(a);
686
+ const [r] = P();
687
+ return x(() => (r.hasNodes([re, oe, qe]) || ne(10), B(r.registerCommand(Vt, ({ columns: i, rows: o, includeHeaders: s }) => {
688
+ const a = Xt(Number(o), Number(i), s);
689
+ zt(a);
690
690
  const l = a.getFirstDescendant();
691
- return L(l) && l.select(), !0;
691
+ return T(l) && l.select(), !0;
692
692
  }, p), r.registerNodeTransform(re, (i) => {
693
- const [o] = Gt(i, null, null), s = o.reduce((l, c) => Math.max(l, c.length), 0), a = i.getChildren();
693
+ const [o] = Wt(i, null, null), s = o.reduce((l, c) => Math.max(l, c.length), 0), a = i.getChildren();
694
694
  for (let l = 0; l < o.length; ++l) {
695
695
  const c = a[l];
696
696
  if (!c) continue;
697
697
  const d = o[l].reduce((u, f) => f ? 1 + u : u, 0);
698
698
  if (d !== s) for (let u = d; u < s; ++u) {
699
- const f = Oe(0);
699
+ const f = xe(0);
700
700
  f.append(me()), c.append(f);
701
701
  }
702
702
  }
703
- }))), [r]), O(() => {
703
+ }))), [r]), x(() => {
704
704
  const i = /* @__PURE__ */ new Map(), o = (a, l, c) => {
705
705
  const d = c, u = en(a, d, r, n);
706
706
  i.set(l, [u, d]);
@@ -708,8 +708,8 @@ function rr({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandle
708
708
  for (const [l, c] of a) if (c === "created" || c === "updated") {
709
709
  const d = i.get(l), u = r.getElementByKey(l);
710
710
  d && u === d[1] || (d && (d[0].removeListeners(), i.delete(l)), u !== null && r.getEditorState().read(() => {
711
- const f = Pt(l);
712
- qt(f) && o(f, l, u);
711
+ const f = Ot(l);
712
+ Yt(f) && o(f, l, u);
713
713
  }));
714
714
  } else if (c === "destroyed") {
715
715
  const d = i.get(l);
@@ -720,36 +720,36 @@ function rr({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandle
720
720
  s();
721
721
  for (const [, [a]] of i) a.removeListeners();
722
722
  };
723
- }, [r, n]), O(() => {
723
+ }, [r, n]), x(() => {
724
724
  if (!t) return r.registerNodeTransform(oe, (i) => {
725
725
  if (i.getColSpan() > 1 || i.getRowSpan() > 1) {
726
- const [, , o] = Jt(i), [s] = Qt(o, i, i), a = s.length, l = s[0].length;
726
+ const [, , o] = Zt(i), [s] = Gt(o, i, i), a = s.length, l = s[0].length;
727
727
  let c = o.getFirstChild();
728
- Ae(c) || ne(175);
728
+ ke(c) || ne(175);
729
729
  const d = [];
730
730
  for (let u = 0; u < a; u++) {
731
- u !== 0 && (c = c.getNextSibling(), Ae(c) || ne(175));
731
+ u !== 0 && (c = c.getNextSibling(), ke(c) || ne(175));
732
732
  let f = null;
733
733
  for (let m = 0; m < l; m++) {
734
734
  const g = s[u][m], h = g.cell;
735
735
  if (g.startRow === u && g.startColumn === m) f = h, d.push(h);
736
736
  else if (h.getColSpan() > 1 || h.getRowSpan() > 1) {
737
- Zt(h) || ne(176);
738
- const D = Oe(h.__headerState);
739
- f !== null ? f.insertAfter(D) : Bt(c, D);
737
+ Qt(h) || ne(176);
738
+ const S = xe(h.__headerState);
739
+ f !== null ? f.insertAfter(S) : Bt(c, S);
740
740
  }
741
741
  }
742
742
  }
743
743
  for (const u of d) u.setColSpan(1), u.setRowSpan(1);
744
744
  }
745
745
  });
746
- }, [r, t]), O(() => {
746
+ }, [r, t]), x(() => {
747
747
  if (!e) return r.registerNodeTransform(oe, (i) => {
748
748
  i.getBackgroundColor() !== null && i.setBackgroundColor(null);
749
749
  });
750
750
  }, [r, e, t]), null;
751
751
  }
752
- const Ve = 200, or = ({
752
+ const Xe = 200, or = ({
753
753
  currentLanguage: t = "NL",
754
754
  initialValue: e = "",
755
755
  placeholder: n = "",
@@ -758,91 +758,91 @@ const Ve = 200, or = ({
758
758
  required: o = !1,
759
759
  notValidatedText: s = "",
760
760
  maxHeightInRem: a = "20rem",
761
- maxWords: l = Ve,
761
+ maxWords: l = Xe,
762
762
  onChange: c
763
763
  }) => {
764
- const { switchLanguage: d } = pn(), u = dn(), [f] = x(() => Ie()), [m, g] = x(0), [h, D] = x(0), N = Ue(null), v = {
764
+ const { switchLanguage: d } = pn(), u = dn(), [f] = I(() => Fe()), [m, g] = I(0), [h, S] = I(0), w = ze(null), E = {
765
765
  html: {
766
766
  export: sn
767
767
  },
768
768
  namespace: "UvaRte",
769
769
  editor: f,
770
770
  theme: fn,
771
- onError(y) {
772
- throw y;
771
+ onError(b) {
772
+ throw b;
773
773
  },
774
- nodes: [ze, Ye, He, jt, oe, We, re],
775
- editorState: (y) => {
776
- const w = new DOMParser().parseFromString(e, "text/html"), $ = zt(y, w), P = U();
777
- if (P.clear(), an(e))
778
- $.forEach((z) => {
779
- P.append(z);
774
+ nodes: [Ue, je, He, Jt, oe, qe, re],
775
+ editorState: (b) => {
776
+ const _ = new DOMParser().parseFromString(e, "text/html"), R = Ut(b, _), O = z();
777
+ if (O.clear(), an(e))
778
+ R.forEach((U) => {
779
+ O.append(U);
780
780
  });
781
781
  else {
782
- const z = me();
783
- $.forEach((S, X) => {
784
- X === 0 ? (z.append(S), P.append(z)) : P.append(S);
782
+ const U = me();
783
+ R.forEach((N, V) => {
784
+ V === 0 ? (U.append(N), O.append(U)) : O.append(N);
785
785
  });
786
786
  }
787
787
  }
788
- }, M = (y) => y.trim().length === 0 ? 0 : y.split(" ").length, A = (y, b) => {
789
- y.read(() => {
790
- let w = "";
791
- g(M(U().getTextContent().replace(/\s+/g, " ").trim())), w = ln(Yt(b)), c(w);
788
+ }, $ = (b) => b.trim().length === 0 ? 0 : b.split(" ").length, k = (b, L) => {
789
+ b.read(() => {
790
+ let _ = "";
791
+ g($(z().getTextContent().replace(/\s+/g, " ").trim())), _ = ln(jt(L)), c(_);
792
792
  });
793
793
  };
794
- return O(() => {
794
+ return x(() => {
795
795
  d(t.toLocaleLowerCase());
796
- }, [t, d]), O(() => {
797
- const y = e.replace(/<br\s*\/?>|&nbsp;/gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim();
798
- g(M(y));
799
- }, []), /* @__PURE__ */ K("div", { className: k.editor__container, children: [
800
- /* @__PURE__ */ K("div", { className: k.editor__header, children: [
801
- /* @__PURE__ */ _(mn, { label: r, info: i, required: o }),
802
- /* @__PURE__ */ K("div", { className: k["editor__header-word-count"], children: [
803
- /* @__PURE__ */ _("span", { className: on({ [k["editor__header-word-count--alert"]]: m > l }), children: m }),
796
+ }, [t, d]), x(() => {
797
+ const b = e.replace(/<br\s*\/?>|&nbsp;/gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim();
798
+ g($(b));
799
+ }, []), /* @__PURE__ */ K("div", { className: M.editor__container, children: [
800
+ /* @__PURE__ */ K("div", { className: M.editor__header, children: [
801
+ /* @__PURE__ */ y(mn, { label: r, info: i, required: o }),
802
+ /* @__PURE__ */ K("div", { className: M["editor__header-word-count"], children: [
803
+ /* @__PURE__ */ y("span", { className: on({ [M["editor__header-word-count--alert"]]: m > l }), children: m }),
804
804
  " / ",
805
805
  l
806
806
  ] })
807
807
  ] }),
808
- /* @__PURE__ */ _("div", { className: k.editor, children: /* @__PURE__ */ K(En, { initialConfig: v, children: [
809
- /* @__PURE__ */ _(cn, { editorScrollPosition: h }),
810
- /* @__PURE__ */ K("div", { className: k["editor__field-wrapper"], children: [
811
- /* @__PURE__ */ _(
812
- kn,
808
+ /* @__PURE__ */ y("div", { className: M.editor, children: /* @__PURE__ */ K(Cn, { initialConfig: E, children: [
809
+ /* @__PURE__ */ y(cn, { editorScrollPosition: h }),
810
+ /* @__PURE__ */ K("div", { className: M["editor__field-wrapper"], children: [
811
+ /* @__PURE__ */ y(
812
+ Mn,
813
813
  {
814
- contentEditable: /* @__PURE__ */ _(
814
+ contentEditable: /* @__PURE__ */ y(
815
815
  Kn,
816
816
  {
817
- className: k.editor__field,
817
+ className: M.editor__field,
818
818
  "aria-label": u.common.rteAriaLabel,
819
819
  "aria-placeholder": n,
820
820
  title: u.common.rteTitle,
821
- placeholder: /* @__PURE__ */ _("div", { className: k.editor__placeholder, children: n }),
821
+ placeholder: /* @__PURE__ */ y("div", { className: M.editor__placeholder, children: n }),
822
822
  spellCheck: !1,
823
823
  id: "rteEditor",
824
824
  style: { height: `${a}`, maxHeight: `${a}` },
825
- onScroll: (y) => D(y.currentTarget.scrollTop),
826
- ref: N
825
+ onScroll: (b) => S(b.currentTarget.scrollTop),
826
+ ref: w
827
827
  }
828
828
  ),
829
- placeholder: /* @__PURE__ */ _("div", { className: k.editor__placeholder, children: n }),
830
- ErrorBoundary: zn
829
+ placeholder: /* @__PURE__ */ y("div", { className: M.editor__placeholder, children: n }),
830
+ ErrorBoundary: Un
831
831
  }
832
832
  ),
833
- /* @__PURE__ */ _(rr, {}),
834
- /* @__PURE__ */ _(tr, {}),
835
- /* @__PURE__ */ _(Wn, {}),
836
- /* @__PURE__ */ _(jn, { validateUrl: tn }),
837
- /* @__PURE__ */ _(nn, { matchers: rn }),
838
- /* @__PURE__ */ _(Gn, {}),
839
- /* @__PURE__ */ _(Hn, { onChange: A }),
840
- /* @__PURE__ */ _(hn, {})
833
+ /* @__PURE__ */ y(rr, {}),
834
+ /* @__PURE__ */ y(tr, {}),
835
+ /* @__PURE__ */ y(qn, {}),
836
+ /* @__PURE__ */ y(Jn, { validateUrl: tn }),
837
+ /* @__PURE__ */ y(nn, { matchers: rn }),
838
+ /* @__PURE__ */ y(Wn, {}),
839
+ /* @__PURE__ */ y(Hn, { onChange: k }),
840
+ /* @__PURE__ */ y(hn, {})
841
841
  ] })
842
842
  ] }) }),
843
- s !== "" && /* @__PURE__ */ _(un, { level: "error", feedback: s })
843
+ s !== "" && /* @__PURE__ */ y(un, { level: "error", feedback: s })
844
844
  ] });
845
- }, Wr = ({
845
+ }, qr = ({
846
846
  currentLanguage: t = "NL",
847
847
  initialValue: e = "",
848
848
  placeholder: n = "",
@@ -850,9 +850,9 @@ const Ve = 200, or = ({
850
850
  info: i = "",
851
851
  required: o = !1,
852
852
  notValidatedText: s = "",
853
- maxWords: a = Ve,
853
+ maxWords: a = Xe,
854
854
  onChange: l
855
- }) => /* @__PURE__ */ _(gn, { children: /* @__PURE__ */ _(
855
+ }) => /* @__PURE__ */ y(gn, { children: /* @__PURE__ */ y(
856
856
  or,
857
857
  {
858
858
  currentLanguage: t,
@@ -868,6 +868,6 @@ const Ve = 200, or = ({
868
868
  ) });
869
869
  export {
870
870
  or as Rte,
871
- Wr as RteEditor
871
+ qr as RteEditor
872
872
  };
873
873
  //# sourceMappingURL=RteEditor.js.map