@qualityunit/liveagent-components-editor 0.0.58 → 0.0.60

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 (285) hide show
  1. package/dist/af-BGn2Nbkt.js +10 -0
  2. package/dist/af.umd-CJTnkkEy.js +10 -0
  3. package/dist/{ar-BpTs5yNx.js → ar-MeyGWUQ8.js} +3 -3
  4. package/dist/{ar.umd-DQWc6-RO.js → ar.umd-Cw4Wo5AA.js} +5 -5
  5. package/dist/ast-2I6tKQK_.js +10 -0
  6. package/dist/ast.umd-Ch0nIPPC.js +10 -0
  7. package/dist/az-CGSt2Oqf.js +10 -0
  8. package/dist/az.umd-0rCvmsr7.js +10 -0
  9. package/dist/{bg-CPd-E56g.js → bg-BotzCf1z.js} +2 -2
  10. package/dist/{bg.umd-Chv1Oh5t.js → bg.umd-C_tzvaRe.js} +2 -2
  11. package/dist/bn-DnPj1Wpu.js +12 -0
  12. package/dist/bn.umd-C4taWg_1.js +12 -0
  13. package/dist/bs-CECMzCqj.js +10 -0
  14. package/dist/bs.umd-CPvRaXxI.js +10 -0
  15. package/dist/ca-vtXuHKUJ.js +10 -0
  16. package/dist/ca.umd-DOvmLrqK.js +10 -0
  17. package/dist/ckeditor.js +1 -1
  18. package/dist/{ckeditor5-Z85agEdp.js → ckeditor5-Bhv1PpsC.js} +17075 -14695
  19. package/dist/cs-Bxa0307W.js +10 -0
  20. package/dist/cs.umd-BgLv721P.js +10 -0
  21. package/dist/da-BVnCHhTw.js +10 -0
  22. package/dist/da.umd-8k23TOfF.js +10 -0
  23. package/dist/de-CTY23Oqf.js +10 -0
  24. package/dist/de-ch-Dx3FheUk.js +10 -0
  25. package/dist/de-ch.umd-8AC-B5xS.js +10 -0
  26. package/dist/de.umd-DVyIu0pz.js +10 -0
  27. package/dist/editor-lib.js +326 -271
  28. package/dist/el-DUxJmKzE.js +10 -0
  29. package/dist/el.umd-CsZoUs7L.js +10 -0
  30. package/dist/en-CBDyxkst.js +10 -0
  31. package/dist/en-au-DmbeNakD.js +10 -0
  32. package/dist/en-au.umd-DfHXL2Gp.js +10 -0
  33. package/dist/en-gb-DeXXrTLT.js +10 -0
  34. package/dist/en-gb.umd-CHsrM6pu.js +10 -0
  35. package/dist/en.umd-CtCUKw3R.js +10 -0
  36. package/dist/eo-Bm_RItL5.js +10 -0
  37. package/dist/eo.umd-CtX_4mPP.js +10 -0
  38. package/dist/es-co-BmZhTrAm.js +10 -0
  39. package/dist/es-co.umd-D2k_JTcj.js +10 -0
  40. package/dist/es-vW9lFHuK.js +10 -0
  41. package/dist/es.umd-xBrwzbpJ.js +10 -0
  42. package/dist/et-BBHLOtFo.js +10 -0
  43. package/dist/et.umd-Cj67Ijo6.js +10 -0
  44. package/dist/eu-BGci838Q.js +10 -0
  45. package/dist/eu.umd-SxcXrWfz.js +10 -0
  46. package/dist/fa-DIA23H5q.js +10 -0
  47. package/dist/fa.umd-DMYRQSua.js +10 -0
  48. package/dist/fi-9Fp2ePCQ.js +10 -0
  49. package/dist/fi.umd-SWfZMFsF.js +10 -0
  50. package/dist/fr-CtzrkRGa.js +10 -0
  51. package/dist/fr.umd-B-CpkII9.js +10 -0
  52. package/dist/gl-OSi0Bewa.js +10 -0
  53. package/dist/gl.umd-BVIt9_Mi.js +10 -0
  54. package/dist/gu-D-WfbIvv.js +10 -0
  55. package/dist/gu.umd-BBhbdp6l.js +10 -0
  56. package/dist/he-D7kCvIjy.js +10 -0
  57. package/dist/he.umd-DckvjV9d.js +10 -0
  58. package/dist/hi-rJ0ZnR3M.js +10 -0
  59. package/dist/hi.umd-XdZyz9-H.js +10 -0
  60. package/dist/hr-DcCAzeK7.js +10 -0
  61. package/dist/hr.umd-DqhD2G_A.js +10 -0
  62. package/dist/hu-x2YBoCM1.js +10 -0
  63. package/dist/hu.umd-qEMHnY9Q.js +10 -0
  64. package/dist/hy-BhDQAQ4H.js +10 -0
  65. package/dist/hy.umd-BIKkEgjd.js +10 -0
  66. package/dist/id-C_DQe65y.js +10 -0
  67. package/dist/id.umd-DQN2TdAX.js +10 -0
  68. package/dist/it-CsrDSEmq.js +10 -0
  69. package/dist/it.umd-D6Hp8rJx.js +10 -0
  70. package/dist/ja-CksqdJKv.js +10 -0
  71. package/dist/ja.umd-DLOcGb3t.js +10 -0
  72. package/dist/jv-PVminVYt.js +10 -0
  73. package/dist/jv.umd-CnuO3t5X.js +10 -0
  74. package/dist/kk-BjKlwueE.js +10 -0
  75. package/dist/kk.umd-BKPMbhS-.js +10 -0
  76. package/dist/km-B5Q9Y0wy.js +10 -0
  77. package/dist/km.umd-GVxPmZwv.js +10 -0
  78. package/dist/kn-BZEPPp6K.js +10 -0
  79. package/dist/kn.umd-DYfwnovm.js +10 -0
  80. package/dist/ko-ClmLMOT4.js +10 -0
  81. package/dist/ko.umd-BoO-2mk9.js +10 -0
  82. package/dist/ku-WP75h_wb.js +10 -0
  83. package/dist/ku.umd-Cv5HvKVu.js +10 -0
  84. package/dist/lt-h87jY26c.js +10 -0
  85. package/dist/lt.umd-BoeaIPBN.js +10 -0
  86. package/dist/lv-DfzVIgdJ.js +10 -0
  87. package/dist/lv.umd-P-mETUJt.js +10 -0
  88. package/dist/ms-B71oTtHK.js +10 -0
  89. package/dist/ms.umd-BPC8Qqjl.js +10 -0
  90. package/dist/nb-5I6Vbufd.js +10 -0
  91. package/dist/nb.umd-DjST_7cl.js +10 -0
  92. package/dist/ne-B2JnnKu-.js +10 -0
  93. package/dist/ne.umd-1ZX5sJuy.js +10 -0
  94. package/dist/{nl-Do0Wf5ig.js → nl-BkjDnrW6.js} +2 -2
  95. package/dist/{nl.umd-Cdtci2b8.js → nl.umd-BZoab1Yd.js} +2 -2
  96. package/dist/{no-CYEV0rc8.js → no-BZpgR29C.js} +2 -2
  97. package/dist/{no.umd-DzbWur2F.js → no.umd-CCqumbGg.js} +2 -2
  98. package/dist/oc-BGkJ8oc9.js +10 -0
  99. package/dist/oc.umd-DpRudc9i.js +10 -0
  100. package/dist/pl-wnzJ0kd1.js +10 -0
  101. package/dist/pl.umd-hgA7i-YK.js +10 -0
  102. package/dist/pt-CHBUdkDu.js +10 -0
  103. package/dist/pt-br-z8K4MVET.js +10 -0
  104. package/dist/pt-br.umd-DUHLnana.js +10 -0
  105. package/dist/pt.umd-C3Q77FZX.js +10 -0
  106. package/dist/ro-BAvS79Pz.js +10 -0
  107. package/dist/ro.umd-btc0zmBj.js +10 -0
  108. package/dist/ru-BILSctXL.js +10 -0
  109. package/dist/ru.umd-CHkPKsSM.js +10 -0
  110. package/dist/si-BFvi_5YV.js +10 -0
  111. package/dist/si.umd-EB3IVaQY.js +10 -0
  112. package/dist/sk-DBzT-lYv.js +10 -0
  113. package/dist/sk.umd-mTeIbBy1.js +10 -0
  114. package/dist/sl-D209tDVv.js +10 -0
  115. package/dist/sl.umd-D7nCCRoT.js +10 -0
  116. package/dist/sq-BV4NC0Ha.js +10 -0
  117. package/dist/sq.umd-Dg1p_rAz.js +10 -0
  118. package/dist/sr-hFi8-PK0.js +10 -0
  119. package/dist/sr-latn-CgICAhCN.js +10 -0
  120. package/dist/sr-latn.umd-iVz2FoDS.js +10 -0
  121. package/dist/sr.umd-Cwsokg02.js +10 -0
  122. package/dist/style.css +1 -1
  123. package/dist/sv-ByGMbLRi.js +10 -0
  124. package/dist/sv.umd-B2QLv73I.js +10 -0
  125. package/dist/th-BgpxSN72.js +10 -0
  126. package/dist/th.umd-BYeAqia1.js +10 -0
  127. package/dist/ti-CL-xbc0t.js +10 -0
  128. package/dist/ti.umd-2acfNYx_.js +10 -0
  129. package/dist/tk-gGAkM8hz.js +10 -0
  130. package/dist/tk.umd-tM1XyFpi.js +10 -0
  131. package/dist/tr-DvRBIbp4.js +10 -0
  132. package/dist/tr.umd-DYW1PnLL.js +10 -0
  133. package/dist/tt-BITNk-o0.js +10 -0
  134. package/dist/tt.umd-BuSW7Qeu.js +10 -0
  135. package/dist/ug-Byz9n9wz.js +10 -0
  136. package/dist/ug.umd-BaHBrFUt.js +10 -0
  137. package/dist/uk-Ux6nBzu4.js +10 -0
  138. package/dist/uk.umd-BJ1QrxPr.js +10 -0
  139. package/dist/ur-BtGaWuDx.js +10 -0
  140. package/dist/ur.umd-k_YrTgBz.js +10 -0
  141. package/dist/uz-CUGL7SC-.js +10 -0
  142. package/dist/uz.umd-VkRpWDyV.js +10 -0
  143. package/dist/vi-CPcbBqg8.js +10 -0
  144. package/dist/vi.umd-BjhomvtI.js +10 -0
  145. package/dist/zh-DjsImXKN.js +10 -0
  146. package/dist/zh-cn-sf9fd3c6.js +10 -0
  147. package/dist/zh-cn.umd-C1i57nem.js +10 -0
  148. package/dist/zh.umd-DA8j4kEo.js +10 -0
  149. package/package.json +8 -8
  150. package/dist/af-oRKAeY-w.js +0 -10
  151. package/dist/af.umd-DZgj8G-R.js +0 -10
  152. package/dist/ast-BTCtbflW.js +0 -10
  153. package/dist/ast.umd-BxaJQ5qm.js +0 -10
  154. package/dist/az-CK7wSy_-.js +0 -10
  155. package/dist/az.umd-BLjqPlPK.js +0 -10
  156. package/dist/bn-BoFGOtPX.js +0 -12
  157. package/dist/bn.umd-Bcj0iayj.js +0 -12
  158. package/dist/bs-IWH5b2cM.js +0 -10
  159. package/dist/bs.umd-BC1mx7lq.js +0 -10
  160. package/dist/ca-DTS14Siu.js +0 -10
  161. package/dist/ca.umd-vLfxY6vD.js +0 -10
  162. package/dist/cs-CFLz5bIf.js +0 -10
  163. package/dist/cs.umd-UBp7_BpJ.js +0 -10
  164. package/dist/da-CHKDXGc8.js +0 -10
  165. package/dist/da.umd-or4BaoEN.js +0 -10
  166. package/dist/de-BkC74FQu.js +0 -10
  167. package/dist/de-ch-ndebdbIA.js +0 -10
  168. package/dist/de-ch.umd-DHr1_2jp.js +0 -10
  169. package/dist/de.umd-DkGxdtyi.js +0 -10
  170. package/dist/el-CQimd4eQ.js +0 -10
  171. package/dist/el.umd-CdtTg1VN.js +0 -10
  172. package/dist/en-CHlcyzGi.js +0 -8
  173. package/dist/en-au-qmUztsYs.js +0 -10
  174. package/dist/en-au.umd-BivzvmXy.js +0 -10
  175. package/dist/en-gb-BHUUfBD8.js +0 -10
  176. package/dist/en-gb.umd-DuHfqaQW.js +0 -10
  177. package/dist/en.umd-BN1Ay2JM.js +0 -8
  178. package/dist/eo-D0OhWPh2.js +0 -10
  179. package/dist/eo.umd-DN3ccMnd.js +0 -10
  180. package/dist/es-AAHV51NX.js +0 -10
  181. package/dist/es-co-U5Y3ZtVL.js +0 -10
  182. package/dist/es-co.umd-BJXyrgDj.js +0 -10
  183. package/dist/es.umd-DRDgxQAh.js +0 -10
  184. package/dist/et-BuGUsVs6.js +0 -10
  185. package/dist/et.umd-Btf5ejhj.js +0 -10
  186. package/dist/eu-DqINMRrG.js +0 -10
  187. package/dist/eu.umd-CIFy8PQg.js +0 -10
  188. package/dist/fa-BFUTbVuf.js +0 -10
  189. package/dist/fa.umd-DWiCPYwV.js +0 -10
  190. package/dist/fi-BLqFaYHY.js +0 -10
  191. package/dist/fi.umd-C4C-Ch4e.js +0 -10
  192. package/dist/fr-D66VUxEx.js +0 -10
  193. package/dist/fr.umd-BquLCnLR.js +0 -10
  194. package/dist/gl-CUeEdG1n.js +0 -10
  195. package/dist/gl.umd-BN1CmVJM.js +0 -10
  196. package/dist/gu-BqB4LPZu.js +0 -10
  197. package/dist/gu.umd-DdrO8M--.js +0 -10
  198. package/dist/he-BQsg9emH.js +0 -10
  199. package/dist/he.umd-Bb1r6aKN.js +0 -10
  200. package/dist/hi-B6tYFykL.js +0 -10
  201. package/dist/hi.umd-veJG0Chy.js +0 -10
  202. package/dist/hr-HEMrGO4m.js +0 -10
  203. package/dist/hr.umd-qgnQB2ez.js +0 -10
  204. package/dist/hu-bezLKyP6.js +0 -10
  205. package/dist/hu.umd-C4Yvk1eJ.js +0 -10
  206. package/dist/hy-B-qa5wak.js +0 -10
  207. package/dist/hy.umd-DlwJg-yv.js +0 -10
  208. package/dist/id-DR1yhwf1.js +0 -10
  209. package/dist/id.umd-oqIwR32Z.js +0 -10
  210. package/dist/it-ggX0MR1R.js +0 -10
  211. package/dist/it.umd-iNZrAA9o.js +0 -10
  212. package/dist/ja-Bk4ynS3Q.js +0 -10
  213. package/dist/ja.umd-BpsTH2eF.js +0 -10
  214. package/dist/jv-BWdzD1XL.js +0 -10
  215. package/dist/jv.umd-IIWvfVnP.js +0 -10
  216. package/dist/kk-TPMW8fJN.js +0 -10
  217. package/dist/kk.umd-vlBq5Fyn.js +0 -10
  218. package/dist/km-CaO4GZs-.js +0 -10
  219. package/dist/km.umd-Bv-tAmsP.js +0 -10
  220. package/dist/kn-t905VYTD.js +0 -10
  221. package/dist/kn.umd-Qy7nqFAi.js +0 -10
  222. package/dist/ko-B3UlDboy.js +0 -10
  223. package/dist/ko.umd-PQYFc_F3.js +0 -10
  224. package/dist/ku-DAqbKYlb.js +0 -10
  225. package/dist/ku.umd-D9OcnkMh.js +0 -10
  226. package/dist/lt-BC5KCJ-k.js +0 -10
  227. package/dist/lt.umd-p4O8WLVW.js +0 -10
  228. package/dist/lv-jJoaudbJ.js +0 -10
  229. package/dist/lv.umd-Hie2j_8R.js +0 -10
  230. package/dist/ms-BPc58Awt.js +0 -10
  231. package/dist/ms.umd-C986P4ww.js +0 -10
  232. package/dist/nb-CncfI5nE.js +0 -10
  233. package/dist/nb.umd-FlMD13mf.js +0 -10
  234. package/dist/ne-DBVX9YDD.js +0 -10
  235. package/dist/ne.umd-CRPmi3aJ.js +0 -10
  236. package/dist/oc-CUgbZgsd.js +0 -10
  237. package/dist/oc.umd-Gl9-CC5B.js +0 -10
  238. package/dist/pl-CGCdHL2J.js +0 -10
  239. package/dist/pl.umd-CeU3xGkJ.js +0 -10
  240. package/dist/pt-CNWE4s2g.js +0 -10
  241. package/dist/pt-br-Cwlmu5sY.js +0 -10
  242. package/dist/pt-br.umd-CVkUKUgt.js +0 -10
  243. package/dist/pt.umd-9yfyaNLM.js +0 -10
  244. package/dist/ro-DNIJ2i_0.js +0 -10
  245. package/dist/ro.umd-CHVUBWKH.js +0 -10
  246. package/dist/ru-Ck-KXxxO.js +0 -10
  247. package/dist/ru.umd-CBC8viNo.js +0 -10
  248. package/dist/si-BmcRRtLC.js +0 -10
  249. package/dist/si.umd-BtunIoDC.js +0 -10
  250. package/dist/sk-BfTPjBCO.js +0 -10
  251. package/dist/sk.umd-DCPwiFpu.js +0 -10
  252. package/dist/sl-C8GzfmN4.js +0 -10
  253. package/dist/sl.umd-uG908OHE.js +0 -10
  254. package/dist/sq-CDk9X5G-.js +0 -10
  255. package/dist/sq.umd-QB9Oz-dB.js +0 -10
  256. package/dist/sr-CHH_uHDH.js +0 -10
  257. package/dist/sr-latn-Dif0jsvH.js +0 -10
  258. package/dist/sr-latn.umd-p_eOHiJg.js +0 -10
  259. package/dist/sr.umd-CWjHnFJA.js +0 -10
  260. package/dist/sv-CWFfcfxm.js +0 -10
  261. package/dist/sv.umd-Dk6BkhwX.js +0 -10
  262. package/dist/th-EQsp86vx.js +0 -10
  263. package/dist/th.umd-CZXH3s5c.js +0 -10
  264. package/dist/ti-CuOw1Ndz.js +0 -10
  265. package/dist/ti.umd-BdW9o19C.js +0 -10
  266. package/dist/tk-CR4d9Gnf.js +0 -10
  267. package/dist/tk.umd-BQma7U4h.js +0 -10
  268. package/dist/tr-BKQySkov.js +0 -10
  269. package/dist/tr.umd-BBqxCDro.js +0 -10
  270. package/dist/tt-B9oKZ7tM.js +0 -10
  271. package/dist/tt.umd-DwVRxaYi.js +0 -10
  272. package/dist/ug-CuKEdrn9.js +0 -10
  273. package/dist/ug.umd-CPys1ugv.js +0 -10
  274. package/dist/uk-BNsEg-s-.js +0 -10
  275. package/dist/uk.umd-Bk9QiuUU.js +0 -10
  276. package/dist/ur-B89jb-Nm.js +0 -10
  277. package/dist/ur.umd-Cv2QbxtU.js +0 -10
  278. package/dist/uz-BMzEDpzx.js +0 -10
  279. package/dist/uz.umd-DwpWTJ0R.js +0 -10
  280. package/dist/vi-CLn1VR8R.js +0 -10
  281. package/dist/vi.umd-LdjfFjpw.js +0 -10
  282. package/dist/zh-3y6LOluL.js +0 -10
  283. package/dist/zh-cn-D8pShpG2.js +0 -10
  284. package/dist/zh-cn.umd-DD3nk3PU.js +0 -10
  285. package/dist/zh.umd-BS0mAle6.js +0 -10
