@qualityunit/liveagent-components-editor 0.0.59 → 0.0.61

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 (291) hide show
  1. package/dist/af-CIJdOI1R.js +10 -0
  2. package/dist/af.umd-DJgTWlsL.js +39 -0
  3. package/dist/ar-CNJiLs0r.js +11 -0
  4. package/dist/ar.umd-CEenera_.js +40 -0
  5. package/dist/ast-cLuPH3Dj.js +10 -0
  6. package/dist/ast.umd-DO0Ecd2b.js +39 -0
  7. package/dist/az-B08uT9Vq.js +10 -0
  8. package/dist/az.umd-DuaW-p9q.js +39 -0
  9. package/dist/{bg-CPd-E56g.js → bg-CIrR_q-g.js} +2 -2
  10. package/dist/bg.umd-vcVAOS2Y.js +41 -0
  11. package/dist/bn-DGzNvAl-.js +12 -0
  12. package/dist/bn.umd-BmGNaHsR.js +41 -0
  13. package/dist/bs-J7kU5pP8.js +10 -0
  14. package/dist/bs.umd-DfbE2r0g.js +39 -0
  15. package/dist/ca-BwBs3RTu.js +10 -0
  16. package/dist/ca.umd-CajnMwgk.js +39 -0
  17. package/dist/ckeditor.js +1 -1
  18. package/dist/{ckeditor5-BphV8iPO.js → ckeditor5-C2vyCKKC.js} +17906 -15060
  19. package/dist/cs-BceXfgFi.js +10 -0
  20. package/dist/cs.umd-CI0oxNr9.js +39 -0
  21. package/dist/da-CJNE63ku.js +10 -0
  22. package/dist/da.umd-0EFTFo4o.js +39 -0
  23. package/dist/de-ch-DZeCX_V_.js +10 -0
  24. package/dist/de-ch.umd-C1t5LE9G.js +39 -0
  25. package/dist/de-onshyCzh.js +10 -0
  26. package/dist/de.umd-DB91BwuG.js +39 -0
  27. package/dist/editor-lib.js +331 -270
  28. package/dist/el-DayIvAbS.js +10 -0
  29. package/dist/el.umd-a5nJRPb2.js +39 -0
  30. package/dist/en-CXcWbcAK.js +10 -0
  31. package/dist/en-au-C8iglOMD.js +10 -0
  32. package/dist/en-au.umd-Bg2zj2Hd.js +39 -0
  33. package/dist/en-gb-BKGRfquV.js +10 -0
  34. package/dist/en-gb.umd-BGivOIyC.js +39 -0
  35. package/dist/en.umd-bLHNF1Em.js +39 -0
  36. package/dist/eo-Bq7Ufp3i.js +10 -0
  37. package/dist/eo.umd-C_5yKsQJ.js +39 -0
  38. package/dist/es-AxMCRZe-.js +10 -0
  39. package/dist/es-co-D3EQzA-d.js +10 -0
  40. package/dist/es-co.umd-CKZBMbGL.js +39 -0
  41. package/dist/es.umd-Bi_K3ZbQ.js +39 -0
  42. package/dist/et-mPuuWWtr.js +10 -0
  43. package/dist/et.umd-BiZlniQp.js +39 -0
  44. package/dist/eu-CAO2llPd.js +10 -0
  45. package/dist/eu.umd-DLtP96ya.js +39 -0
  46. package/dist/fa-CsfGpEsM.js +10 -0
  47. package/dist/fa.umd-BppZGyYu.js +39 -0
  48. package/dist/fi-CwHDc07z.js +10 -0
  49. package/dist/fi.umd-DJD7DJC7.js +39 -0
  50. package/dist/fr-CG3Tma1S.js +10 -0
  51. package/dist/fr.umd-DLyuN5uu.js +39 -0
  52. package/dist/gl-5pRFUBUx.js +10 -0
  53. package/dist/gl.umd-D2KCJfv9.js +39 -0
  54. package/dist/gu-BhKqn-Ck.js +10 -0
  55. package/dist/gu.umd-DStme9fo.js +39 -0
  56. package/dist/he-CfUc31rq.js +10 -0
  57. package/dist/he.umd-Bi9YZgI7.js +39 -0
  58. package/dist/hi-BR8KqsBN.js +10 -0
  59. package/dist/hi.umd-BjKVZui-.js +39 -0
  60. package/dist/hr-T_6m2tE-.js +10 -0
  61. package/dist/hr.umd-N-5MWsFC.js +39 -0
  62. package/dist/hu-BWu6Vqm1.js +10 -0
  63. package/dist/hu.umd-tVwaCeuy.js +39 -0
  64. package/dist/hy-DZGdZbJQ.js +10 -0
  65. package/dist/hy.umd-DMbG4xYU.js +39 -0
  66. package/dist/id-CJG1DnlJ.js +10 -0
  67. package/dist/id.umd-CKKYOsBX.js +39 -0
  68. package/dist/it-HuEHrGiX.js +10 -0
  69. package/dist/it.umd-DkrHfjNT.js +39 -0
  70. package/dist/ja-CcP_jgW4.js +10 -0
  71. package/dist/ja.umd-CmFXZxsL.js +39 -0
  72. package/dist/jv-BYnxyjxj.js +10 -0
  73. package/dist/jv.umd-CsbAOsTr.js +39 -0
  74. package/dist/kk-Cq9uO_wG.js +10 -0
  75. package/dist/kk.umd-C6oyDx78.js +39 -0
  76. package/dist/km-CZaxSYa7.js +10 -0
  77. package/dist/km.umd-BsF3vc5x.js +39 -0
  78. package/dist/kn-0JLBdw3A.js +10 -0
  79. package/dist/kn.umd-Bo_w-Vtz.js +39 -0
  80. package/dist/ko-BHmqHsua.js +10 -0
  81. package/dist/ko.umd-4lbSwGuK.js +39 -0
  82. package/dist/ku-CgUWDwi7.js +10 -0
  83. package/dist/ku.umd-CQ_DGM3J.js +39 -0
  84. package/dist/liveagent-components-editor.css +4 -0
  85. package/dist/lt-Btc3QMJO.js +10 -0
  86. package/dist/lt.umd-B8tx6SZq.js +39 -0
  87. package/dist/lv-BpM8Ikmc.js +10 -0
  88. package/dist/lv.umd-CzeEJwpj.js +39 -0
  89. package/dist/ms-54laGUYV.js +10 -0
  90. package/dist/ms.umd-Buv_vMt4.js +39 -0
  91. package/dist/nb-C37MxnKM.js +10 -0
  92. package/dist/nb.umd-CJQaAb_F.js +39 -0
  93. package/dist/ne-DfsIFuVQ.js +10 -0
  94. package/dist/ne.umd-DI4lgYgL.js +39 -0
  95. package/dist/{nl-Do0Wf5ig.js → nl-oPqycFNX.js} +2 -2
  96. package/dist/nl.umd-D2fMONAX.js +40 -0
  97. package/dist/{no-CYEV0rc8.js → no-Csgyj6Cb.js} +2 -2
  98. package/dist/no.umd-BwegLmU9.js +40 -0
  99. package/dist/oc-BdqnYoWE.js +10 -0
  100. package/dist/oc.umd-O4H-d-Uj.js +39 -0
  101. package/dist/pl-DkIxaKab.js +10 -0
  102. package/dist/pl.umd-BFZd5t49.js +39 -0
  103. package/dist/pt-CL4tvBzQ.js +10 -0
  104. package/dist/pt-br-B0moiHb9.js +10 -0
  105. package/dist/pt-br.umd-BLrZHCVA.js +39 -0
  106. package/dist/pt.umd-DTWGcxwT.js +39 -0
  107. package/dist/ro-ozc-u-9x.js +10 -0
  108. package/dist/ro.umd-D-7-K1LV.js +39 -0
  109. package/dist/ru-BYjb63UD.js +10 -0
  110. package/dist/ru.umd-ByslxoTY.js +39 -0
  111. package/dist/si-CKXZVpSb.js +10 -0
  112. package/dist/si.umd-TLviMQku.js +39 -0
  113. package/dist/sk-Ci8Q58zY.js +10 -0
  114. package/dist/sk.umd-A8qA-BvO.js +39 -0
  115. package/dist/sl-OLlmbSUC.js +10 -0
  116. package/dist/sl.umd-D75X7pzl.js +39 -0
  117. package/dist/sq-QyXuP5BU.js +10 -0
  118. package/dist/sq.umd-eKwTpm0q.js +39 -0
  119. package/dist/sr-Sges4GVV.js +10 -0
  120. package/dist/sr-latn-EAF8dA2B.js +10 -0
  121. package/dist/sr-latn.umd-CbE2rvwV.js +39 -0
  122. package/dist/sr.umd-DY8E5KQY.js +39 -0
  123. package/dist/sv-6c5S_wBI.js +10 -0
  124. package/dist/sv.umd-WJjU0io2.js +39 -0
  125. package/dist/th-D13bAKgT.js +10 -0
  126. package/dist/th.umd-5HwupYqp.js +39 -0
  127. package/dist/ti-CizHxZcV.js +10 -0
  128. package/dist/ti.umd-Cj_fIBjJ.js +39 -0
  129. package/dist/tk-C-A4oWrB.js +10 -0
  130. package/dist/tk.umd-BlsZV5Te.js +39 -0
  131. package/dist/tr-pGx482Bj.js +10 -0
  132. package/dist/tr.umd-DfmzXrOZ.js +39 -0
  133. package/dist/tt-BvUDRKXp.js +10 -0
  134. package/dist/tt.umd-CJ7Y-7W8.js +39 -0
  135. package/dist/ug-CFpWxaeG.js +10 -0
  136. package/dist/ug.umd-CSfDHFz8.js +39 -0
  137. package/dist/uk-DMPFRS0Y.js +10 -0
  138. package/dist/uk.umd-Cdj0W6hX.js +39 -0
  139. package/dist/ur-BiF5IiPx.js +10 -0
  140. package/dist/ur.umd-uuUO1KsL.js +39 -0
  141. package/dist/uz-B-U-PcEM.js +10 -0
  142. package/dist/uz.umd-CCwju0Gs.js +39 -0
  143. package/dist/vi-DfdnoqoQ.js +10 -0
  144. package/dist/vi.umd-DRiPcNM5.js +39 -0
  145. package/dist/zh-CGibO9C5.js +10 -0
  146. package/dist/zh-cn-DI3cvxwh.js +10 -0
  147. package/dist/zh-cn.umd-BhDfDYd1.js +39 -0
  148. package/dist/zh.umd-B2BXoK51.js +39 -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/ar-BpTs5yNx.js +0 -11
  153. package/dist/ar.umd-DQWc6-RO.js +0 -11
  154. package/dist/ast-BTCtbflW.js +0 -10
  155. package/dist/ast.umd-BxaJQ5qm.js +0 -10
  156. package/dist/az-CK7wSy_-.js +0 -10
  157. package/dist/az.umd-BLjqPlPK.js +0 -10
  158. package/dist/bg.umd-Chv1Oh5t.js +0 -12
  159. package/dist/bn-BoFGOtPX.js +0 -12
  160. package/dist/bn.umd-Bcj0iayj.js +0 -12
  161. package/dist/bs-IWH5b2cM.js +0 -10
  162. package/dist/bs.umd-BC1mx7lq.js +0 -10
  163. package/dist/ca-Cw5rBO28.js +0 -10
  164. package/dist/ca.umd-B9SUMfgs.js +0 -10
  165. package/dist/cs-CFLz5bIf.js +0 -10
  166. package/dist/cs.umd-UBp7_BpJ.js +0 -10
  167. package/dist/da-CHKDXGc8.js +0 -10
  168. package/dist/da.umd-or4BaoEN.js +0 -10
  169. package/dist/de-BkC74FQu.js +0 -10
  170. package/dist/de-ch-ndebdbIA.js +0 -10
  171. package/dist/de-ch.umd-DHr1_2jp.js +0 -10
  172. package/dist/de.umd-DkGxdtyi.js +0 -10
  173. package/dist/el-CQimd4eQ.js +0 -10
  174. package/dist/el.umd-CdtTg1VN.js +0 -10
  175. package/dist/en-CHlcyzGi.js +0 -8
  176. package/dist/en-au-qmUztsYs.js +0 -10
  177. package/dist/en-au.umd-BivzvmXy.js +0 -10
  178. package/dist/en-gb-BHUUfBD8.js +0 -10
  179. package/dist/en-gb.umd-DuHfqaQW.js +0 -10
  180. package/dist/en.umd-BN1Ay2JM.js +0 -8
  181. package/dist/eo-D0OhWPh2.js +0 -10
  182. package/dist/eo.umd-DN3ccMnd.js +0 -10
  183. package/dist/es-AAHV51NX.js +0 -10
  184. package/dist/es-co-U5Y3ZtVL.js +0 -10
  185. package/dist/es-co.umd-BJXyrgDj.js +0 -10
  186. package/dist/es.umd-DRDgxQAh.js +0 -10
  187. package/dist/et-BuGUsVs6.js +0 -10
  188. package/dist/et.umd-Btf5ejhj.js +0 -10
  189. package/dist/eu-DqINMRrG.js +0 -10
  190. package/dist/eu.umd-CIFy8PQg.js +0 -10
  191. package/dist/fa-BFUTbVuf.js +0 -10
  192. package/dist/fa.umd-DWiCPYwV.js +0 -10
  193. package/dist/fi-BLqFaYHY.js +0 -10
  194. package/dist/fi.umd-C4C-Ch4e.js +0 -10
  195. package/dist/fr-D66VUxEx.js +0 -10
  196. package/dist/fr.umd-BquLCnLR.js +0 -10
  197. package/dist/gl-CUeEdG1n.js +0 -10
  198. package/dist/gl.umd-BN1CmVJM.js +0 -10
  199. package/dist/gu-BqB4LPZu.js +0 -10
  200. package/dist/gu.umd-DdrO8M--.js +0 -10
  201. package/dist/he-BQsg9emH.js +0 -10
  202. package/dist/he.umd-Bb1r6aKN.js +0 -10
  203. package/dist/hi-B6tYFykL.js +0 -10
  204. package/dist/hi.umd-veJG0Chy.js +0 -10
  205. package/dist/hr-HEMrGO4m.js +0 -10
  206. package/dist/hr.umd-qgnQB2ez.js +0 -10
  207. package/dist/hu-bezLKyP6.js +0 -10
  208. package/dist/hu.umd-C4Yvk1eJ.js +0 -10
  209. package/dist/hy-B-qa5wak.js +0 -10
  210. package/dist/hy.umd-DlwJg-yv.js +0 -10
  211. package/dist/id-DR1yhwf1.js +0 -10
  212. package/dist/id.umd-oqIwR32Z.js +0 -10
  213. package/dist/it-ggX0MR1R.js +0 -10
  214. package/dist/it.umd-iNZrAA9o.js +0 -10
  215. package/dist/ja-Bk4ynS3Q.js +0 -10
  216. package/dist/ja.umd-BpsTH2eF.js +0 -10
  217. package/dist/jv-BWdzD1XL.js +0 -10
  218. package/dist/jv.umd-IIWvfVnP.js +0 -10
  219. package/dist/kk-TPMW8fJN.js +0 -10
  220. package/dist/kk.umd-vlBq5Fyn.js +0 -10
  221. package/dist/km-CaO4GZs-.js +0 -10
  222. package/dist/km.umd-Bv-tAmsP.js +0 -10
  223. package/dist/kn-t905VYTD.js +0 -10
  224. package/dist/kn.umd-Qy7nqFAi.js +0 -10
  225. package/dist/ko-B3UlDboy.js +0 -10
  226. package/dist/ko.umd-PQYFc_F3.js +0 -10
  227. package/dist/ku-DAqbKYlb.js +0 -10
  228. package/dist/ku.umd-D9OcnkMh.js +0 -10
  229. package/dist/lt-BC5KCJ-k.js +0 -10
  230. package/dist/lt.umd-p4O8WLVW.js +0 -10
  231. package/dist/lv-jJoaudbJ.js +0 -10
  232. package/dist/lv.umd-Hie2j_8R.js +0 -10
  233. package/dist/ms-BPc58Awt.js +0 -10
  234. package/dist/ms.umd-C986P4ww.js +0 -10
  235. package/dist/nb-CncfI5nE.js +0 -10
  236. package/dist/nb.umd-FlMD13mf.js +0 -10
  237. package/dist/ne-DBVX9YDD.js +0 -10
  238. package/dist/ne.umd-CRPmi3aJ.js +0 -10
  239. package/dist/nl.umd-Cdtci2b8.js +0 -11
  240. package/dist/no.umd-DzbWur2F.js +0 -11
  241. package/dist/oc-CUgbZgsd.js +0 -10
  242. package/dist/oc.umd-Gl9-CC5B.js +0 -10
  243. package/dist/pl-CGCdHL2J.js +0 -10
  244. package/dist/pl.umd-CeU3xGkJ.js +0 -10
  245. package/dist/pt-CNWE4s2g.js +0 -10
  246. package/dist/pt-br-Cwlmu5sY.js +0 -10
  247. package/dist/pt-br.umd-CVkUKUgt.js +0 -10
  248. package/dist/pt.umd-9yfyaNLM.js +0 -10
  249. package/dist/ro-DNIJ2i_0.js +0 -10
  250. package/dist/ro.umd-CHVUBWKH.js +0 -10
  251. package/dist/ru-Ck-KXxxO.js +0 -10
  252. package/dist/ru.umd-CBC8viNo.js +0 -10
  253. package/dist/si-BmcRRtLC.js +0 -10
  254. package/dist/si.umd-BtunIoDC.js +0 -10
  255. package/dist/sk-BfTPjBCO.js +0 -10
  256. package/dist/sk.umd-DCPwiFpu.js +0 -10
  257. package/dist/sl-C8GzfmN4.js +0 -10
  258. package/dist/sl.umd-uG908OHE.js +0 -10
  259. package/dist/sq-CDk9X5G-.js +0 -10
  260. package/dist/sq.umd-QB9Oz-dB.js +0 -10
  261. package/dist/sr-CHH_uHDH.js +0 -10
  262. package/dist/sr-latn-Dif0jsvH.js +0 -10
  263. package/dist/sr-latn.umd-p_eOHiJg.js +0 -10
  264. package/dist/sr.umd-CWjHnFJA.js +0 -10
  265. package/dist/style.css +0 -4
  266. package/dist/sv-CWFfcfxm.js +0 -10
  267. package/dist/sv.umd-Dk6BkhwX.js +0 -10
  268. package/dist/th-EQsp86vx.js +0 -10
  269. package/dist/th.umd-CZXH3s5c.js +0 -10
  270. package/dist/ti-CuOw1Ndz.js +0 -10
  271. package/dist/ti.umd-BdW9o19C.js +0 -10
  272. package/dist/tk-CR4d9Gnf.js +0 -10
  273. package/dist/tk.umd-BQma7U4h.js +0 -10
  274. package/dist/tr-BKQySkov.js +0 -10
  275. package/dist/tr.umd-BBqxCDro.js +0 -10
  276. package/dist/tt-B6tsn3xR.js +0 -10
  277. package/dist/tt.umd-bqEhWiU6.js +0 -10
  278. package/dist/ug-BCOAzRYa.js +0 -10
  279. package/dist/ug.umd-B3o2cbaH.js +0 -10
  280. package/dist/uk-BNsEg-s-.js +0 -10
  281. package/dist/uk.umd-Bk9QiuUU.js +0 -10
  282. package/dist/ur-B89jb-Nm.js +0 -10
  283. package/dist/ur.umd-Cv2QbxtU.js +0 -10
  284. package/dist/uz-BMzEDpzx.js +0 -10
  285. package/dist/uz.umd-DwpWTJ0R.js +0 -10
  286. package/dist/vi-CLn1VR8R.js +0 -10
  287. package/dist/vi.umd-LdjfFjpw.js +0 -10
  288. package/dist/zh-3y6LOluL.js +0 -10
  289. package/dist/zh-cn-D8pShpG2.js +0 -10
  290. package/dist/zh-cn.umd-DD3nk3PU.js +0 -10
  291. package/dist/zh.umd-BS0mAle6.js +0 -10
