@ckeditor/ckeditor5-ai 43.2.0 → 43.3.0-alpha.0

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 (286) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ast.js +1 -0
  3. package/build/translations/az.js +1 -0
  4. package/build/translations/en-gb.js +1 -0
  5. package/build/translations/eo.js +1 -0
  6. package/build/translations/eu.js +1 -0
  7. package/build/translations/gu.js +1 -0
  8. package/build/translations/hy.js +1 -0
  9. package/build/translations/kk.js +1 -0
  10. package/build/translations/km.js +1 -0
  11. package/build/translations/kn.js +1 -0
  12. package/build/translations/ku.js +1 -0
  13. package/build/translations/nb.js +1 -0
  14. package/build/translations/ne.js +1 -0
  15. package/build/translations/oc.js +1 -0
  16. package/build/translations/si.js +1 -0
  17. package/build/translations/sl.js +1 -0
  18. package/build/translations/sq.js +1 -0
  19. package/dist/adapters/aiadapter.d.ts +8 -0
  20. package/dist/aiassistant.d.ts +12 -1
  21. package/dist/aiassistantediting.d.ts +8 -0
  22. package/dist/aiassistantui.d.ts +8 -0
  23. package/dist/index-editor.css +18 -22
  24. package/dist/index.css +18 -22
  25. package/dist/index.js +2 -2
  26. package/dist/translations/af.js +1 -1
  27. package/dist/translations/af.umd.js +1 -1
  28. package/dist/translations/ar.js +1 -1
  29. package/dist/translations/ar.umd.js +1 -1
  30. package/dist/translations/ast.d.ts +8 -0
  31. package/dist/translations/ast.js +23 -0
  32. package/dist/translations/ast.umd.js +23 -0
  33. package/dist/translations/az.d.ts +8 -0
  34. package/dist/translations/az.js +23 -0
  35. package/dist/translations/az.umd.js +23 -0
  36. package/dist/translations/bg.js +1 -1
  37. package/dist/translations/bg.umd.js +1 -1
  38. package/dist/translations/bn.js +1 -1
  39. package/dist/translations/bn.umd.js +1 -1
  40. package/dist/translations/bs.js +1 -1
  41. package/dist/translations/bs.umd.js +1 -1
  42. package/dist/translations/ca.js +1 -1
  43. package/dist/translations/ca.umd.js +1 -1
  44. package/dist/translations/cs.js +1 -1
  45. package/dist/translations/cs.umd.js +1 -1
  46. package/dist/translations/da.js +1 -1
  47. package/dist/translations/da.umd.js +1 -1
  48. package/dist/translations/de-ch.js +1 -1
  49. package/dist/translations/de-ch.umd.js +1 -1
  50. package/dist/translations/de.js +1 -1
  51. package/dist/translations/de.umd.js +1 -1
  52. package/dist/translations/el.js +1 -1
  53. package/dist/translations/el.umd.js +1 -1
  54. package/dist/translations/en-au.js +1 -1
  55. package/dist/translations/en-au.umd.js +1 -1
  56. package/dist/translations/en-gb.d.ts +8 -0
  57. package/dist/translations/en-gb.js +23 -0
  58. package/dist/translations/en-gb.umd.js +23 -0
  59. package/dist/translations/en.js +1 -1
  60. package/dist/translations/en.umd.js +1 -1
  61. package/dist/translations/eo.d.ts +8 -0
  62. package/dist/translations/eo.js +23 -0
  63. package/dist/translations/eo.umd.js +23 -0
  64. package/dist/translations/es-co.js +1 -1
  65. package/dist/translations/es-co.umd.js +1 -1
  66. package/dist/translations/es.js +1 -1
  67. package/dist/translations/es.umd.js +1 -1
  68. package/dist/translations/et.js +1 -1
  69. package/dist/translations/et.umd.js +1 -1
  70. package/dist/translations/eu.d.ts +8 -0
  71. package/dist/translations/eu.js +23 -0
  72. package/dist/translations/eu.umd.js +23 -0
  73. package/dist/translations/fa.js +1 -1
  74. package/dist/translations/fa.umd.js +1 -1
  75. package/dist/translations/fi.js +1 -1
  76. package/dist/translations/fi.umd.js +1 -1
  77. package/dist/translations/fr.js +1 -1
  78. package/dist/translations/fr.umd.js +1 -1
  79. package/dist/translations/gl.js +1 -1
  80. package/dist/translations/gl.umd.js +1 -1
  81. package/dist/translations/gu.d.ts +8 -0
  82. package/dist/translations/gu.js +23 -0
  83. package/dist/translations/gu.umd.js +23 -0
  84. package/dist/translations/he.js +1 -1
  85. package/dist/translations/he.umd.js +1 -1
  86. package/dist/translations/hi.js +1 -1
  87. package/dist/translations/hi.umd.js +1 -1
  88. package/dist/translations/hr.js +1 -1
  89. package/dist/translations/hr.umd.js +1 -1
  90. package/dist/translations/hu.js +1 -1
  91. package/dist/translations/hu.umd.js +1 -1
  92. package/dist/translations/hy.d.ts +8 -0
  93. package/dist/translations/hy.js +23 -0
  94. package/dist/translations/hy.umd.js +23 -0
  95. package/dist/translations/id.js +1 -1
  96. package/dist/translations/id.umd.js +1 -1
  97. package/dist/translations/it.js +1 -1
  98. package/dist/translations/it.umd.js +1 -1
  99. package/dist/translations/ja.js +1 -1
  100. package/dist/translations/ja.umd.js +1 -1
  101. package/dist/translations/jv.js +1 -1
  102. package/dist/translations/jv.umd.js +1 -1
  103. package/dist/translations/kk.d.ts +8 -0
  104. package/dist/translations/kk.js +23 -0
  105. package/dist/translations/kk.umd.js +23 -0
  106. package/dist/translations/km.d.ts +8 -0
  107. package/dist/translations/km.js +23 -0
  108. package/dist/translations/km.umd.js +23 -0
  109. package/dist/translations/kn.d.ts +8 -0
  110. package/dist/translations/kn.js +23 -0
  111. package/dist/translations/kn.umd.js +23 -0
  112. package/dist/translations/ko.js +1 -1
  113. package/dist/translations/ko.umd.js +1 -1
  114. package/dist/translations/ku.d.ts +8 -0
  115. package/dist/translations/ku.js +23 -0
  116. package/dist/translations/ku.umd.js +23 -0
  117. package/dist/translations/lt.js +1 -1
  118. package/dist/translations/lt.umd.js +1 -1
  119. package/dist/translations/lv.js +1 -1
  120. package/dist/translations/lv.umd.js +1 -1
  121. package/dist/translations/ms.js +1 -1
  122. package/dist/translations/ms.umd.js +1 -1
  123. package/dist/translations/nb.d.ts +8 -0
  124. package/dist/translations/nb.js +23 -0
  125. package/dist/translations/nb.umd.js +23 -0
  126. package/dist/translations/ne.d.ts +8 -0
  127. package/dist/translations/ne.js +23 -0
  128. package/dist/translations/ne.umd.js +23 -0
  129. package/dist/translations/nl.js +1 -1
  130. package/dist/translations/nl.umd.js +1 -1
  131. package/dist/translations/no.js +1 -1
  132. package/dist/translations/no.umd.js +1 -1
  133. package/dist/translations/oc.d.ts +8 -0
  134. package/dist/translations/oc.js +23 -0
  135. package/dist/translations/oc.umd.js +23 -0
  136. package/dist/translations/pl.js +1 -1
  137. package/dist/translations/pl.umd.js +1 -1
  138. package/dist/translations/pt-br.js +1 -1
  139. package/dist/translations/pt-br.umd.js +1 -1
  140. package/dist/translations/pt.js +1 -1
  141. package/dist/translations/pt.umd.js +1 -1
  142. package/dist/translations/ro.js +1 -1
  143. package/dist/translations/ro.umd.js +1 -1
  144. package/dist/translations/ru.js +1 -1
  145. package/dist/translations/ru.umd.js +1 -1
  146. package/dist/translations/si.d.ts +8 -0
  147. package/dist/translations/si.js +23 -0
  148. package/dist/translations/si.umd.js +23 -0
  149. package/dist/translations/sk.js +1 -1
  150. package/dist/translations/sk.umd.js +1 -1
  151. package/dist/translations/sl.d.ts +8 -0
  152. package/dist/translations/sl.js +23 -0
  153. package/dist/translations/sl.umd.js +23 -0
  154. package/dist/translations/sq.d.ts +8 -0
  155. package/dist/translations/sq.js +23 -0
  156. package/dist/translations/sq.umd.js +23 -0
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/dist/utils/normalizecommandsconfig.d.ts +18 -0
  188. package/lang/contexts.json +1 -0
  189. package/lang/translations/af.po +7 -9
  190. package/lang/translations/ar.po +8 -10
  191. package/lang/translations/ast.po +228 -0
  192. package/lang/translations/az.po +228 -0
  193. package/lang/translations/bg.po +7 -9
  194. package/lang/translations/bn.po +7 -9
  195. package/lang/translations/bs.po +8 -10
  196. package/lang/translations/ca.po +7 -9
  197. package/lang/translations/cs.po +8 -10
  198. package/lang/translations/da.po +7 -9
  199. package/lang/translations/de-ch.po +7 -9
  200. package/lang/translations/de.po +7 -9
  201. package/lang/translations/el.po +7 -9
  202. package/lang/translations/en-au.po +7 -9
  203. package/lang/translations/en-gb.po +228 -0
  204. package/lang/translations/en.po +9 -11
  205. package/lang/translations/eo.po +228 -0
  206. package/lang/translations/es-co.po +8 -10
  207. package/lang/translations/es.po +8 -10
  208. package/lang/translations/et.po +7 -9
  209. package/lang/translations/eu.po +228 -0
  210. package/lang/translations/fa.po +8 -10
  211. package/lang/translations/fi.po +7 -9
  212. package/lang/translations/fr.po +8 -10
  213. package/lang/translations/gl.po +7 -9
  214. package/lang/translations/gu.po +228 -0
  215. package/lang/translations/he.po +8 -10
  216. package/lang/translations/hi.po +7 -9
  217. package/lang/translations/hr.po +8 -10
  218. package/lang/translations/hu.po +7 -9
  219. package/lang/translations/hy.po +228 -0
  220. package/lang/translations/id.po +7 -9
  221. package/lang/translations/it.po +8 -10
  222. package/lang/translations/ja.po +7 -9
  223. package/lang/translations/jv.po +8 -10
  224. package/lang/translations/kk.po +228 -0
  225. package/lang/translations/km.po +228 -0
  226. package/lang/translations/kn.po +228 -0
  227. package/lang/translations/ko.po +7 -9
  228. package/lang/translations/ku.po +228 -0
  229. package/lang/translations/lt.po +8 -10
  230. package/lang/translations/lv.po +8 -10
  231. package/lang/translations/ms.po +7 -9
  232. package/lang/translations/nb.po +228 -0
  233. package/lang/translations/ne.po +228 -0
  234. package/lang/translations/nl.po +7 -9
  235. package/lang/translations/no.po +7 -9
  236. package/lang/translations/oc.po +228 -0
  237. package/lang/translations/pl.po +8 -10
  238. package/lang/translations/pt-br.po +8 -10
  239. package/lang/translations/pt.po +8 -10
  240. package/lang/translations/ro.po +8 -10
  241. package/lang/translations/ru.po +8 -10
  242. package/lang/translations/si.po +228 -0
  243. package/lang/translations/sk.po +8 -10
  244. package/lang/translations/sl.po +228 -0
  245. package/lang/translations/sq.po +228 -0
  246. package/lang/translations/sr-latn.po +8 -10
  247. package/lang/translations/sr.po +8 -10
  248. package/lang/translations/sv.po +7 -9
  249. package/lang/translations/th.po +7 -9
  250. package/lang/translations/ti.po +7 -9
  251. package/lang/translations/tk.po +7 -9
  252. package/lang/translations/tr.po +7 -9
  253. package/lang/translations/tt.po +7 -9
  254. package/lang/translations/ug.po +8 -10
  255. package/lang/translations/uk.po +8 -10
  256. package/lang/translations/ur.po +7 -9
  257. package/lang/translations/uz.po +8 -10
  258. package/lang/translations/vi.po +7 -9
  259. package/lang/translations/zh-cn.po +7 -9
  260. package/lang/translations/zh.po +7 -9
  261. package/package.json +8 -8
  262. package/src/adapters/aiadapter.d.ts +8 -0
  263. package/src/adapters/aiadapter.js +1 -1
  264. package/src/adapters/aitextadapter.js +1 -1
  265. package/src/adapters/awstextadapter.js +1 -1
  266. package/src/adapters/openaitextadapter.js +1 -1
  267. package/src/aiassistant.d.ts +12 -1
  268. package/src/aiassistant.js +1 -1
  269. package/src/aiassistantediting.d.ts +8 -0
  270. package/src/aiassistantediting.js +1 -1
  271. package/src/aiassistantui.d.ts +8 -0
  272. package/src/aiassistantui.js +1 -1
  273. package/src/index.js +1 -1
  274. package/src/ui/aiassistantcontroller.js +2 -2
  275. package/src/ui/form/aiformcontentarea.js +1 -1
  276. package/src/ui/form/aiformerrorview.js +1 -1
  277. package/src/ui/form/aiformpromptview.js +1 -1
  278. package/src/ui/form/aiformtoolbarview.js +1 -1
  279. package/src/ui/form/aiformview.js +1 -1
  280. package/src/ui/form/aihistorylistitemview.js +1 -1
  281. package/src/ui/form/aihistorylistview.js +1 -1
  282. package/src/ui/form/prompthistory.js +1 -1
  283. package/src/ui/showaiassistantcommand.js +1 -1
  284. package/src/utils/common-translations.js +1 -1
  285. package/src/utils/normalizecommandsconfig.d.ts +14 -0
  286. package/src/utils/normalizecommandsconfig.js +23 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11f8c8=_0x37cb;(function(_0x1d0a77,_0x40b459){const _0x126198=_0x37cb,_0x31b3f6=_0x1d0a77();while(!![]){try{const _0x333869=parseInt(_0x126198(0xe6))/0x1*(-parseInt(_0x126198(0xfb))/0x2)+-parseInt(_0x126198(0xdb))/0x3*(-parseInt(_0x126198(0x10b))/0x4)+-parseInt(_0x126198(0xf0))/0x5+-parseInt(_0x126198(0xfc))/0x6*(-parseInt(_0x126198(0xea))/0x7)+-parseInt(_0x126198(0xe8))/0x8+-parseInt(_0x126198(0xf9))/0x9*(-parseInt(_0x126198(0xed))/0xa)+parseInt(_0x126198(0x10a))/0xb;if(_0x333869===_0x40b459)break;else _0x31b3f6['push'](_0x31b3f6['shift']());}catch(_0x354deb){_0x31b3f6['push'](_0x31b3f6['shift']());}}}(_0x5f5a,0x6a014));import{Rect as _0x2f2ac2,global as _0x512d32,isVisible as _0x2d3b3f}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x50af6c,ButtonView as _0x2a0363}from'ckeditor5/src/ui.js';import{icons as _0xe35fad}from'ckeditor5/src/core.js';import{getTranslation as _0x927993}from'../../utils/common-translations.js';import _0xf33269 from'../../../theme/icons/submit.svg';export default class ot extends _0x50af6c{constructor(_0x5795c9,_0x1914ad){const _0x125efa=_0x37cb;super(_0x5795c9,_0x1914ad),this[_0x125efa(0x10d)][_0x125efa(0xf5)][_0x125efa(0xe3)]=0x1,this[_0x125efa(0x10d)][_0x125efa(0xf5)][_0x125efa(0xdf)]=0x3,this[_0x125efa(0xde)]=this[_0x125efa(0xf1)](),this[_0x125efa(0xdd)]=this[_0x125efa(0xe0)](),this[_0x125efa(0xe9)][_0x125efa(0xda)](this[_0x125efa(0xdd)],0x1),this[_0x125efa(0xe9)][_0x125efa(0xda)](this[_0x125efa(0xde)]);}[_0x11f8c8(0x109)](){const _0x46f372=_0x11f8c8;super[_0x46f372(0x109)](),this[_0x46f372(0x10d)][_0x46f372(0xf3)][_0x46f372(0xda)](this[_0x46f372(0xdd)]),this[_0x46f372(0xe5)][_0x46f372(0xda)](this[_0x46f372(0xde)]),this[_0x46f372(0xdc)][_0x46f372(0xf8)](_0x46f372(0xd9),(_0x5408fa,_0x58c623)=>{const _0x1d861e=_0x46f372;_0x5408fa[_0x1d861e(0xeb)]==this[_0x1d861e(0x10d)][_0x1d861e(0xf5)][_0x1d861e(0xf7)]&&(this[_0x1d861e(0xd2)](),_0x58c623());});}[_0x11f8c8(0xf1)](){const _0x45286f=_0x11f8c8,_0x5d1004=new _0x2a0363(this[_0x45286f(0xd7)]),_0x30c53f=this[_0x45286f(0xd7)];return _0x5d1004[_0x45286f(0xf8)]({'icon':_0xf33269,'label':_0x927993(_0x30c53f,_0x45286f(0xd4)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x45286f(0xf4)}),_0x5d1004['on'](_0x45286f(0x105),()=>{const _0x255d14=_0x45286f;this[_0x255d14(0xd2)]();}),_0x5d1004[_0x45286f(0xe7)](_0x45286f(0x106))['to'](this[_0x45286f(0x10d)][_0x45286f(0xf5)],_0x45286f(0xe2),this,_0x45286f(0x106),(_0x1e4a0a,_0x4cb428)=>!_0x1e4a0a&&_0x4cb428),_0x5d1004;}[_0x11f8c8(0xe0)](){const _0x1b04a9=_0x11f8c8,_0x2ed139=new _0x2a0363(this[_0x1b04a9(0xd7)]),_0x45527c=this[_0x1b04a9(0xfd)],_0x5c9895=this[_0x1b04a9(0xd7)];_0x2ed139[_0x1b04a9(0xf8)]({'label':_0x927993(_0x5c9895,_0x1b04a9(0xf6)),'withText':!0x1,'icon':_0xe35fad[_0x1b04a9(0x104)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1b04a9(0xff)}),_0x2ed139[_0x1b04a9(0xe7)](_0x1b04a9(0xd6))['to'](_0x45527c,_0x1b04a9(0x103)),_0x2ed139[_0x1b04a9(0xe7)](_0x1b04a9(0x106))['to'](this,_0x1b04a9(0x106)),_0x2ed139['on'](_0x1b04a9(0x105),()=>{const _0x78b73e=_0x1b04a9;_0x45527c[_0x78b73e(0x103)]=!_0x45527c[_0x78b73e(0x103)],_0x45527c[_0x78b73e(0x103)]?this[_0x78b73e(0x10c)][_0x78b73e(0xf2)]():this[_0x78b73e(0xf2)]();});const _0x57520d=()=>{const _0x1e9773=_0x1b04a9;_0x512d32[_0x1e9773(0xe1)][_0x1e9773(0xfa)](()=>{const _0x5b8738=_0x1e9773;if(_0x2d3b3f(this[_0x5b8738(0xf7)])){const _0x5de64d=new _0x2f2ac2(this[_0x5b8738(0x10d)][_0x5b8738(0xf5)][_0x5b8738(0xf7)]),_0x1bc8cb=_0x5de64d[_0x5b8738(0xec)],_0x5580d2=_0x5b8738(0x102)===_0x5c9895[_0x5b8738(0x100)]?_0x5b8738(0xfe):_0x5b8738(0x107);_0x5de64d[_0x5b8738(0xd5)](),_0x2ed139[_0x5b8738(0xf7)][_0x5b8738(0x108)][_0x5580d2]=_0x1bc8cb-_0x5de64d[_0x5b8738(0xec)]+0x1+'px';}});};return this[_0x1b04a9(0x10d)][_0x1b04a9(0xf5)]['on'](_0x1b04a9(0xee),_0x57520d),this['on'](_0x1b04a9(0x109),_0x57520d),_0x2ed139;}[_0x11f8c8(0xd2)](){const _0x1b890a=_0x11f8c8,_0x3dfe63=this[_0x1b890a(0x10d)][_0x1b890a(0xf5)][_0x1b890a(0xf7)][_0x1b890a(0x101)];this[_0x1b890a(0xef)](_0x1b890a(0xd2),_0x3dfe63);}[_0x11f8c8(0xf2)](_0x1140e2){const _0xf685b0=_0x11f8c8;-0x1===_0x1140e2?this[_0xf685b0(0xd3)][_0xf685b0(0xd8)]():this[_0xf685b0(0xd3)][_0xf685b0(0xe4)]();}}function _0x37cb(_0x341493,_0x2a72df){const _0x5f5a80=_0x5f5a();return _0x37cb=function(_0x37cb98,_0x4da7e6){_0x37cb98=_0x37cb98-0xd2;let _0x441313=_0x5f5a80[_0x37cb98];return _0x441313;},_0x37cb(_0x341493,_0x2a72df);}function _0x5f5a(){const _0x1184ad=['rtl','isVisible','history','execute','isEnabled','right','style','render','8561520NLKsOL','217180hgsfjy','filteredView','queryView','submit','focusCycler','Submit','excludeScrollbarsAndBorders','isOn','locale','focusLast','enter','add','3VatCuf','keystrokes','showHistoryButtonView','submitButtonView','maxRows','_createShowHistoryButton','window','isEmpty','minRows','focusFirst','children','737417rUnbWi','bind','2172088YPRgtj','focusableChildren','1185989mlBiWR','target','width','80QlUFHm','update','fire','3875730lvyJtN','_createSubmitButton','focus','fieldWrapperChildren','ck-ai-form__submit','fieldView','History','element','set','605835lkHeZr','requestAnimationFrame','2DXWWoV','30Yaaxff','resultsView','left','ck-ai-form__toggle-history','uiLanguageDirection','value'];_0x5f5a=function(){return _0x1184ad;};return _0x5f5a();}
23
+ const _0x478336=_0x5f08;function _0x26b0(){const _0x2658c9=['_createShowHistoryButton','requestAnimationFrame','submit','504GOstga','set','left','isOn','uiLanguageDirection','maxRows','element','ck-ai-form__submit','queryView','isVisible','Submit','add','fieldView','bind','493705CnECsy','execute','filteredView','right','value','4lYnhkt','History','history','66PCIWGN','children','isEnabled','focusableChildren','focusFirst','4048642Dbxmja','focus','ck-ai-form__toggle-history','locale','minRows','fire','77798OHeEqb','keystrokes','submitButtonView','resultsView','rtl','excludeScrollbarsAndBorders','focusCycler','15139344dfCemJ','isEmpty','target','update','window','fieldWrapperChildren','12zbtMhI','showHistoryButtonView','1734741ZjQwQp','enter','width','focusLast','style','222869AfeOKq','_createSubmitButton','2259SCBDcr','13670umGNhE','10rJluXt','render'];_0x26b0=function(){return _0x2658c9;};return _0x26b0();}(function(_0x3afe48,_0x270f81){const _0x239baf=_0x5f08,_0x399c5e=_0x3afe48();while(!![]){try{const _0x30e40b=-parseInt(_0x239baf(0x200))/0x1*(parseInt(_0x239baf(0x204))/0x2)+-parseInt(_0x239baf(0x1fb))/0x3*(parseInt(_0x239baf(0x21c))/0x4)+parseInt(_0x239baf(0x217))/0x5*(parseInt(_0x239baf(0x21f))/0x6)+-parseInt(_0x239baf(0x22a))/0x7*(parseInt(_0x239baf(0x209))/0x8)+-parseInt(_0x239baf(0x202))/0x9*(-parseInt(_0x239baf(0x203))/0xa)+parseInt(_0x239baf(0x1f3))/0xb+-parseInt(_0x239baf(0x1f9))/0xc*(-parseInt(_0x239baf(0x224))/0xd);if(_0x30e40b===_0x270f81)break;else _0x399c5e['push'](_0x399c5e['shift']());}catch(_0x3840d7){_0x399c5e['push'](_0x399c5e['shift']());}}}(_0x26b0,0xb0d08));import{Rect as _0x35f25b,global as _0xa5bf6,isVisible as _0x281ebd}from'ckeditor5/src/utils.js';function _0x5f08(_0x168ea5,_0x3e7c05){const _0x26b039=_0x26b0();return _0x5f08=function(_0x5f084c,_0x2a7368){_0x5f084c=_0x5f084c-0x1ee;let _0x438a9b=_0x26b039[_0x5f084c];return _0x438a9b;},_0x5f08(_0x168ea5,_0x3e7c05);}import{AutocompleteView as _0x3f7826,ButtonView as _0xbc973}from'ckeditor5/src/ui.js';import{icons as _0x1463c7}from'ckeditor5/src/core.js';import{getTranslation as _0x5b8048}from'../../utils/common-translations.js';import _0x5b49d0 from'../../../theme/icons/submit.svg';export default class ht extends _0x3f7826{constructor(_0x36cce7,_0x347ad2){const _0x3b40f4=_0x5f08;super(_0x36cce7,_0x347ad2),this[_0x3b40f4(0x211)][_0x3b40f4(0x215)][_0x3b40f4(0x228)]=0x1,this[_0x3b40f4(0x211)][_0x3b40f4(0x215)][_0x3b40f4(0x20e)]=0x3,this[_0x3b40f4(0x1ee)]=this[_0x3b40f4(0x201)](),this[_0x3b40f4(0x1fa)]=this[_0x3b40f4(0x206)](),this[_0x3b40f4(0x222)][_0x3b40f4(0x214)](this[_0x3b40f4(0x1fa)],0x1),this[_0x3b40f4(0x222)][_0x3b40f4(0x214)](this[_0x3b40f4(0x1ee)]);}[_0x478336(0x205)](){const _0x402ffe=_0x478336;super[_0x402ffe(0x205)](),this[_0x402ffe(0x211)][_0x402ffe(0x1f8)][_0x402ffe(0x214)](this[_0x402ffe(0x1fa)]),this[_0x402ffe(0x220)][_0x402ffe(0x214)](this[_0x402ffe(0x1ee)]),this[_0x402ffe(0x22b)][_0x402ffe(0x20a)](_0x402ffe(0x1fc),(_0x2e93e9,_0x4e56ca)=>{const _0x467a3f=_0x402ffe;_0x2e93e9[_0x467a3f(0x1f5)]==this[_0x467a3f(0x211)][_0x467a3f(0x215)][_0x467a3f(0x20f)]&&(this[_0x467a3f(0x208)](),_0x4e56ca());});}[_0x478336(0x201)](){const _0x2a20c4=_0x478336,_0x5d8786=new _0xbc973(this[_0x2a20c4(0x227)]),_0x46f9d8=this[_0x2a20c4(0x227)];return _0x5d8786[_0x2a20c4(0x20a)]({'icon':_0x5b49d0,'label':_0x5b8048(_0x46f9d8,_0x2a20c4(0x213)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2a20c4(0x210)}),_0x5d8786['on'](_0x2a20c4(0x218),()=>{const _0x5cb2db=_0x2a20c4;this[_0x5cb2db(0x208)]();}),_0x5d8786[_0x2a20c4(0x216)](_0x2a20c4(0x221))['to'](this[_0x2a20c4(0x211)][_0x2a20c4(0x215)],_0x2a20c4(0x1f4),this,_0x2a20c4(0x221),(_0x2c9dee,_0x4505cf)=>!_0x2c9dee&&_0x4505cf),_0x5d8786;}[_0x478336(0x206)](){const _0x2ae2fd=_0x478336,_0x30f541=new _0xbc973(this[_0x2ae2fd(0x227)]),_0xa06eef=this[_0x2ae2fd(0x1ef)],_0x5ef592=this[_0x2ae2fd(0x227)];_0x30f541[_0x2ae2fd(0x20a)]({'label':_0x5b8048(_0x5ef592,_0x2ae2fd(0x21d)),'withText':!0x1,'icon':_0x1463c7[_0x2ae2fd(0x21e)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2ae2fd(0x226)}),_0x30f541[_0x2ae2fd(0x216)](_0x2ae2fd(0x20c))['to'](_0xa06eef,_0x2ae2fd(0x212)),_0x30f541[_0x2ae2fd(0x216)](_0x2ae2fd(0x221))['to'](this,_0x2ae2fd(0x221)),_0x30f541['on'](_0x2ae2fd(0x218),()=>{const _0x56fa22=_0x2ae2fd;_0xa06eef[_0x56fa22(0x212)]=!_0xa06eef[_0x56fa22(0x212)],_0xa06eef[_0x56fa22(0x212)]?this[_0x56fa22(0x219)][_0x56fa22(0x225)]():this[_0x56fa22(0x225)]();});const _0x7d723b=()=>{const _0x4db54b=_0x2ae2fd;_0xa5bf6[_0x4db54b(0x1f7)][_0x4db54b(0x207)](()=>{const _0x224f09=_0x4db54b;if(_0x281ebd(this[_0x224f09(0x20f)])){const _0x1c3d30=new _0x35f25b(this[_0x224f09(0x211)][_0x224f09(0x215)][_0x224f09(0x20f)]),_0x49887a=_0x1c3d30[_0x224f09(0x1fd)],_0x5837bd=_0x224f09(0x1f0)===_0x5ef592[_0x224f09(0x20d)]?_0x224f09(0x20b):_0x224f09(0x21a);_0x1c3d30[_0x224f09(0x1f1)](),_0x30f541[_0x224f09(0x20f)][_0x224f09(0x1ff)][_0x5837bd]=_0x49887a-_0x1c3d30[_0x224f09(0x1fd)]+0x1+'px';}});};return this[_0x2ae2fd(0x211)][_0x2ae2fd(0x215)]['on'](_0x2ae2fd(0x1f6),_0x7d723b),this['on'](_0x2ae2fd(0x205),_0x7d723b),_0x30f541;}[_0x478336(0x208)](){const _0x514a5d=_0x478336,_0x2dcc74=this[_0x514a5d(0x211)][_0x514a5d(0x215)][_0x514a5d(0x20f)][_0x514a5d(0x21b)];this[_0x514a5d(0x229)](_0x514a5d(0x208),_0x2dcc74);}[_0x478336(0x225)](_0x32e5ce){const _0x1577e8=_0x478336;-0x1===_0x32e5ce?this[_0x1577e8(0x1f2)][_0x1577e8(0x1fe)]():this[_0x1577e8(0x1f2)][_0x1577e8(0x223)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x383a4f=_0x3471;(function(_0x42f208,_0x36d4d1){const _0x2f0674=_0x3471,_0x243c26=_0x42f208();while(!![]){try{const _0x45dad3=-parseInt(_0x2f0674(0x116))/0x1+-parseInt(_0x2f0674(0x11e))/0x2*(parseInt(_0x2f0674(0x122))/0x3)+-parseInt(_0x2f0674(0x11d))/0x4+-parseInt(_0x2f0674(0x124))/0x5+-parseInt(_0x2f0674(0x128))/0x6*(-parseInt(_0x2f0674(0x11c))/0x7)+-parseInt(_0x2f0674(0x125))/0x8+parseInt(_0x2f0674(0x110))/0x9*(parseInt(_0x2f0674(0x127))/0xa);if(_0x45dad3===_0x36d4d1)break;else _0x243c26['push'](_0x243c26['shift']());}catch(_0x3c5efc){_0x243c26['push'](_0x243c26['shift']());}}}(_0x2f25,0x55996));import{ToolbarView as _0x16a3ec,ButtonView as _0x1599c8}from'ckeditor5/src/ui.js';import{getTranslation as _0x24fc19}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x383a4f(0x12f),'INSERT':_0x383a4f(0x11a)};function _0x3471(_0x13e06d,_0x4b3636){const _0x2f25af=_0x2f25();return _0x3471=function(_0x347144,_0x2d018b){_0x347144=_0x347144-0x110;let _0x2273df=_0x2f25af[_0x347144];return _0x2273df;},_0x3471(_0x13e06d,_0x4b3636);}function _0x2f25(){const _0x2d0c59=['70677FqTDQw','label','addMany','_CONTENT','locale','set','567238LFsCMA','extendTemplate','Try\x20again','items','insert','bindTemplate','7ZTIOHW','2112244idDljc','380ctUDxC','stopButton','Insert\x20below','ck-ai-form__toolbar','7083SvKELc','ck-hidden','2316350jmFdWN','3555088PoGWft','bind','3370KLjgig','934188huMKOt','tryAgainButton','Stop','AI_','REPLACE','replaceButton','toUpperCase','replace','mainAction','ck-button-action','_createButton','isVisible','insertButton'];_0x2f25=function(){return _0x2d0c59;};return _0x2f25();}export default class rt extends _0x16a3ec{constructor(_0x1ede4e){const _0x1667a8=_0x383a4f;super(_0x1ede4e),this[_0x1667a8(0x115)](_0x1667a8(0x133),!0x1),this[_0x1667a8(0x115)](_0x1667a8(0x130),AIFormToolbarViewMainActionLabel[_0x1667a8(0x12c)]),this[_0x1667a8(0x12d)]=this[_0x1667a8(0x132)]('',_0x1667a8(0x131)),this[_0x1667a8(0x12d)][_0x1667a8(0x126)](_0x1667a8(0x111))['to'](this,_0x1667a8(0x130),_0x51d115=>_0x24fc19(_0x1ede4e,_0x1667a8(0x12b)+_0x51d115[_0x1667a8(0x12e)]()+_0x1667a8(0x113))),this[_0x1667a8(0x134)]=this[_0x1667a8(0x132)](_0x24fc19(_0x1ede4e,_0x1667a8(0x120))),this[_0x1667a8(0x129)]=this[_0x1667a8(0x132)](_0x24fc19(_0x1ede4e,_0x1667a8(0x118))),this[_0x1667a8(0x11f)]=this[_0x1667a8(0x132)](_0x24fc19(_0x1ede4e,_0x1667a8(0x12a)));const _0x41ba1a=this[_0x1667a8(0x11b)];this[_0x1667a8(0x117)]({'attributes':{'class':[_0x1667a8(0x121),_0x41ba1a['if'](_0x1667a8(0x133),_0x1667a8(0x123),_0x5b97ba=>!_0x5b97ba)]}}),this[_0x1667a8(0x119)][_0x1667a8(0x112)]([this[_0x1667a8(0x12d)],this[_0x1667a8(0x134)],this[_0x1667a8(0x129)],this[_0x1667a8(0x11f)]]);}[_0x383a4f(0x132)](_0x51689a,_0x20adee){const _0x10bc5d=_0x383a4f,_0x19f637=new _0x1599c8(this[_0x10bc5d(0x114)]);return _0x19f637[_0x10bc5d(0x115)]({'label':_0x51689a,'class':_0x20adee||'','isVisible':!0x0,'withText':!0x0}),_0x19f637;}}
23
+ const _0x2e42a0=_0x5d9f;function _0x4a23(){const _0x48dc4c=['ck-ai-form__toolbar','ck-button-action','replaceButton','isVisible','48yhhTUa','1753030vyWYDz','30644556CPCrZu','ck-hidden','28xYRFqd','locale','183891aUDTty','insert','set','Insert\x20below','insertButton','830384MKrGtF','toUpperCase','mainAction','label','extendTemplate','Stop','AI_','6LgCcVX','1UFewVe','_createButton','items','152140YzIKUY','77mEUGiU','_CONTENT','Try\x20again','bindTemplate','addMany','replace','1824534dhFtrn','REPLACE','stopButton','6611654lHKBrT','tryAgainButton','bind'];_0x4a23=function(){return _0x48dc4c;};return _0x4a23();}(function(_0xee660a,_0x507b63){const _0x542845=_0x5d9f,_0x2743e9=_0xee660a();while(!![]){try{const _0x4e4213=-parseInt(_0x542845(0xae))/0x1*(-parseInt(_0x542845(0xcd))/0x2)+-parseInt(_0x542845(0xc8))/0x3*(-parseInt(_0x542845(0xc6))/0x4)+-parseInt(_0x542845(0xc3))/0x5*(-parseInt(_0x542845(0xad))/0x6)+parseInt(_0x542845(0xbb))/0x7+-parseInt(_0x542845(0xc2))/0x8*(-parseInt(_0x542845(0xb8))/0x9)+-parseInt(_0x542845(0xb1))/0xa*(parseInt(_0x542845(0xb2))/0xb)+-parseInt(_0x542845(0xc4))/0xc;if(_0x4e4213===_0x507b63)break;else _0x2743e9['push'](_0x2743e9['shift']());}catch(_0x61813b){_0x2743e9['push'](_0x2743e9['shift']());}}}(_0x4a23,0xa9cf8));function _0x5d9f(_0x56e926,_0x1b55c5){const _0x4a23ad=_0x4a23();return _0x5d9f=function(_0x5d9fa7,_0x38fe05){_0x5d9fa7=_0x5d9fa7-0xa9;let _0x18e3be=_0x4a23ad[_0x5d9fa7];return _0x18e3be;},_0x5d9f(_0x56e926,_0x1b55c5);}import{ToolbarView as _0x315b51,ButtonView as _0x2f9152}from'ckeditor5/src/ui.js';import{getTranslation as _0x22f70a}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2e42a0(0xb7),'INSERT':_0x2e42a0(0xc9)};export default class nt extends _0x315b51{constructor(_0x487bcc){const _0x23a5c9=_0x2e42a0;super(_0x487bcc),this[_0x23a5c9(0xca)](_0x23a5c9(0xc1),!0x1),this[_0x23a5c9(0xca)](_0x23a5c9(0xcf),AIFormToolbarViewMainActionLabel[_0x23a5c9(0xb9)]),this[_0x23a5c9(0xc0)]=this[_0x23a5c9(0xaf)]('',_0x23a5c9(0xbf)),this[_0x23a5c9(0xc0)][_0x23a5c9(0xbd)](_0x23a5c9(0xa9))['to'](this,_0x23a5c9(0xcf),_0x3a239d=>_0x22f70a(_0x487bcc,_0x23a5c9(0xac)+_0x3a239d[_0x23a5c9(0xce)]()+_0x23a5c9(0xb3))),this[_0x23a5c9(0xcc)]=this[_0x23a5c9(0xaf)](_0x22f70a(_0x487bcc,_0x23a5c9(0xcb))),this[_0x23a5c9(0xbc)]=this[_0x23a5c9(0xaf)](_0x22f70a(_0x487bcc,_0x23a5c9(0xb4))),this[_0x23a5c9(0xba)]=this[_0x23a5c9(0xaf)](_0x22f70a(_0x487bcc,_0x23a5c9(0xab)));const _0x3deb53=this[_0x23a5c9(0xb5)];this[_0x23a5c9(0xaa)]({'attributes':{'class':[_0x23a5c9(0xbe),_0x3deb53['if'](_0x23a5c9(0xc1),_0x23a5c9(0xc5),_0x15ec31=>!_0x15ec31)]}}),this[_0x23a5c9(0xb0)][_0x23a5c9(0xb6)]([this[_0x23a5c9(0xc0)],this[_0x23a5c9(0xcc)],this[_0x23a5c9(0xbc)],this[_0x23a5c9(0xba)]]);}[_0x2e42a0(0xaf)](_0x3b74cb,_0x454a5c){const _0x11fd7b=_0x2e42a0,_0x27cc3b=new _0x2f9152(this[_0x11fd7b(0xc7)]);return _0x27cc3b[_0x11fd7b(0xca)]({'label':_0x3b74cb,'class':_0x454a5c||'','isVisible':!0x0,'withText':!0x0}),_0x27cc3b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x479965=_0xdcc4;(function(_0x361c9b,_0x2dc1cb){const _0x3e1d20=_0xdcc4,_0xcb4e3a=_0x361c9b();while(!![]){try{const _0x530a2a=parseInt(_0x3e1d20(0xb0))/0x1*(parseInt(_0x3e1d20(0xdc))/0x2)+parseInt(_0x3e1d20(0xc9))/0x3*(parseInt(_0x3e1d20(0xc5))/0x4)+-parseInt(_0x3e1d20(0xbc))/0x5+parseInt(_0x3e1d20(0xf1))/0x6*(-parseInt(_0x3e1d20(0xf3))/0x7)+-parseInt(_0x3e1d20(0xda))/0x8*(-parseInt(_0x3e1d20(0xc7))/0x9)+-parseInt(_0x3e1d20(0xbb))/0xa+parseInt(_0x3e1d20(0xe4))/0xb*(-parseInt(_0x3e1d20(0xed))/0xc);if(_0x530a2a===_0x2dc1cb)break;else _0xcb4e3a['push'](_0xcb4e3a['shift']());}catch(_0x5d4fc8){_0xcb4e3a['push'](_0xcb4e3a['shift']());}}}(_0x1db1,0xa2514));import{FocusTracker as _0x1c989e,KeystrokeHandler as _0x17e8e1}from'ckeditor5/src/utils.js';import{View as _0x14041f,FocusCycler as _0x508c3c,createLabeledTextarea as _0x34fff}from'ckeditor5/src/ui.js';function _0xdcc4(_0x59db3b,_0x21596e){const _0x1db1cf=_0x1db1();return _0xdcc4=function(_0xdcc495,_0x5447bf){_0xdcc495=_0xdcc495-0x9d;let _0x130f1d=_0x1db1cf[_0xdcc495];return _0x130f1d;},_0xdcc4(_0x59db3b,_0x21596e);}function _0x1db1(){const _0x26abeb=['103022nrTuNq','_focusables','items','bindTo','replaceButton','replaceContent','isVisible','REPLACE','11fACjPd','AI_ERROR_FAILED','stopButton','set','finishProcessing','ck-hidden','element','createCollection','value','2622924vzRyjW','contentArea','locale','trim','7746NGBAQd','high','2779tkDGgR','clearHistory','insertButton','isEnabled','isProcessing','render','_createHistoryView','tab','insertContentBelow','chain','tryAgainEvent','isError','focusTracker','execute','toolbar','add','clear','stopProcessing','keystrokes','focusLast','19WfHMYM','search','submit','focusFirst','bindTemplate','focusCycler','copyButtonView','bind','promptView','setTemplate','label','4870400tfbYVw','4871980CLpFrC','tryAgainButton','reset','mainAction','errorView','Empty\x20history','Ask\x20AI\x20to\x20improve\x20generated\x20text','Ask\x20AI\x20to\x20edit\x20or\x20generate','ck-ai-form-content','16ILmqMy','startProcessing','45sjieaI','fieldView','993921tyOHxA','prompt','focus','handleError','fire','submitPrompt','shift\x20+\x20tab','div','listenTo','_createPromptView','historyGroupView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_promptHistory','ck-ai-form','text','queryView','_createToolbar','885528xeLtdd','delegate'];_0x1db1=function(){return _0x26abeb;};return _0x1db1();}import _0x3e1b83,{AIFormToolbarViewMainActionLabel as _0x1acc56}from'./aiformtoolbarview.js';import _0x5ec9e3 from'./aiformcontentarea.js';import _0x1affd5 from'./aiformerrorview.js';import _0x3c7bc8 from'./aiformpromptview.js';import _0x4eed38 from'./aihistorylistview.js';import _0x2505ce from'./aihistorylistitemview.js';import _0x102777 from'./prompthistory.js';import{getTranslation as _0x3b1821}from'../../utils/common-translations.js';import{escape as _0x5485d2}from'lodash-es';export default class v extends _0x14041f{constructor(_0x66dc4d,_0x29ab9f,_0x23452e=''){const _0x52961b=_0xdcc4;super(_0x66dc4d),this[_0x52961b(0xe7)](_0x52961b(0x9f),!0x0),this[_0x52961b(0xe7)](_0x52961b(0xa0),!0x1),this[_0x52961b(0xe7)](_0x52961b(0xca),''),this[_0x52961b(0xe7)](_0x52961b(0xec),''),this[_0x52961b(0xe7)](_0x52961b(0xa7),!0x1),this[_0x52961b(0xe7)](_0x52961b(0xbf),_0x1acc56[_0x52961b(0xe3)]),this[_0x52961b(0xd5)]=new _0x102777(),this[_0x52961b(0xc0)]=new _0x1affd5(_0x66dc4d),this[_0x52961b(0xee)]=new _0x5ec9e3(_0x66dc4d,_0x23452e),this[_0x52961b(0xee)][_0x52961b(0xb7)](_0x52961b(0xa0))['to'](this),this[_0x52961b(0xee)][_0x52961b(0xb7)](_0x52961b(0xec))['to'](this),this[_0x52961b(0xaa)]=this[_0x52961b(0xd9)](),this[_0x52961b(0xaa)][_0x52961b(0xb7)](_0x52961b(0xbf))['to'](this),this[_0x52961b(0xb8)]=this[_0x52961b(0xd2)](),this[_0x52961b(0xa8)]=new _0x1c989e(),this[_0x52961b(0xae)]=new _0x17e8e1(),this[_0x52961b(0xdd)]=this[_0x52961b(0xeb)]([this[_0x52961b(0xee)],this[_0x52961b(0xee)][_0x52961b(0xb6)],this[_0x52961b(0xaa)],this[_0x52961b(0xb8)]]),this[_0x52961b(0xb5)]=new _0x508c3c({'focusables':this[_0x52961b(0xdd)],'focusTracker':this[_0x52961b(0xa8)],'keystrokeHandler':this[_0x52961b(0xae)],'actions':{'focusPrevious':_0x52961b(0xcf),'focusNext':_0x52961b(0xa3)}}),this[_0x52961b(0xb5)][_0x52961b(0xa5)](this[_0x52961b(0xb8)][_0x52961b(0xb5)]),this[_0x52961b(0xb8)][_0x52961b(0xd8)][_0x52961b(0xc8)][_0x52961b(0xb7)](_0x52961b(0xec))['to'](this,_0x52961b(0xca));const _0x31acca=this[_0x52961b(0xb4)];this[_0x52961b(0xb9)]({'tag':_0x52961b(0xd0),'attributes':{'class':['ck',_0x52961b(0xd6),_0x29ab9f],'tabindex':'-1'},'children':[{'tag':_0x52961b(0xd0),'attributes':{'class':['ck',_0x52961b(0xc4)]},'children':[{'tag':_0x52961b(0xd0),'attributes':{'class':[_0x31acca['if'](_0x52961b(0xa7),_0x52961b(0xe9),_0x1b3888=>!_0x1b3888)]},'children':[this[_0x52961b(0xc0)]]},this[_0x52961b(0xee)],this[_0x52961b(0xaa)],this[_0x52961b(0xb8)]]}]});}[_0x479965(0xa1)](){const _0x2b8acf=_0x479965;super[_0x2b8acf(0xa1)](),this[_0x2b8acf(0xa8)][_0x2b8acf(0xab)](this[_0x2b8acf(0xee)][_0x2b8acf(0xea)]),this[_0x2b8acf(0xa8)][_0x2b8acf(0xab)](this[_0x2b8acf(0xee)][_0x2b8acf(0xb6)][_0x2b8acf(0xea)]),this[_0x2b8acf(0xa8)][_0x2b8acf(0xab)](this[_0x2b8acf(0xaa)][_0x2b8acf(0xea)]),this[_0x2b8acf(0xa8)][_0x2b8acf(0xab)](this[_0x2b8acf(0xb8)][_0x2b8acf(0xea)]),this[_0x2b8acf(0xae)][_0x2b8acf(0xd1)](this[_0x2b8acf(0xea)]);}[_0x479965(0xcb)](_0x330a04=0x1){const _0x44a23f=_0x479965;-0x1===_0x330a04?this[_0x44a23f(0xb5)][_0x44a23f(0xaf)]():this[_0x44a23f(0xb5)][_0x44a23f(0xb3)]();}[_0x479965(0xbe)](){const _0x34c38c=_0x479965;this[_0x34c38c(0xca)]='',this[_0x34c38c(0xec)]='',this[_0x34c38c(0xa7)]=!0x1,this[_0x34c38c(0xb8)][_0x34c38c(0xbe)](),this[_0x34c38c(0xee)][_0x34c38c(0xe2)]=!0x1,this[_0x34c38c(0xaa)][_0x34c38c(0xe2)]=!0x1;}[_0x479965(0xd2)](){const _0x2a903e=_0x479965,_0x3fc376=this[_0x2a903e(0xef)],_0x1222df=new _0x3c7bc8(_0x3fc376,{'queryView':{'label':_0x3b1821(_0x3fc376,_0x2a903e(0xc3)),'creator':_0x34fff,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3b1821(_0x3fc376,_0x2a903e(0xc1)),'secondary':_0x3b1821(_0x3fc376,_0x2a903e(0xd4))}}},'filteredView':this[_0x2a903e(0xa2)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1222df[_0x2a903e(0xb7)](_0x2a903e(0x9f))['to'](this,_0x2a903e(0x9f),this,_0x2a903e(0xa0),(_0x5627db,_0x2cd17c)=>_0x5627db&&!_0x2cd17c),this[_0x2a903e(0xd1)](_0x1222df,_0x2a903e(0xb2),(_0x1da3e0,_0x356159)=>{const _0xfef11b=_0x2a903e;this[_0xfef11b(0xca)]=_0x356159;const _0x1eedd6=_0x5485d2(_0x356159);this[_0xfef11b(0xcd)](_0xfef11b(0xce),_0x1eedd6),_0x356159[_0xfef11b(0xf0)]()&&this[_0xfef11b(0xd5)][_0xfef11b(0xab)]({'prompt':_0x1eedd6},0x0);},{'priority':_0x2a903e(0xf2)}),_0x1222df;}[_0x479965(0xa2)](){const _0x15aaa1=_0x479965,_0x2852a2=new _0x4eed38(this[_0x15aaa1(0xef)]);return _0x2852a2[_0x15aaa1(0xd3)][_0x15aaa1(0xde)][_0x15aaa1(0xdf)](this[_0x15aaa1(0xd5)])['as'](_0x2505ce),_0x2852a2['on'](_0x15aaa1(0x9d),()=>{const _0x54f54e=_0x15aaa1;this[_0x54f54e(0xd5)][_0x54f54e(0xac)](),this[_0x54f54e(0xb8)][_0x54f54e(0xb1)](''),this[_0x54f54e(0xb8)][_0x54f54e(0xcb)]();}),_0x2852a2;}[_0x479965(0xd9)](){const _0xd06ee=_0x479965,_0x58b729=new _0x3e1b83(this[_0xd06ee(0xef)]);return _0x58b729[_0xd06ee(0xe0)][_0xd06ee(0xb7)](_0xd06ee(0x9f))['to'](this,_0xd06ee(0x9f),this,_0xd06ee(0xa0),this,_0xd06ee(0xec),(_0x145913,_0x3e2b21,_0x1f0122)=>_0x145913&&!_0x3e2b21&&!!_0x1f0122),_0x58b729[_0xd06ee(0xe0)][_0xd06ee(0xdb)](_0xd06ee(0xa9))['to'](this,_0xd06ee(0xe1)),_0x58b729[_0xd06ee(0x9e)][_0xd06ee(0xb7)](_0xd06ee(0x9f))['to'](this,_0xd06ee(0x9f),this,_0xd06ee(0xa0),this,_0xd06ee(0xec),(_0x4671f6,_0x49e201,_0x1728c3)=>_0x4671f6&&!_0x49e201&&!!_0x1728c3),_0x58b729[_0xd06ee(0x9e)][_0xd06ee(0xdb)](_0xd06ee(0xa9))['to'](this,_0xd06ee(0xa4)),_0x58b729[_0xd06ee(0xbd)][_0xd06ee(0xb7)](_0xd06ee(0x9f))['to'](this,_0xd06ee(0x9f),this,_0xd06ee(0xa0),(_0x531870,_0x5319d2)=>_0x531870&&!_0x5319d2),_0x58b729[_0xd06ee(0xbd)][_0xd06ee(0xdb)](_0xd06ee(0xa9))['to'](this,_0xd06ee(0xa6)),_0x58b729[_0xd06ee(0xe6)][_0xd06ee(0xb7)](_0xd06ee(0x9f))['to'](this,_0xd06ee(0xa0)),_0x58b729[_0xd06ee(0xe6)][_0xd06ee(0xdb)](_0xd06ee(0xa9))['to'](this,_0xd06ee(0xad)),_0x58b729;}[_0x479965(0xc6)](){const _0x4f9af4=_0x479965;this[_0x4f9af4(0xec)]='',this[_0x4f9af4(0xa7)]=!0x1,this[_0x4f9af4(0xa0)]=!0x0,this[_0x4f9af4(0xee)][_0x4f9af4(0xe2)]=!0x0,this[_0x4f9af4(0xaa)][_0x4f9af4(0xe2)]=!0x0,this[_0x4f9af4(0xee)][_0x4f9af4(0xcb)]();}[_0x479965(0xe8)](){const _0x2a1e11=_0x479965,_0x497283=this[_0x2a1e11(0xef)];this[_0x2a1e11(0xa0)]=!0x1,this[_0x2a1e11(0xca)]='',this[_0x2a1e11(0xb8)][_0x2a1e11(0xbe)](),this[_0x2a1e11(0xec)]&&(this[_0x2a1e11(0xb8)][_0x2a1e11(0xd8)][_0x2a1e11(0xba)]=_0x3b1821(_0x497283,_0x2a1e11(0xc2)));}[_0x479965(0xcc)](_0x26e7ce){const _0x12def8=_0x479965,_0x48fbab=this[_0x12def8(0xef)];this[_0x12def8(0xe8)](),this[_0x12def8(0xa7)]=!0x0,this[_0x12def8(0xc0)][_0x12def8(0xd7)]=_0x26e7ce||_0x3b1821(_0x48fbab,_0x12def8(0xe5)),this[_0x12def8(0xec)]||(this[_0x12def8(0xee)][_0x12def8(0xe2)]=!0x1);}}
23
+ const _0x212c35=_0x81b9;(function(_0x56742a,_0x18b39a){const _0x52de99=_0x81b9,_0x5a6fe9=_0x56742a();while(!![]){try{const _0x43375c=-parseInt(_0x52de99(0xba))/0x1+-parseInt(_0x52de99(0xaa))/0x2*(-parseInt(_0x52de99(0xc1))/0x3)+-parseInt(_0x52de99(0xb7))/0x4*(-parseInt(_0x52de99(0x85))/0x5)+parseInt(_0x52de99(0xc2))/0x6*(parseInt(_0x52de99(0xcf))/0x7)+parseInt(_0x52de99(0xa7))/0x8+parseInt(_0x52de99(0x9d))/0x9+parseInt(_0x52de99(0x8a))/0xa*(-parseInt(_0x52de99(0x88))/0xb);if(_0x43375c===_0x18b39a)break;else _0x5a6fe9['push'](_0x5a6fe9['shift']());}catch(_0x509a10){_0x5a6fe9['push'](_0x5a6fe9['shift']());}}}(_0x29b1,0xe6064));import{FocusTracker as _0x16ba8b,KeystrokeHandler as _0x5774fc}from'ckeditor5/src/utils.js';import{View as _0x43f164,FocusCycler as _0x2cec9d,createLabeledTextarea as _0x2eebea}from'ckeditor5/src/ui.js';import _0x1901d5,{AIFormToolbarViewMainActionLabel as _0x1c2176}from'./aiformtoolbarview.js';import _0x259ea4 from'./aiformcontentarea.js';function _0x81b9(_0x18586e,_0x5c73b7){const _0x29b1a1=_0x29b1();return _0x81b9=function(_0x81b9a3,_0x79a52a){_0x81b9a3=_0x81b9a3-0x7f;let _0x507521=_0x29b1a1[_0x81b9a3];return _0x507521;},_0x81b9(_0x18586e,_0x5c73b7);}import _0x12cd77 from'./aiformerrorview.js';import _0xf22d19 from'./aiformpromptview.js';import _0x24685b from'./aihistorylistview.js';import _0x102b34 from'./aihistorylistitemview.js';import _0x43c85b from'./prompthistory.js';import{getTranslation as _0x488634}from'../../utils/common-translations.js';import{escape as _0x2845f3}from'lodash-es';export default class k extends _0x43f164{constructor(_0x28a439,_0x1e43f8,_0x30add2=''){const _0x1faca4=_0x81b9;super(_0x28a439),this[_0x1faca4(0x8f)](_0x1faca4(0x87),!0x0),this[_0x1faca4(0x8f)](_0x1faca4(0xa3),!0x1),this[_0x1faca4(0x8f)](_0x1faca4(0xd4),''),this[_0x1faca4(0x8f)](_0x1faca4(0xac),''),this[_0x1faca4(0x8f)](_0x1faca4(0x99),!0x1),this[_0x1faca4(0x8f)](_0x1faca4(0x97),_0x1c2176[_0x1faca4(0xd1)]),this[_0x1faca4(0x95)]=new _0x43c85b(),this[_0x1faca4(0xa9)]=new _0x12cd77(_0x28a439),this[_0x1faca4(0x83)]=new _0x259ea4(_0x28a439,_0x30add2),this[_0x1faca4(0x83)][_0x1faca4(0xd3)](_0x1faca4(0xa3))['to'](this),this[_0x1faca4(0x83)][_0x1faca4(0xd3)](_0x1faca4(0xac))['to'](this),this[_0x1faca4(0xc3)]=this[_0x1faca4(0xc7)](),this[_0x1faca4(0xc3)][_0x1faca4(0xd3)](_0x1faca4(0x97))['to'](this),this[_0x1faca4(0xb9)]=this[_0x1faca4(0xb5)](),this[_0x1faca4(0xb8)]=new _0x16ba8b(),this[_0x1faca4(0x8d)]=new _0x5774fc(),this[_0x1faca4(0x89)]=this[_0x1faca4(0x9b)]([this[_0x1faca4(0x83)],this[_0x1faca4(0x83)][_0x1faca4(0xb3)],this[_0x1faca4(0xc3)],this[_0x1faca4(0xb9)]]),this[_0x1faca4(0xae)]=new _0x2cec9d({'focusables':this[_0x1faca4(0x89)],'focusTracker':this[_0x1faca4(0xb8)],'keystrokeHandler':this[_0x1faca4(0x8d)],'actions':{'focusPrevious':_0x1faca4(0xa0),'focusNext':_0x1faca4(0x81)}}),this[_0x1faca4(0xae)][_0x1faca4(0x9a)](this[_0x1faca4(0xb9)][_0x1faca4(0xae)]),this[_0x1faca4(0xb9)][_0x1faca4(0x9e)][_0x1faca4(0xab)][_0x1faca4(0xd3)](_0x1faca4(0xac))['to'](this,_0x1faca4(0xd4));const _0xf5d26=this[_0x1faca4(0xcb)];this[_0x1faca4(0x90)]({'tag':_0x1faca4(0x84),'attributes':{'class':['ck',_0x1faca4(0xb0),_0x1e43f8],'tabindex':'-1'},'children':[{'tag':_0x1faca4(0x84),'attributes':{'class':['ck',_0x1faca4(0xbf)]},'children':[{'tag':_0x1faca4(0x84),'attributes':{'class':[_0xf5d26['if'](_0x1faca4(0x99),_0x1faca4(0x8b),_0x126333=>!_0x126333)]},'children':[this[_0x1faca4(0xa9)]]},this[_0x1faca4(0x83)],this[_0x1faca4(0xc3)],this[_0x1faca4(0xb9)]]}]});}[_0x212c35(0x86)](){const _0xadce23=_0x212c35;super[_0xadce23(0x86)](),this[_0xadce23(0xb8)][_0xadce23(0xaf)](this[_0xadce23(0x83)][_0xadce23(0xbb)]),this[_0xadce23(0xb8)][_0xadce23(0xaf)](this[_0xadce23(0x83)][_0xadce23(0xb3)][_0xadce23(0xbb)]),this[_0xadce23(0xb8)][_0xadce23(0xaf)](this[_0xadce23(0xc3)][_0xadce23(0xbb)]),this[_0xadce23(0xb8)][_0xadce23(0xaf)](this[_0xadce23(0xb9)][_0xadce23(0xbb)]),this[_0xadce23(0x8d)][_0xadce23(0xb1)](this[_0xadce23(0xbb)]);}[_0x212c35(0x80)](_0x2e19c9=0x1){const _0x4a2aca=_0x212c35;-0x1===_0x2e19c9?this[_0x4a2aca(0xae)][_0x4a2aca(0xa1)]():this[_0x4a2aca(0xae)][_0x4a2aca(0xb6)]();}[_0x212c35(0xcc)](){const _0x374c59=_0x212c35;this[_0x374c59(0xd4)]='',this[_0x374c59(0xac)]='',this[_0x374c59(0x99)]=!0x1,this[_0x374c59(0xb9)][_0x374c59(0xcc)](),this[_0x374c59(0x83)][_0x374c59(0x96)]=!0x1,this[_0x374c59(0xc3)][_0x374c59(0x96)]=!0x1;}[_0x212c35(0xb5)](){const _0x112bef=_0x212c35,_0x1abbb5=this[_0x112bef(0xa2)],_0x128ffd=new _0xf22d19(_0x1abbb5,{'queryView':{'label':_0x488634(_0x1abbb5,_0x112bef(0x92)),'creator':_0x2eebea,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x488634(_0x1abbb5,_0x112bef(0xb4)),'secondary':_0x488634(_0x1abbb5,_0x112bef(0x9c))}}},'filteredView':this[_0x112bef(0x98)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x128ffd[_0x112bef(0xd3)](_0x112bef(0x87))['to'](this,_0x112bef(0x87),this,_0x112bef(0xa3),(_0x21f19d,_0x1c2020)=>_0x21f19d&&!_0x1c2020),this[_0x112bef(0xb1)](_0x128ffd,_0x112bef(0xb2),(_0x560e20,_0x397349)=>{const _0x2ccbdc=_0x112bef;this[_0x2ccbdc(0xd4)]=_0x397349;const _0x328217=_0x2845f3(_0x397349);this[_0x2ccbdc(0xc5)](_0x2ccbdc(0xbc),_0x328217),_0x397349[_0x2ccbdc(0xa5)]()&&this[_0x2ccbdc(0x95)][_0x2ccbdc(0xaf)]({'prompt':_0x328217},0x0);},{'priority':_0x112bef(0xa4)}),_0x128ffd;}[_0x212c35(0x98)](){const _0x4f87a0=_0x212c35,_0x331582=new _0x24685b(this[_0x4f87a0(0xa2)]);return _0x331582[_0x4f87a0(0xbe)][_0x4f87a0(0xa8)][_0x4f87a0(0xc8)](this[_0x4f87a0(0x95)])['as'](_0x102b34),_0x331582['on'](_0x4f87a0(0xc0),()=>{const _0x395593=_0x4f87a0;this[_0x395593(0x95)][_0x395593(0x8e)](),this[_0x395593(0xb9)][_0x395593(0xc9)](''),this[_0x395593(0xb9)][_0x395593(0x80)]();}),_0x331582;}[_0x212c35(0xc7)](){const _0x45f049=_0x212c35,_0x50459f=new _0x1901d5(this[_0x45f049(0xa2)]);return _0x50459f[_0x45f049(0x82)][_0x45f049(0xd3)](_0x45f049(0x87))['to'](this,_0x45f049(0x87),this,_0x45f049(0xa3),this,_0x45f049(0xac),(_0x214788,_0x54341e,_0x3e9df3)=>_0x214788&&!_0x54341e&&!!_0x3e9df3),_0x50459f[_0x45f049(0x82)][_0x45f049(0xbd)](_0x45f049(0x9f))['to'](this,_0x45f049(0x93)),_0x50459f[_0x45f049(0xad)][_0x45f049(0xd3)](_0x45f049(0x87))['to'](this,_0x45f049(0x87),this,_0x45f049(0xa3),this,_0x45f049(0xac),(_0x155ffe,_0x22d145,_0x24ebb3)=>_0x155ffe&&!_0x22d145&&!!_0x24ebb3),_0x50459f[_0x45f049(0xad)][_0x45f049(0xbd)](_0x45f049(0x9f))['to'](this,_0x45f049(0xa6)),_0x50459f[_0x45f049(0x94)][_0x45f049(0xd3)](_0x45f049(0x87))['to'](this,_0x45f049(0x87),this,_0x45f049(0xa3),(_0x27c25f,_0x12abac)=>_0x27c25f&&!_0x12abac),_0x50459f[_0x45f049(0x94)][_0x45f049(0xbd)](_0x45f049(0x9f))['to'](this,_0x45f049(0x91)),_0x50459f[_0x45f049(0xd0)][_0x45f049(0xd3)](_0x45f049(0x87))['to'](this,_0x45f049(0xa3)),_0x50459f[_0x45f049(0xd0)][_0x45f049(0xbd)](_0x45f049(0x9f))['to'](this,_0x45f049(0xd2)),_0x50459f;}[_0x212c35(0xc4)](){const _0x466d3b=_0x212c35;this[_0x466d3b(0xac)]='',this[_0x466d3b(0x99)]=!0x1,this[_0x466d3b(0xa3)]=!0x0,this[_0x466d3b(0x83)][_0x466d3b(0x96)]=!0x0,this[_0x466d3b(0xc3)][_0x466d3b(0x96)]=!0x0,this[_0x466d3b(0x83)][_0x466d3b(0x80)]();}[_0x212c35(0x7f)](){const _0x2bde7b=_0x212c35,_0x5a7c15=this[_0x2bde7b(0xa2)];this[_0x2bde7b(0xa3)]=!0x1,this[_0x2bde7b(0xd4)]='',this[_0x2bde7b(0xb9)][_0x2bde7b(0xcc)](),this[_0x2bde7b(0xac)]&&(this[_0x2bde7b(0xb9)][_0x2bde7b(0x9e)][_0x2bde7b(0xc6)]=_0x488634(_0x5a7c15,_0x2bde7b(0xca)));}[_0x212c35(0xce)](_0x3b001e){const _0xdc6012=_0x212c35,_0x5b6830=this[_0xdc6012(0xa2)];this[_0xdc6012(0x7f)](),this[_0xdc6012(0x99)]=!0x0,this[_0xdc6012(0xa9)][_0xdc6012(0x8c)]=_0x3b001e||_0x488634(_0x5b6830,_0xdc6012(0xcd)),this[_0xdc6012(0xac)]||(this[_0xdc6012(0x83)][_0xdc6012(0x96)]=!0x1);}}function _0x29b1(){const _0x30bf6c=['reset','AI_ERROR_FAILED','handleError','49Gnonuj','stopButton','REPLACE','stopProcessing','bind','prompt','finishProcessing','focus','tab','replaceButton','contentArea','div','63575SXbWJC','render','isEnabled','5786mDSXlI','_focusables','6140eTPHvr','ck-hidden','text','keystrokes','clear','set','setTemplate','tryAgainEvent','Ask\x20AI\x20to\x20edit\x20or\x20generate','replaceContent','tryAgainButton','_promptHistory','isVisible','mainAction','_createHistoryView','isError','chain','createCollection','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','1788057TwQfHU','queryView','execute','shift\x20+\x20tab','focusLast','locale','isProcessing','high','trim','insertContentBelow','10762640IvLvgB','items','errorView','1550lcorYt','fieldView','value','insertButton','focusCycler','add','ck-ai-form','listenTo','submit','copyButtonView','Empty\x20history','_createPromptView','focusFirst','12ovczsc','focusTracker','promptView','607069HyCGMK','element','submitPrompt','delegate','historyGroupView','ck-ai-form-content','clearHistory','516zfkpmx','134370zFZKdF','toolbar','startProcessing','fire','label','_createToolbar','bindTo','search','Ask\x20AI\x20to\x20improve\x20generated\x20text','bindTemplate'];_0x29b1=function(){return _0x30bf6c;};return _0x29b1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2d4166,_0x36efae){const _0xce4a2c=_0x29ef,_0x161275=_0x2d4166();while(!![]){try{const _0x1fc4b9=parseInt(_0xce4a2c(0x17d))/0x1+parseInt(_0xce4a2c(0x179))/0x2+-parseInt(_0xce4a2c(0x177))/0x3*(-parseInt(_0xce4a2c(0x17e))/0x4)+-parseInt(_0xce4a2c(0x178))/0x5+-parseInt(_0xce4a2c(0x185))/0x6*(-parseInt(_0xce4a2c(0x184))/0x7)+-parseInt(_0xce4a2c(0x180))/0x8*(parseInt(_0xce4a2c(0x17f))/0x9)+-parseInt(_0xce4a2c(0x186))/0xa*(parseInt(_0xce4a2c(0x17b))/0xb);if(_0x1fc4b9===_0x36efae)break;else _0x161275['push'](_0x161275['shift']());}catch(_0x41e14d){_0x161275['push'](_0x161275['shift']());}}}(_0x31ce,0xc07a2));function _0x29ef(_0x4a18fb,_0x4c0575){const _0x31ce3d=_0x31ce();return _0x29ef=function(_0x29ef46,_0x31e1f8){_0x29ef46=_0x29ef46-0x177;let _0x2b8f91=_0x31ce3d[_0x29ef46];return _0x2b8f91;},_0x29ef(_0x4a18fb,_0x4c0575);}import{ListItemView as _0x17e629,ButtonView as _0x2c3dbd,ButtonLabelView as _0x331f5e}from'ckeditor5/src/ui.js';function _0x31ce(){const _0x2747d3=['975dPkhYF','2255805kedVfh','2776374qufxUt','execute','23243lAwnRE','prompt','90768LoGKjb','13156uEhsoW','1035mVxJGN','22384EAAodC','fire','children','set','7781522dSboQl','6cClVib','9930zjqDvi','add','locale'];_0x31ce=function(){return _0x2747d3;};return _0x31ce();}import{unescape as _0x17741a}from'lodash-es';export default class hs extends _0x17e629{constructor(_0x1db049){const _0x25e157=_0x29ef;super();const _0x3a26f7=new _0x331f5e(),_0xbc4938=new _0x2c3dbd(this[_0x25e157(0x188)],_0x3a26f7);this[_0x25e157(0x182)][_0x25e157(0x187)](_0xbc4938),_0xbc4938[_0x25e157(0x183)]({'label':_0x1db049[_0x25e157(0x17c)],'withText':!0x0}),_0xbc4938['on'](_0x25e157(0x17a),()=>{const _0x309164=_0x25e157;this[_0x309164(0x181)](_0x309164(0x17a),{'value':_0x17741a(_0x1db049[_0x309164(0x17c)])});});}}
23
+ function _0x34c9(_0x426b43,_0x42739a){const _0x515963=_0x5159();return _0x34c9=function(_0x34c929,_0x7a552e){_0x34c929=_0x34c929-0x19a;let _0x5d4e1c=_0x515963[_0x34c929];return _0x5d4e1c;},_0x34c9(_0x426b43,_0x42739a);}(function(_0x245fb8,_0x5029c4){const _0x232fa3=_0x34c9,_0x2d9757=_0x245fb8();while(!![]){try{const _0x386682=parseInt(_0x232fa3(0x1a5))/0x1*(parseInt(_0x232fa3(0x1a8))/0x2)+-parseInt(_0x232fa3(0x1a9))/0x3*(parseInt(_0x232fa3(0x19c))/0x4)+-parseInt(_0x232fa3(0x1a1))/0x5+parseInt(_0x232fa3(0x1aa))/0x6+-parseInt(_0x232fa3(0x1a3))/0x7*(-parseInt(_0x232fa3(0x19a))/0x8)+parseInt(_0x232fa3(0x1a7))/0x9+-parseInt(_0x232fa3(0x19e))/0xa;if(_0x386682===_0x5029c4)break;else _0x2d9757['push'](_0x2d9757['shift']());}catch(_0x20bb5b){_0x2d9757['push'](_0x2d9757['shift']());}}}(_0x5159,0xe72ff));import{ListItemView as _0x56ac01,ButtonView as _0x853269,ButtonLabelView as _0x11a42a}from'ckeditor5/src/ui.js';import{unescape as _0x53c8ef}from'lodash-es';function _0x5159(){const _0x4e59f6=['execute','22919640tKRjdv','prompt','add','4921130IbIuRw','set','434GJxiYD','children','1LagbLm','locale','5060025iTSTNr','3026502WjcluD','14319QhkZzf','10562106jDZMyF','121416NYdWeo','fire','464VdKWKQ'];_0x5159=function(){return _0x4e59f6;};return _0x5159();}export default class hs extends _0x56ac01{constructor(_0x1f9b3a){const _0x1d5fdd=_0x34c9;super();const _0x1c93b8=new _0x11a42a(),_0x5a225f=new _0x853269(this[_0x1d5fdd(0x1a6)],_0x1c93b8);this[_0x1d5fdd(0x1a4)][_0x1d5fdd(0x1a0)](_0x5a225f),_0x5a225f[_0x1d5fdd(0x1a2)]({'label':_0x1f9b3a[_0x1d5fdd(0x19f)],'withText':!0x0}),_0x5a225f['on'](_0x1d5fdd(0x19d),()=>{const _0xc3e317=_0x1d5fdd;this[_0xc3e317(0x19b)](_0xc3e317(0x19d),{'value':_0x53c8ef(_0x1f9b3a[_0xc3e317(0x19f)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2589(_0x161a27,_0x3c7987){const _0x13d912=_0x13d9();return _0x2589=function(_0x258921,_0x47ade0){_0x258921=_0x258921-0x136;let _0x17a98e=_0x13d912[_0x258921];return _0x17a98e;},_0x2589(_0x161a27,_0x3c7987);}const _0x5c56da=_0x2589;(function(_0x4f26e7,_0x208d3f){const _0x2564ae=_0x2589,_0x371a35=_0x4f26e7();while(!![]){try{const _0x1c6077=parseInt(_0x2564ae(0x14c))/0x1*(parseInt(_0x2564ae(0x13d))/0x2)+-parseInt(_0x2564ae(0x146))/0x3*(parseInt(_0x2564ae(0x142))/0x4)+-parseInt(_0x2564ae(0x13e))/0x5+-parseInt(_0x2564ae(0x149))/0x6+-parseInt(_0x2564ae(0x13a))/0x7+-parseInt(_0x2564ae(0x14b))/0x8+parseInt(_0x2564ae(0x143))/0x9;if(_0x1c6077===_0x208d3f)break;else _0x371a35['push'](_0x371a35['shift']());}catch(_0x1c854c){_0x371a35['push'](_0x371a35['shift']());}}}(_0x13d9,0x2c01b));function _0x13d9(){const _0xff455f=['2168848QTlbfe','1aUObzl','clearHistoryButton','items','Clear','execute','length','Prompt\x20history','set','361641SkECSE','historyGroupView','clearHistory','454622WaZxGh','39545tGlZZd','filter','label','fire','29448MgGVcK','6175647ltJmNP','children','_createClearHistoryButton','87gapiCV','delegate','locale','1134402CLSBCr','add'];_0x13d9=function(){return _0xff455f;};return _0x13d9();}import{ListView as _0x1a7872,ListItemGroupView as _0x56bfcc,ButtonView as _0x4171f6}from'ckeditor5/src/ui.js';import{getTranslation as _0x314c45}from'../../utils/common-translations.js';export default class rs extends _0x1a7872{constructor(_0x54e793){const _0x230c6a=_0x2589;super(_0x54e793),this[_0x230c6a(0x14d)]=this[_0x230c6a(0x145)](),this[_0x230c6a(0x13b)]=new _0x56bfcc(),this[_0x230c6a(0x13b)][_0x230c6a(0x144)][_0x230c6a(0x14a)](this[_0x230c6a(0x14d)],0x1),this[_0x230c6a(0x13b)][_0x230c6a(0x140)]=_0x314c45(_0x54e793,_0x230c6a(0x138)),this[_0x230c6a(0x13b)][_0x230c6a(0x14e)][_0x230c6a(0x147)](_0x230c6a(0x136))['to'](this),this[_0x230c6a(0x14e)][_0x230c6a(0x14a)](this[_0x230c6a(0x13b)]);}[_0x5c56da(0x13f)](){const _0x410b51=_0x5c56da;let _0x178073=0x0;for(const _0x545fe5 of this[_0x410b51(0x14e)])_0x178073+=_0x545fe5[_0x410b51(0x14e)][_0x410b51(0x137)];return{'resultsCount':_0x178073,'totalItemsCount':_0x178073};}[_0x5c56da(0x145)](){const _0x2a8bf2=_0x5c56da,_0x4a55e7=this[_0x2a8bf2(0x148)],_0x935188=new _0x4171f6(this[_0x2a8bf2(0x148)]);return _0x935188[_0x2a8bf2(0x139)]({'label':'('+_0x314c45(_0x4a55e7,_0x2a8bf2(0x14f))+')','withText':!0x0}),_0x935188['on'](_0x2a8bf2(0x136),()=>this[_0x2a8bf2(0x141)](_0x2a8bf2(0x13c))),_0x935188;}}
23
+ function _0x4a22(){const _0x1261b4=['add','children','clearHistoryButton','length','items','623110YPrxmy','Clear','filter','823192phKGyw','_createClearHistoryButton','locale','execute','91fiEHTg','set','8798EJrBIi','historyGroupView','1183494bBDHFA','delegate','fire','Prompt\x20history','label','453dEnVxr','clearHistory','26587431NHyNmO','576468vnXoqy','395127fHfuAY'];_0x4a22=function(){return _0x1261b4;};return _0x4a22();}const _0x6fbd41=_0x5113;(function(_0x4d5c3e,_0x11b0b6){const _0x145471=_0x5113,_0x3de705=_0x4d5c3e();while(!![]){try{const _0x43a796=-parseInt(_0x145471(0xaf))/0x1+parseInt(_0x145471(0xbe))/0x2*(-parseInt(_0x145471(0xab))/0x3)+-parseInt(_0x145471(0xae))/0x4+parseInt(_0x145471(0xb5))/0x5+parseInt(_0x145471(0xc0))/0x6+parseInt(_0x145471(0xbc))/0x7*(-parseInt(_0x145471(0xb8))/0x8)+parseInt(_0x145471(0xad))/0x9;if(_0x43a796===_0x11b0b6)break;else _0x3de705['push'](_0x3de705['shift']());}catch(_0x2e8a40){_0x3de705['push'](_0x3de705['shift']());}}}(_0x4a22,0xb3682));import{ListView as _0x462ad4,ListItemGroupView as _0x16a7a1,ButtonView as _0x3027a2}from'ckeditor5/src/ui.js';import{getTranslation as _0x2220ab}from'../../utils/common-translations.js';function _0x5113(_0x203bf6,_0xe9e021){const _0x4a2213=_0x4a22();return _0x5113=function(_0x5113df,_0x443d6b){_0x5113df=_0x5113df-0xab;let _0x394980=_0x4a2213[_0x5113df];return _0x394980;},_0x5113(_0x203bf6,_0xe9e021);}export default class rs extends _0x462ad4{constructor(_0x3d7aa5){const _0xac5367=_0x5113;super(_0x3d7aa5),this[_0xac5367(0xb2)]=this[_0xac5367(0xb9)](),this[_0xac5367(0xbf)]=new _0x16a7a1(),this[_0xac5367(0xbf)][_0xac5367(0xb1)][_0xac5367(0xb0)](this[_0xac5367(0xb2)],0x1),this[_0xac5367(0xbf)][_0xac5367(0xc4)]=_0x2220ab(_0x3d7aa5,_0xac5367(0xc3)),this[_0xac5367(0xbf)][_0xac5367(0xb4)][_0xac5367(0xc1)](_0xac5367(0xbb))['to'](this),this[_0xac5367(0xb4)][_0xac5367(0xb0)](this[_0xac5367(0xbf)]);}[_0x6fbd41(0xb7)](){const _0x170b4f=_0x6fbd41;let _0x2a961c=0x0;for(const _0x42c89d of this[_0x170b4f(0xb4)])_0x2a961c+=_0x42c89d[_0x170b4f(0xb4)][_0x170b4f(0xb3)];return{'resultsCount':_0x2a961c,'totalItemsCount':_0x2a961c};}[_0x6fbd41(0xb9)](){const _0x38e195=_0x6fbd41,_0xb33ec0=this[_0x38e195(0xba)],_0x17ed59=new _0x3027a2(this[_0x38e195(0xba)]);return _0x17ed59[_0x38e195(0xbd)]({'label':'('+_0x2220ab(_0xb33ec0,_0x38e195(0xb6))+')','withText':!0x0}),_0x17ed59['on'](_0x38e195(0xbb),()=>this[_0x38e195(0xc2)](_0x38e195(0xac))),_0x17ed59;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xae94(_0x4fda1f,_0x3900da){const _0x4c9ccb=_0x4c9c();return _0xae94=function(_0xae94dd,_0x56139b){_0xae94dd=_0xae94dd-0x6a;let _0xe6cb0e=_0x4c9ccb[_0xae94dd];return _0xe6cb0e;},_0xae94(_0x4fda1f,_0x3900da);}const _0x338244=_0xae94;(function(_0x3c7354,_0x1abb44){const _0x4174fe=_0xae94,_0x14d370=_0x3c7354();while(!![]){try{const _0x53ad6a=parseInt(_0x4174fe(0x6b))/0x1*(-parseInt(_0x4174fe(0x75))/0x2)+-parseInt(_0x4174fe(0x71))/0x3*(-parseInt(_0x4174fe(0x6f))/0x4)+-parseInt(_0x4174fe(0x6a))/0x5*(-parseInt(_0x4174fe(0x80))/0x6)+-parseInt(_0x4174fe(0x6c))/0x7+-parseInt(_0x4174fe(0x79))/0x8+parseInt(_0x4174fe(0x7d))/0x9+parseInt(_0x4174fe(0x81))/0xa;if(_0x53ad6a===_0x1abb44)break;else _0x14d370['push'](_0x14d370['shift']());}catch(_0x1345ad){_0x14d370['push'](_0x14d370['shift']());}}}(_0x4c9c,0xa4d2a));import{Collection as _0x9ce487}from'ckeditor5/src/utils.js';const cs=_0x338244(0x73);export default class os extends _0x9ce487{constructor(){const _0x39a1c6=_0x338244;super(),this[_0x39a1c6(0x82)](),this['on'](_0x39a1c6(0x7e),(_0x461ef0,_0x1d60bb)=>{const _0x134f6a=_0x39a1c6,_0x2bc34b=Ss(_0x1d60bb[_0x134f6a(0x74)]);for(const _0x1168d0 of this)if(_0x1168d0!=_0x1d60bb&&Ss(_0x1168d0[_0x134f6a(0x74)])===_0x2bc34b){this[_0x134f6a(0x76)](_0x1168d0);break;}this[_0x134f6a(0x72)]>0x14&&this[_0x134f6a(0x76)](this[_0x134f6a(0x70)]),this[_0x134f6a(0x83)]();}),this['on'](_0x39a1c6(0x76),()=>{const _0x4975b4=_0x39a1c6;this[_0x4975b4(0x83)]();});}[_0x338244(0x82)](){const _0xebb445=_0x338244,_0x5acfb8=sessionStorage[_0xebb445(0x7f)](cs)||'[]';this[_0xebb445(0x7c)](JSON[_0xebb445(0x7b)](_0x5acfb8));}[_0x338244(0x83)](){const _0x40d1b7=_0x338244;sessionStorage[_0x40d1b7(0x6e)](cs,JSON[_0x40d1b7(0x78)](this[_0x40d1b7(0x7a)](_0x144146=>_0x144146)));}}function Ss(_0x19a7d4){const _0x45b670=_0x338244;return _0x19a7d4[_0x45b670(0x77)]()[_0x45b670(0x6d)]();}function _0x4c9c(){const _0x4ff983=['prompt','38YVfXJq','remove','toLowerCase','stringify','5993568wUvQEY','map','parse','addMany','3625893zDMsvB','add','getItem','6431382uoCeeu','4008820FZrqOu','_loadFromSessionStorage','_saveToSessionStorage','5dutLTw','18803upCgZv','661297FqJKXy','trim','setItem','8Wyifpi','last','573DwQPJV','length','CKEditor/AIFormView/PromptHistory'];_0x4c9c=function(){return _0x4ff983;};return _0x4c9c();}
23
+ const _0x13a09a=_0x22c1;function _0x22c1(_0x4e1b7f,_0x13e0a1){const _0x2ea0f2=_0x2ea0();return _0x22c1=function(_0x22c150,_0x440fb5){_0x22c150=_0x22c150-0xbc;let _0x4dc31c=_0x2ea0f2[_0x22c150];return _0x4dc31c;},_0x22c1(_0x4e1b7f,_0x13e0a1);}(function(_0x58b992,_0x2d58ed){const _0x2a390a=_0x22c1,_0x138cac=_0x58b992();while(!![]){try{const _0x36d33d=parseInt(_0x2a390a(0xc1))/0x1+-parseInt(_0x2a390a(0xbf))/0x2*(parseInt(_0x2a390a(0xbd))/0x3)+-parseInt(_0x2a390a(0xc2))/0x4*(parseInt(_0x2a390a(0xd4))/0x5)+parseInt(_0x2a390a(0xca))/0x6*(-parseInt(_0x2a390a(0xcc))/0x7)+parseInt(_0x2a390a(0xbc))/0x8*(parseInt(_0x2a390a(0xc7))/0x9)+parseInt(_0x2a390a(0xd5))/0xa+-parseInt(_0x2a390a(0xd3))/0xb*(-parseInt(_0x2a390a(0xd0))/0xc);if(_0x36d33d===_0x2d58ed)break;else _0x138cac['push'](_0x138cac['shift']());}catch(_0x6f8ac5){_0x138cac['push'](_0x138cac['shift']());}}}(_0x2ea0,0xb3712));import{Collection as _0xa61aab}from'ckeditor5/src/utils.js';const cs=_0x13a09a(0xc5);function _0x2ea0(){const _0x31f046=['last','36MlKBXl','parse','toLowerCase','2253054BdciML','_loadFromSessionStorage','7uoQMYC','map','stringify','remove','36WTWXvL','setItem','prompt','7086926fcZuLb','3855ZlBSQD','4201730YHGbBq','add','length','851416SXmGAB','46173gLjJuM','getItem','106RswZLf','_saveToSessionStorage','527637dtEgOp','7160yUUzWT','trim','addMany','CKEditor/AIFormView/PromptHistory'];_0x2ea0=function(){return _0x31f046;};return _0x2ea0();}export default class os extends _0xa61aab{constructor(){const _0x2b9e8d=_0x13a09a;super(),this[_0x2b9e8d(0xcb)](),this['on'](_0x2b9e8d(0xd6),(_0x56f52d,_0x4f7500)=>{const _0x5dfc60=_0x2b9e8d,_0x432f4d=Ss(_0x4f7500[_0x5dfc60(0xd2)]);for(const _0x47c71d of this)if(_0x47c71d!=_0x4f7500&&Ss(_0x47c71d[_0x5dfc60(0xd2)])===_0x432f4d){this[_0x5dfc60(0xcf)](_0x47c71d);break;}this[_0x5dfc60(0xd7)]>0x14&&this[_0x5dfc60(0xcf)](this[_0x5dfc60(0xc6)]),this[_0x5dfc60(0xc0)]();}),this['on'](_0x2b9e8d(0xcf),()=>{const _0x597315=_0x2b9e8d;this[_0x597315(0xc0)]();});}[_0x13a09a(0xcb)](){const _0x2a282e=_0x13a09a,_0x277ceb=sessionStorage[_0x2a282e(0xbe)](cs)||'[]';this[_0x2a282e(0xc4)](JSON[_0x2a282e(0xc8)](_0x277ceb));}[_0x13a09a(0xc0)](){const _0x34e819=_0x13a09a;sessionStorage[_0x34e819(0xd1)](cs,JSON[_0x34e819(0xce)](this[_0x34e819(0xcd)](_0x3ed1af=>_0x3ed1af)));}}function Ss(_0x24d2b2){const _0x46cb0e=_0x13a09a;return _0x24d2b2[_0x46cb0e(0xc9)]()[_0x46cb0e(0xc3)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x73fb8c=_0x53f2;(function(_0x34e8ab,_0x569fe6){const _0x54cd66=_0x53f2,_0x578690=_0x34e8ab();while(!![]){try{const _0x122277=-parseInt(_0x54cd66(0x1e9))/0x1*(-parseInt(_0x54cd66(0x1e8))/0x2)+-parseInt(_0x54cd66(0x1f5))/0x3+-parseInt(_0x54cd66(0x213))/0x4*(-parseInt(_0x54cd66(0x1fa))/0x5)+parseInt(_0x54cd66(0x1f3))/0x6*(parseInt(_0x54cd66(0x1f0))/0x7)+-parseInt(_0x54cd66(0x1f2))/0x8*(parseInt(_0x54cd66(0x1f9))/0x9)+-parseInt(_0x54cd66(0x20a))/0xa+parseInt(_0x54cd66(0x210))/0xb;if(_0x122277===_0x569fe6)break;else _0x578690['push'](_0x578690['shift']());}catch(_0x1ac701){_0x578690['push'](_0x578690['shift']());}}}(_0x287a,0x4cdd7));import{Command as _0x1fffab}from'ckeditor5/src/core.js';import _0x5daed6 from'../aiassistantui.js';function _0x287a(){const _0x519689=['from','requiresContent','getSelectedBlocks','values','_commandDefinitions','plugins','isEmpty','document','editor','6202640QtgNuu','custom','getFirstRange','element','get','refresh','2357520vgujaO','isCollapsed','showUI','1983484ezYpAq','includes','6fWGaaN','164083SbfskL','getRanges','execute','getItems','change:isEnabled','name','hasContent','7YfBqAa','_hasContext','8JQfzbr','160698ZhoEKf','isEnabled','352527lBLYVB','length','add','selection','1589499wLwJYE','5OQQUlp','enabledCommandsIds','model','set','ai.aiAssistant.disabledElements','change:_hasContext','config'];_0x287a=function(){return _0x519689;};return _0x287a();}function _0x53f2(_0x383958,_0x53887b){const _0x287ae7=_0x287a();return _0x53f2=function(_0x53f282,_0x1366bf){_0x53f282=_0x53f282-0x1e7;let _0x381c77=_0x287ae7[_0x53f282];return _0x381c77;},_0x53f2(_0x383958,_0x53887b);}export default class C extends _0x1fffab{constructor(_0x49404b,_0x536841){const _0x110584=_0x53f2;super(_0x49404b),this[_0x110584(0x205)]=_0x536841,this[_0x110584(0x1fd)](_0x110584(0x1fb),[]),this['on'](_0x110584(0x1ff),(_0x77c994,_0xb7265e,_0x267db9)=>{const _0x4d74c1=_0x110584;this[_0x4d74c1(0x1f4)]&&(this[_0x4d74c1(0x1fb)]=F(this[_0x4d74c1(0x205)],_0x267db9));}),this[_0x110584(0x1fd)](_0x110584(0x1f1),!0x1),this['on'](_0x110584(0x1ed),(_0x2684a4,_0x3548b8,_0x1cb125)=>{const _0x5f4595=_0x110584;this[_0x5f4595(0x1fb)]=_0x1cb125?F(this[_0x5f4595(0x205)],this[_0x5f4595(0x1f1)]):[];});}[_0x73fb8c(0x20f)](){const _0x45bdb5=_0x73fb8c,_0x2f2781=this[_0x45bdb5(0x209)][_0x45bdb5(0x1fc)];this[_0x45bdb5(0x1f1)]=function(_0x296f2c){const _0x231357=_0x45bdb5,_0x38f715=_0x296f2c[_0x231357(0x208)][_0x231357(0x1f8)];return _0x38f715[_0x231357(0x211)]?0x0!==[..._0x38f715[_0x231357(0x203)]()][_0x231357(0x1f6)]&&![..._0x38f715[_0x231357(0x203)]()][0x0][_0x231357(0x207)]:!!_0x296f2c[_0x231357(0x1ef)](_0x38f715[_0x231357(0x20c)]());}(_0x2f2781);const _0x8171ab=_0x2f2781[_0x45bdb5(0x208)][_0x45bdb5(0x1f8)],_0x19a279=this[_0x45bdb5(0x209)][_0x45bdb5(0x200)][_0x45bdb5(0x20e)](_0x45bdb5(0x1fe));for(const _0x2935e5 of _0x8171ab[_0x45bdb5(0x1ea)]())for(const _0x3e37a2 of _0x2935e5[_0x45bdb5(0x1ec)]())if(_0x3e37a2['is'](_0x45bdb5(0x20d))&&_0x19a279[_0x45bdb5(0x1e7)](_0x3e37a2[_0x45bdb5(0x1ee)]))return void(this[_0x45bdb5(0x1f4)]=!0x1);this[_0x45bdb5(0x1f4)]=!0x0;}[_0x73fb8c(0x1eb)](_0x55c721='',_0x48dadb='',_0x21c7a8=_0x73fb8c(0x20b)){const _0x4c20c8=_0x73fb8c;this[_0x4c20c8(0x209)][_0x4c20c8(0x206)][_0x4c20c8(0x20e)](_0x5daed6)[_0x4c20c8(0x212)](_0x55c721,_0x48dadb,_0x21c7a8);}}function F(_0x9233fc,_0x1477ec){const _0x261440=_0x73fb8c,_0x51d6f8=new Set();for(const _0x59ecfa of _0x9233fc[_0x261440(0x204)]())(_0x1477ec||!0x1===_0x59ecfa[_0x261440(0x202)])&&_0x51d6f8[_0x261440(0x1f7)](_0x59ecfa['id']);return Array[_0x261440(0x201)](_0x51d6f8);}
23
+ const _0x131d7=_0x93a2;(function(_0x432e55,_0x41713d){const _0x51b3b1=_0x93a2,_0x3b4176=_0x432e55();while(!![]){try{const _0x58733f=-parseInt(_0x51b3b1(0xc4))/0x1+parseInt(_0x51b3b1(0xc5))/0x2*(-parseInt(_0x51b3b1(0xd0))/0x3)+parseInt(_0x51b3b1(0xbc))/0x4+parseInt(_0x51b3b1(0xbb))/0x5*(parseInt(_0x51b3b1(0xc6))/0x6)+parseInt(_0x51b3b1(0xcd))/0x7+parseInt(_0x51b3b1(0xd1))/0x8+parseInt(_0x51b3b1(0xcb))/0x9;if(_0x58733f===_0x41713d)break;else _0x3b4176['push'](_0x3b4176['shift']());}catch(_0x52aca8){_0x3b4176['push'](_0x3b4176['shift']());}}}(_0x4643,0xe027c));import{Command as _0x576d28}from'ckeditor5/src/core.js';import _0x358f0c from'../aiassistantui.js';export default class j extends _0x576d28{constructor(_0x4ee365,_0x4bc52e){const _0x4f5ae8=_0x93a2;super(_0x4ee365),this[_0x4f5ae8(0xaf)]=_0x4bc52e,this[_0x4f5ae8(0xc1)](_0x4f5ae8(0xcf),[]),this['on'](_0x4f5ae8(0xca),(_0x1bc885,_0x37947e,_0x37dbaf)=>{const _0x27b0cf=_0x4f5ae8;this[_0x27b0cf(0xb2)]&&(this[_0x27b0cf(0xcf)]=G(this[_0x27b0cf(0xaf)],_0x37dbaf));}),this[_0x4f5ae8(0xc1)](_0x4f5ae8(0xb7),!0x1),this['on'](_0x4f5ae8(0xb9),(_0x86d16c,_0x37d3d8,_0x458d2e)=>{const _0x47ff4a=_0x4f5ae8;this[_0x47ff4a(0xcf)]=_0x458d2e?G(this[_0x47ff4a(0xaf)],this[_0x47ff4a(0xb7)]):[];});}[_0x131d7(0xc2)](){const _0x578d78=_0x131d7,_0x412d73=this[_0x578d78(0xc3)][_0x578d78(0xcc)];this[_0x578d78(0xb7)]=function(_0x2d0d69){const _0x5ca203=_0x578d78,_0x23cabd=_0x2d0d69[_0x5ca203(0xa9)][_0x5ca203(0xb6)];return _0x23cabd[_0x5ca203(0xad)]?0x0!==[..._0x23cabd[_0x5ca203(0xaa)]()][_0x5ca203(0xc7)]&&![..._0x23cabd[_0x5ca203(0xaa)]()][0x0][_0x5ca203(0xc8)]:!!_0x2d0d69[_0x5ca203(0xb1)](_0x23cabd[_0x5ca203(0xb8)]());}(_0x412d73);const _0x343053=_0x412d73[_0x578d78(0xa9)][_0x578d78(0xb6)],_0x4c13b9=this[_0x578d78(0xc3)][_0x578d78(0xbe)][_0x578d78(0xab)](_0x578d78(0xb5));for(const _0x1f6a66 of _0x343053[_0x578d78(0xd2)]())for(const _0x694a85 of _0x1f6a66[_0x578d78(0xb0)]())if(_0x694a85['is'](_0x578d78(0xba))&&_0x4c13b9[_0x578d78(0xc0)](_0x694a85[_0x578d78(0xbd)]))return void(this[_0x578d78(0xb2)]=!0x1);this[_0x578d78(0xb2)]=!0x0;}[_0x131d7(0xb3)](_0x40d35b='',_0x5a53ad='',_0xc83596=_0x131d7(0xae)){const _0x2fbf0d=_0x131d7;this[_0x2fbf0d(0xc3)][_0x2fbf0d(0xbf)][_0x2fbf0d(0xab)](_0x358f0c)[_0x2fbf0d(0xac)](_0x40d35b,_0x5a53ad,_0xc83596);}}function G(_0x46c6ae,_0x264fe6){const _0x4ca9bc=_0x131d7,_0x535c18=new Set();for(const _0x4b8486 of _0x46c6ae[_0x4ca9bc(0xc9)]())(_0x264fe6||!0x1===_0x4b8486[_0x4ca9bc(0xb4)])&&_0x535c18[_0x4ca9bc(0xa8)](_0x4b8486['id']);return Array[_0x4ca9bc(0xce)](_0x535c18);}function _0x93a2(_0x4b906f,_0x3205e5){const _0x4643c2=_0x4643();return _0x93a2=function(_0x93a2c3,_0x2686f7){_0x93a2c3=_0x93a2c3-0xa8;let _0x1d98f8=_0x4643c2[_0x93a2c3];return _0x1d98f8;},_0x93a2(_0x4b906f,_0x3205e5);}function _0x4643(){const _0x49d69f=['length','isEmpty','values','change:_hasContext','17339958mEtQGi','model','1339191KKUrAB','from','enabledCommandsIds','30444TdAHpx','6601304fpBEXy','getRanges','add','document','getSelectedBlocks','get','showUI','isCollapsed','custom','_commandDefinitions','getItems','hasContent','isEnabled','execute','requiresContent','ai.aiAssistant.disabledElements','selection','_hasContext','getFirstRange','change:isEnabled','element','50110WqiSqh','1387900KGiPvm','name','config','plugins','includes','set','refresh','editor','757811ZHwTux','328GQdynu','30ZVnChF'];_0x4643=function(){return _0x49d69f;};return _0x4643();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x348400,_0x4ac43c,_0x1cf6e2){const t=_0x348400['t'];switch(_0x4ac43c){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x1cf6e2);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1cf6e2);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x1cf6e2);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x4ac43c;}}
23
+ export function getTranslation(_0x4d3175,_0x708a7d,_0x552af3){const t=_0x4d3175['t'];switch(_0x708a7d){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x552af3);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x552af3);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x552af3);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x708a7d;}}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module ai/utils/normalizecommandsconfig
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ import type { GroupDefinition, CommandDefinition } from '../aiassistant.js';
10
+ export declare const UNGROUPED_COMMANDS_GROUP_ID = "_ungrouppedCommands";
11
+ /**
12
+ * Normalizes the `config.ai.aiAssistant.commands` configuration taking into account different possible config formats (or lack thereof).
13
+ */
14
+ export declare function normalizeCommandsConfig(config: Array<GroupDefinition | CommandDefinition>, locale: Locale): Array<GroupDefinition>;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0xdbed44,_0x2de0d2){const _0x2de5f2=(0x0,_0x2de0d2['t'])('Other');return _0xdbed44['length']?'groupId'in _0xdbed44[0x0]?_0xdbed44:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2de5f2,'order':0x1/0x0,'commands':_0xdbed44}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2de5f2,'order':0x1/0x0,'commands':[]}];}