@qualityunit/liveagent-components-editor 0.0.61 → 0.0.63

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 (78) hide show
  1. package/dist/{af.umd-DJgTWlsL.js → af.umd-DTmZruIh.js} +1 -1
  2. package/dist/{ar.umd-CEenera_.js → ar.umd-C1LDaJvM.js} +1 -1
  3. package/dist/{ast.umd-DO0Ecd2b.js → ast.umd-SJCmWqn6.js} +1 -1
  4. package/dist/{az.umd-DuaW-p9q.js → az.umd-BLcIK8LZ.js} +1 -1
  5. package/dist/{bg.umd-vcVAOS2Y.js → bg.umd-D4fyW0DG.js} +1 -1
  6. package/dist/{bn.umd-BmGNaHsR.js → bn.umd-DyhnliNm.js} +1 -1
  7. package/dist/{bs.umd-DfbE2r0g.js → bs.umd-d8L1Y2bS.js} +1 -1
  8. package/dist/{ca.umd-CajnMwgk.js → ca.umd-C1YtOJTE.js} +1 -1
  9. package/dist/ckeditor.js +1 -1
  10. package/dist/{ckeditor5-C2vyCKKC.js → ckeditor5-tThjGIeM.js} +8134 -7866
  11. package/dist/{cs.umd-CI0oxNr9.js → cs.umd-CSe41Pd1.js} +1 -1
  12. package/dist/{da.umd-0EFTFo4o.js → da.umd-VqCE4QbL.js} +1 -1
  13. package/dist/{de-ch.umd-C1t5LE9G.js → de-ch.umd-DY_LKV9I.js} +1 -1
  14. package/dist/{de.umd-DB91BwuG.js → de.umd-BneZUXcM.js} +1 -1
  15. package/dist/editor-lib.js +244 -248
  16. package/dist/{el.umd-a5nJRPb2.js → el.umd-CGbhvPju.js} +1 -1
  17. package/dist/{en-au.umd-Bg2zj2Hd.js → en-au.umd-C6x64WAj.js} +1 -1
  18. package/dist/{en-gb.umd-BGivOIyC.js → en-gb.umd-D65Z7ile.js} +1 -1
  19. package/dist/{en.umd-bLHNF1Em.js → en.umd-BwSclIKW.js} +1 -1
  20. package/dist/{eo.umd-C_5yKsQJ.js → eo.umd-C3fmkCri.js} +1 -1
  21. package/dist/{es-co.umd-CKZBMbGL.js → es-co.umd-CzG2oPCC.js} +1 -1
  22. package/dist/{es.umd-Bi_K3ZbQ.js → es.umd-CbaJqr9B.js} +1 -1
  23. package/dist/{et.umd-BiZlniQp.js → et.umd-4FXE-okg.js} +1 -1
  24. package/dist/{eu.umd-DLtP96ya.js → eu.umd-B4MO-Zxb.js} +1 -1
  25. package/dist/{fa.umd-BppZGyYu.js → fa.umd-Baht78ho.js} +1 -1
  26. package/dist/{fi.umd-DJD7DJC7.js → fi.umd-i6nR8IQh.js} +1 -1
  27. package/dist/{fr.umd-DLyuN5uu.js → fr.umd-BgpKpJsB.js} +1 -1
  28. package/dist/{gl.umd-D2KCJfv9.js → gl.umd-B7a7NovN.js} +1 -1
  29. package/dist/{gu.umd-DStme9fo.js → gu.umd-DC3YCho7.js} +1 -1
  30. package/dist/{he.umd-Bi9YZgI7.js → he.umd-sYVqTxke.js} +1 -1
  31. package/dist/{hi.umd-BjKVZui-.js → hi.umd-Bowralyn.js} +1 -1
  32. package/dist/{hr.umd-N-5MWsFC.js → hr.umd-DwIyLRqL.js} +1 -1
  33. package/dist/{hu.umd-tVwaCeuy.js → hu.umd-B1dZWbYD.js} +1 -1
  34. package/dist/{hy.umd-DMbG4xYU.js → hy.umd-rOhV7V8a.js} +1 -1
  35. package/dist/{id.umd-CKKYOsBX.js → id.umd-DW50zbUk.js} +1 -1
  36. package/dist/{it.umd-DkrHfjNT.js → it.umd-B3v82bdY.js} +1 -1
  37. package/dist/{ja.umd-CmFXZxsL.js → ja.umd-R0MZsPje.js} +1 -1
  38. package/dist/{jv.umd-CsbAOsTr.js → jv.umd-DH0hnvgF.js} +1 -1
  39. package/dist/{kk.umd-C6oyDx78.js → kk.umd-YgTAHTYT.js} +1 -1
  40. package/dist/{km.umd-BsF3vc5x.js → km.umd-BQwrwo-g.js} +1 -1
  41. package/dist/{kn.umd-Bo_w-Vtz.js → kn.umd-DCdWOVYh.js} +1 -1
  42. package/dist/{ko.umd-4lbSwGuK.js → ko.umd-CpL11L0k.js} +1 -1
  43. package/dist/{ku.umd-CQ_DGM3J.js → ku.umd-BqrpPtIA.js} +1 -1
  44. package/dist/liveagent-components-editor.css +1 -1
  45. package/dist/{lt.umd-B8tx6SZq.js → lt.umd-Bdo33Qiz.js} +1 -1
  46. package/dist/{lv.umd-CzeEJwpj.js → lv.umd-DqxY-2Am.js} +1 -1
  47. package/dist/{ms.umd-Buv_vMt4.js → ms.umd-D1U2glLU.js} +1 -1
  48. package/dist/{nb.umd-CJQaAb_F.js → nb.umd-DY2axLuC.js} +1 -1
  49. package/dist/{ne.umd-DI4lgYgL.js → ne.umd-XvyYPJum.js} +1 -1
  50. package/dist/{nl.umd-D2fMONAX.js → nl.umd-5A-rjYwX.js} +1 -1
  51. package/dist/{no.umd-BwegLmU9.js → no.umd-DL7JT1wf.js} +1 -1
  52. package/dist/{oc.umd-O4H-d-Uj.js → oc.umd-D1S5ui2A.js} +1 -1
  53. package/dist/{pl.umd-BFZd5t49.js → pl.umd-BtmFw_Gl.js} +1 -1
  54. package/dist/{pt-br.umd-BLrZHCVA.js → pt-br.umd-BiXbHjXe.js} +1 -1
  55. package/dist/{pt.umd-DTWGcxwT.js → pt.umd-CH9TLLUk.js} +1 -1
  56. package/dist/{ro.umd-D-7-K1LV.js → ro.umd-DQwSq_dX.js} +1 -1
  57. package/dist/{ru.umd-ByslxoTY.js → ru.umd-DDDZ1Tji.js} +1 -1
  58. package/dist/{si.umd-TLviMQku.js → si.umd-DHtQH7tc.js} +1 -1
  59. package/dist/{sk.umd-A8qA-BvO.js → sk.umd-BLLuOIEF.js} +1 -1
  60. package/dist/{sl.umd-D75X7pzl.js → sl.umd-B_PsrW58.js} +1 -1
  61. package/dist/{sq.umd-eKwTpm0q.js → sq.umd-B11JLDgw.js} +1 -1
  62. package/dist/{sr-latn.umd-CbE2rvwV.js → sr-latn.umd-DtEQdVAC.js} +1 -1
  63. package/dist/{sr.umd-DY8E5KQY.js → sr.umd-BKAX2sP7.js} +1 -1
  64. package/dist/{sv.umd-WJjU0io2.js → sv.umd-DQ3LTEEO.js} +1 -1
  65. package/dist/{th.umd-5HwupYqp.js → th.umd-Cg2VlVN2.js} +1 -1
  66. package/dist/{ti.umd-Cj_fIBjJ.js → ti.umd-bT0ugHt4.js} +1 -1
  67. package/dist/{tk.umd-BlsZV5Te.js → tk.umd-CHtuLR0Z.js} +1 -1
  68. package/dist/{tr.umd-DfmzXrOZ.js → tr.umd-DLMlLRRR.js} +1 -1
  69. package/dist/{tt.umd-CJ7Y-7W8.js → tt.umd-bm35nn3U.js} +1 -1
  70. package/dist/{ug.umd-CSfDHFz8.js → ug.umd-aVSjKhZ0.js} +1 -1
  71. package/dist/{uk-DMPFRS0Y.js → uk-DE8aXycS.js} +1 -1
  72. package/dist/{uk.umd-Cdj0W6hX.js → uk.umd-D4bkoeG_.js} +2 -2
  73. package/dist/{ur.umd-uuUO1KsL.js → ur.umd-BhE4G3PK.js} +1 -1
  74. package/dist/{uz.umd-CCwju0Gs.js → uz.umd-DsZMaYyv.js} +1 -1
  75. package/dist/{vi.umd-DRiPcNM5.js → vi.umd-BBFOM424.js} +1 -1
  76. package/dist/{zh-cn.umd-BhDfDYd1.js → zh-cn.umd-DWG_qTsL.js} +1 -1
  77. package/dist/{zh.umd-B2BXoK51.js → zh.umd-C09tWFHH.js} +1 -1
  78. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- import { g as k } from "./ckeditor5-C2vyCKKC.js";