@@ -1,298 +1,359 @@
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-BphV8iPO.js";
2
- function A(e) {
3
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
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
4
  }
5
- function D(e, t, s) {
6
- const n = e.slice();
7
- return n[4] = t[s], n;
8
- }
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();
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;
13
+ if (b) {
14
+ const d = (
15
+ /** @type {Comment} */
16
+ n.data === j
17
+ );
18
+ f === d && (n = Y(), q(n), T(!1), s = !0);
39
19
  }
20
+ f ? (r ? I(r) : u && (r = M(() => u(n))), i && K(i, () => {
21
+ i = null;
22
+ })) : (i ? I(i) : u && (i = M(() => u(n))), r && K(r, () => {
23
+ r = null;
24
+ })), s && T(!0);
40
25
  };
26
+ Z(() => {
27
+ o = !1, e(h), o || l(null, null);
28
+ }, _), b && (n = N);
41
29
  }
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));
30
+ function Se(t, e) {
31
+ return e;
32
+ }
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 = (
39
+ /** @type {Element} */
40
+ /** @type {Element} */
41
+ a.parentNode
42
+ );
43
+ _e(o), o.append(
44
+ /** @type {Element} */
45
+ a
46
+ ), n.clear(), y(t, e[0].prev, e[i - 1].next);
47
+ }
48
+ de(r, () => {
49
+ 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, !_);
52
+ }
53
+ });
54
+ }
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)
62
+ return;
63
+ h = u === 0;
64
+ let s = !1;
65
+ if (b) {
66
+ var d = (
67
+ /** @type {Comment} */
68
+ f.data === j
69
+ );
70
+ d !== (u === 0) && (f = Y(), q(f), T(!1), s = !0);
71
+ }
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);
78
+ break;
86
79
  }
