@qualityunit/liveagent-components-editor 0.0.77 → 0.0.79

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.
@@ -1,211 +1,211 @@
1
- import { b as ae, E as pe, c as te, a as k, d as S, U as ye, s as re, r as Q, p as ne, h as y, e as se, f as le, H as ie, g as Z, i as z, j as H, k as w, l as M, m as Ae, n as Te, o as Ne, q as j, t as fe, u as xe, v as Me, w as Ie, x as Se, I as Y, y as ue, z as we, A as Ce, B as He, C as ke, D as De, F as Re, G as Le, N as Pe, J as Oe, K as Fe, L as Ue, M as Ve, O as L, P as qe, Q as Be, R as ve, S as Ye, T as P, V as oe, W as q, X as $, Y as F, Z as ce, _ as de, $ as U, a0 as G, a1 as O, a2 as V, a3 as $e, a4 as Ke, a5 as We, a6 as Xe } from "./ckeditor5-CR79-ItL.js";
1
+ import { b as ae, E as ge, c as te, a as H, d as I, U as ye, s as re, r as Q, p as se, h as y, e as ne, f as le, H as ie, g as Z, i as z, j as k, k as w, l as M, m as Ae, n as Te, o as Ne, q as j, t as fe, u as xe, v as Me, w as Se, x as Ie, I as Y, y as ue, z as we, A as Ce, B as ke, C as He, D as De, F as Re, G as Le, N as Pe, J as Oe, K as Fe, L as Ue, M as Ve, O as L, P as qe, Q as Be, R as ve, S as Ye, T as P, V as oe, W as q, X as $, Y as F, Z as ce, _ as de, $ as U, a0 as G, a1 as O, a2 as V, a3 as $e, a4 as Ke, a5 as We, a6 as Xe } from "./ckeditor5-BX9cyOs5.js";
2
2
  function Ze(e, t, a = !1) {
3
- y && se();
4
- var r = e, n = null, i = null, u = ye, o = a ? pe : 0, c = !1;
5
- const m = (v, s = !0) => {
6
- c = !0, l(s, v);
3
+ y && ne();
4
+ var r = e, s = null, i = null, u = ye, v = a ? ge : 0, o = !1;
5
+ const h = (c, n = !0) => {
6
+ o = !0, l(n, c);
7
7
  };
8
8
  var _ = null;
9
9
  function E() {
10
10
  _ !== null && (_.lastChild.remove(), r.before(_), _ = null);
11
- var v = u ? n : i, s = u ? i : n;
12
- v && Q(v), s && ne(s, () => {
13
- u ? i = null : n = null;
11
+ var c = u ? s : i, n = u ? i : s;
12
+ c && Q(c), n && se(n, () => {
13
+ u ? i = null : s = null;
14
14
  });
15
15
  }
16
- const l = (v, s) => {
17
- if (u === (u = v)) return;
16
+ const l = (c, n) => {
17
+ if (u === (u = c)) return;
18
18
  let f = !1;
19
19
  if (y) {
20
- const p = le(r) === ie;
21
- !!u === p && (r = Z(), z(r), H(!1), f = !0);
20
+ const g = le(r) === ie;
21
+ !!u === g && (r = Z(), z(r), k(!1), f = !0);
22
22
  }
23
23
  var b = re(), N = r;
24
- if (b && (_ = document.createDocumentFragment(), _.append(N = te())), u ? n ??= s && k(() => s(N)) : i ??= s && k(() => s(N)), b) {
25
- var g = (
24
+ if (b && (_ = document.createDocumentFragment(), _.append(N = te())), u ? s ??= n && H(() => n(N)) : i ??= n && H(() => n(N)), b) {
25
+ var p = (
26
26
  /** @type {Batch} */
27
- S
28
- ), d = u ? n : i, h = u ? i : n;
29
- d && g.skipped_effects.delete(d), h && g.skipped_effects.add(h), g.add_callback(E);
27
+ I
28
+ ), d = u ? s : i, m = u ? i : s;
29
+ d && p.skipped_effects.delete(d), m && p.skipped_effects.add(m), p.add_callback(E);
30
30
  } else
31
31
  E();
32
- f && H(!0);
32
+ f && k(!0);
33
33
  };
34
34
  ae(() => {
35
- c = !1, t(m), c || l(null, null);
36
- }, o), y && (r = w);
35
+ o = !1, t(h), o || l(null, null);
36
+ }, v), y && (r = w);
37
37
  }
38
38
  function ze(e, t) {
39
39
  return t;
40
40
  }
41
41
  function Ge(e, t, a) {
42
- for (var r = e.items, n = [], i = t.length, u = 0; u < i; u++)
43
- Ce(t[u].e, n, !0);
44
- var o = i > 0 && n.length === 0 && a !== null;
45
- if (o) {
46
- var c = (
42
+ for (var r = e.items, s = [], i = t.length, u = 0; u < i; u++)
43
+ Ce(t[u].e, s, !0);
44
+ var v = i > 0 && s.length === 0 && a !== null;
45
+ if (v) {
46
+ var o = (
47
47
  /** @type {Element} */
48
48
  /** @type {Element} */
49
49
  a.parentNode
50
50
  );
51
- He(c), c.append(
51
+ ke(o), o.append(
52
52
  /** @type {Element} */
53
53
  a
54
54
  ), r.clear(), x(e, t[0].prev, t[i - 1].next);
55
55
  }
56
- ke(n, () => {
57
- for (var m = 0; m < i; m++) {
58
- var _ = t[m];
59
- o || (r.delete(_.k), x(e, _.prev, _.next)), ue(_.e, !o);
56
+ He(s, () => {
57
+ for (var h = 0; h < i; h++) {
58
+ var _ = t[h];
59
+ v || (r.delete(_.k), x(e, _.prev, _.next)), ue(_.e, !v);
60
60
  }
61
61
  });
62
62
  }
63
- function Je(e, t, a, r, n, i = null) {
64
- var u = e, o = { flags: t, items: /* @__PURE__ */ new Map(), first: null };
65
- y && se();
66
- var c = null, m = !1, _ = /* @__PURE__ */ new Map(), E = Ae(() => {
63
+ function Je(e, t, a, r, s, i = null) {
64
+ var u = e, v = { flags: t, items: /* @__PURE__ */ new Map(), first: null };
65
+ y && ne();
66
+ var o = null, h = !1, _ = /* @__PURE__ */ new Map(), E = Ae(() => {
67
67
  var f = a();
68
68
  return xe(f) ? f : f == null ? [] : fe(f);
69
- }), l, v;
70
- function s() {
69
+ }), l, c;
70
+ function n() {
71
71
  Qe(
72
- v,
72
+ c,
73
73
  l,
74
- o,
74
+ v,
75
75
  _,
76
76
  u,
77
- n,
77
+ s,
78
78
  t,
79
79
  r,
80
80
  a
81
- ), i !== null && (l.length === 0 ? c ? Q(c) : c = k(() => i(u)) : c !== null && ne(c, () => {
82
- c = null;
81
+ ), i !== null && (l.length === 0 ? o ? Q(o) : o = H(() => i(u)) : o !== null && se(o, () => {
82
+ o = null;
83
83
  }));
84
84
  }
85
85
  ae(() => {
86
- v ??= /** @type {Effect} */
86
+ c ??= /** @type {Effect} */
87
87
  De, l = /** @type {V[]} */
88
88
  M(E);
89
89
  var f = l.length;
90
- if (m && f === 0)
90
+ if (h && f === 0)
91
91
  return;
92
- m = f === 0;
92
+ h = f === 0;
93
93
  let b = !1;
94
94
  if (y) {
95
95
  var N = le(u) === ie;
96
- N !== (f === 0) && (u = Z(), z(u), H(!1), b = !0);
96
+ N !== (f === 0) && (u = Z(), z(u), k(!1), b = !0);
97
97
  }
98
98
  if (y) {
99
- for (var g = null, d, h = 0; h < f; h++) {
99
+ for (var p = null, d, m = 0; m < f; m++) {
100
100
  if (w.nodeType === Re && /** @type {Comment} */
101
101
  w.data === Le) {
102
102
  u = /** @type {Comment} */
103
- w, b = !0, H(!1);
103
+ w, b = !0, k(!1);
104
104
  break;
105
105
  }
106
- var p = l[h], A = r(p, h);
106
+ var g = l[m], A = r(g, m);
107
107
  d = J(
108
108
  w,
109
- o,
110
- g,
111
- null,
109
+ v,
112
110
  p,
111
+ null,
112
+ g,
113
113
  A,
114
- h,
115
- n,
114
+ m,
115
+ s,
116
116
  t,
117
117
  a
118
- ), o.items.set(A, d), g = d;
118
+ ), v.items.set(A, d), p = d;
119
119
  }
120
120
  f > 0 && z(Z());
121
121
  }
122
122
  if (y)
123
- f === 0 && i && (c = k(() => i(u)));
123
+ f === 0 && i && (o = H(() => i(u)));
124
124
  else if (re()) {
125
- var D = /* @__PURE__ */ new Set(), I = (
125
+ var D = /* @__PURE__ */ new Set(), S = (
126
126
  /** @type {Batch} */
127
- S
127
+ I
128
128
  );
129
- for (h = 0; h < f; h += 1) {
130
- p = l[h], A = r(p, h);
131
- var T = o.items.get(A) ?? _.get(A);
132
- T ? _e(T, p, h) : (d = J(
129
+ for (m = 0; m < f; m += 1) {
130
+ g = l[m], A = r(g, m);
131
+ var T = v.items.get(A) ?? _.get(A);
132
+ T ? _e(T, g, m) : (d = J(
133
133
  null,
134
- o,
134
+ v,
135
135
  null,
136
136
  null,
137
- p,
137
+ g,
138
138
  A,
139
- h,
140
- n,
139
+ m,
140
+ s,
141
141
  t,
142
142
  a,
143
143
  !0
144
144
  ), _.set(A, d)), D.add(A);
145
145
  }
146
- for (const [R, C] of o.items)
147
- D.has(R) || I.skipped_effects.add(C.e);
148
- I.add_callback(s);
146
+ for (const [R, C] of v.items)
147
+ D.has(R) || S.skipped_effects.add(C.e);
148
+ S.add_callback(n);
149
149
  } else
150
- s();
151
- b && H(!0), M(E);
150
+ n();
151
+ b && k(!0), M(E);
152
152
  }), y && (u = w);
153
153
  }
154
- function Qe(e, t, a, r, n, i, u, o, c) {
155
- var m = t.length, _ = a.items, E = a.first, l = E, v, s = null, f = [], b = [], N, g, d, h;
156
- for (h = 0; h < m; h += 1) {
157
- if (N = t[h], g = o(N, h), d = _.get(g), d === void 0) {
158
- var p = r.get(g);
159
- if (p !== void 0) {
160
- r.delete(g), _.set(g, p);
161
- var A = s ? s.next : l;
162
- x(a, s, p), x(a, p, A), K(p, A, n), s = p;
154
+ function Qe(e, t, a, r, s, i, u, v, o) {
155
+ var h = t.length, _ = a.items, E = a.first, l = E, c, n = null, f = [], b = [], N, p, d, m;
156
+ for (m = 0; m < h; m += 1) {
157
+ if (N = t[m], p = v(N, m), d = _.get(p), d === void 0) {
158
+ var g = r.get(p);
159
+ if (g !== void 0) {
160
+ r.delete(p), _.set(p, g);
161
+ var A = n ? n.next : l;
162
+ x(a, n, g), x(a, g, A), K(g, A, s), n = g;
163
163
  } else {
164
164
  var D = l ? (
165
165
  /** @type {TemplateNode} */
166
166
  l.e.nodes_start
167
- ) : n;
168
- s = J(
167
+ ) : s;
168
+ n = J(
169
169
  D,
170
170
  a,
171
- s,
172
- s === null ? a.first : s.next,
171
+ n,
172
+ n === null ? a.first : n.next,
173
173
  N,
174
- g,
175
- h,
174
+ p,
175
+ m,
176
176
  i,
177
177
  u,
178
- c
178
+ o
179
179
  );
180
180
  }
181
- _.set(g, s), f = [], b = [], l = s.next;
181
+ _.set(p, n), f = [], b = [], l = n.next;
182
182
  continue;
183
183
  }
184
- if (_e(d, N, h), (d.e.f & Y) !== 0 && Q(d.e), d !== l) {
185
- if (v !== void 0 && v.has(d)) {
184
+ if (_e(d, N, m), (d.e.f & Y) !== 0 && Q(d.e), d !== l) {
185
+ if (c !== void 0 && c.has(d)) {
186
186
  if (f.length < b.length) {
187
- var I = b[0], T;
188
- s = I.prev;
187
+ var S = b[0], T;
188
+ n = S.prev;
189
189
  var R = f[0], C = f[f.length - 1];
190
190
  for (T = 0; T < f.length; T += 1)
191
- K(f[T], I, n);
191
+ K(f[T], S, s);
192
192
  for (T = 0; T < b.length; T += 1)
193
- v.delete(b[T]);
194
- x(a, R.prev, C.next), x(a, s, R), x(a, C, I), l = I, s = C, h -= 1, f = [], b = [];
193
+ c.delete(b[T]);
194
+ x(a, R.prev, C.next), x(a, n, R), x(a, C, S), l = S, n = C, m -= 1, f = [], b = [];
195
195
  } else
196
- v.delete(d), K(d, l, n), x(a, d.prev, d.next), x(a, d, s === null ? a.first : s.next), x(a, s, d), s = d;
196
+ c.delete(d), K(d, l, s), x(a, d.prev, d.next), x(a, d, n === null ? a.first : n.next), x(a, n, d), n = d;
197
197
  continue;
198
198
  }
199
- for (f = [], b = []; l !== null && l.k !== g; )
200
- (l.e.f & Y) === 0 && (v ??= /* @__PURE__ */ new Set()).add(l), b.push(l), l = l.next;
199
+ for (f = [], b = []; l !== null && l.k !== p; )
200
+ (l.e.f & Y) === 0 && (c ??= /* @__PURE__ */ new Set()).add(l), b.push(l), l = l.next;
201
201
  if (l === null)
202
202
  continue;
203
203
  d = l;
204
204
  }
205
- f.push(d), s = d, l = d.next;
205
+ f.push(d), n = d, l = d.next;
206
206
  }
207
- if (l !== null || v !== void 0) {
208
- for (var B = v === void 0 ? [] : fe(v); l !== null; )
207
+ if (l !== null || c !== void 0) {
208
+ for (var B = c === void 0 ? [] : fe(c); l !== null; )
209
209
  (l.e.f & Y) === 0 && B.push(l), l = l.next;
210
210
  var be = B.length;
211
211
  if (be > 0) {
@@ -213,18 +213,18 @@ function Qe(e, t, a, r, n, i, u, o, c) {
213
213
  Ge(a, B, Ee);
214
214
  }
215
215
  }
216
- e.first = a.first && a.first.e, e.last = s && s.e;
217
- for (var ge of r.values())
218
- ue(ge.e);
216
+ e.first = a.first && a.first.e, e.last = n && n.e;
217
+ for (var pe of r.values())
218
+ ue(pe.e);
219
219
  r.clear();
220
220
  }
221
221
  function _e(e, t, a, r) {
222
222
  Te(e.v, t), e.i = a;
223
223
  }
224
- function J(e, t, a, r, n, i, u, o, c, m, _) {
225
- var E = (c & Ie) !== 0, l = (c & Se) === 0, v = E ? l ? Ne(n, !1, !1) : j(n) : n, s = (c & Me) === 0 ? u : j(u), f = {
226
- i: s,
227
- v,
224
+ function J(e, t, a, r, s, i, u, v, o, h, _) {
225
+ var E = (o & Se) !== 0, l = (o & Ie) === 0, c = E ? l ? Ne(s, !1, !1) : j(s) : s, n = (o & Me) === 0 ? u : j(u), f = {
226
+ i: n,
227
+ v: c,
228
228
  k: i,
229
229
  a: null,
230
230
  // @ts-expect-error
@@ -237,12 +237,12 @@ function J(e, t, a, r, n, i, u, o, c, m, _) {
237
237
  var b = document.createDocumentFragment();
238
238
  b.append(e = te());
239
239
  }
240
- return f.e = k(() => o(
240
+ return f.e = H(() => v(
241
241
  /** @type {Node} */
242
242
  e,
243
- v,
244
- s,
245
- m
243
+ c,
244
+ n,
245
+ h
246
246
  ), y), f.e.prev = a && a.e, f.e.next = r && r.e, a === null ? _ || (t.first = f) : (a.next = f, a.e.next = f.e), r !== null && (r.prev = f, r.e.prev = f.e), f;
247
247
  } finally {
248
248
  }
@@ -251,7 +251,7 @@ function K(e, t, a) {
251
251
  for (var r = e.next ? (
252
252
  /** @type {TemplateNode} */
253
253
  e.next.e.nodes_start
254
- ) : a, n = t ? (
254
+ ) : a, s = t ? (
255
255
  /** @type {TemplateNode} */
256
256
  t.e.nodes_start
257
257
  ) : a, i = (
@@ -262,7 +262,7 @@ function K(e, t, a) {
262
262
  /** @type {TemplateNode} */
263
263
  we(i)
264
264
  );
265
- n.before(i), i = u;
265
+ s.before(i), i = u;
266
266
  }
267
267
  }
268
268
  function x(e, t, a) {
@@ -272,13 +272,13 @@ function he(e) {
272
272
  var t, a, r = "";
273
273
  if (typeof e == "string" || typeof e == "number") r += e;
274
274
  else if (typeof e == "object") if (Array.isArray(e)) {
275
- var n = e.length;
276
- for (t = 0; t < n; t++) e[t] && (a = he(e[t])) && (r && (r += " "), r += a);
275
+ var s = e.length;
276
+ for (t = 0; t < s; t++) e[t] && (a = he(e[t])) && (r && (r += " "), r += a);
277
277
  } else for (a in e) e[a] && (r && (r += " "), r += a);
278
278
  return r;
279
279
  }
280
280
  function je() {
281
- for (var e, t, a = 0, r = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (t = he(e)) && (r && (r += " "), r += t);
281
+ for (var e, t, a = 0, r = "", s = arguments.length; a < s; a++) (e = arguments[a]) && (t = he(e)) && (r && (r += " "), r += t);
282
282
  return r;
283
283
  }
284
284
  function ea(e) {
@@ -288,18 +288,18 @@ function aa(e, t, a) {
288
288
  var r = e == null ? "" : "" + e;
289
289
  return r === "" ? null : r;
290
290
  }
291
- function ta(e, t, a, r, n, i) {
291
+ function ta(e, t, a, r, s, i) {
292
292
  var u = e.__className;
293
293
  if (y || u !== a || u === void 0) {
294
- var o = aa(a);
295
- (!y || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e.__className = a;
294
+ var v = aa(a);
295
+ (!y || v !== e.getAttribute("class")) && (v == null ? e.removeAttribute("class") : e.className = v), e.__className = a;
296
296
  }
297
297
  return i;
298
298
  }
299
- const ra = Symbol("is custom element"), na = Symbol("is html");
300
- function sa(e, t, a, r) {
301
- var n = la(e);
302
- y && (n[t] = e.getAttribute(t)), n[t] !== (n[t] = a) && (a == null ? e.removeAttribute(t) : typeof a != "string" && ia(e).includes(t) ? e[t] = a : e.setAttribute(t, a));
299
+ const ra = Symbol("is custom element"), sa = Symbol("is html");
300
+ function na(e, t, a, r) {
301
+ var s = la(e);
302
+ y && (s[t] = e.getAttribute(t)), s[t] !== (s[t] = a) && (a == null ? e.removeAttribute(t) : typeof a != "string" && ia(e).includes(t) ? e[t] = a : e.setAttribute(t, a));
303
303
  }
304
304
  function la(e) {
305
305
  return (
@@ -307,7 +307,7 @@ function la(e) {
307
307
  // @ts-expect-error
308
308
  e.__attributes ??= {
309
309
  [ra]: e.nodeName.includes("-"),
310
- [na]: e.namespaceURI === Pe
310
+ [sa]: e.namespaceURI === Pe
311
311
  }
312
312
  );
313
313
  }
@@ -316,37 +316,40 @@ function ia(e) {
316
316
  var t = e.getAttribute("is") || e.nodeName, a = ee.get(t);
317
317
  if (a) return a;
318
318
  ee.set(t, a = []);
319
- for (var r, n = e, i = Element.prototype; i !== n; ) {
320
- r = Fe(n);
319
+ for (var r, s = e, i = Element.prototype; i !== s; ) {
320
+ r = Fe(s);
321
321
  for (var u in r)
322
322
  r[u].set && a.push(u);
323
- n = Oe(n);
323
+ s = Oe(s);
324
324
  }
325
325
  return a;
326
326
  }
327
327
  function fa(e, t, a = t) {
328
328
  var r = /* @__PURE__ */ new WeakSet();
329
- Ue(e, "input", async (n) => {
330
- var i = n ? e.defaultValue : e.value;
331
- if (i = W(e) ? X(i) : i, a(i), S !== null && r.add(S), await Ve(), i !== (i = t())) {
332
- var u = e.selectionStart, o = e.selectionEnd;
333
- e.value = i ?? "", o !== null && (e.selectionStart = u, e.selectionEnd = Math.min(o, e.value.length));
329
+ Ue(e, "input", async (s) => {
330
+ var i = s ? e.defaultValue : e.value;
331
+ if (i = W(e) ? X(i) : i, a(i), I !== null && r.add(I), await Ve(), i !== (i = t())) {
332
+ var u = e.selectionStart, v = e.selectionEnd, o = e.value.length;
333
+ if (e.value = i ?? "", v !== null) {
334
+ var h = e.value.length;
335
+ u === v && v === o && h > o ? (e.selectionStart = h, e.selectionEnd = h) : (e.selectionStart = u, e.selectionEnd = Math.min(v, h));
336
+ }
334
337
  }
335
338
  }), // If we are hydrating and the value has since changed,
336
339
  // then use the updated value from the input instead.
337
340
  (y && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
338
341
  // TODO Svelte 6: remove input.value check and set to empty string?
339
- L(t) == null && e.value) && (a(W(e) ? X(e.value) : e.value), S !== null && r.add(S)), qe(() => {
340
- var n = t();
342
+ L(t) == null && e.value) && (a(W(e) ? X(e.value) : e.value), I !== null && r.add(I)), qe(() => {
343
+ var s = t();
341
344
  if (e === document.activeElement) {
342
345
  var i = (
343
346
  /** @type {Batch} */
344
- Be ?? S
347
+ Be ?? I
345
348
  );
346
349
  if (r.has(i))
347
350
  return;
348
351
  }
349
- W(e) && n === X(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
352
+ W(e) && s === X(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
350
353
  });
351
354
  }
352
355
  function W(e) {
@@ -361,7 +364,7 @@ function me(e, t) {
361
364
  de(t, !1);
362
365
  const a = Ye();
363
366
  let r = P(t, "buttons", 28, () => []);
364
- function n() {
367
+ function s() {
365
368
  a("html", {});
366
369
  }
367
370
  function i() {
@@ -376,52 +379,52 @@ function me(e, t) {
376
379
  }
377
380
  };
378
381
  oe();
379
- var o = va(), c = U(o), m = G(c, 2), _ = G(m, 2);
382
+ var v = va(), o = U(v), h = G(o, 2), _ = G(h, 2);
380
383
  return Je(_, 1, r, ze, (E, l) => {
381
- var v = ua(), s = U(v, !0);
382
- V(v), $e(() => {
383
- ta(v, 1, ea((M(l), L(() => M(l).style)))), sa(v, "title", (M(l), L(() => M(l).text))), Ke(s, (M(l), L(() => M(l).text)));
384
- }), $("click", v, function(...f) {
384
+ var c = ua(), n = U(c, !0);
385
+ V(c), $e(() => {
386
+ ta(c, 1, ea((M(l), L(() => M(l).style)))), na(c, "title", (M(l), L(() => M(l).text))), Ke(n, (M(l), L(() => M(l).text)));
387
+ }), $("click", c, function(...f) {
385
388
  M(l).handler?.apply(this, f);
386
- }), F(E, v);
387
- }), V(o), $("click", c, n), $("click", m, i), F(e, o), ce(u);
389
+ }), F(E, c);
390
+ }), V(v), $("click", o, s), $("click", h, i), F(e, v), ce(u);
388
391
  }
389
392
  ve(me, { buttons: {} }, [], [], !0);
390
393
  var oa = q("<textarea></textarea>"), ca = q('<main><div class="Editor"><!></div> <!></main>');
391
394
  function da(e, t) {
392
395
  de(t, !1);
393
- let a = P(t, "value", 12, ""), r = P(t, "buttons", 28, () => []), n = P(t, "html", 12, !0);
396
+ let a = P(t, "value", 12, ""), r = P(t, "buttons", 28, () => []), s = P(t, "html", 12, !0);
394
397
  function i() {
395
- n() || n(!0);
398
+ s() || s(!0);
396
399
  }
397
400
  function u() {
398
- n() && (a(a().replace(/<[^>]*>?/gm, "")), n(!1));
401
+ s() && (a(a().replace(/<[^>]*>?/gm, "")), s(!1));
399
402
  }
400
- var o = {
403
+ var v = {
401
404
  get value() {
402
405
  return a();
403
406
  },
404
- set value(s) {
405
- a(s), O();
407
+ set value(n) {
408
+ a(n), O();
406
409
  },
407
410
  get buttons() {
408
411
  return r();
409
412
  },
410
- set buttons(s) {
411
- r(s), O();
413
+ set buttons(n) {
414
+ r(n), O();
412
415
  },
413
416
  get html() {
414
- return n();
417
+ return s();
415
418
  },
416
- set html(s) {
417
- n(s), O();
419
+ set html(n) {
420
+ s(n), O();
418
421
  }
419
422
  };
420
423
  oe();
421
- var c = ca(), m = U(c), _ = U(m);
424
+ var o = ca(), h = U(o), _ = U(h);
422
425
  {
423
- var E = (s) => {
424
- We(s, {
426
+ var E = (n) => {
427
+ We(n, {
425
428
  get value() {
426
429
  return a();
427
430
  },
@@ -430,25 +433,25 @@ function da(e, t) {
430
433
  },
431
434
  $$legacy: !0
432
435
  });
433
- }, l = (s) => {
436
+ }, l = (n) => {
434
437
  var f = oa();
435
- Xe(f), fa(f, a), F(s, f);
438
+ Xe(f), fa(f, a), F(n, f);
436
439
  };
437
- Ze(_, (s) => {
438
- n() ? s(E) : s(l, !1);
440
+ Ze(_, (n) => {
441
+ s() ? n(E) : n(l, !1);
439
442
  });
440
443
  }
441
- V(m);
442
- var v = G(m, 2);
443
- return me(v, {
444
+ V(h);
445
+ var c = G(h, 2);
446
+ return me(c, {
444
447
  get buttons() {
445
448
  return r();
446
449
  },
447
- set buttons(s) {
448
- r(s);
450
+ set buttons(n) {
451
+ r(n);
449
452
  },
450
453
  $$events: { html: i, plain: u },
451
454
  $$legacy: !0
452
- }), V(c), F(e, c), ce(o);
455
+ }), V(o), F(e, o), ce(v);
453
456
  }
454
457
  customElements.define("switchable-editor", ve(da, { value: {}, buttons: {}, html: {} }, [], [], !1));