@uva-glass/component-library 3.26.4 → 3.27.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 (53) hide show
  1. package/dist/{Lexical.prod-m3GJsAAT.js → Lexical.prod-UwAbgYpF.js} +1043 -1036
  2. package/dist/Lexical.prod-UwAbgYpF.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-HyvHKdDm.js → LexicalClipboard.prod-DHIGjydG.js} +25 -25
  4. package/dist/{LexicalClipboard.prod-HyvHKdDm.js.map → LexicalClipboard.prod-DHIGjydG.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-D0qasaVP.js → LexicalLink.prod-Bsa9J7L-.js} +13 -13
  6. package/dist/{LexicalLink.prod-D0qasaVP.js.map → LexicalLink.prod-Bsa9J7L-.js.map} +1 -1
  7. package/dist/{LexicalList.prod-CQz14k_F.js → LexicalList.prod-jxGuZd4b.js} +26 -26
  8. package/dist/{LexicalList.prod-CQz14k_F.js.map → LexicalList.prod-jxGuZd4b.js.map} +1 -1
  9. package/dist/LexicalSelection.prod-xk5MiZnZ.js +101 -0
  10. package/dist/LexicalSelection.prod-xk5MiZnZ.js.map +1 -0
  11. package/dist/{LexicalTable.prod-BHKhA4PF.js → LexicalTable.prod-BSjs04iE.js} +164 -164
  12. package/dist/{LexicalTable.prod-BHKhA4PF.js.map → LexicalTable.prod-BSjs04iE.js.map} +1 -1
  13. package/dist/{LexicalUtils.prod-Vqqof-U-.js → LexicalUtils.prod-cQutjKA3.js} +43 -43
  14. package/dist/{LexicalUtils.prod-Vqqof-U-.js.map → LexicalUtils.prod-cQutjKA3.js.map} +1 -1
  15. package/dist/{TablePlugin-CykqKW6X.js → TablePlugin-NmJsn2fm.js} +4 -4
  16. package/dist/{TablePlugin-CykqKW6X.js.map → TablePlugin-NmJsn2fm.js.map} +1 -1
  17. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  18. package/dist/components/FormInput/FormInput.js +1 -1
  19. package/dist/components/InputField/InputField.stories.js +1 -1
  20. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  21. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  22. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  23. package/dist/components/MultiSelect/index.js +1 -1
  24. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  25. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  26. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  27. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  28. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  29. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  30. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  31. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  32. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +30 -30
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  34. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +12 -12
  35. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
  36. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  37. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  38. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
  39. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  40. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +7 -7
  41. package/dist/components/RteEditor/Plugins/index.js +1 -1
  42. package/dist/components/RteEditor/RteEditor.js +74 -74
  43. package/dist/components/RteEditor/helpers.js +4 -4
  44. package/dist/components/TextArea/TextArea.js +15 -15
  45. package/dist/components/TextArea/TextArea.js.map +1 -1
  46. package/dist/components/index.js +1 -1
  47. package/dist/{helpers-5AryUrYu.js → helpers-DZIm3MiJ.js} +4 -4
  48. package/dist/{helpers-5AryUrYu.js.map → helpers-DZIm3MiJ.js.map} +1 -1
  49. package/dist/index.js +1 -1
  50. package/package.json +6 -6
  51. package/dist/Lexical.prod-m3GJsAAT.js.map +0 -1
  52. package/dist/LexicalSelection.prod-Bh25dAig.js +0 -101
  53. package/dist/LexicalSelection.prod-Bh25dAig.js.map +0 -1
@@ -1,22 +1,22 @@
1
1
  import { jsx as h, jsxs as K, Fragment as Re } from "react/jsx-runtime";
2
- import { t as Ye, r as Ge, o as T } from "../../LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { aF as Ie, af as A, P as Fe, N as p, aG as de, am as J, d as W, F as Qe, Q as F, c as g, V as Ze, L as m, aH as et, ae as Me, o as tt, q as Oe, aI as rt, aJ as nt, U as ot, g as P, aC as at, aK as st, aL as it, aM as lt, k as te, aN as ut, aO as ct, a1 as dt, v as ft, y as mt, O as pt, aP as gt, aQ as me, a as pe, H as ht, D as re, G as vt, a2 as Ke, aR as ge, A as Ct, z as yt, t as Et, aS as he, x as wt, aT as bt, aU as _t, aV as St, aB as kt, R as xt, M as Nt, aW as Lt, S as $t, C as Dt, B as Pt, n as Tt, I as ve, aX as Rt, b as It, ar as Y, aq as G, aY as Ft, aZ as Mt, at as Ot, a_ as se, as as Kt, a$ as zt } from "../../Lexical.prod-m3GJsAAT.js";
2
+ import { t as Xe, r as Ge, o as T } from "../../LexicalComposerContext.prod-DLlRM5wP.js";
3
+ import { aG as Ie, af as A, P as Fe, N as p, aH as de, am as W, d as J, F as Qe, Q as F, c as g, Y as Ze, L as m, aI as et, ae as Me, o as tt, s as Oe, aJ as rt, aK as nt, U as ot, g as P, aD as at, aL as st, aM as it, aN as lt, l as te, aO as ut, aP as ct, a1 as dt, v as ft, m as mt, O as pt, aQ as gt, aR as me, b as pe, M as ht, E as re, H as vt, a2 as Ke, aS as ge, B as Ct, T as yt, z as Et, aT as he, A as wt, aU as bt, aV as _t, aW as St, aC as kt, S as xt, R as Nt, aX as Lt, W as Dt, D as $t, C as Pt, q as Tt, I as ve, aY as Rt, u as It, as as X, ar as G, aZ as Ft, a_ as Mt, au as Ot, a$ as se, at as Kt, b0 as zt } from "../../Lexical.prod-UwAbgYpF.js";
4
4
  import * as ne from "react";
5
5
  import { useMemo as q, useLayoutEffect as U, useEffect as S, useState as M, useRef as ze, Suspense as At, forwardRef as Ae, useCallback as Bt } from "react";
6
- import { j, L as z, y as Ut, w as fe } from "../../LexicalUtils.prod-Vqqof-U-.js";
6
+ import { j, L as z, y as Ut, w as fe } from "../../LexicalUtils.prod-cQutjKA3.js";
7
7
  import { flushSync as jt, createPortal as Ht } from "react-dom";
8
- import { D as Ce, _ as ye, h as Jt, m as Wt } from "../../LexicalClipboard.prod-HyvHKdDm.js";
9
- import { X as Ee, J as we } from "../../LexicalSelection.prod-Bh25dAig.js";
10
- import { t as Be, j as Ue, y as qt, _ as Vt } from "../../LexicalList.prod-CQz14k_F.js";
11
- import { g as je, k as be, v as oe, p as Xt, m as Yt } from "../../LexicalLink.prod-D0qasaVP.js";
12
- import { s as Gt, c as Qt, a as He, b as Zt, w as er, S as tr, y as Je, O as rr } from "../../LexicalTable.prod-BHKhA4PF.js";
13
- import { a as nr, w as or, M as ar } from "../../helpers-5AryUrYu.js";
8
+ import { D as Ce, _ as ye, h as Wt, m as Jt } from "../../LexicalClipboard.prod-DHIGjydG.js";
9
+ import { X as Ee, J as we } from "../../LexicalSelection.prod-xk5MiZnZ.js";
10
+ import { t as Be, j as Ue, y as qt, _ as Vt } from "../../LexicalList.prod-jxGuZd4b.js";
11
+ import { g as je, k as be, v as oe, p as Yt, m as Xt } from "../../LexicalLink.prod-Bsa9J7L-.js";
12
+ import { s as Gt, c as Qt, a as He, b as Zt, w as er, S as tr, y as We, O as rr } from "../../LexicalTable.prod-BSjs04iE.js";
13
+ import { a as nr, w as or, M as ar } from "../../helpers-DZIm3MiJ.js";
14
14
  import { c as sr } from "../../clsx-OuTLNxxd.js";
15
15
  import { exportMap as ir, isStartingWithHtmlTag as lr, mergeBoldStrongTags as ur } from "./helpers.js";
16
16
  import { s as I } from "../../RteEditor.module-B_3uFnFu.js";
17
17
  import { ToolBarPlugin as cr } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
18
18
  import { useTranslation as dr } from "./hooks/useTranslation.js";
19
- import "../../TablePlugin-CykqKW6X.js";
19
+ import "../../TablePlugin-NmJsn2fm.js";
20
20
  import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "./hooks/components/Flyout.js";
22
22
  import "../Buttons/Button.js";
@@ -41,10 +41,10 @@ import { UvaTheme as mr } from "./UvaTheme/UvaTheme.js";
41
41
  import { EditorHeader as pr } from "./EditorHeader/EditorHeader.js";