87
- for (; r < a.length; r += 1)
88
- a[r].d(1);
89
- a.length = c.length;
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;
90
82
  }
91
- },
92
- i: $,
93
- o: $,
94
- d(o) {
95
- o && H(t), O(a, o), u = !1, Q(f);
83
+ u > 0 && q(Y());
96
84
  }
97
- };
85
+ if (!b) {
86
+ var x = (
87
+ /** @type {Effect} */
88
+ be
89
+ );
90
+ Be(c, _, f, r, e, (x.f & k) !== 0, n);
91
+ }
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);
98
96
  }
99
- function tt(e, t, s) {
100
- const n = R();
101
- let { buttons: l = [] } = t;
102
- function i() {
103
- n("html", {});
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 ? (
102
+ /** @type {TemplateNode} */
103
+ 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,
112
+ m,
113
+ n,
114
+ r
115
+ ), o.set(E, u), s = [], d = [], l = u.next;
116
+ continue;
117
+ }
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 = [];
129
+ } 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;
131
+ continue;
132
+ }
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;
135
+ if (l === null)
136
+ continue;
137
+ v = l;
138
+ }
139
+ s.push(v), u = v, l = v.next;
104
140
  }
105
- function u() {
106
- n("plain", {});
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
+ var fe = null;
147
+ Le(e, V, fe, o);
148
+ }
107
149
  }