1
+ import { g as k } from "./ckeditor5-tThjGIeM.js";
2
2
  function m(e, o) {
3
3
  for (var a = 0; a < o.length; a++) {
4
4
  const t = o[a];
@@ -1,4 +1,4 @@
1
- import { g as d } from "./ckeditor5-C2vyCKKC.js";
1
+ import { g as d } from "./ckeditor5-tThjGIeM.js";
2
2
  function g(e, a) {
3
3
  for (var i = 0; i < a.length; i++) {
4
4
  const t = a[i];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-C2vyCKKC.js";
1
+ import { g as c } from "./ckeditor5-tThjGIeM.js";
2
2
  function g(e, l) {
3
3
  for (var i = 0; i < l.length; i++) {
4
4
  const t = l[i];
@@ -1,4 +1,4 @@
1
- import { g as o } from "./ckeditor5-C2vyCKKC.js";
1
+ import { g as o } from "./ckeditor5-tThjGIeM.js";
2
2
  function h(e, a) {
3
3
  for (var i = 0; i < a.length; i++) {
4
4
  const t = a[i];
@@ -1,359 +1,355 @@
1
- import { b as Z, h as b, a as $, E as oe, H as j, r as Y, s as q, c as T, d as I, e as M, p as K, f as N, i as ee, j as te, I as k, k as z, l as ce, m as ve, n as _e, o as de, q as he, t as be, u as me, v as G, w as ge, x as Ee, y as pe, z as ye, A as xe, B as J, C as Ne, D as Te, F as Ae, G as we, J as ke, K as Ce, L as ae, M as ne, N as C, O as re, P as B, Q as R, R as se, S, T as H, U as P, V as U, W as He, X as w, Y as D, Z as Ie, _ as Me, $ as Re } from "./ckeditor5-C2vyCKKC.js";
2
- function Pe(t) {
3
- throw new Error("lifecycle_outside_component");
4
- }
5
- function De(t, e, a = !1) {
6
- b && $();
7
- var n = t, r = null, i = null, f = null, _ = a ? oe : 0, o = !1;
8
- const h = (c, u = !0) => {
9
- o = !0, l(u, c);
10
- }, l = (c, u) => {
11
- if (f === (f = c)) return;
12
- let s = !1;
1
+ import { b as Q, h as b, a as W, E as ue, H as $, r as O, s as U, c as N, d as H, e as M, p as Y, f as x, U as ve, i as A, I as V, j, k as Z, l as oe, m as ce, n as _e, o as de, q as he, t as be, u as ge, v as z, w as me, x as Ee, y as ye, z as pe, A as xe, B as Ae, C as Ne, D as Te, F as Ie, G as ke, J as we, K as He, L as ee, M as ae, N as Me, O as k, P as te, Q as q, R as C, S as re, T as D, V as w, W as R, X as K, Y as S, Z as Ce, _ as Re, $ as Se, a0 as De } from "./ckeditor5-tThjGIeM.js";
2
+ function Le(e, a, t = !1) {
3
+ b && W();
4
+ var r = e, n = null, i = null, u = ve, d = t ? ue : 0, c = !1;
5
+ const h = (v, s = !0) => {
6
+ c = !0, l(s, v);
7
+ }, l = (v, s) => {
8
+ if (u === (u = v)) return;
9
+ let f = !1;
13
10
  if (b) {
14
- const d = (
11
+ const o = (
15
12
  /** @type {Comment} */
16
- n.data === j
13
+ r.data === $
17
14
  );
18
- f === d && (n = Y(), q(n), T(!1), s = !0);
15
+ !!u === o && (r = O(), U(r), N(!1), f = !0);
19
16
  }
20
- f ? (r ? I(r) : u && (r = M(() => u(n))), i && K(i, () => {
17
+ u ? (n ? H(n) : s && (n = M(() => s(r))), i && Y(i, () => {
21
18
  i = null;
22
- })) : (i ? I(i) : u && (i = M(() => u(n))), r && K(r, () => {
23
- r = null;
24
- })), s && T(!0);
19
+ })) : (i ? H(i) : s && (i = M(() => s(r))), n && Y(n, () => {
20
+ n = null;
21
+ })), f && N(!0);
25
22
  };
26
- Z(() => {
27
- o = !1, e(h), o || l(null, null);
28
- }, _), b && (n = N);
23
+ Q(() => {
24
+ c = !1, a(h), c || l(null, null);
25
+ }, d), b && (r = x);
29
26
  }
30
- function Se(t, e) {
31
- return e;
27
+ function Pe(e, a) {
28
+ return a;
32
29
  }
33
- function Le(t, e, a, n) {
34
- for (var r = [], i = e.length, f = 0; f < i; f++)
35
- ve(e[f].e, r, !0);
36
- var _ = i > 0 && r.length === 0 && a !== null;
37
- if (_) {
38
- var o = (
30
+ function Ve(e, a, t, r) {
31
+ for (var n = [], i = a.length, u = 0; u < i; u++)
32
+ ce(a[u].e, n, !0);
33
+ var d = i > 0 && n.length === 0 && t !== null;
34
+ if (d) {
35
+ var c = (
39
36
  /** @type {Element} */
40
37
  /** @type {Element} */
41
- a.parentNode
38
+ t.parentNode
42
39
  );
43
- _e(o), o.append(
40
+ _e(c), c.append(
44
41
  /** @type {Element} */
45
- a
46
- ), n.clear(), y(t, e[0].prev, e[i - 1].next);
42
+ t
43
+ ), r.clear(), p(e, a[0].prev, a[i - 1].next);
47
44
  }
48
- de(r, () => {
45
+ de(n, () => {
49
46
  for (var h = 0; h < i; h++) {
50
- var l = e[h];
51
- _ || (n.delete(l.k), y(t, l.prev, l.next)), he(l.e, !_);
47
+ var l = a[h];
48
+ d || (r.delete(l.k), p(e, l.prev, l.next)), he(l.e, !d);
52
49
  }
53
50
  });
54
51
  }
55
- function Ve(t, e, a, n, r, i = null) {
56
- var f = t, _ = { flags: e, items: /* @__PURE__ */ new Map(), first: null };
57
- b && $();
58
- var o = null, h = !1;
59
- Z(() => {
60
- var l = a(), c = ee(l) ? l : l == null ? [] : te(l), u = c.length;
61
- if (h && u === 0)
52
+ function qe(e, a, t, r, n, i = null) {
53
+ var u = e, d = { flags: a, items: /* @__PURE__ */ new Map(), first: null };
54
+ b && W();
55
+ var c = null, h = !1, l = be(() => {
56
+ var v = t();
57
+ return Ee(v) ? v : v == null ? [] : j(v);
58
+ });
59
+ Q(() => {
60
+ var v = A(l), s = v.length;
61
+ if (h && s === 0)
62
62
  return;
63
- h = u === 0;
64
- let s = !1;
63
+ h = s === 0;
64
+ let f = !1;
65
65
  if (b) {
66
- var d = (
66
+ var o = (
67
67
  /** @type {Comment} */
68
- f.data === j
68
+ u.data === $
69
69
  );
70
- d !== (u === 0) && (f = Y(), q(f), T(!1), s = !0);
70
+ o !== (s === 0) && (u = O(), U(u), N(!1), f = !0);
71
71
  }
72
72
  if (b) {
73
- for (var g = null, E, v = 0; v < u; v++) {
74
- if (N.nodeType === 8 && /** @type {Comment} */
75
- N.data === Ee) {
76
- f = /** @type {Comment} */
77
- N, s = !0, T(!1);
73
+ for (var m = null, E, _ = 0; _ < s; _++) {
74
+ if (x.nodeType === 8 && /** @type {Comment} */
75
+ x.data === ye) {
76
+ u = /** @type {Comment} */
77
+ x, f = !0, N(!1);
78
78
  break;
79
79
  }
80
- var m = c[v], A = n(m, v);
81
- E = le(N, _, g, null, m, A, v, r, e), _.items.set(A, E), g = E;
80
+ var g = v[_], T = r(g, _);
81
+ E = ne(
82
+ x,
83
+ d,
84
+ m,
85
+ null,
86
+ g,
87
+ T,
88
+ _,
89
+ n,
90
+ a,
91
+ t
92
+ ), d.items.set(T, E), m = E;
82
93
  }
83
- u > 0 && q(Y());
84
- }
85
- if (!b) {
86
- var x = (
87
- /** @type {Effect} */
88
- be
89
- );
90
- Be(c, _, f, r, e, (x.f & k) !== 0, n);
94
+ s > 0 && U(O());
91
95
  }
92
- i !== null && (u === 0 ? o ? I(o) : o = M(() => i(f)) : o !== null && K(o, () => {
93
- o = null;
94
- })), s && T(!0), a();
95
- }), b && (f = N);
96
+ b || Be(v, d, u, n, a, r, t), i !== null && (s === 0 ? c ? H(c) : c = M(() => i(u)) : c !== null && Y(c, () => {
97
+ c = null;
98
+ })), f && N(!0), A(l);
99
+ }), b && (u = x);
96
100
  }
97
- function Be(t, e, a, n, r, i, f) {
98
- var _ = t.length, o = e.items, h = e.first, l = h, c, u = null, s = [], d = [], g, E, v, m;
99
- for (m = 0; m < _; m += 1) {
100
- if (g = t[m], E = f(g, m), v = o.get(E), v === void 0) {
101
- var A = l ? (
101
+ function Be(e, a, t, r, n, i, u) {
102
+ var d = e.length, c = a.items, h = a.first, l = h, v, s = null, f = [], o = [], m, E, _, g;
103
+ for (g = 0; g < d; g += 1) {
104
+ if (m = e[g], E = i(m, g), _ = c.get(E), _ === void 0) {
105
+ var T = l ? (
102
106
  /** @type {TemplateNode} */
103
107
  l.e.nodes_start
104
- ) : a;
105
- u = le(
106
- A,
107
- e,
108
- u,
109
- u === null ? e.first : u.next,
110
- g,
111
- E,
108
+ ) : t;
109
+ s = ne(
110
+ T,
111
+ a,
112
+ s,
113
+ s === null ? a.first : s.next,
112
114
  m,
115
+ E,
116
+ g,
117
+ r,
113
118
  n,
114
- r
115
- ), o.set(E, u), s = [], d = [], l = u.next;
119
+ u
120
+ ), c.set(E, s), f = [], o = [], l = s.next;
116
121
  continue;
117
122
  }
118
- if (Fe(v, g, m), v.e.f & k && I(v.e), v !== l) {
119
- if (c !== void 0 && c.has(v)) {
120
- if (s.length < d.length) {
121
- var x = d[0], p;
122
- u = x.prev;
123
- var X = s[0], L = s[s.length - 1];
124
- for (p = 0; p < s.length; p += 1)
125
- Q(s[p], x, a);
126
- for (p = 0; p < d.length; p += 1)
127
- c.delete(d[p]);
128
- y(e, X.prev, L.next), y(e, u, X), y(e, L, x), l = x, u = L, m -= 1, s = [], d = [];
123
+ if (Fe(_, m, g), _.e.f & V && H(_.e), _ !== l) {
124
+ if (v !== void 0 && v.has(_)) {
125
+ if (f.length < o.length) {
126
+ var I = o[0], y;
127
+ s = I.prev;
128
+ var X = f[0], L = f[f.length - 1];
129
+ for (y = 0; y < f.length; y += 1)
130
+ G(f[y], I, t);
131
+ for (y = 0; y < o.length; y += 1)
132
+ v.delete(o[y]);
133
+ p(a, X.prev, L.next), p(a, s, X), p(a, L, I), l = I, s = L, g -= 1, f = [], o = [];
129
134
  } else
130
- c.delete(v), Q(v, l, a), y(e, v.prev, v.next), y(e, v, u === null ? e.first : u.next), y(e, u, v), u = v;
135
+ v.delete(_), G(_, l, t), p(a, _.prev, _.next), p(a, _, s === null ? a.first : s.next), p(a, s, _), s = _;
131
136
  continue;
132
137
  }
133
- for (s = [], d = []; l !== null && l.k !== E; )
134
- (i || !(l.e.f & k)) && (c ?? (c = /* @__PURE__ */ new Set())).add(l), d.push(l), l = l.next;
138
+ for (f = [], o = []; l !== null && l.k !== E; )
139
+ l.e.f & V || (v ?? (v = /* @__PURE__ */ new Set())).add(l), o.push(l), l = l.next;
135
140
  if (l === null)
136
141
  continue;
137
- v = l;
142
+ _ = l;
138
143
  }
139
- s.push(v), u = v, l = v.next;
144
+ f.push(_), s = _, l = _.next;
140
145
  }
141
- if (l !== null || c !== void 0) {
142
- for (var V = c === void 0 ? [] : te(c); l !== null; )
143
- (i || !(l.e.f & k)) && V.push(l), l = l.next;
144
- var ue = V.length;
145
- if (ue > 0) {
146
+ if (l !== null || v !== void 0) {
147
+ for (var P = v === void 0 ? [] : j(v); l !== null; )
148
+ l.e.f & V || P.push(l), l = l.next;
149
+ var ie = P.length;
150
+ if (ie > 0) {
146
151
  var fe = null;
147
- Le(e, V, fe, o);
152
+ Ve(a, P, fe, c);
148
153
  }
149
154
  }
150
- z.first = e.first && e.first.e, z.last = u && u.e;
155
+ Z.first = a.first && a.first.e, Z.last = s && s.e;
151
156
  }
152
- function Fe(t, e, a, n) {
153
- ce(t.v, e), t.i = a;
157
+ function Fe(e, a, t, r) {
158
+ oe(e.v, a), e.i = t;
154
159
  }
155
- function le(t, e, a, n, r, i, f, _, o) {
156
- var h = (o & pe) !== 0, l = (o & ye) === 0, c = h ? l ? me(r) : G(r) : r, u = o & ge ? G(f) : f, s = {
157
- i: u,
158
- v: c,
160
+ function ne(e, a, t, r, n, i, u, d, c, h) {
161
+ var l = (c & pe) !== 0, v = (c & xe) === 0, s = l ? v ? ge(n) : z(n) : n, f = c & me ? z(u) : u, o = {
162
+ i: f,
163
+ v: s,
159
164
  k: i,
160
165
  a: null,
161
166
  // @ts-expect-error
162
167
  e: null,
163
- prev: a,
164
- next: n
168
+ prev: t,
169
+ next: r
165
170
  };
166
171
  try {
167
- return s.e = M(() => _(t, c, u), b), s.e.prev = a && a.e, s.e.next = n && n.e, a === null ? e.first = s : (a.next = s, a.e.next = s.e), n !== null && (n.prev = s, n.e.prev = s.e), s;
172
+ return o.e = M(() => d(e, s, f, h), b), o.e.prev = t && t.e, o.e.next = r && r.e, t === null ? a.first = o : (t.next = o, t.e.next = o.e), r !== null && (r.prev = o, r.e.prev = o.e), o;
168
173
  } finally {
169
174
  }
170
175
  }
171
- function Q(t, e, a) {
172
- for (var n = t.next ? (
176
+ function G(e, a, t) {
177
+ for (var r = e.next ? (
173
178
  /** @type {TemplateNode} */
174
- t.next.e.nodes_start
175
- ) : a, r = e ? (
179
+ e.next.e.nodes_start
180
+ ) : t, n = a ? (
176
181
  /** @type {TemplateNode} */
177
- e.e.nodes_start
178
- ) : a, i = (
182
+ a.e.nodes_start
183
+ ) : t, i = (
179
184
  /** @type {TemplateNode} */
180
- t.e.nodes_start
181
- ); i !== n; ) {
182
- var f = (
185
+ e.e.nodes_start
186
+ ); i !== r; ) {
187
+ var u = (
183
188
  /** @type {TemplateNode} */
184
- xe(i)
189
+ Ae(i)
185
190
  );
186
- r.before(i), i = f;
191
+ n.before(i), i = u;
187
192
  }
188
193
  }
189
- function y(t, e, a) {
190
- e === null ? t.first = a : (e.next = a, e.e.next = a && a.e), a !== null && (a.prev = e, a.e.prev = e && e.e);
194
+ function p(e, a, t) {
195
+ a === null ? e.first = t : (a.next = t, a.e.next = t && t.e), t !== null && (t.prev = a, t.e.prev = a && a.e);
196
+ }
197
+ function se(e) {
198
+ var a, t, r = "";
199
+ if (typeof e == "string" || typeof e == "number") r += e;
200
+ else if (typeof e == "object") if (Array.isArray(e)) {
201
+ var n = e.length;
202
+ for (a = 0; a < n; a++) e[a] && (t = se(e[a])) && (r && (r += " "), r += t);
203
+ } else for (t in e) e[t] && (r && (r += " "), r += t);
204
+ return r;
191
205
  }
192
- function Oe(t, e, a, n) {
193
- var r = t.__attributes ?? (t.__attributes = {});
194
- b && (r[e] = t.getAttribute(e)), r[e] !== (r[e] = a) && (a == null ? t.removeAttribute(e) : typeof a != "string" && Ye(t).includes(e) ? t[e] = a : t.setAttribute(e, a));
206
+ function Oe() {
207
+ for (var e, a, t = 0, r = "", n = arguments.length; t < n; t++) (e = arguments[t]) && (a = se(e)) && (r && (r += " "), r += a);
208
+ return r;
195
209
  }
196
- var W = /* @__PURE__ */ new Map();
197
- function Ye(t) {
198
- var e = W.get(t.nodeName);
199
- if (e) return e;
200
- W.set(t.nodeName, e = []);
201
- for (var a, n = J(t), r = Element.prototype; r !== n; ) {
202
- a = Ne(n);
203
- for (var i in a)
204
- a[i].set && e.push(i);
205
- n = J(n);
210
+ function Ue(e) {
211
+ return typeof e == "object" ? Oe(e) : e ?? "";
212
+ }
213
+ function Ye(e, a, t, r) {
214
+ var n = e.__attributes ?? (e.__attributes = {});
215
+ b && (n[a] = e.getAttribute(a)), n[a] !== (n[a] = t) && (t == null ? e.removeAttribute(a) : typeof t != "string" && Ke(e).includes(a) ? e[a] = t : e.setAttribute(a, t));
216
+ }
217
+ var J = /* @__PURE__ */ new Map();
218
+ function Ke(e) {
219
+ var a = J.get(e.nodeName);
220
+ if (a) return a;
221
+ J.set(e.nodeName, a = []);
222
+ for (var t, r = e, n = Element.prototype; n !== r; ) {
223
+ t = Te(r);
224
+ for (var i in t)
225
+ t[i].set && a.push(i);
226
+ r = Ne(r);
206
227
  }
207
- return e;
228
+ return a;
208
229
  }
209
- function qe(t, e) {
210
- var a = t.__className, n = Ke(e);
211
- b && t.className === n ? t.__className = n : (a !== n || b && t.className !== n) && (e == null ? t.removeAttribute("class") : t.className = n, t.__className = n);
230
+ function Xe(e, a, t) {
231
+ var r = e.__className, n = Ze(a);
232
+ b && e.className === n ? e.__className = n : (r !== n || b && e.className !== n) && (a == null ? e.removeAttribute("class") : e.className = n, e.__className = n);
212
233
  }
213
- function Ke(t) {
214
- return t ?? "";
234
+ function Ze(e, a) {
235
+ return (e ?? "") + "";
215
236
  }
216
- function Ue(t, e, a = e) {
217
- var n = Te();
218
- Ae(t, "input", (r) => {
219
- var i = r ? t.defaultValue : t.value;
220
- i = F(t) ? O(i) : i, a(i), n && i !== (i = e()) && (t.value = i ?? "");
237
+ function ze(e, a, t = a) {
238
+ var r = Ie();
239
+ ke(e, "input", (n) => {
240
+ var i = n ? e.defaultValue : e.value;
241
+ if (i = B(e) ? F(i) : i, t(i), r && i !== (i = a())) {
242
+ var u = e.selectionStart, d = e.selectionEnd;
243
+ e.value = i ?? "", d !== null && (e.selectionStart = u, e.selectionEnd = Math.min(d, e.value.length));
244
+ }
221
245
  }), // If we are hydrating and the value has since changed,
222
246
  // then use the updated value from the input instead.
223
- (b && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
247
+ (b && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
224
248
  // TODO Svelte 6: remove input.value check and set to empty string?
225
- we(e) == null && t.value) && a(F(t) ? O(t.value) : t.value), ke(() => {
226
- var r = e();
227
- F(t) && r === O(t.value) || t.type === "date" && !r && !t.value || r !== t.value && (t.value = r ?? "");
249
+ we(a) == null && e.value) && t(B(e) ? F(e.value) : e.value), He(() => {
250
+ var n = a();
251
+ B(e) && n === F(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
228
252
  });
229
253
  }
230
- function F(t) {
231
- var e = t.type;
232
- return e === "number" || e === "range";
254
+ function B(e) {
255
+ var a = e.type;
256
+ return a === "number" || a === "range";
233
257
  }
234
- function O(t) {
235
- return t === "" ? null : +t;
258
+ function F(e) {
259
+ return e === "" ? null : +e;
236
260
  }
237
- function Xe(t, e, { bubbles: a = !1, cancelable: n = !1 } = {}) {
238
- return new CustomEvent(t, { detail: e, bubbles: a, cancelable: n });
239
- }
240
- function ze() {
241
- const t = Ce;
242
- return t === null && Pe(), (e, a, n) => {
243
- var i;
244
- const r = (
245
- /** @type {Record<string, Function | Function[]>} */
246
- (i = t.s.$$events) == null ? void 0 : i[
247
- /** @type {any} */
248
- e
249
- ]
250
- );
251
- if (r) {
252
- const f = ee(r) ? r.slice() : [r], _ = Xe(
253
- /** @type {string} */
254
- e,
255
- a,
256
- n
257
- );
258
- for (const o of f)
259
- o.call(t.x, _);
260
- return !_.defaultPrevented;
261
- }
262
- return !0;
263
- };
264
- }
265
- var Ge = S("<button> </button>"), Je = S('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
266
- function ie(t, e) {
267
- ne(e, !1);
268
- const a = ze();
269
- let n = C(e, "buttons", 28, () => []);
270
- function r() {
271
- a("html", {});
261
+ var Ge = D("<button> </button>"), Je = D('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
262
+ function le(e, a) {
263
+ ae(a, !1);
264
+ const t = Me();
265
+ let r = k(a, "buttons", 28, () => []);
266
+ function n() {
267
+ t("html", {});
272
268
  }
273
269
  function i() {
274
- a("plain", {});
270
+ t("plain", {});
275
271
  }
276
- re();
277
- var f = Je(), _ = P(f), o = U(_, 2), h = U(o, 2);
278
- return Ve(h, 1, n, Se, (l, c) => {
279
- var u = Ge(), s = P(u, !0);
280
- D(u), He(() => {
281
- qe(u, w(c).style), Oe(u, "title", w(c).text), Ie(s, w(c).text);
282
- }), B("click", u, function(...d) {
283
- var g;
284
- (g = w(c).handler) == null || g.apply(this, d);
285
- }), R(l, u);
286
- }), D(f), B("click", _, r), B("click", o, i), R(t, f), se({
272
+ te();
273
+ var u = Je(), d = R(u), c = K(d, 2), h = K(c, 2);
274
+ return qe(h, 1, r, Pe, (l, v) => {
275
+ var s = Ge(), f = R(s, !0);
276
+ S(s), Ce(() => {
277
+ Xe(s, Ue(A(v).style)), Ye(s, "title", A(v).text), Re(f, A(v).text);
278
+ }), q("click", s, function(...o) {
279
+ var m;
280
+ (m = A(v).handler) == null || m.apply(this, o);
281
+ }), C(l, s);
282
+ }), S(u), q("click", d, n), q("click", c, i), C(e, u), re({
287
283
  get buttons() {
288
- return n();
284
+ return r();
289
285
  },
290
286
  set buttons(l) {
291
- n(l), H();
287
+ r(l), w();
292
288
  }
293
289
  });
294
290
  }
295
- ae(ie, { buttons: {} }, [], [], !0);
296
- var Qe = S("<textarea></textarea>"), We = S('<main><div class="Editor"><!></div> <!></main>');
297
- function Ze(t, e) {
298
- ne(e, !1);
299
- let a = C(e, "value", 12, ""), n = C(e, "buttons", 28, () => []), r = C(e, "html", 12, !0);
291
+ ee(le, { buttons: {} }, [], [], !0);
292
+ var Qe = D("<textarea></textarea>"), We = D('<main><div class="Editor"><!></div> <!></main>');
293
+ function $e(e, a) {
294
+ ae(a, !1);
295
+ let t = k(a, "value", 12, ""), r = k(a, "buttons", 28, () => []), n = k(a, "html", 12, !0);
300
296
  function i() {
301
- r() || r(!0);
297
+ n() || n(!0);
302
298
  }
303
- function f() {
304
- r() && (a(a().replace(/<[^>]*>?/gm, "")), r(!1));
299
+ function u() {
300
+ n() && (t(t().replace(/<[^>]*>?/gm, "")), n(!1));
305
301
  }
306
- re();
307
- var _ = We(), o = P(_), h = P(o);
302
+ te();
303
+ var d = We(), c = R(d), h = R(c);
308
304
  {
309
- var l = (s) => {
310
- Me(s, {
305
+ var l = (f) => {
306
+ Se(f, {
311
307
  get value() {
312
- return a();
308
+ return t();
313
309
  },
314
- set value(d) {
315
- a(d);
310
+ set value(o) {
311
+ t(o);
316
312
  },
317
313
  $$legacy: !0
318
314
  });
319
- }, c = (s) => {
320
- var d = Qe();
321
- Re(d), Ue(d, a), R(s, d);
315
+ }, v = (f) => {
316
+ var o = Qe();
317
+ De(o), ze(o, t), C(f, o);
322
318
  };
323
- De(h, (s) => {
324
- r() ? s(l) : s(c, !1);
319
+ Le(h, (f) => {
320
+ n() ? f(l) : f(v, !1);
325
321
  });
326
322
  }
327
- D(o);
328
- var u = U(o, 2);
329
- return ie(u, {
323
+ S(c);
324
+ var s = K(c, 2);
325
+ return le(s, {
330
326
  get buttons() {
331
- return n();
327
+ return r();
332
328
  },
333
- set buttons(s) {
334
- n(s);
329
+ set buttons(f) {
330
+ r(f);
335
331
  },
336
- $$events: { html: i, plain: f },
332
+ $$events: { html: i, plain: u },
337
333
  $$legacy: !0
338
- }), D(_), R(t, _), se({
334
+ }), S(d), C(e, d), re({
339
335
  get value() {
340
- return a();
336
+ return t();
341
337
  },
342
- set value(s) {
343
- a(s), H();
338
+ set value(f) {
339
+ t(f), w();
344
340
  },
345
341
  get buttons() {
346
- return n();
342
+ return r();
347
343
  },
348
- set buttons(s) {
349
- n(s), H();
344
+ set buttons(f) {
345
+ r(f), w();
350
346
  },
351
347
  get html() {
352
- return r();
348
+ return n();
353
349
  },
354
- set html(s) {
355
- r(s), H();
350
+ set html(f) {
351
+ n(f), w();
356
352
  }
357
353
  });
358
354
  }
359
- customElements.define("switchable-editor", ae(Ze, { value: {}, buttons: {}, html: {} }, [], [], !1));
355
+ customElements.define("switchable-editor", ee($e, { value: {}, buttons: {}, html: {} }, [], [], !1));
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-C2vyCKKC.js";
1
+ import { g as c } from "./ckeditor5-tThjGIeM.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];