@@ -1,298 +1,353 @@
1
- import { c as M, S as T, i as j, f as v, s as y, e as d, a as B, b as h, d as w, g as m, l as C, n as $, h as H, j as O, r as Q, k as R, t as U, m as V, o as W, p as z, q as K, u as F, v as G, w as k, x as X, y as E, z as I, A as J, B as Y, C as q, D as Z } from "./ckeditor5-Z85agEdp.js";
2
- function A(e) {
3
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
1
+ import { b as Z, r as I, a as M, p as F, h, c as $, E as oe, H as j, d as O, s as Y, e as T, f as N, i as ee, g as te, I as k, j as U, k as ve, l as ce, m as _e, n as de, o as he, q as me, t as be, u as X, v as ge, w as pe, x as Ee, y as ye, z as xe, A as z, B as Ne, C as Te, D as Ae, F as we, G as ke, J as ae, K as ne, L as C, M as re, N as B, O as R, P as se, Q as S, R as H, S as P, T as q, U as Ce, V as w, W as D, X as He, Y as Ie, Z as Me } from "./ckeditor5-Bhv1PpsC.js";
2
+ function Re(t) {
3
+ throw new Error("lifecycle_outside_component");
4
4
  }
5
- function D(e, t, s) {
6
- const n = e.slice();
7
- return n[4] = t[s], n;
5
+ function Pe(t, e, a, n = null, r = !1) {
6
+ h && $();
7
+ var i = t, f = null, v = null, o = null, d = r ? oe : 0;
8
+ Z(() => {
9
+ if (o === (o = !!e())) return;
10
+ let s = !1;
11
+ if (h) {
12
+ const u = (
13
+ /** @type {Comment} */
14
+ i.data === j
15
+ );
16
+ o === u && (i = O(), Y(i), T(!1), s = !0);
17
+ }
18
+ o ? (f ? I(f) : f = M(() => a(i)), v && F(v, () => {
19
+ v = null;
20
+ })) : (v ? I(v) : n && (v = M(() => n(i))), f && F(f, () => {
21
+ f = null;
22
+ })), s && T(!0);
23
+ }, d), h && (i = N);
8
24
  }
9
- function L(e) {
10
- let t, s = (
11
- /*button*/
12
- e[4].text + ""
13
- ), n, l, i, u, f;
14
- return {
15
- c() {
16
- t = d("button"), n = U(s), h(t, "class", l = /*button*/
17
- e[4].style), h(t, "title", i = /*button*/
18
- e[4].text);
19
- },
20
- m(c, a) {
21
- w(c, t, a), m(t, n), u || (f = C(t, "click", function() {
22
- V(
23
- /*button*/
24
- e[4].handler
25
- ) && e[4].handler.apply(this, arguments);
26
- }), u = !0);
27
- },
28
- p(c, a) {
29
- e = c, a & /*buttons*/
30
- 1 && s !== (s = /*button*/
31
- e[4].text + "") && W(n, s), a & /*buttons*/
32
- 1 && l !== (l = /*button*/
33
- e[4].style) && h(t, "class", l), a & /*buttons*/
34
- 1 && i !== (i = /*button*/
35
- e[4].text) && h(t, "title", i);
36
- },
37
- d(c) {
38
- c && H(t), u = !1, f();
25
+ function De(t, e) {
26
+ return e;
27
+ }
28
+ function Se(t, e, a, n) {
29
+ for (var r = [], i = e.length, f = 0; f < i; f++)
30
+ ce(e[f].e, r, !0);
31
+ var v = i > 0 && r.length === 0 && a !== null;
32
+ if (v) {
33
+ var o = (
34
+ /** @type {Element} */
35
+ /** @type {Element} */
36
+ a.parentNode
37
+ );
38
+ _e(o), o.append(
39
+ /** @type {Element} */
40
+ a
41
+ ), n.clear(), y(t, e[0].prev, e[i - 1].next);
42
+ }
43
+ de(r, () => {
44
+ for (var d = 0; d < i; d++) {
45
+ var s = e[d];
46
+ v || (n.delete(s.k), y(t, s.prev, s.next)), he(s.e, !v);
39
47
  }
40
- };
48
+ });
41
49
  }
42
- function x(e) {
43
- let t, s, n, l, i, u, f, c = A(
44
- /*buttons*/
45
- e[0]
46
- ), a = [];
47
- for (let o = 0; o < c.length; o += 1)
48
- a[o] = L(D(e, c, o));
49
- return {
50
- c() {
51
- t = d("div"), s = d("button"), s.textContent = "HTML", n = B(), l = d("button"), l.textContent = "Plain", i = B();
52
- for (let o = 0; o < a.length; o += 1)
53
- a[o].c();
54
- h(s, "class", "HTMLEditor"), h(l, "class", "PlainEditor");
55
- },
56
- m(o, _) {
57
- w(o, t, _), m(t, s), m(t, n), m(t, l), m(t, i);
58
- for (let r = 0; r < a.length; r += 1)
59
- a[r] && a[r].m(t, null);
60
- u || (f = [
61
- C(
62
- s,
63
- "click",
64
- /*onHtml*/
65
- e[1]
66
- ),
67
- C(
68
- l,
69
- "click",
70
- /*onPlain*/
71
- e[2]
72
- )
73
- ], u = !0);
74
- },
75
- p(o, [_]) {
76
- if (_ & /*buttons*/
77
- 1) {
78
- c = A(
79
- /*buttons*/
80
- o[0]
81
- );
82
- let r;
83
- for (r = 0; r < c.length; r += 1) {
84
- const g = D(o, c, r);
85
- a[r] ? a[r].p(g, _) : (a[r] = L(g), a[r].c(), a[r].m(t, null));
50
+ function Le(t, e, a, n, r, i = null) {
51
+ var f = t, v = { flags: e, items: /* @__PURE__ */ new Map(), first: null };
52
+ h && $();
53
+ var o = null, d = !1;
54
+ Z(() => {
55
+ var s = a(), u = ee(s) ? s : s == null ? [] : te(s), l = u.length;
56
+ if (d && l === 0)
57
+ return;
58
+ d = l === 0;
59
+ let c = !1;
60
+ if (h) {
61
+ var m = (
62
+ /** @type {Comment} */
63
+ f.data === j
64
+ );
65
+ m !== (l === 0) && (f = O(), Y(f), T(!1), c = !0);
66
+ }
67
+ if (h) {
68
+ for (var g = null, p, _ = 0; _ < l; _++) {
69
+ if (N.nodeType === 8 && /** @type {Comment} */
70
+ N.data === pe) {
71
+ f = /** @type {Comment} */
72
+ N, c = !0, T(!1);
73
+ break;
86
74
  }
87
- for (; r < a.length; r += 1)
88
- a[r].d(1);
89
- a.length = c.length;
75
+ var b = u[_], A = n(b, _);
76
+ p = le(N, v, g, null, b, A, _, r, e), v.items.set(A, p), g = p;
90
77
  }
91
- },
92
- i: $,
93
- o: $,
94
- d(o) {
95
- o && H(t), O(a, o), u = !1, Q(f);
78
+ l > 0 && Y(O());
96
79
  }
97
- };
80
+ if (!h) {
81
+ var x = (
82
+ /** @type {Effect} */
83
+ me
84
+ );
85
+ Ve(u, v, f, r, e, (x.f & k) !== 0, n);
86
+ }
87
+ i !== null && (l === 0 ? o ? I(o) : o = M(() => i(f)) : o !== null && F(o, () => {
88
+ o = null;
89
+ })), c && T(!0), a();
90
+ }), h && (f = N);
98
91
  }
99
- function tt(e, t, s) {
100
- const n = R();
101
- let { buttons: l = [] } = t;
102
- function i() {
103
- n("html", {});
92
+ function Ve(t, e, a, n, r, i, f) {
93
+ var v = t.length, o = e.items, d = e.first, s = d, u, l = null, c = [], m = [], g, p, _, b;
94
+ for (b = 0; b < v; b += 1) {
95
+ if (g = t[b], p = f(g, b), _ = o.get(p), _ === void 0) {
96
+ var A = s ? (
97
+ /** @type {TemplateNode} */
98
+ s.e.nodes_start
99
+ ) : a;
100
+ l = le(
101
+ A,
102
+ e,
103
+ l,
104
+ l === null ? e.first : l.next,
105
+ g,
106
+ p,
107
+ b,
108
+ n,
109
+ r
110
+ ), o.set(p, l), c = [], m = [], s = l.next;
111
+ continue;
112
+ }
113
+ if (Be(_, g, b), _.e.f & k && I(_.e), _ !== s) {
114
+ if (u !== void 0 && u.has(_)) {
115
+ if (c.length < m.length) {
116
+ var x = m[0], E;
117
+ l = x.prev;
118
+ var K = c[0], L = c[c.length - 1];
119
+ for (E = 0; E < c.length; E += 1)
120
+ G(c[E], x, a);
121
+ for (E = 0; E < m.length; E += 1)
122
+ u.delete(m[E]);
123
+ y(e, K.prev, L.next), y(e, l, K), y(e, L, x), s = x, l = L, b -= 1, c = [], m = [];
124
+ } else
125
+ u.delete(_), G(_, s, a), y(e, _.prev, _.next), y(e, _, l === null ? e.first : l.next), y(e, l, _), l = _;
126
+ continue;
127
+ }
128
+ for (c = [], m = []; s !== null && s.k !== p; )
129
+ (i || !(s.e.f & k)) && (u ?? (u = /* @__PURE__ */ new Set())).add(s), m.push(s), s = s.next;
130
+ if (s === null)
131
+ continue;
132
+ _ = s;
133
+ }
134
+ c.push(_), l = _, s = _.next;
104
135
  }
105
- function u() {
106
- n("plain", {});
136
+ if (s !== null || u !== void 0) {
137
+ for (var V = u === void 0 ? [] : te(u); s !== null; )
138
+ (i || !(s.e.f & k)) && V.push(s), s = s.next;
139
+ var ue = V.length;
140
+ if (ue > 0) {
141
+ var fe = null;
142
+ Se(e, V, fe, o);
143
+ }
107
144
  }
108
- return e.$$set = (f) => {
109
- "buttons" in f && s(0, l = f.buttons);
110
- }, [l, i, u];
145
+ U.first = e.first && e.first.e, U.last = l && l.e;
111
146
  }
112
- class N extends T {
113
- constructor(t) {
114
- super(), j(this, t, tt, x, y, { buttons: 0 });
115
- }
116
- get buttons() {
117
- return this.$$.ctx[0];
147
+ function Be(t, e, a, n) {
148
+ ve(t.v, e), t.i = a;
149
+ }
150
+ function le(t, e, a, n, r, i, f, v, o) {
151
+ var d = (o & Ee) !== 0, s = (o & ye) === 0, u = d ? s ? be(r) : X(r) : r, l = o & ge ? X(f) : f, c = {
152
+ i: l,
153
+ v: u,
154
+ k: i,
155
+ a: null,
156
+ // @ts-expect-error
157
+ e: null,
158
+ prev: a,
159
+ next: n
160
+ };
161
+ try {
162
+ return c.e = M(() => v(t, u, l), h), c.e.prev = a && a.e, c.e.next = n && n.e, a === null ? e.first = c : (a.next = c, a.e.next = c.e), n !== null && (n.prev = c, n.e.prev = c.e), c;
163
+ } finally {
118
164
  }
119
- set buttons(t) {
120
- this.$$set({ buttons: t }), v();
165
+ }
166
+ function G(t, e, a) {
167
+ for (var n = t.next ? (
168
+ /** @type {TemplateNode} */
169
+ t.next.e.nodes_start
170
+ ) : a, r = e ? (
171
+ /** @type {TemplateNode} */
172
+ e.e.nodes_start
173
+ ) : a, i = (
174
+ /** @type {TemplateNode} */
175
+ t.e.nodes_start
176
+ ); i !== n; ) {
177
+ var f = (
178
+ /** @type {TemplateNode} */
179
+ xe(i)
180
+ );
181
+ r.before(i), i = f;
121
182
  }
122
183
  }
123
- M(N, { buttons: {} }, [], [], !0);
124
- function et(e) {
125
- let t, s, n;
126
- return {
127
- c() {
128
- t = d("textarea");
129
- },
130
- m(l, i) {
131
- w(l, t, i), q(
132
- t,
133
- /*value*/
134
- e[0]
135
- ), s || (n = C(
136
- t,
137
- "input",
138
- /*textarea_input_handler*/
139
- e[6]
140
- ), s = !0);
141
- },
142
- p(l, i) {
143
- i & /*value*/
144
- 1 && q(
145
- t,
146
- /*value*/
147
- l[0]
148
- );
149
- },
150
- i: $,
151
- o: $,
152
- d(l) {
153
- l && H(t), s = !1, n();
154
- }
155
- };
184
+ function y(t, e, a) {
185
+ 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);
156
186
  }
157
- function nt(e) {
158
- let t, s, n;
159
- function l(u) {
160
- e[5](u);
187
+ function Fe(t, e, a, n) {
188
+ var r = t.__attributes ?? (t.__attributes = {});
189
+ h && (r[e] = t.getAttribute(e)), r[e] !== (r[e] = a) && (a == null ? t.removeAttribute(e) : typeof a != "string" && Oe(t).includes(e) ? t[e] = a : t.setAttribute(e, a));
190
+ }
191
+ var J = /* @__PURE__ */ new Map();
192
+ function Oe(t) {
193
+ var e = J.get(t.nodeName);
194
+ if (e) return e;
195
+ J.set(t.nodeName, e = []);
196
+ for (var a, n = z(t), r = Element.prototype; r !== n; ) {
197
+ a = Ne(n);
198
+ for (var i in a)
199
+ a[i].set && e.push(i);
200
+ n = z(n);
161
201
  }
162
- let i = {};
163
- return (
164
- /*value*/
165
- e[0] !== void 0 && (i.value = /*value*/
166
- e[0]), t = new Z({ props: i }), z.push(() => K(t, "value", l)), {
167
- c() {
168
- F(t.$$.fragment);
169
- },
170
- m(u, f) {
171
- G(t, u, f), n = !0;
172
- },
173
- p(u, f) {
174
- const c = {};
175
- !s && f & /*value*/
176
- 1 && (s = !0, c.value = /*value*/
177
- u[0], I(() => s = !1)), t.$set(c);
178
- },
179
- i(u) {
180
- n || (E(t.$$.fragment, u), n = !0);
181
- },
182
- o(u) {
183
- k(t.$$.fragment, u), n = !1;
184
- },
185
- d(u) {
186
- J(t, u);
187
- }
202
+ return e;
203
+ }
204
+ function Ye(t, e) {
205
+ var a = t.__className, n = qe(e);
206
+ h && t.className === n ? t.__className = n : (a !== n || h && t.className !== n) && (e == null ? t.removeAttribute("class") : t.className = n, t.__className = n);
207
+ }
208
+ function qe(t) {
209
+ return t ?? "";
210
+ }
211
+ function Ke(t, e, a = e) {
212
+ var n = Te();
213
+ Ae(t, "input", () => {
214
+ var r = Q(t) ? W(t.value) : t.value;
215
+ a(r), n && r !== (r = e()) && (t.value = r ?? "");
216
+ }), we(() => {
217
+ var r = e();
218
+ if (h && t.defaultValue !== t.value) {
219
+ a(t.value);
220
+ return;
188
221
  }
189
- );
222
+ Q(t) && r === W(t.value) || t.type === "date" && !r && !t.value || r !== t.value && (t.value = r ?? "");
223
+ });
224
+ }
225
+ function Q(t) {
226
+ var e = t.type;
227
+ return e === "number" || e === "range";
228
+ }
229
+ function W(t) {
230
+ return t === "" ? null : +t;
190
231
  }
191
- function st(e) {
192
- let t, s, n, l, i, u, f, c;
193
- const a = [nt, et], o = [];
194
- function _(b, p) {
195
- return (
196
- /*html*/
197
- b[2] ? 0 : 1
232
+ function Ue(t, e, { bubbles: a = !1, cancelable: n = !1 } = {}) {
233
+ return new CustomEvent(t, { detail: e, bubbles: a, cancelable: n });
234
+ }
235
+ function Xe() {
236
+ const t = ke;
237
+ return t === null && Re(), (e, a, n) => {
238
+ var i;
239
+ const r = (
240
+ /** @type {Record<string, Function | Function[]>} */
241
+ (i = t.s.$$events) == null ? void 0 : i[
242
+ /** @type {any} */
243
+ e
244
+ ]
198
245
  );
199
- }
200
- n = _(e), l = o[n] = a[n](e);
201
- function r(b) {
202
- e[7](b);
203
- }
204
- let g = {};
205
- return (
206
- /*buttons*/
207
- e[1] !== void 0 && (g.buttons = /*buttons*/
208
- e[1]), u = new N({ props: g }), z.push(() => K(u, "buttons", r)), u.$on(
209
- "html",
210
- /*handleHtml*/
211
- e[3]
212
- ), u.$on(
213
- "plain",
214
- /*handlePlain*/
215
- e[4]
216
- ), {
217
- c() {
218
- t = d("main"), s = d("div"), l.c(), i = B(), F(u.$$.fragment), h(s, "class", "Editor");
219
- },
220
- m(b, p) {
221
- w(b, t, p), m(t, s), o[n].m(s, null), m(t, i), G(u, t, null), c = !0;
222
- },
223
- p(b, [p]) {
224
- let P = n;
225
- n = _(b), n === P ? o[n].p(b, p) : (Y(), k(o[P], 1, 1, () => {
226
- o[P] = null;
227
- }), X(), l = o[n], l ? l.p(b, p) : (l = o[n] = a[n](b), l.c()), E(l, 1), l.m(s, null));
228
- const S = {};
229
- !f && p & /*buttons*/
230
- 2 && (f = !0, S.buttons = /*buttons*/
231
- b[1], I(() => f = !1)), u.$set(S);
232
- },
233
- i(b) {
234
- c || (E(l), E(u.$$.fragment, b), c = !0);
235
- },
236
- o(b) {
237
- k(l), k(u.$$.fragment, b), c = !1;
238
- },
239
- d(b) {
240
- b && H(t), o[n].d(), J(u);
241
- }
246
+ if (r) {
247
+ const f = ee(r) ? r.slice() : [r], v = Ue(
248
+ /** @type {string} */
249
+ e,
250
+ a,
251
+ n
252
+ );
253
+ for (const o of f)
254
+ o.call(t.x, v);
255
+ return !v.defaultPrevented;
242
256
  }
243
- );
257
+ return !0;
258
+ };
244
259
  }
245
- function lt(e, t, s) {
246
- let { value: n = "" } = t, { buttons: l = [] } = t, { html: i = !0 } = t;
247
- function u() {
248
- i || s(2, i = !0);
249
- }
250
- function f() {
251
- i && (s(0, n = n.replace(/<[^>]*>?/gm, "")), s(2, i = !1));
252
- }
253
- function c(_) {
254
- n = _, s(0, n);
260
+ var ze = S("<button> </button>"), Ge = S('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
261
+ function ie(t, e) {
262
+ ne(e, !1);
263
+ const a = Xe();
264
+ let n = C(e, "buttons", 28, () => []);
265
+ function r() {
266
+ a("html", {});
255
267
  }
256
- function a() {
257
- n = this.value, s(0, n);
258
- }
259
- function o(_) {
260
- l = _, s(1, l);
268
+ function i() {
269
+ a("plain", {});
261
270
  }
262
- return e.$$set = (_) => {
263
- "value" in _ && s(0, n = _.value), "buttons" in _ && s(1, l = _.buttons), "html" in _ && s(2, i = _.html);
264
- }, [
265
- n,
266
- l,
267
- i,
268
- u,
269
- f,
270
- c,
271
- a,
272
- o
273
- ];
271
+ re();
272
+ var f = Ge(), v = P(f), o = q(v, 2), d = q(o, 2);
273
+ return Le(d, 1, n, De, (s, u) => {
274
+ var l = ze(), c = P(l, !0);
275
+ D(l), Ce(() => {
276
+ Ye(l, w(u).style), Fe(l, "title", w(u).text), He(c, w(u).text);
277
+ }), B("click", l, function(...m) {
278
+ var g;
279
+ (g = w(u).handler) == null || g.apply(this, m);
280
+ }), R(s, l);
281
+ }), D(f), B("click", v, r), B("click", o, i), R(t, f), se({
282
+ get buttons() {
283
+ return n();
284
+ },
285
+ set buttons(s) {
286
+ n(s), H();
287
+ }
288
+ });
274
289
  }
275
- class ut extends T {
276
- constructor(t) {
277
- super(), j(this, t, lt, st, y, { value: 0, buttons: 1, html: 2 });
278
- }
279
- get value() {
280
- return this.$$.ctx[0];
281
- }
282
- set value(t) {
283
- this.$$set({ value: t }), v();
284
- }
285
- get buttons() {
286
- return this.$$.ctx[1];
287
- }
288
- set buttons(t) {
289
- this.$$set({ buttons: t }), v();
290
- }
291
- get html() {
292
- return this.$$.ctx[2];
290
+ ae(ie, { buttons: {} }, [], [], !0);
291
+ var Je = S("<textarea></textarea>"), Qe = S('<main><div class="Editor"><!></div> <!></main>');
292
+ function We(t, e) {
293
+ ne(e, !1);
294
+ let a = C(e, "value", 12, ""), n = C(e, "buttons", 28, () => []), r = C(e, "html", 12, !0);
295
+ function i() {
296
+ r() || r(!0);
293
297
  }
294
- set html(t) {
295
- this.$$set({ html: t }), v();
298
+ function f() {
299
+ r() && (a(a().replace(/<[^>]*>?/gm, "")), r(!1));
296
300
  }
301
+ re();
302
+ var v = Qe(), o = P(v), d = P(o);
303
+ Pe(
304
+ d,
305
+ r,
306
+ (u) => {
307
+ Ie(u, {
308
+ get value() {
309
+ return a();
310
+ },
311
+ set value(l) {
312
+ a(l);
313
+ },
314
+ $$legacy: !0
315
+ });
316
+ },
317
+ (u) => {
318
+ var l = Je();
319
+ Me(l), Ke(l, a), R(u, l);
320
+ }
321
+ ), D(o);
322
+ var s = q(o, 2);
323
+ return ie(s, {
324
+ get buttons() {
325
+ return n();
326
+ },
327
+ set buttons(u) {
328
+ n(u);
329
+ },
330
+ $$events: { html: i, plain: f },
331
+ $$legacy: !0
332
+ }), D(v), R(t, v), se({
333
+ get value() {
334
+ return a();
335
+ },
336
+ set value(u) {
337
+ a(u), H();
338
+ },
339
+ get buttons() {
340
+ return n();
341
+ },
342
+ set buttons(u) {
343
+ n(u), H();
344
+ },
345
+ get html() {
346
+ return r();
347
+ },
348
+ set html(u) {
349
+ r(u), H();
350
+ }
351
+ });
297
352
  }
298
- customElements.define("switchable-editor", M(ut, { value: {}, buttons: {}, html: { type: "Boolean" } }, [], [], !1));
353
+ customElements.define("switchable-editor", ae(We, { value: {}, buttons: {}, html: {} }, [], [], !1));