108
- return e.$$set = (f) => {
109
- "buttons" in f && s(0, l = f.buttons);
110
- }, [l, i, u];
150
+ z.first = e.first && e.first.e, z.last = u && u.e;
151
+ }
152
+ function Fe(t, e, a, n) {
153
+ ce(t.v, e), t.i = a;
111
154
  }
112
- class N extends T {
113
- constructor(t) {
114
- super(), j(this, t, tt, x, y, { buttons: 0 });
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,
159
+ k: i,
160
+ a: null,
161
+ // @ts-expect-error
162
+ e: null,
163
+ prev: a,
164
+ next: n
165
+ };
166
+ 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;
168
+ } finally {
115
169
  }
116
- get buttons() {
117
- return this.$$.ctx[0];
170
+ }
171
+ function Q(t, e, a) {
172
+ for (var n = t.next ? (
173
+ /** @type {TemplateNode} */
174
+ t.next.e.nodes_start
175
+ ) : a, r = e ? (
176
+ /** @type {TemplateNode} */
177
+ e.e.nodes_start
178
+ ) : a, i = (
179
+ /** @type {TemplateNode} */
180
+ t.e.nodes_start
181
+ ); i !== n; ) {
182
+ var f = (
183
+ /** @type {TemplateNode} */
184
+ xe(i)
185
+ );
186
+ r.before(i), i = f;
118
187
  }
119
- set buttons(t) {
120
- this.$$set({ buttons: t }), v();
188
+ }
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);
191
+ }
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));
195
+ }
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);
121
206
  }