42
42
  import { LanguageProvider as gr, useLanguage as hr } from "./Providers/LanguageProvider.js";
43
43
  import { PasteHandlerPlugin as vr } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
44
- const We = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Cr = We ? U : S, Q = { tag: de };
44
+ const Je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Cr = Je ? U : S, Q = { tag: de };
45
45
  function yr({ initialConfig: r, children: e }) {
46
46
  const t = q(() => {
47
- const { theme: o, namespace: a, nodes: n, onError: s, editorState: i, html: l } = r, u = Ye(null, o), c = Ie({ editable: r.editable, html: l, namespace: a, nodes: n, onError: (d) => s(d, c), theme: o });
47
+ const { theme: o, namespace: a, nodes: n, onError: s, editorState: i, html: l } = r, u = Xe(null, o), c = Ie({ editable: r.editable, html: l, namespace: a, nodes: n, onError: (d) => s(d, c), theme: o });
48
48
  return function(d, f) {
49
49
  if (f !== null) {
50
50
  if (f === void 0) d.update(() => {
@@ -52,7 +52,7 @@ function yr({ initialConfig: r, children: e }) {
52
52
  if (v.isEmpty()) {
53
53
  const C = Fe();
54
54
  v.append(C);
55
- const w = We ? document.activeElement : null;
55
+ const w = Je ? document.activeElement : null;
56
56
  (p() !== null || w !== null && w === d.getRootElement()) && C.select();
57
57
  }
58
58
  }, Q);
@@ -107,8 +107,8 @@ function kr(r) {
107
107
  if (t > 1) return !1;
108
108
  for (let o = 0; o < t; o++) {
109
109
  const a = e[o];
110
- if (J(a)) return !1;
111
- if (W(a)) {
110
+ if (W(a)) return !1;
111
+ if (J(a)) {
112
112
  if (!Qe(a) || a.__indent !== 0) return !1;
113
113
  const n = a.getChildren(), s = n.length;
114
114
  for (let i = 0; i < s; i++) {
@@ -174,7 +174,7 @@ function _e(r, e) {
174
174
  }
175
175
  return null;
176
176
  }
177
- const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Nr = H && "documentMode" in document ? document.documentMode : null, Lr = !(!H || !("InputEvent" in window) || Nr) && "getTargetRanges" in new window.InputEvent("input"), $r = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Se = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Dr = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), Pr = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Dr, ke = tt("DRAG_DROP_PASTE_FILE");
177
+ const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Nr = H && "documentMode" in document ? document.documentMode : null, Lr = !(!H || !("InputEvent" in window) || Nr) && "getTargetRanges" in new window.InputEvent("input"), Dr = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Se = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, $r = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), Pr = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !$r, ke = tt("DRAG_DROP_PASTE_FILE");
178
178
  function Z(r) {
179
179
  let e = null;
180
180
  if (z(r, DragEvent) ? e = r.dataTransfer : z(r, ClipboardEvent) && (e = r.clipboardData), e === null) return [!1, [], !1];
@@ -188,7 +188,7 @@ function xe(r) {
188
188
  for (let a = 0; a < o.length; a++) {
189
189
  const n = o[a], s = n.getKey();
190
190
  if (t.has(s)) continue;
191
- const i = fe(n, (u) => W(u) && !u.isInline());
191
+ const i = fe(n, (u) => J(u) && !u.isInline());
192
192
  if (i === null) continue;
193
193
  const l = i.getKey();
194
194
  i.canIndent() && !t.has(l) && (t.add(l), r(i));
@@ -197,7 +197,7 @@ function xe(r) {
197
197
  }
198
198
  function Ne(r) {
199
199
  const e = te(r);
200
- return J(e);
200
+ return W(e);
201
201
  }
202
202
  function ae(r) {
203
203
  for (const e of ["lowercase", "uppercase", "capitalize"]) r.hasFormat(e) && r.toggleFormat(e);
@@ -212,10 +212,10 @@ function Tr(r) {
212
212
  }, m), r.registerCommand(Pt, (e) => {
213
213
  const t = p();
214
214
  return !!g(t) && (t.deleteWord(e), !0);
215
- }, m), r.registerCommand(Dt, (e) => {
215
+ }, m), r.registerCommand($t, (e) => {
216
216
  const t = p();
217
217
  return !!g(t) && (t.deleteLine(e), !0);
218
- }, m), r.registerCommand($t, (e) => {
218
+ }, m), r.registerCommand(Dt, (e) => {
219
219
  const t = p();
220
220
  if (typeof e == "string") t !== null && t.insertText(e);
221
221
  else {
@@ -239,7 +239,7 @@ function Tr(r) {
239
239
  if (!g(t) && !P(t)) return !1;
240
240
  const o = t.getNodes();
241
241
  for (const a of o) {
242
- const n = fe(a, (s) => W(s) && !s.isInline());
242
+ const n = fe(a, (s) => J(s) && !s.isInline());
243
243
  n !== null && n.setFormat(e);
244
244
  }
245
245
  return !0;
@@ -262,7 +262,7 @@ function Tr(r) {
262
262
  if (o.length > 0) return o[0].selectPrevious(), !0;
263
263
  } else if (g(t)) {
264
264
  const o = he(t.focus, !0);
265
- if (!e.shiftKey && J(o) && !o.isIsolated() && !o.isInline()) return o.selectPrevious(), e.preventDefault(), !0;
265
+ if (!e.shiftKey && W(o) && !o.isIsolated() && !o.isInline()) return o.selectPrevious(), e.preventDefault(), !0;
266
266
  }
267
267
  return !1;
268
268
  }, m), r.registerCommand(Et, (e) => {
@@ -276,7 +276,7 @@ function Tr(r) {
276
276
  return n.key === "root" && n.offset === A().getChildrenSize();
277
277
  }(t)) return e.preventDefault(), !0;
278
278
  const o = he(t.focus, !1);
279
- if (!e.shiftKey && J(o) && !o.isIsolated() && !o.isInline()) return o.selectNext(), e.preventDefault(), !0;
279
+ if (!e.shiftKey && W(o) && !o.isIsolated() && !o.isInline()) return o.selectNext(), e.preventDefault(), !0;
280
280
  }
281
281
  return !1;
282
282
  }, m), r.registerCommand(yt, (e) => {
@@ -324,7 +324,7 @@ function Tr(r) {
324
324
  const t = p();
325
325
  if (!g(t)) return !1;
326
326
  if (ae(t), e !== null) {
327
- if ((Se || $r || Pr) && Lr) return !1;
327
+ if ((Se || Dr || Pr) && Lr) return !1;
328
328
  if (e.preventDefault(), e.shiftKey) return r.dispatchCommand(me, !1);
329
329
  }
330
330
  return r.dispatchCommand(pe, void 0);
@@ -362,7 +362,7 @@ function Tr(r) {
362
362
  const a = _e(e.clientX, e.clientY);
363
363
  if (a !== null) {
364
364
  const n = te(a.node);
365
- J(n) && e.preventDefault();
365
+ W(n) && e.preventDefault();
366
366
  }
367
367
  return !0;
368
368
  }, m), r.registerCommand(st, () => (it(), !0), m), r.registerCommand(at, (e) => (ye(r, z(e, ClipboardEvent) ? e : null), !0), m), r.registerCommand(ot, (e) => (async function(t, o) {
@@ -431,21 +431,21 @@ function Ir({ content: r }) {
431
431
  }
432
432
  const Ve = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : S;
433
433
  function Fr({ editor: r, ariaActiveDescendant: e, ariaAutoComplete: t, ariaControls: o, ariaDescribedBy: a, ariaErrorMessage: n, ariaExpanded: s, ariaInvalid: i, ariaLabel: l, ariaLabelledBy: u, ariaMultiline: c, ariaOwns: d, ariaRequired: f, autoCapitalize: v, className: C, id: w, role: x = "textbox", spellCheck: y = !0, style: E, tabIndex: _, "data-testid": N, ...b }, L) {
434
- const [k, R] = M(r.isEditable()), O = Bt(($) => {
435
- $ && $.ownerDocument && $.ownerDocument.defaultView ? r.setRootElement($) : r.setRootElement(null);
436
- }, [r]), B = q(() => /* @__PURE__ */ function(...$) {
434
+ const [k, R] = M(r.isEditable()), O = Bt((D) => {
435
+ D && D.ownerDocument && D.ownerDocument.defaultView ? r.setRootElement(D) : r.setRootElement(null);
436
+ }, [r]), B = q(() => /* @__PURE__ */ function(...D) {
437
437
  return (V) => {
438
- $.forEach((X) => {
439
- typeof X == "function" ? X(V) : X != null && (X.current = V);
438
+ D.forEach((Y) => {
439
+ typeof Y == "function" ? Y(V) : Y != null && (Y.current = V);
440
440
  });
441
441
  };
442
442
  }(L, O), [O, L]);
443
- return Ve(() => (R(r.isEditable()), r.registerEditableListener(($) => {
444
- R($);
443
+ return Ve(() => (R(r.isEditable()), r.registerEditableListener((D) => {
444
+ R(D);
445
445
  })), [r]), h("div", { "aria-activedescendant": k ? e : void 0, "aria-autocomplete": k ? t : "none", "aria-controls": k ? o : void 0, "aria-describedby": a, ...n != null ? { "aria-errormessage": n } : {}, "aria-expanded": k && x === "combobox" ? !!s : void 0, ...i != null ? { "aria-invalid": i } : {}, "aria-label": l, "aria-labelledby": u, "aria-multiline": c, "aria-owns": k ? d : void 0, "aria-readonly": !k || void 0, "aria-required": f, autoCapitalize: v, className: C, contentEditable: k, "data-testid": N, id: w, ref: B, role: k ? x : void 0, spellCheck: y, style: E, tabIndex: _, ...b });
446
446
  }
447
447
  const Mr = Ae(Fr);
448
- function $e(r) {
448
+ function De(r) {
449
449
  return r.getEditorState().read(qe(r.isComposing()));
450
450
  }
451
451
  const Or = Ae(Kr);
@@ -455,10 +455,10 @@ function Kr(r, e) {
455
455
  }
456
456
  function zr({ content: r, editor: e }) {
457
457
  const t = function(s) {
458
- const [i, l] = M(() => $e(s));
458
+ const [i, l] = M(() => De(s));
459
459
  return Ve(() => {
460
460
  function u() {
461
- const c = $e(s);
461
+ const c = De(s);
462
462
  l(c);
463
463
  }
464
464
  return u(), j(s.registerUpdateListener(() => {
@@ -479,11 +479,11 @@ function le(r, e) {
479
479
  return t.__proto__ = o, t;
480
480
  }, le(r, e);
481
481
  }
482
- var De = { error: null }, Ar = function(r) {
482
+ var $e = { error: null }, Ar = function(r) {
483
483
  var e, t;
484
484
  function o() {
485
485
  for (var n, s = arguments.length, i = new Array(s), l = 0; l < s; l++) i[l] = arguments[l];
486
- return (n = r.call.apply(r, [this].concat(i)) || this).state = De, n.resetErrorBoundary = function() {
486
+ return (n = r.call.apply(r, [this].concat(i)) || this).state = $e, n.resetErrorBoundary = function() {
487
487
  for (var u, c = arguments.length, d = new Array(c), f = 0; f < c; f++) d[f] = arguments[f];
488
488
  n.props.onReset == null || (u = n.props).onReset.apply(u, d), n.reset();
489
489
  }, n;
@@ -493,7 +493,7 @@ var De = { error: null }, Ar = function(r) {
493
493
  };
494
494
  var a = o.prototype;
495
495
  return a.reset = function() {
496
- this.setState(De);
496
+ this.setState($e);
497
497
  }, a.componentDidCatch = function(n, s) {
498
498
  var i, l;
499
499
  (i = (l = this.props).onError) == null || i.call(l, n, s);
@@ -536,7 +536,7 @@ function Hr({ hasStrictIndent: r = !1 }) {
536
536
  S(() => Vt(t), [t]);
537
537
  }(e), null;
538
538
  }
539
- function Jr({ validateUrl: r, attributes: e }) {
539
+ function Wr({ validateUrl: r, attributes: e }) {
540
540
  const [t] = T();
541
541
  return S(() => {
542
542
  if (!t.hasNodes([je])) throw new Error("LinkPlugin: LinkNode not registered on editor");
@@ -551,12 +551,12 @@ function Jr({ validateUrl: r, attributes: e }) {
551
551
  const a = p();
552
552
  if (!g(a) || a.isCollapsed() || !z(o, ClipboardEvent) || o.clipboardData === null) return !1;
553
553
  const n = o.clipboardData.getData("text");
554
- return !!r(n) && !a.getNodes().some((s) => W(s)) && (t.dispatchCommand(be, { ...e, url: n }), o.preventDefault(), !0);
554
+ return !!r(n) && !a.getNodes().some((s) => J(s)) && (t.dispatchCommand(be, { ...e, url: n }), o.preventDefault(), !0);
555
555
  }, ve) : () => {
556
556
  });
557
557
  }, [t, r, e]), null;
558
558
  }
559
- function Wr({ newTab: r = !0, disabled: e = !1 }) {
559
+ function Jr({ newTab: r = !0, disabled: e = !1 }) {
560
560
  const [t] = T();
561
561
  return S(() => {
562
562
  const o = (n) => {
@@ -568,8 +568,8 @@ function Wr({ newTab: r = !0, disabled: e = !1 }) {
568
568
  if (i.update(() => {
569
569
  const f = te(s);
570
570
  if (f !== null) {
571
- const v = fe(f, W);
572
- if (!e) if (Xt(v)) l = v.sanitizeUrl(v.getURL()), u = v.getTarget();
571
+ const v = fe(f, J);
572
+ if (!e) if (Yt(v)) l = v.sanitizeUrl(v.getURL()), u = v.getTarget();
573
573
  else {
574
574
  const C = function(w, x) {
575
575
  let y = w;
@@ -595,12 +595,12 @@ function Wr({ newTab: r = !0, disabled: e = !1 }) {
595
595
  });
596
596
  }, [t, r, e]), null;
597
597
  }
598
- const ee = 0, ue = 1, ce = 2, D = 0, qr = 1, Pe = 2, Vr = 3, Xr = 4;
599
- function Yr(r, e, t, o, a) {
600
- if (r === null || t.size === 0 && o.size === 0 && !a) return D;
598
+ const ee = 0, ue = 1, ce = 2, $ = 0, qr = 1, Pe = 2, Vr = 3, Yr = 4;
599
+ function Xr(r, e, t, o, a) {
600
+ if (r === null || t.size === 0 && o.size === 0 && !a) return $;
601
601
  const n = e._selection, s = r._selection;
602
602
  if (a) return qr;
603
- if (!(g(n) && g(s) && s.isCollapsed() && n.isCollapsed())) return D;
603
+ if (!(g(n) && g(s) && s.isCollapsed() && n.isCollapsed())) return $;
604
604
  const i = function(y, E, _) {
605
605
  const N = y._nodeMap, b = [];
606
606
  for (const L of E) {
@@ -614,31 +614,31 @@ function Yr(r, e, t, o, a) {
614
614
  }
615
615
  return b;
616
616
  }(e, t, o);
617
- if (i.length === 0) return D;
617
+ if (i.length === 0) return $;
618
618
  if (i.length > 1) {
619
619
  const y = e._nodeMap, E = y.get(n.anchor.key), _ = y.get(s.anchor.key);
620
- return E && _ && !r._nodeMap.has(E.__key) && F(E) && E.__text.length === 1 && n.anchor.offset === 1 ? Pe : D;
620
+ return E && _ && !r._nodeMap.has(E.__key) && F(E) && E.__text.length === 1 && n.anchor.offset === 1 ? Pe : $;
621
621
  }
622
622
  const l = i[0], u = r._nodeMap.get(l.__key);
623
- if (!F(u) || !F(l) || u.__mode !== l.__mode) return D;
623
+ if (!F(u) || !F(l) || u.__mode !== l.__mode) return $;
624
624
  const c = u.__text, d = l.__text;
625
- if (c === d) return D;
625
+ if (c === d) return $;
626
626
  const f = n.anchor, v = s.anchor;
627
- if (f.key !== v.key || f.type !== "text") return D;
627
+ if (f.key !== v.key || f.type !== "text") return $;
628
628
  const C = f.offset, w = v.offset, x = d.length - c.length;
629
- return x === 1 && w === C - 1 ? Pe : x === -1 && w === C + 1 ? Vr : x === -1 && w === C ? Xr : D;
629
+ return x === 1 && w === C - 1 ? Pe : x === -1 && w === C + 1 ? Vr : x === -1 && w === C ? Yr : $;
630
630
  }
631
631
  function Gr(r, e) {
632
- let t = Date.now(), o = D;
632
+ let t = Date.now(), o = $;
633
633
  return (a, n, s, i, l, u) => {
634
634
  const c = Date.now();
635
- if (u.has(se)) return o = D, t = c, ce;
636
- const d = Yr(a, n, i, l, r.isComposing()), f = (() => {
635
+ if (u.has(se)) return o = $, t = c, ce;
636
+ const d = Xr(a, n, i, l, r.isComposing()), f = (() => {
637
637
  const v = s === null || s.editor === r, C = u.has(zt);
638
638
  if (!C && v && u.has(de)) return ee;
639
639
  if (a === null) return ue;
640
640
  const w = n._selection;
641
- return i.size > 0 || l.size > 0 ? C === !1 && d !== D && d === o && c < t + e && v || i.size === 1 && function(x, y, E) {
641
+ return i.size > 0 || l.size > 0 ? C === !1 && d !== $ && d === o && c < t + e && v || i.size === 1 && function(x, y, E) {
642
642
  const _ = y._nodeMap.get(x), N = E._nodeMap.get(x), b = y._selection, L = E._selection;
643
643
  return !(g(b) && g(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !F(_) || !F(N) || _.__parent !== N.__parent) && JSON.stringify(y.read(() => _.exportJSON())) === JSON.stringify(E.read(() => N.exportJSON()));
644
644
  }(Array.from(i)[0], a, n) ? ee : ue : w !== null ? ee : ce;
@@ -655,7 +655,7 @@ function Qr(r, e, t) {
655
655
  const i = s.redoStack, l = s.undoStack;
656
656
  if (l.length !== 0) {
657
657
  const u = s.current, c = l.pop();
658
- u !== null && (i.push(u), n.dispatchCommand(Y, !0)), l.length === 0 && n.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: se });
658
+ u !== null && (i.push(u), n.dispatchCommand(X, !0)), l.length === 0 && n.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: se });
659
659
  }
660
660
  }(r, e), !0), m), r.registerCommand(Ot, () => (function(n, s) {
661
661
  const i = s.redoStack, l = s.undoStack;
@@ -663,13 +663,13 @@ function Qr(r, e, t) {
663
663
  const u = s.current;
664
664
  u !== null && (l.push(u), n.dispatchCommand(G, !0));
665
665
  const c = i.pop();
666
- i.length === 0 && n.dispatchCommand(Y, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: se });
666
+ i.length === 0 && n.dispatchCommand(X, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: se });
667
667
  }
668
- }(r, e), !0), m), r.registerCommand(Mt, () => (Te(e), !1), m), r.registerCommand(Ft, () => (Te(e), r.dispatchCommand(Y, !1), r.dispatchCommand(G, !1), !0), m), r.registerUpdateListener(({ editorState: n, prevEditorState: s, dirtyLeaves: i, dirtyElements: l, tags: u }) => {
668
+ }(r, e), !0), m), r.registerCommand(Mt, () => (Te(e), !1), m), r.registerCommand(Ft, () => (Te(e), r.dispatchCommand(X, !1), r.dispatchCommand(G, !1), !0), m), r.registerUpdateListener(({ editorState: n, prevEditorState: s, dirtyLeaves: i, dirtyElements: l, tags: u }) => {
669
669
  const c = e.current, d = e.redoStack, f = e.undoStack, v = c === null ? null : c.editorState;
670
670
  if (c !== null && n === v) return;
671
671
  const C = o(s, n, c, i, l, u);
672
- if (C === ue) d.length !== 0 && (e.redoStack = [], r.dispatchCommand(Y, !1)), c !== null && (f.push({ ...c }), r.dispatchCommand(G, !0));
672
+ if (C === ue) d.length !== 0 && (e.redoStack = [], r.dispatchCommand(X, !1)), c !== null && (f.push({ ...c }), r.dispatchCommand(G, !0));
673
673
  else if (C === ce) return;
674
674
  e.current = { editor: r, editorState: n };
675
675
  }));
@@ -692,12 +692,12 @@ function tn({ hasCellMerge: r = !0, hasCellBackgroundColor: e = !0, hasTabHandle
692
692
  }, [a, o]), S(() => Zt(a), [a]), S(() => er(a, t), [a, t]), S(() => {
693
693
  if (!r) return tr(a);
694
694
  }, [a, r]), S(() => {
695
- if (!e) return a.registerNodeTransform(Je, (n) => {
695
+ if (!e) return a.registerNodeTransform(We, (n) => {
696
696
  n.getBackgroundColor() !== null && n.setBackgroundColor(null);
697
697
  });
698
698
  }, [a, e, r]), null;
699
699
  }
700
- const Xe = 200, rn = ({
700
+ const Ye = 200, rn = ({
701
701
  currentLanguage: r = "NL",
702
702
  initialValue: e = "",
703
703
  placeholder: t = "",
@@ -706,7 +706,7 @@ const Xe = 200, rn = ({
706
706
  required: n = !1,
707
707
  notValidatedText: s = "",
708
708
  maxHeightInRem: i = "20rem",
709
- maxWords: l = Xe,
709
+ maxWords: l = Ye,
710
710
  onChange: u
711
711
  }) => {
712
712
  const { switchLanguage: c } = hr(), d = dr(), [f] = M(() => Ie()), [v, C] = M(0), [w, x] = M(0), y = ze(null), E = {
@@ -719,24 +719,24 @@ const Xe = 200, rn = ({
719
719
  onError(b) {
720
720
  throw b;
721
721
  },
722
- nodes: [Be, Ue, je, Yt, Je, rr, He],
722
+ nodes: [Be, Ue, je, Xt, We, rr, He],
723
723
  editorState: (b) => {
724
- const k = new DOMParser().parseFromString(e, "text/html"), R = Jt(b, k), O = A();
724
+ const k = new DOMParser().parseFromString(e, "text/html"), R = Wt(b, k), O = A();
725
725
  if (O.clear(), lr(e))
726
726
  R.forEach((B) => {
727
727
  O.append(B);
728
728
  });
729
729
  else {
730
730
  const B = Fe();
731
- R.forEach(($, V) => {
732
- V === 0 ? (B.append($), O.append(B)) : O.append($);
731
+ R.forEach((D, V) => {
732
+ V === 0 ? (B.append(D), O.append(B)) : O.append(D);
733
733
  });
734
734
  }
735
735
  }
736
736
  }, _ = (b) => b.trim().length === 0 ? 0 : b.split(" ").length, N = (b, L) => {
737
737
  b.read(() => {
738
738
  let k = "";
739
- C(_(A().getTextContent().replace(/\s+/g, " ").trim())), k = ur(Wt(L)), u(k);
739
+ C(_(A().getTextContent().replace(/\s+/g, " ").trim())), k = ur(Jt(L)), u(k);
740
740
  });
741
741
  };
742
742
  return S(() => {
@@ -781,16 +781,16 @@ const Xe = 200, rn = ({
781
781
  /* @__PURE__ */ h(tn, {}),
782
782
  /* @__PURE__ */ h(en, {}),
783
783
  /* @__PURE__ */ h(Hr, {}),
784
- /* @__PURE__ */ h(Jr, { validateUrl: nr }),
784
+ /* @__PURE__ */ h(Wr, { validateUrl: nr }),
785
785
  /* @__PURE__ */ h(or, { matchers: ar }),
786
- /* @__PURE__ */ h(Wr, {}),
786
+ /* @__PURE__ */ h(Jr, {}),
787
787
  /* @__PURE__ */ h(jr, { onChange: N }),
788
788
  /* @__PURE__ */ h(vr, {})
789
789
  ] })
790
790
  ] }) }),
791
791
  s !== "" && /* @__PURE__ */ h(fr, { level: "error", feedback: s })
792
792
  ] });
793
- }, Wn = ({
793
+ }, Jn = ({
794
794
  currentLanguage: r = "NL",
795
795
  initialValue: e = "",
796
796
  placeholder: t = "",
@@ -798,7 +798,7 @@ const Xe = 200, rn = ({
798
798
  info: a = "",
799
799
  required: n = !1,
800
800
  notValidatedText: s = "",
801
- maxWords: i = Xe,
801
+ maxWords: i = Ye,
802
802
  onChange: l
803
803
  }) => /* @__PURE__ */ h(gr, { children: /* @__PURE__ */ h(
804
804
  rn,
@@ -816,6 +816,6 @@ const Xe = 200, rn = ({
816
816
  ) });
817
817
  export {
818
818
  rn as Rte,
819
- Wn as RteEditor
819
+ Jn as RteEditor
820
820
  };
821
821
  //# sourceMappingURL=RteEditor.js.map
@@ -1,7 +1,7 @@
1
- import { g as s } from "../../LexicalLink.prod-D0qasaVP.js";
2
- import { t as n, j as i } from "../../LexicalList.prod-CQz14k_F.js";
3
- import { ad as a, J as c } from "../../Lexical.prod-m3GJsAAT.js";
4
- import { a as m, O as g, y as u } from "../../LexicalTable.prod-BHKhA4PF.js";
1
+ import { g as s } from "../../LexicalLink.prod-Bsa9J7L-.js";
2
+ import { t as n, j as i } from "../../LexicalList.prod-jxGuZd4b.js";
3
+ import { ad as a, J as c } from "../../Lexical.prod-UwAbgYpF.js";
4
+ import { a as m, O as g, y as u } from "../../LexicalTable.prod-BSjs04iE.js";
5
5
  const h = (e) => /^<(b|i|u|strong|em|mark|small|del|ins|sub|sup|div|p|span|h[1-6]|a|img|table|tr|td|th|ul|ol|li|blockquote|pre|code|br)(\s+[^>]*)?>/i.test(e.trim()), y = (e) => {
6
6
  let r = e.replace(/<b><strong>/gi, "<strong>");
7
7
  return r = r.replace(/<\/strong><\/b>/gi, "</strong>"), r;
@@ -1,7 +1,7 @@
1
- import { jsxs as r, jsx as _ } from "react/jsx-runtime";
1
+ import { jsxs as _, jsx as n } from "react/jsx-runtime";
2
2
  import { useRef as x, useState as d } from "react";
3
3
  import { c as i } from "../../clsx-OuTLNxxd.js";
4
- import '../../assets/TextArea.css';const t = {
4
+ import '../../assets/TextArea.css';const r = {
5
5
  "text-area__wrapper": "_text-area__wrapper_13728_1",
6
6
  "text-area__header": "_text-area__header_13728_7",
7
7
  "text-area__label": "_text-area__label_13728_13",
@@ -9,27 +9,27 @@ import '../../assets/TextArea.css';const t = {
9
9
  "text-area__word-count--alert": "_text-area__word-count--alert_13728_25",
10
10
  "text-area": "_text-area_13728_1"
11
11
  };
12
- function w({ onChange: l, label: c, maxCharacters: a = 0, defaultValue: o = "" }) {
13
- const e = x(null), [n, s] = d(0), u = () => {
14
- e.current && (e.current.style.height = "auto", e.current.style.height = `${e.current.scrollHeight}px`, s(e.current.value.length), l(e.current.value.trim()));
12
+ function w({ onChange: c, label: a, maxCharacters: t = 0, defaultValue: l = "" }) {
13
+ const e = x(null), [o, s] = d(0), u = () => {
14
+ e.current && (e.current.style.height = "auto", e.current.style.height = `${e.current.scrollHeight}px`, s(e.current.value.length), c(e.current.value.trim()));
15
15
  };
16
- return /* @__PURE__ */ r("div", { className: t["text-area__wrapper"], children: [
17
- /* @__PURE__ */ r("div", { className: t["text-area__header"], children: [
18
- /* @__PURE__ */ _("span", { className: t["text-area__label"], children: c }),
19
- a > 0 && /* @__PURE__ */ r("div", { className: t["text-area__word-count"], children: [
20
- /* @__PURE__ */ _("span", { className: i({ [t["text-area__word-count--alert"]]: n === a }), children: n }),
16
+ return /* @__PURE__ */ _("div", { className: r["text-area__wrapper"], children: [
17
+ (a || t > 0) && /* @__PURE__ */ _("div", { className: r["text-area__header"], children: [
18
+ a && /* @__PURE__ */ n("span", { className: r["text-area__label"], children: a }),
19
+ t > 0 && /* @__PURE__ */ _("div", { className: r["text-area__word-count"], children: [
20
+ /* @__PURE__ */ n("span", { className: i({ [r["text-area__word-count--alert"]]: o === t }), children: o }),
21
21
  " / ",
22
- a
22
+ t
23
23
  ] })
24
24
  ] }),
25
- /* @__PURE__ */ _(
25
+ /* @__PURE__ */ n(
26
26
  "textarea",
27
27
  {
28
28
  ref: e,
29
- className: t["text-area"],
30
- maxLength: a > 0 ? a : void 0,
29
+ className: r["text-area"],
30
+ maxLength: t > 0 ? t : void 0,
31
31
  onInput: u,
32
- defaultValue: o
32
+ defaultValue: l
33
33
  }
34
34
  )
35
35
  ] });
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","sources":["../../../src/components/TextArea/TextArea.tsx"],"sourcesContent":["import { useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './TextArea.module.css';\n\nexport interface TextAreaProps {\n /** Returns entered values as trimmed string */\n onChange: (value: string) => void;\n /** The label for the text area */\n label?: string;\n /** The max amount of allowed charecters in the text area */\n maxCharacters?: number;\n /** The default value for the text area */\n defaultValue?: string;\n}\n\nexport function TextArea({ onChange, label, maxCharacters = 0, defaultValue = '' }: TextAreaProps) {\n const textAreaRef = useRef<HTMLTextAreaElement>(null);\n const [characterCount, setCharacterCount] = useState(0);\n\n const handleInput = () => {\n if (textAreaRef.current) {\n textAreaRef.current.style.height = 'auto';\n textAreaRef.current.style.height = `${textAreaRef.current.scrollHeight}px`;\n\n setCharacterCount(textAreaRef.current.value.length);\n onChange(textAreaRef.current.value.trim());\n }\n };\n\n return (\n <div className={styles['text-area__wrapper']}>\n <div className={styles['text-area__header']}>\n <span className={styles['text-area__label']}>{label}</span>\n {maxCharacters > 0 && (\n <div className={styles['text-area__word-count']}>\n <span className={clsx({ [styles['text-area__word-count--alert']]: characterCount === maxCharacters })}>\n {characterCount}\n </span>\n &nbsp;/&nbsp;{maxCharacters}\n </div>\n )}\n </div>\n\n <textarea\n ref={textAreaRef}\n className={styles['text-area']}\n maxLength={maxCharacters > 0 ? maxCharacters : undefined}\n onInput={handleInput}\n defaultValue={defaultValue}\n />\n </div>\n );\n}\n"],"names":["TextArea","onChange","label","maxCharacters","defaultValue","textAreaRef","useRef","characterCount","setCharacterCount","useState","handleInput","jsxs","styles","jsx","clsx"],"mappings":";;;;;;;;;;;AAgBgB,SAAAA,EAAS,EAAE,UAAAC,GAAU,OAAAC,GAAO,eAAAC,IAAgB,GAAG,cAAAC,IAAe,MAAqB;AAC3F,QAAAC,IAAcC,EAA4B,IAAI,GAC9C,CAACC,GAAgBC,CAAiB,IAAIC,EAAS,CAAC,GAEhDC,IAAc,MAAM;AACxB,IAAIL,EAAY,YACFA,EAAA,QAAQ,MAAM,SAAS,QACnCA,EAAY,QAAQ,MAAM,SAAS,GAAGA,EAAY,QAAQ,YAAY,MAEpDG,EAAAH,EAAY,QAAQ,MAAM,MAAM,GAClDJ,EAASI,EAAY,QAAQ,MAAM,KAAA,CAAM;AAAA,EAE7C;AAEA,SACG,gBAAAM,EAAA,OAAA,EAAI,WAAWC,EAAO,oBAAoB,GACzC,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAI,EAAA,WAAWC,EAAO,mBAAmB,GACxC,UAAA;AAAA,MAAA,gBAAAC,EAAC,QAAK,EAAA,WAAWD,EAAO,kBAAkB,GAAI,UAAMV,GAAA;AAAA,MACnDC,IAAgB,KACf,gBAAAQ,EAAC,SAAI,WAAWC,EAAO,uBAAuB,GAC5C,UAAA;AAAA,QAAA,gBAAAC,EAAC,QAAK,EAAA,WAAWC,EAAK,EAAE,CAACF,EAAO,8BAA8B,CAAC,GAAGL,MAAmBJ,EAAc,CAAC,GACjG,UACHI,EAAA,CAAA;AAAA,QAAO;AAAA,QACOJ;AAAA,MAAA,EAChB,CAAA;AAAA,IAAA,GAEJ;AAAA,IAEA,gBAAAU;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAKR;AAAA,QACL,WAAWO,EAAO,WAAW;AAAA,QAC7B,WAAWT,IAAgB,IAAIA,IAAgB;AAAA,QAC/C,SAASO;AAAA,QACT,cAAAN;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"TextArea.js","sources":["../../../src/components/TextArea/TextArea.tsx"],"sourcesContent":["import { useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './TextArea.module.css';\n\nexport interface TextAreaProps {\n /** Returns entered values as trimmed string */\n onChange: (value: string) => void;\n /** The label for the text area */\n label?: string;\n /** The max amount of allowed charecters in the text area */\n maxCharacters?: number;\n /** The default value for the text area */\n defaultValue?: string;\n}\n\nexport function TextArea({ onChange, label, maxCharacters = 0, defaultValue = '' }: TextAreaProps) {\n const textAreaRef = useRef<HTMLTextAreaElement>(null);\n const [characterCount, setCharacterCount] = useState(0);\n\n const handleInput = () => {\n if (textAreaRef.current) {\n textAreaRef.current.style.height = 'auto';\n textAreaRef.current.style.height = `${textAreaRef.current.scrollHeight}px`;\n\n setCharacterCount(textAreaRef.current.value.length);\n onChange(textAreaRef.current.value.trim());\n }\n };\n\n return (\n <div className={styles['text-area__wrapper']}>\n {(label || maxCharacters > 0) && (\n <div className={styles['text-area__header']}>\n {label && <span className={styles['text-area__label']}>{label}</span>}\n {maxCharacters > 0 && (\n <div className={styles['text-area__word-count']}>\n <span className={clsx({ [styles['text-area__word-count--alert']]: characterCount === maxCharacters })}>\n {characterCount}\n </span>\n &nbsp;/&nbsp;{maxCharacters}\n </div>\n )}\n </div>\n )}\n\n <textarea\n ref={textAreaRef}\n className={styles['text-area']}\n maxLength={maxCharacters > 0 ? maxCharacters : undefined}\n onInput={handleInput}\n defaultValue={defaultValue}\n />\n </div>\n );\n}\n"],"names":["TextArea","onChange","label","maxCharacters","defaultValue","textAreaRef","useRef","characterCount","setCharacterCount","useState","handleInput","jsxs","styles","jsx","clsx"],"mappings":";;;;;;;;;;;AAgBgB,SAAAA,EAAS,EAAE,UAAAC,GAAU,OAAAC,GAAO,eAAAC,IAAgB,GAAG,cAAAC,IAAe,MAAqB;AAC3F,QAAAC,IAAcC,EAA4B,IAAI,GAC9C,CAACC,GAAgBC,CAAiB,IAAIC,EAAS,CAAC,GAEhDC,IAAc,MAAM;AACxB,IAAIL,EAAY,YACFA,EAAA,QAAQ,MAAM,SAAS,QACnCA,EAAY,QAAQ,MAAM,SAAS,GAAGA,EAAY,QAAQ,YAAY,MAEpDG,EAAAH,EAAY,QAAQ,MAAM,MAAM,GAClDJ,EAASI,EAAY,QAAQ,MAAM,KAAA,CAAM;AAAA,EAE7C;AAEA,SACG,gBAAAM,EAAA,OAAA,EAAI,WAAWC,EAAO,oBAAoB,GACvC,UAAA;AAAA,KAAAV,KAASC,IAAgB,MACzB,gBAAAQ,EAAC,SAAI,WAAWC,EAAO,mBAAmB,GACvC,UAAA;AAAA,MAAAV,uBAAU,QAAK,EAAA,WAAWU,EAAO,kBAAkB,GAAI,UAAMV,GAAA;AAAA,MAC7DC,IAAgB,KACf,gBAAAQ,EAAC,SAAI,WAAWC,EAAO,uBAAuB,GAC5C,UAAA;AAAA,QAAA,gBAAAC,EAAC,QAAK,EAAA,WAAWC,EAAK,EAAE,CAACF,EAAO,8BAA8B,CAAC,GAAGL,MAAmBJ,EAAc,CAAC,GACjG,UACHI,EAAA,CAAA;AAAA,QAAO;AAAA,QACOJ;AAAA,MAAA,EAChB,CAAA;AAAA,IAAA,GAEJ;AAAA,IAGF,gBAAAU;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAKR;AAAA,QACL,WAAWO,EAAO,WAAW;AAAA,QAC7B,WAAWT,IAAgB,IAAIA,IAAgB;AAAA,QAC/C,SAASO;AAAA,QACT,cAAAN;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;"}
@@ -35,7 +35,7 @@ import { Label as Bo } from "./Label/Label.js";
35
35
  import { MenuLink as So } from "./MenuLink/MenuLink.js";
36
36
  import { MetaDataList as Co } from "./MetaDataList/MetaDataList.js";
37
37
  import { ModalDialog as ko } from "./ModalDialog/ModalDialog.js";
38
- import { M as Mo } from "../TablePlugin-CykqKW6X.js";
38
+ import { M as Mo } from "../TablePlugin-NmJsn2fm.js";
39
39
  import { MultiSelectBox as Lo } from "./MultiSelectBox/MultiSelectBox.js";
40
40
  import { OverlayCloseButton as Ro } from "./OverlayCloseButton/OverlayCloseButton.js";
41
41
  import { OverlayStepBar as ho } from "./OverlayStepBar/OverlayStepBar.js";
@@ -1,7 +1,7 @@
1
- import { m as X, k as _, O as x, p as y, U as G } from "./LexicalLink.prod-D0qasaVP.js";
1
+ import { m as X, k as _, O as x, p as y, U as G } from "./LexicalLink.prod-Bsa9J7L-.js";
2
2
  import { o as M } from "./LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { j } from "./LexicalUtils.prod-Vqqof-U-.js";
4
- import { N as b, c as E, I as H, J, Q as T, X as v, g as Q, i as N, d as I } from "./Lexical.prod-m3GJsAAT.js";
3
+ import { j } from "./LexicalUtils.prod-cQutjKA3.js";
4
+ import { N as b, c as E, I as H, J, Q as T, X as v, g as Q, j as N, d as I } from "./Lexical.prod-UwAbgYpF.js";
5
5
  import { useEffect as B } from "react";
6
6
  function L(t, e = (n) => n) {
7
7
  return (n) => {
@@ -161,4 +161,4 @@ export {
161
161
  gt as v,
162
162
  at as w
163
163
  };
164
- //# sourceMappingURL=helpers-5AryUrYu.js.map
164
+ //# sourceMappingURL=helpers-DZIm3MiJ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers-5AryUrYu.js","sources":["../node_modules/@lexical/react/LexicalAutoLinkPlugin.prod.mjs","../src/components/RteEditor/Plugins/LinkPlugin/helpers.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{AutoLinkNode as t,$isAutoLinkNode as e,$isLinkNode as n,TOGGLE_LINK_COMMAND as r,$createAutoLinkNode as l}from\"@lexical/link\";import{useLexicalComposerContext as i}from\"@lexical/react/LexicalComposerContext\";import{mergeRegister as o}from\"@lexical/utils\";import{TextNode as s,$getSelection as u,$isRangeSelection as g,COMMAND_PRIORITY_LOW as c,$isTextNode as a,$isElementNode as f,$isLineBreakNode as x,$createTextNode as h,$isNodeSelection as p}from\"lexical\";import{useEffect as d}from\"react\";function m(t,e=(t=>t)){return n=>{const r=t.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:e(r[0])}}}function T(t,e){for(let n=0;n<e.length;n++){const r=e[n](t);if(r)return r}return null}const C=/[.,;\\s]/;function S(t){return C.test(t)}function b(t){return S(t[t.length-1])}function U(t){return S(t[0])}function v(t){let e=t.getPreviousSibling();return f(e)&&(e=e.getLastDescendant()),null===e||x(e)||a(e)&&b(e.getTextContent())}function L(t){let e=t.getNextSibling();return f(e)&&(e=e.getFirstDescendant()),null===e||x(e)||a(e)&&U(e.getTextContent())}function R(t,e,n,r){if(!(t>0?S(n[t-1]):v(r[0])))return!1;return e<n.length?S(n[e]):L(r[r.length-1])}function k(t,e,n){const r=[],l=[],i=[];let o=0,s=0;const u=[...t];for(;u.length>0;){const t=u[0],g=t.getTextContent().length,c=s;s+g<=e?(r.push(t),o+=g):c>=n?i.push(t):l.push(t),s+=g,u.shift()}return[o,r,l,i]}function D(t,e,n,r){const i=l(r.url,r.attributes);if(1===t.length){let l,o=t[0];0===e?[l,o]=o.splitText(n):[,l,o]=o.splitText(e,n);const s=h(r.text);return s.setFormat(l.getFormat()),s.setDetail(l.getDetail()),s.setStyle(l.getStyle()),i.append(s),l.replace(i),o}if(t.length>1){const r=t[0];let l,o=r.getTextContent().length;0===e?l=r:[,l]=r.splitText(e);const s=[];let c;for(let e=1;e<t.length;e++){const r=t[e],l=r.getTextContent().length,i=o;if(i<n)if(o+l<=n)s.push(r);else{const[t,e]=r.splitText(n-i);s.push(t),c=e}o+=l}const f=u(),x=f?f.getNodes().find(a):void 0,d=h(l.getTextContent());return d.setFormat(l.getFormat()),d.setDetail(l.getDetail()),d.setStyle(l.getStyle()),i.append(d,...s),x&&x===l&&(g(f)?d.select(f.anchor.offset,f.focus.offset):p(f)&&d.select(0,d.getTextContent().length)),l.replace(i),c}}function N(t,e,n){const r=t.getChildren(),l=r.length;for(let e=0;e<l;e++){const l=r[e];if(!a(l)||!l.isSimpleText())return I(t),void n(null,t.getURL())}const i=t.getTextContent(),o=T(i,e);if(null===o||o.text!==i)return I(t),void n(null,t.getURL());if(!v(t)||!L(t))return I(t),void n(null,t.getURL());const s=t.getURL();if(s!==o.url&&(t.setURL(o.url),n(o.url,s)),o.attributes){const e=t.getRel();e!==o.attributes.rel&&(t.setRel(o.attributes.rel||null),n(o.attributes.rel||null,e));const r=t.getTarget();r!==o.attributes.target&&(t.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function I(t){const e=t.getChildren();for(let n=e.length-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map((t=>t.getLatest()))}function P(l,i,f){d((()=>{l.hasNodes([t])||function(t,...e){const n=new URL(\"https://lexical.dev/docs/error\"),r=new URLSearchParams;r.append(\"code\",t);for(const t of e)r.append(\"v\",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);const x=(t,e)=>{f&&f(t,e)};return o(l.registerNodeTransform(s,(t=>{const r=t.getParentOrThrow(),l=t.getPreviousSibling();if(e(r)&&!r.getIsUnlinked())N(r,i,x);else if(!n(r)){if(t.isSimpleText()&&(U(t.getTextContent())||!e(l))){const e=function(t){const e=[t];let n=t.getNextSibling();for(;null!==n&&a(n)&&n.isSimpleText()&&(e.push(n),!/[\\s]/.test(n.getTextContent()));)n=n.getNextSibling();return e}(t);!function(t,e,n){let r=[...t];const l=r.map((t=>t.getTextContent())).join(\"\");let i,o=l,s=0;for(;(i=T(o,e))&&null!==i;){const t=i.index,e=t+i.length;if(R(s+t,s+e,l,r)){const[l,,o,u]=k(r,s+t,s+e),g=D(o,s+t-l,s+e-l,i);r=g?[g,...u]:u,n(i.url,null),s=0}else s+=e;o=o.substring(e)}}(e,i,x)}!function(t,n,r){const l=t.getPreviousSibling(),i=t.getNextSibling(),o=t.getTextContent();var s;!e(l)||l.getIsUnlinked()||U(o)&&(s=o,!(l.isEmailURI()?/^\\.[a-zA-Z]{2,}/.test(s):/^\\.[a-zA-Z0-9]{1,}/.test(s)))||(l.append(t),N(l,n,r),r(null,l.getURL())),!e(i)||i.getIsUnlinked()||b(o)||(I(i),N(i,n,r),r(null,i.getURL()))}(t,i,x)}})),l.registerCommand(r,(t=>{const n=u();if(null!==t||!g(n))return!1;return n.extract().forEach((t=>{const n=t.getParent();if(e(n))return n.setIsUnlinked(!n.getIsUnlinked()),n.markDirty(),!0})),!1}),c))}),[l,i,f])}function w({matchers:t,onChange:e}){const[n]=i();return P(n,t,e),null}export{w as AutoLinkPlugin,m as createLinkMatcherWithRegExp};\n","import { createLinkMatcherWithRegExp } from '@lexical/react/LexicalAutoLinkPlugin';\n\nconst PROTOCOL_REGEX = /^(http|https):\\/\\//;\n\nconst URL_REGEX =\n /(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})/;\n\nconst EMAIL_REGEX =\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/;\n\nconst URL_REGEX_OR_BLANK =\n /^(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})?$/;\n\nexport const validateUrl = (url: string): boolean => {\n return url === 'https://' || URL_REGEX.test(url);\n};\n\nexport const validateUrlWithProtocol = (url: string): boolean => {\n return url === 'https://' || URL_REGEX_OR_BLANK.test(url);\n};\n\nexport const MATCHERS = [\n createLinkMatcherWithRegExp(URL_REGEX, (text: string): string => {\n return !PROTOCOL_REGEX.test(text) ? `//${text}` : text;\n }),\n createLinkMatcherWithRegExp(EMAIL_REGEX, (text) => {\n return `mailto:${text}`;\n }),\n];\n\nexport const ensureHttps = (url: string) => {\n if (!/^https?:\\/\\//i.test(url)) {\n return `https://${url}`;\n }\n return url;\n};\n"],"names":["m","t","r","T","C","S","b","U","v","f","x","a","L","R","k","l","i","o","s","u","g","D","h","c","e","d","p","N","I","P","n","w","PROTOCOL_REGEX","URL_REGEX","EMAIL_REGEX","URL_REGEX_OR_BLANK","validateUrl","url","validateUrlWithProtocol","MATCHERS","createLinkMatcherWithRegExp","text","ensureHttps"],"mappings":";;;;;AAQqf,SAASA,EAAE,GAAE,IAAG,CAAAC,MAAGA,GAAG;AAAC,SAAO,OAAG;AAAC,UAAMC,IAAE,EAAE,KAAK,CAAC;AAAE,WAAcA,MAAP,OAAS,OAAK,EAAC,OAAMA,EAAE,OAAM,QAAOA,EAAE,CAAC,EAAE,QAAO,MAAKA,EAAE,CAAC,GAAE,KAAI,EAAEA,EAAE,CAAC,CAAC,EAAC;AAAA,EAAC;AAAC;AAAC,SAASC,EAAE,GAAE,GAAE;AAAC,WAAQ,IAAE,GAAE,IAAE,EAAE,QAAO,KAAI;AAAC,UAAMD,IAAE,EAAE,CAAC,EAAE,CAAC;AAAE,QAAGA,EAAE,QAAOA;AAAA,EAAC;AAAC,SAAO;AAAI;AAAC,MAAME,IAAE;AAAU,SAASC,EAAE,GAAE;AAAC,SAAOD,EAAE,KAAK,CAAC;AAAC;AAAC,SAASE,EAAE,GAAE;AAAC,SAAOD,EAAE,EAAE,EAAE,SAAO,CAAC,CAAC;AAAC;AAAC,SAASE,EAAE,GAAE;AAAC,SAAOF,EAAE,EAAE,CAAC,CAAC;AAAC;AAAC,SAASG,EAAE,GAAE;AAAC,MAAI,IAAE,EAAE,mBAAoB;AAAC,SAAOC,EAAE,CAAC,MAAI,IAAE,EAAE,kBAAmB,IAAS,MAAP,QAAUC,EAAE,CAAC,KAAGC,EAAE,CAAC,KAAGL,EAAE,EAAE,eAAgB,CAAA;AAAC;AAAC,SAASM,EAAE,GAAE;AAAC,MAAI,IAAE,EAAE,eAAc;AAAG,SAAOH,EAAE,CAAC,MAAI,IAAE,EAAE,uBAA6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react/LexicalAutoLinkPlugin.prod.mjs","../src/components/RteEditor/Plugins/LinkPlugin/helpers.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{AutoLinkNode as t,$isAutoLinkNode as e,$isLinkNode as n,TOGGLE_LINK_COMMAND as r,$createAutoLinkNode as l}from\"@lexical/link\";import{useLexicalComposerContext as i}from\"@lexical/react/LexicalComposerContext\";import{mergeRegister as o}from\"@lexical/utils\";import{TextNode as s,$getSelection as u,$isRangeSelection as g,COMMAND_PRIORITY_LOW as c,$isTextNode as a,$isElementNode as f,$isLineBreakNode as x,$createTextNode as h,$isNodeSelection as p}from\"lexical\";import{useEffect as d}from\"react\";function m(t,e=(t=>t)){return n=>{const r=t.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:e(r[0])}}}function T(t,e){for(let n=0;n<e.length;n++){const r=e[n](t);if(r)return r}return null}const C=/[.,;\\s]/;function S(t){return C.test(t)}function b(t){return S(t[t.length-1])}function U(t){return S(t[0])}function v(t){let e=t.getPreviousSibling();return f(e)&&(e=e.getLastDescendant()),null===e||x(e)||a(e)&&b(e.getTextContent())}function L(t){let e=t.getNextSibling();return f(e)&&(e=e.getFirstDescendant()),null===e||x(e)||a(e)&&U(e.getTextContent())}function R(t,e,n,r){if(!(t>0?S(n[t-1]):v(r[0])))return!1;return e<n.length?S(n[e]):L(r[r.length-1])}function k(t,e,n){const r=[],l=[],i=[];let o=0,s=0;const u=[...t];for(;u.length>0;){const t=u[0],g=t.getTextContent().length,c=s;s+g<=e?(r.push(t),o+=g):c>=n?i.push(t):l.push(t),s+=g,u.shift()}return[o,r,l,i]}function D(t,e,n,r){const i=l(r.url,r.attributes);if(1===t.length){let l,o=t[0];0===e?[l,o]=o.splitText(n):[,l,o]=o.splitText(e,n);const s=h(r.text);return s.setFormat(l.getFormat()),s.setDetail(l.getDetail()),s.setStyle(l.getStyle()),i.append(s),l.replace(i),o}if(t.length>1){const r=t[0];let l,o=r.getTextContent().length;0===e?l=r:[,l]=r.splitText(e);const s=[];let c;for(let e=1;e<t.length;e++){const r=t[e],l=r.getTextContent().length,i=o;if(i<n)if(o+l<=n)s.push(r);else{const[t,e]=r.splitText(n-i);s.push(t),c=e}o+=l}const f=u(),x=f?f.getNodes().find(a):void 0,d=h(l.getTextContent());return d.setFormat(l.getFormat()),d.setDetail(l.getDetail()),d.setStyle(l.getStyle()),i.append(d,...s),x&&x===l&&(g(f)?d.select(f.anchor.offset,f.focus.offset):p(f)&&d.select(0,d.getTextContent().length)),l.replace(i),c}}function N(t,e,n){const r=t.getChildren(),l=r.length;for(let e=0;e<l;e++){const l=r[e];if(!a(l)||!l.isSimpleText())return I(t),void n(null,t.getURL())}const i=t.getTextContent(),o=T(i,e);if(null===o||o.text!==i)return I(t),void n(null,t.getURL());if(!v(t)||!L(t))return I(t),void n(null,t.getURL());const s=t.getURL();if(s!==o.url&&(t.setURL(o.url),n(o.url,s)),o.attributes){const e=t.getRel();e!==o.attributes.rel&&(t.setRel(o.attributes.rel||null),n(o.attributes.rel||null,e));const r=t.getTarget();r!==o.attributes.target&&(t.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function I(t){const e=t.getChildren();for(let n=e.length-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map((t=>t.getLatest()))}function P(l,i,f){d((()=>{l.hasNodes([t])||function(t,...e){const n=new URL(\"https://lexical.dev/docs/error\"),r=new URLSearchParams;r.append(\"code\",t);for(const t of e)r.append(\"v\",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);const x=(t,e)=>{f&&f(t,e)};return o(l.registerNodeTransform(s,(t=>{const r=t.getParentOrThrow(),l=t.getPreviousSibling();if(e(r)&&!r.getIsUnlinked())N(r,i,x);else if(!n(r)){if(t.isSimpleText()&&(U(t.getTextContent())||!e(l))){const e=function(t){const e=[t];let n=t.getNextSibling();for(;null!==n&&a(n)&&n.isSimpleText()&&(e.push(n),!/[\\s]/.test(n.getTextContent()));)n=n.getNextSibling();return e}(t);!function(t,e,n){let r=[...t];const l=r.map((t=>t.getTextContent())).join(\"\");let i,o=l,s=0;for(;(i=T(o,e))&&null!==i;){const t=i.index,e=t+i.length;if(R(s+t,s+e,l,r)){const[l,,o,u]=k(r,s+t,s+e),g=D(o,s+t-l,s+e-l,i);r=g?[g,...u]:u,n(i.url,null),s=0}else s+=e;o=o.substring(e)}}(e,i,x)}!function(t,n,r){const l=t.getPreviousSibling(),i=t.getNextSibling(),o=t.getTextContent();var s;!e(l)||l.getIsUnlinked()||U(o)&&(s=o,!(l.isEmailURI()?/^\\.[a-zA-Z]{2,}/.test(s):/^\\.[a-zA-Z0-9]{1,}/.test(s)))||(l.append(t),N(l,n,r),r(null,l.getURL())),!e(i)||i.getIsUnlinked()||b(o)||(I(i),N(i,n,r),r(null,i.getURL()))}(t,i,x)}})),l.registerCommand(r,(t=>{const n=u();if(null!==t||!g(n))return!1;return n.extract().forEach((t=>{const n=t.getParent();if(e(n))return n.setIsUnlinked(!n.getIsUnlinked()),n.markDirty(),!0})),!1}),c))}),[l,i,f])}function w({matchers:t,onChange:e}){const[n]=i();return P(n,t,e),null}export{w as AutoLinkPlugin,m as createLinkMatcherWithRegExp};\n","import { createLinkMatcherWithRegExp } from '@lexical/react/LexicalAutoLinkPlugin';\n\nconst PROTOCOL_REGEX = /^(http|https):\\/\\//;\n\nconst URL_REGEX =\n /(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})/;\n\nconst EMAIL_REGEX =\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/;\n\nconst URL_REGEX_OR_BLANK =\n /^(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})?$/;\n\nexport const validateUrl = (url: string): boolean => {\n return url === 'https://' || URL_REGEX.test(url);\n};\n\nexport const validateUrlWithProtocol = (url: string): boolean => {\n return url === 'https://' || URL_REGEX_OR_BLANK.test(url);\n};\n\nexport const MATCHERS = [\n createLinkMatcherWithRegExp(URL_REGEX, (text: string): string => {\n return !PROTOCOL_REGEX.test(text) ? `//${text}` : text;\n }),\n createLinkMatcherWithRegExp(EMAIL_REGEX, (text) => {\n return `mailto:${text}`;\n }),\n];\n\nexport const ensureHttps = (url: string) => {\n if (!/^https?:\\/\\//i.test(url)) {\n return `https://${url}`;\n }\n return url;\n};\n"],"names":["m","t","r","T","C","S","b","U","v","f","x","a","L","R","k","l","i","o","s","u","g","D","h","c","e","d","p","N","I","P","n","w","PROTOCOL_REGEX","URL_REGEX","EMAIL_REGEX","URL_REGEX_OR_BLANK","validateUrl","url","validateUrlWithProtocol","MATCHERS","createLinkMatcherWithRegExp","text","ensureHttps"],"mappings":";;;;;AAQqf,SAASA,EAAE,GAAE,IAAG,CAAAC,MAAGA,GAAG;AAAC,SAAO,OAAG;AAAC,UAAMC,IAAE,EAAE,KAAK,CAAC;AAAE,WAAcA,MAAP,OAAS,OAAK,EA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QAAOA,EAAE,cAAc,CAACA,EAAE,cAAe,CAAA,GAAEA,EAAE,UAAS,GAAG;AAAA,MAAE,CAAC,GAAG;AAAA,IAAE,GAAGP,CAAC,CAAC;AAAA,EAAC,GAAG,CAACR,GAAEC,GAAEP,CAAC,CAAC;AAAC;AAAC,SAASsB,GAAE,EAAC,UAAS,GAAE,UAAS,EAAC,GAAE;AAAC,QAAK,CAAC,CAAC,IAAEf,EAAG;AAAC,SAAOa,EAAE,GAAE,GAAE,CAAC,GAAE;AAAI;ACN1gJ,MAAMG,KAAiB,sBAEjBC,IACJ,qNAEIC,KACJ,uJAEIC,KACJ,wNAEWC,KAAc,CAACC,MACnBA,MAAQ,cAAcJ,EAAU,KAAKI,CAAG,GAGpCC,KAA0B,CAACD,MAC/BA,MAAQ,cAAcF,GAAmB,KAAKE,CAAG,GAG7CE,KAAW;AAAA,EACtBC,EAA4BP,GAAW,CAACQ,MAC9BT,GAAe,KAAKS,CAAI,IAAkBA,IAAd,KAAKA,CAAI,EAC9C;AAAA,EACDD,EAA4BN,IAAa,CAACO,MACjC,UAAUA,CAAI,EACtB;AACH,GAEaC,KAAc,CAACL,MACrB,gBAAgB,KAAKA,CAAG,IAGtBA,IAFE,WAAWA,CAAG;","x_google_ignoreList":[0]}
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ import { Label as Bo } from "./components/Label/Label.js";
35
35
  import { MenuLink as So } from "./components/MenuLink/MenuLink.js";
36
36
  import { MetaDataList as Co } from "./components/MetaDataList/MetaDataList.js";
37
37
  import { ModalDialog as ko } from "./components/ModalDialog/ModalDialog.js";
38
- import { M as Mo } from "./TablePlugin-CykqKW6X.js";
38
+ import { M as Mo } from "./TablePlugin-NmJsn2fm.js";
39
39
  import { MultiSelectBox as Lo } from "./components/MultiSelectBox/MultiSelectBox.js";
40
40
  import { OverlayCloseButton as Ro } from "./components/OverlayCloseButton/OverlayCloseButton.js";
41
41
  import { OverlayStepBar as ho } from "./components/OverlayStepBar/OverlayStepBar.js";