207
+ return e;
122
208
  }
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]
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);
212
+ }
213
+ function Ke(t) {
214
+ return t ?? "";
215
+ }
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 ?? "");
221
+ }), // If we are hydrating and the value has since changed,
222
+ // then use the updated value from the input instead.
223
+ (b && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
224
+ // 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 ?? "");
228
+ });
229
+ }
230
+ function F(t) {
231
+ var e = t.type;
232
+ return e === "number" || e === "range";
233
+ }
234
+ function O(t) {
235
+ return t === "" ? null : +t;
236
+ }
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
148
257
  );
149
- },
150
- i: $,
151
- o: $,
152
- d(l) {
153
- l && H(t), s = !1, n();
258
+ for (const o of f)
259
+ o.call(t.x, _);
260
+ return !_.defaultPrevented;
154
261
  }
262
+ return !0;
155
263
  };
156
264
  }
157
- function nt(e) {
158
- let t, s, n;
159
- function l(u) {
160
- e[5](u);
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", {});
161
272
  }
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
- }
188
- }
189
- );
190
- }
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
198
- );
199
- }
200
- n = _(e), l = o[n] = a[n](e);
201
- function r(b) {
202
- e[7](b);
273
+ function i() {
274
+ a("plain", {});
203
275
  }
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
- }
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({
287
+ get buttons() {
288
+ return n();
289
+ },
290
+ set buttons(l) {
291
+ n(l), H();
242
292
  }
243
- );
293
+ });
244
294
  }
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);
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);
300
+ function i() {
301
+ r() || r(!0);
249
302
  }
250
303
  function f() {
251
- i && (s(0, n = n.replace(/<[^>]*>?/gm, "")), s(2, i = !1));
252
- }
253
- function c(_) {
254
- n = _, s(0, n);
255
- }
256
- function a() {
257
- n = this.value, s(0, n);
304
+ r() && (a(a().replace(/<[^>]*>?/gm, "")), r(!1));
258
305
  }
259
- function o(_) {
260
- l = _, s(1, l);
261
- }
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
- ];
274
- }
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];
293
- }
294
- set html(t) {
295
- this.$$set({ html: t }), v();
306
+ re();
307
+ var _ = We(), o = P(_), h = P(o);
308
+ {
309
+ var l = (s) => {
310
+ Me(s, {
311
+ get value() {
312
+ return a();
313
+ },
314
+ set value(d) {
315
+ a(d);
316
+ },
317
+ $$legacy: !0
318
+ });
319
+ }, c = (s) => {
320
+ var d = Qe();
321
+ Re(d), Ue(d, a), R(s, d);
322
+ };
323
+ De(h, (s) => {
324
+ r() ? s(l) : s(c, !1);
325
+ });
296
326
  }
327
+ D(o);
328
+ var u = U(o, 2);
329
+ return ie(u, {
330
+ get buttons() {
331
+ return n();
332
+ },
333
+ set buttons(s) {
334
+ n(s);
335
+ },
336
+ $$events: { html: i, plain: f },
337
+ $$legacy: !0
338
+ }), D(_), R(t, _), se({
339
+ get value() {
340
+ return a();
341
+ },
342
+ set value(s) {
343
+ a(s), H();
344
+ },
345
+ get buttons() {
346
+ return n();
347
+ },
348
+ set buttons(s) {
349
+ n(s), H();
350
+ },
351
+ get html() {
352
+ return r();
353
+ },
354
+ set html(s) {
355
+ r(s), H();
356
+ }
357
+ });
297
358
  }
298
- customElements.define("switchable-editor", M(ut, { value: {}, buttons: {}, html: { type: "Boolean" } }, [], [], !1));
359
+ customElements.define("switchable-editor", ae(Ze, { value: {}, buttons: {}, html: {} }, [], [], !1));