@ckeditor/ckeditor5-ai 43.0.0-alpha.6 → 43.1.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 (250) hide show
  1. package/build/ai.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es-co.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -1
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/lt.js +1 -1
  31. package/build/translations/lv.js +1 -1
  32. package/build/translations/ms.js +1 -1
  33. package/build/translations/nl.js +1 -1
  34. package/build/translations/no.js +1 -1
  35. package/build/translations/pl.js +1 -1
  36. package/build/translations/pt-br.js +1 -1
  37. package/build/translations/pt.js +1 -1
  38. package/build/translations/ro.js +1 -1
  39. package/build/translations/ru.js +1 -1
  40. package/build/translations/sk.js +1 -1
  41. package/build/translations/sr-latn.js +1 -1
  42. package/build/translations/sr.js +1 -1
  43. package/build/translations/sv.js +1 -1
  44. package/build/translations/th.js +1 -1
  45. package/build/translations/ti.js +1 -1
  46. package/build/translations/tk.js +1 -1
  47. package/build/translations/tr.js +1 -1
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/uz.js +1 -1
  52. package/build/translations/vi.js +1 -1
  53. package/build/translations/zh-cn.js +1 -1
  54. package/build/translations/zh.js +1 -1
  55. package/dist/aiassistant.d.ts +8 -8
  56. package/dist/aiassistantediting.d.ts +1 -1
  57. package/dist/index-editor.css +1 -1
  58. package/dist/index.css +3 -3
  59. package/dist/index.js +2 -2
  60. package/dist/translations/af.js +1 -1
  61. package/dist/translations/af.umd.js +1 -1
  62. package/dist/translations/ar.js +1 -1
  63. package/dist/translations/ar.umd.js +1 -1
  64. package/dist/translations/bg.js +1 -1
  65. package/dist/translations/bg.umd.js +1 -1
  66. package/dist/translations/bn.js +1 -1
  67. package/dist/translations/bn.umd.js +1 -1
  68. package/dist/translations/bs.js +1 -1
  69. package/dist/translations/bs.umd.js +1 -1
  70. package/dist/translations/ca.js +1 -1
  71. package/dist/translations/ca.umd.js +1 -1
  72. package/dist/translations/cs.js +1 -1
  73. package/dist/translations/cs.umd.js +1 -1
  74. package/dist/translations/da.js +1 -1
  75. package/dist/translations/da.umd.js +1 -1
  76. package/dist/translations/de-ch.js +1 -1
  77. package/dist/translations/de-ch.umd.js +1 -1
  78. package/dist/translations/de.js +1 -1
  79. package/dist/translations/de.umd.js +1 -1
  80. package/dist/translations/el.js +1 -1
  81. package/dist/translations/el.umd.js +1 -1
  82. package/dist/translations/en-au.js +1 -1
  83. package/dist/translations/en-au.umd.js +1 -1
  84. package/dist/translations/en.js +1 -1
  85. package/dist/translations/en.umd.js +1 -1
  86. package/dist/translations/es-co.js +1 -1
  87. package/dist/translations/es-co.umd.js +1 -1
  88. package/dist/translations/es.js +1 -1
  89. package/dist/translations/es.umd.js +1 -1
  90. package/dist/translations/et.js +1 -1
  91. package/dist/translations/et.umd.js +1 -1
  92. package/dist/translations/fa.js +1 -1
  93. package/dist/translations/fa.umd.js +1 -1
  94. package/dist/translations/fi.js +1 -1
  95. package/dist/translations/fi.umd.js +1 -1
  96. package/dist/translations/fr.js +1 -1
  97. package/dist/translations/fr.umd.js +1 -1
  98. package/dist/translations/gl.js +1 -1
  99. package/dist/translations/gl.umd.js +1 -1
  100. package/dist/translations/he.js +1 -1
  101. package/dist/translations/he.umd.js +1 -1
  102. package/dist/translations/hi.js +1 -1
  103. package/dist/translations/hi.umd.js +1 -1
  104. package/dist/translations/hr.js +1 -1
  105. package/dist/translations/hr.umd.js +1 -1
  106. package/dist/translations/hu.js +1 -1
  107. package/dist/translations/hu.umd.js +1 -1
  108. package/dist/translations/id.js +1 -1
  109. package/dist/translations/id.umd.js +1 -1
  110. package/dist/translations/it.js +1 -1
  111. package/dist/translations/it.umd.js +1 -1
  112. package/dist/translations/ja.js +1 -1
  113. package/dist/translations/ja.umd.js +1 -1
  114. package/dist/translations/jv.js +1 -1
  115. package/dist/translations/jv.umd.js +1 -1
  116. package/dist/translations/ko.js +1 -1
  117. package/dist/translations/ko.umd.js +1 -1
  118. package/dist/translations/lt.js +1 -1
  119. package/dist/translations/lt.umd.js +1 -1
  120. package/dist/translations/lv.js +1 -1
  121. package/dist/translations/lv.umd.js +1 -1
  122. package/dist/translations/ms.js +1 -1
  123. package/dist/translations/ms.umd.js +1 -1
  124. package/dist/translations/nl.js +1 -1
  125. package/dist/translations/nl.umd.js +1 -1
  126. package/dist/translations/no.js +1 -1
  127. package/dist/translations/no.umd.js +1 -1
  128. package/dist/translations/pl.js +1 -1
  129. package/dist/translations/pl.umd.js +1 -1
  130. package/dist/translations/pt-br.js +1 -1
  131. package/dist/translations/pt-br.umd.js +1 -1
  132. package/dist/translations/pt.js +1 -1
  133. package/dist/translations/pt.umd.js +1 -1
  134. package/dist/translations/ro.js +1 -1
  135. package/dist/translations/ro.umd.js +1 -1
  136. package/dist/translations/ru.js +1 -1
  137. package/dist/translations/ru.umd.js +1 -1
  138. package/dist/translations/sk.js +1 -1
  139. package/dist/translations/sk.umd.js +1 -1
  140. package/dist/translations/sr-latn.js +1 -1
  141. package/dist/translations/sr-latn.umd.js +1 -1
  142. package/dist/translations/sr.js +1 -1
  143. package/dist/translations/sr.umd.js +1 -1
  144. package/dist/translations/sv.js +1 -1
  145. package/dist/translations/sv.umd.js +1 -1
  146. package/dist/translations/th.js +1 -1
  147. package/dist/translations/th.umd.js +1 -1
  148. package/dist/translations/ti.js +1 -1
  149. package/dist/translations/ti.umd.js +1 -1
  150. package/dist/translations/tk.js +1 -1
  151. package/dist/translations/tk.umd.js +1 -1
  152. package/dist/translations/tr.js +1 -1
  153. package/dist/translations/tr.umd.js +1 -1
  154. package/dist/translations/ug.js +1 -1
  155. package/dist/translations/ug.umd.js +1 -1
  156. package/dist/translations/uk.js +1 -1
  157. package/dist/translations/uk.umd.js +1 -1
  158. package/dist/translations/ur.js +1 -1
  159. package/dist/translations/ur.umd.js +1 -1
  160. package/dist/translations/uz.js +1 -1
  161. package/dist/translations/uz.umd.js +1 -1
  162. package/dist/translations/vi.js +1 -1
  163. package/dist/translations/vi.umd.js +1 -1
  164. package/dist/translations/zh-cn.js +1 -1
  165. package/dist/translations/zh-cn.umd.js +1 -1
  166. package/dist/translations/zh.js +1 -1
  167. package/dist/translations/zh.umd.js +1 -1
  168. package/dist/ui/showaiassistantcommand.d.ts +2 -2
  169. package/lang/contexts.json +0 -5
  170. package/lang/translations/af.po +0 -20
  171. package/lang/translations/ar.po +0 -20
  172. package/lang/translations/bg.po +0 -20
  173. package/lang/translations/bn.po +0 -20
  174. package/lang/translations/bs.po +0 -20
  175. package/lang/translations/ca.po +0 -20
  176. package/lang/translations/cs.po +0 -20
  177. package/lang/translations/da.po +0 -20
  178. package/lang/translations/de-ch.po +0 -20
  179. package/lang/translations/de.po +0 -20
  180. package/lang/translations/el.po +0 -20
  181. package/lang/translations/en-au.po +0 -20
  182. package/lang/translations/en.po +0 -20
  183. package/lang/translations/es-co.po +0 -20
  184. package/lang/translations/es.po +0 -20
  185. package/lang/translations/et.po +0 -20
  186. package/lang/translations/fa.po +0 -20
  187. package/lang/translations/fi.po +0 -20
  188. package/lang/translations/fr.po +0 -20
  189. package/lang/translations/gl.po +6 -26
  190. package/lang/translations/he.po +0 -20
  191. package/lang/translations/hi.po +0 -20
  192. package/lang/translations/hr.po +0 -20
  193. package/lang/translations/hu.po +0 -20
  194. package/lang/translations/id.po +0 -20
  195. package/lang/translations/it.po +0 -20
  196. package/lang/translations/ja.po +0 -20
  197. package/lang/translations/jv.po +0 -20
  198. package/lang/translations/ko.po +0 -20
  199. package/lang/translations/lt.po +0 -20
  200. package/lang/translations/lv.po +0 -20
  201. package/lang/translations/ms.po +0 -20
  202. package/lang/translations/nl.po +0 -20
  203. package/lang/translations/no.po +0 -20
  204. package/lang/translations/pl.po +0 -20
  205. package/lang/translations/pt-br.po +0 -20
  206. package/lang/translations/pt.po +0 -20
  207. package/lang/translations/ro.po +0 -20
  208. package/lang/translations/ru.po +0 -20
  209. package/lang/translations/sk.po +0 -20
  210. package/lang/translations/sr-latn.po +0 -20
  211. package/lang/translations/sr.po +0 -20
  212. package/lang/translations/sv.po +0 -20
  213. package/lang/translations/th.po +0 -20
  214. package/lang/translations/ti.po +0 -20
  215. package/lang/translations/tk.po +0 -20
  216. package/lang/translations/tr.po +0 -20
  217. package/lang/translations/ug.po +0 -20
  218. package/lang/translations/uk.po +0 -20
  219. package/lang/translations/ur.po +0 -20
  220. package/lang/translations/uz.po +0 -20
  221. package/lang/translations/vi.po +0 -20
  222. package/lang/translations/zh-cn.po +0 -20
  223. package/lang/translations/zh.po +0 -20
  224. package/package.json +8 -8
  225. package/src/adapters/aiadapter.js +1 -1
  226. package/src/adapters/aitextadapter.js +1 -1
  227. package/src/adapters/awstextadapter.js +1 -1
  228. package/src/adapters/openaitextadapter.js +1 -1
  229. package/src/aiassistant.d.ts +8 -8
  230. package/src/aiassistant.js +1 -1
  231. package/src/aiassistantediting.d.ts +1 -1
  232. package/src/aiassistantediting.js +1 -1
  233. package/src/aiassistantui.js +1 -1
  234. package/src/index.js +1 -1
  235. package/src/ui/aiassistantcontroller.js +2 -2
  236. package/src/ui/form/aiformcontentarea.js +1 -1
  237. package/src/ui/form/aiformerrorview.js +1 -1
  238. package/src/ui/form/aiformpromptview.js +1 -1
  239. package/src/ui/form/aiformtoolbarview.js +1 -1
  240. package/src/ui/form/aiformview.js +1 -1
  241. package/src/ui/form/aihistorylistitemview.js +1 -1
  242. package/src/ui/form/aihistorylistview.js +1 -1
  243. package/src/ui/form/prompthistory.js +1 -1
  244. package/src/ui/showaiassistantcommand.d.ts +2 -2
  245. package/src/ui/showaiassistantcommand.js +1 -1
  246. package/src/utils/common-translations.js +1 -1
  247. package/theme/ai.css +3 -3
  248. package/dist/ui/dropdown/aicommandslistview.d.ts +0 -37
  249. package/src/ui/dropdown/aicommandslistview.d.ts +0 -33
  250. package/src/ui/dropdown/aicommandslistview.js +0 -23
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d1490=_0x1a5f;(function(_0x3c9ff9,_0x545888){const _0x2e965d=_0x1a5f,_0x1a4eed=_0x3c9ff9();while(!![]){try{const _0x4a570e=parseInt(_0x2e965d(0x1c5))/0x1+parseInt(_0x2e965d(0x1ee))/0x2*(-parseInt(_0x2e965d(0x207))/0x3)+parseInt(_0x2e965d(0x1de))/0x4+parseInt(_0x2e965d(0x200))/0x5*(-parseInt(_0x2e965d(0x1dc))/0x6)+-parseInt(_0x2e965d(0x1c7))/0x7+-parseInt(_0x2e965d(0x1c9))/0x8+parseInt(_0x2e965d(0x1cd))/0x9;if(_0x4a570e===_0x545888)break;else _0x1a4eed['push'](_0x1a4eed['shift']());}catch(_0x1775a4){_0x1a4eed['push'](_0x1a4eed['shift']());}}}(_0x38ec,0x233ae));import{ObservableMixin as _0x49d0d6}from'ckeditor5/src/utils.js';import{AIRequestError as _0x17f4d5}from'../adapters/aiadapter.js';function _0x1a5f(_0x54bac2,_0x3f48fe){const _0x38ece=_0x38ec();return _0x1a5f=function(_0x1a5f2b,_0x31796e){_0x1a5f2b=_0x1a5f2b-0x1bb;let _0x13dda6=_0x38ece[_0x1a5f2b];return _0x13dda6;},_0x1a5f(_0x54bac2,_0x3f48fe);}import{Matcher as _0x2ea66e,UpcastWriter as _0x3f09c8}from'ckeditor5/src/engine.js';const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x38ec(){const _0x400b1f=['mainAction','toModel','then','isProcessing','3TsuXqe','tryAgainEvent','childNodes','_sanitizeHTML','nodeType','render','_sanitizationContainer','document','```html','trim','editing','set','finishProcessing','serializeToString','substring','_stripMarkdownSyntax','push','value','previousActionId','parseFromString','prompt','processor','startProcessing','length','_parseAndNormalizeContent','name','domConverter','div','279001jPylbb','reset','248367JvbBed','querySelector','1251648aPPCLZ','currentResponse','destroy','updateView','652032mxeIng','_domParser','reverse','previousLabel','message','match','custom','abort','viewToDom','makeRequest','listenTo','from','endsWith','innerHTML','<h1></h1>','18wwEMZy','textAdapter','707708zxtIfu','finally','previousQuery','```','stringify','createElement','remove','_handleQuery','_xmlSerializer','catch','isRendered','set:currentContext','submitPrompt','_isH1TagSupportEnabled','rename','htmlProcessor','136102SrUCQZ','data','toView','view','_normalizeResponseHeadings','initialContext','body','setContentOf','once','previousContext','startsWith','exec','ELEMENT_NODE','stopListening','editor','handleError','text/html','stopProcessing','206810rPCyBl','element','currentContext'];_0x38ec=function(){return _0x400b1f;};return _0x38ec();}export default class U extends/* #__PURE__ -- @preserve */
24
- _0x49d0d6(){constructor(_0x20a016,_0x1b353c,_0x3ed43b){const _0x3b7aaf=_0x1a5f;super(),this[_0x3b7aaf(0x1fc)]=_0x20a016,this[_0x3b7aaf(0x1dd)]=_0x1b353c,this[_0x3b7aaf(0x20d)]=document[_0x3b7aaf(0x1e3)](_0x3b7aaf(0x1c4)),this[_0x3b7aaf(0x1ce)]=new DOMParser(),this[_0x3b7aaf(0x1e6)]=new XMLSerializer(),this[_0x3b7aaf(0x1f1)]=_0x3ed43b,this[_0x3b7aaf(0x212)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x3b7aaf(0x1e9),(_0x38cfb3,_0x139ae3,_0x2af3cb)=>{const _0x1ae029=_0x3b7aaf;this[_0x1ae029(0x1f1)][_0x1ae029(0x218)]=this[_0x1ae029(0x20a)](_0x2af3cb);}),this[_0x3b7aaf(0x1d7)](this[_0x3b7aaf(0x1f1)],_0x3b7aaf(0x1ea),(_0x3e1676,_0x17bbbe)=>{const _0x4b34af=_0x3b7aaf,_0x1fb227=this[_0x4b34af(0x202)]||this[_0x4b34af(0x1f3)];this[_0x4b34af(0x1e5)](_0x17bbbe,_0x1fb227,_0x4b34af(0x1d3));}),this[_0x3b7aaf(0x1d7)](this[_0x3b7aaf(0x1f1)],_0x3b7aaf(0x208),()=>{const _0xfb72e4=_0x3b7aaf;this[_0xfb72e4(0x1f1)][_0xfb72e4(0x1bd)]=this[_0xfb72e4(0x1d0)],this[_0xfb72e4(0x1e5)](this[_0xfb72e4(0x1e0)],this[_0xfb72e4(0x1f7)],this[_0xfb72e4(0x1bb)],this[_0xfb72e4(0x1d0)]);}),this[_0x3b7aaf(0x1d7)](this[_0x3b7aaf(0x1f1)],_0x3b7aaf(0x1ff),()=>{const _0x5143dd=_0x3b7aaf;this[_0x5143dd(0x1ff)]();});}[_0x5d1490(0x1cb)](){const _0x19be55=_0x5d1490;this[_0x19be55(0x1fb)]();}async[_0x5d1490(0x1cc)]({actionId:_0x1040ad,query:_0x2e5daf,htmlContent:_0x528bca,label:_0x156057,mainActionLabel:_0x279061}){const _0x3fb201=_0x5d1490;this[_0x3fb201(0x1f1)][_0x3fb201(0x1bd)]=_0x156057,this[_0x3fb201(0x1f1)][_0x3fb201(0x203)]=_0x279061,this[_0x3fb201(0x1f3)]=_0x528bca,_0x2e5daf&&(this[_0x3fb201(0x1f1)][_0x3fb201(0x1e8)]?this[_0x3fb201(0x1e5)](_0x2e5daf,_0x528bca,_0x1040ad,_0x156057):this[_0x3fb201(0x1f1)][_0x3fb201(0x1f6)](_0x3fb201(0x20c),()=>{const _0x2395e8=_0x3fb201;this[_0x2395e8(0x1e5)](_0x2e5daf,_0x528bca,_0x1040ad,_0x156057);}));}[_0x5d1490(0x1ff)](){const _0x4bfab8=_0x5d1490;this[_0x4bfab8(0x206)]&&(this[_0x4bfab8(0x206)]=!0x1,this[_0x4bfab8(0x1f1)][_0x4bfab8(0x213)](),this[_0x4bfab8(0x1dd)][_0x4bfab8(0x1d4)]());}[_0x5d1490(0x1c6)](){const _0x3ca41d=_0x5d1490;this[_0x3ca41d(0x1f3)]='',this[_0x3ca41d(0x202)]='',this[_0x3ca41d(0x1ca)]='',this[_0x3ca41d(0x1f7)]='',this[_0x3ca41d(0x1e0)]='',this[_0x3ca41d(0x1d0)]='',this[_0x3ca41d(0x1bb)]=void 0x0,this[_0x3ca41d(0x1f1)][_0x3ca41d(0x1c6)](),this[_0x3ca41d(0x1ff)]();}async[_0x5d1490(0x1e5)](_0x510d53,_0x39c8a7,_0x1a102f,_0x3182c5){const _0x1217a9=_0x5d1490;return this[_0x1217a9(0x206)]=!0x0,this[_0x1217a9(0x1f1)][_0x1217a9(0x1bf)](),this[_0x1217a9(0x1f7)]=_0x39c8a7,this[_0x1217a9(0x1e0)]=_0x510d53,this[_0x1217a9(0x1d0)]=_0x3182c5||_0x510d53,this[_0x1217a9(0x1bb)]=_0x1a102f,new Promise(_0x42fe6a=>{const _0x25954e=_0x1217a9;this[_0x25954e(0x1dd)][_0x25954e(0x1d6)]({'query':_0x510d53,'context':_0x39c8a7,'onData':_0x2973f2=>{const _0x3720db=_0x25954e;this[_0x3720db(0x1ca)]=_0x2973f2,this[_0x3720db(0x202)]=this[_0x3720db(0x1c1)](this[_0x3720db(0x1ca)]);},'actionId':_0x1a102f})[_0x25954e(0x205)](()=>{const _0x5794df=_0x25954e;!this[_0x5794df(0x202)]&&this[_0x5794df(0x1ca)]&&(this[_0x5794df(0x202)]=this[_0x5794df(0x1c1)](this[_0x5794df(0x1ca)],!0x0));})[_0x25954e(0x1e7)](_0x3862f1=>{const _0x28fded=_0x25954e;_0x3862f1 instanceof _0x17f4d5?this[_0x28fded(0x1f1)][_0x28fded(0x1fd)](_0x3862f1[_0x28fded(0x1d1)]):this[_0x28fded(0x1f1)][_0x28fded(0x1fd)](),_0x42fe6a();})[_0x25954e(0x1df)](()=>{const _0x39e3d0=_0x25954e;this[_0x39e3d0(0x1ff)](),_0x42fe6a();});});}[_0x5d1490(0x1c1)](_0x34a5de,_0x408694=!0x1){const _0x2c5c94=_0x5d1490,_0x45b73d=X[_0x2c5c94(0x1f9)](_0x34a5de);_0x34a5de=_0x45b73d?_0x34a5de[_0x2c5c94(0x215)](_0x45b73d[0x1][_0x2c5c94(0x1c0)]):_0x34a5de[_0x2c5c94(0x1c0)]<0x64&&!_0x408694?'':this[_0x2c5c94(0x216)](_0x34a5de);const _0x582738=this[_0x2c5c94(0x1ce)][_0x2c5c94(0x1bc)](_0x34a5de,_0x2c5c94(0x1fe));if(_0x45b73d){const _0x2dbfae=Array[_0x2c5c94(0x1d8)](_0x582738[_0x2c5c94(0x1f4)][_0x2c5c94(0x209)]);_0x2dbfae[_0x2c5c94(0x1cf)]();for(const _0x4372a8 of _0x2dbfae){if(_0x4372a8[_0x2c5c94(0x20b)]==Node[_0x2c5c94(0x1fa)])break;_0x4372a8[_0x2c5c94(0x1e4)]();}}const _0x584758=this[_0x2c5c94(0x1fc)][_0x2c5c94(0x1ef)][_0x2c5c94(0x1be)][_0x2c5c94(0x1f0)](this[_0x2c5c94(0x1e6)][_0x2c5c94(0x214)](_0x582738[_0x2c5c94(0x1f4)]));return this[_0x2c5c94(0x1eb)]()||this[_0x2c5c94(0x1f2)](_0x584758),this[_0x2c5c94(0x1fc)][_0x2c5c94(0x1ef)][_0x2c5c94(0x1e2)](this[_0x2c5c94(0x1fc)][_0x2c5c94(0x1ef)][_0x2c5c94(0x204)](_0x584758));}[_0x5d1490(0x1f2)](_0x544fe1){const _0x314ee6=_0x5d1490,_0x1d5f9d=new _0x3f09c8(this[_0x314ee6(0x1fc)][_0x314ee6(0x211)][_0x314ee6(0x1f1)][_0x314ee6(0x20e)]),_0x4e527f=new _0x2ea66e({'name':/^h[1-5]$/}),_0x552ad9=[];let _0x4b45d4=!0x1;for(const _0x4c34c0 of _0x544fe1)_0x4c34c0['is'](_0x314ee6(0x201))&&_0x4e527f[_0x314ee6(0x1d2)](_0x4c34c0)&&(_0x552ad9[_0x314ee6(0x217)](_0x4c34c0),'h1'==_0x4c34c0[_0x314ee6(0x1c2)]&&(_0x4b45d4=!0x0));if(_0x4b45d4){for(const _0x225af3 of _0x552ad9)_0x1d5f9d[_0x314ee6(0x1ec)]('h'+(parseInt(_0x225af3[_0x314ee6(0x1c2)][0x1])+0x1),_0x225af3);}}[_0x5d1490(0x1eb)](){const _0x81b549=_0x5d1490,{data:_0x137aef,editing:_0x4c4ff3}=this[_0x81b549(0x1fc)],_0x106957=_0x137aef[_0x81b549(0x1ed)][_0x81b549(0x1f0)](_0x81b549(0x1db)),_0x2ad119=_0x137aef[_0x81b549(0x1f0)](_0x137aef[_0x81b549(0x204)](_0x106957));return!!_0x4c4ff3[_0x81b549(0x1f1)][_0x81b549(0x1c3)][_0x81b549(0x1d5)](_0x2ad119)[_0x81b549(0x1c8)]('h1');}[_0x5d1490(0x20a)](_0x382dde){const _0x1e897b=_0x5d1490;return this[_0x1e897b(0x1fc)][_0x1e897b(0x211)][_0x1e897b(0x1f1)][_0x1e897b(0x1c3)][_0x1e897b(0x1f5)](this[_0x1e897b(0x20d)],_0x382dde),this[_0x1e897b(0x20d)][_0x1e897b(0x1da)];}[_0x5d1490(0x216)](_0x5ea3b3){const _0x1d2e6d=_0x5d1490,_0x514a50=_0x5ea3b3[_0x1d2e6d(0x210)]();return _0x514a50[_0x1d2e6d(0x1f8)](_0x1d2e6d(0x20f))?_0x514a50[_0x1d2e6d(0x1d9)](_0x1d2e6d(0x1e1))?_0x514a50[_0x1d2e6d(0x215)](0x7,_0x514a50[_0x1d2e6d(0x1c0)]-0x3):_0x514a50[_0x1d2e6d(0x215)](0x7):_0x5ea3b3;}}
23
+ const _0x25e565=_0x5110;(function(_0x5057ec,_0x3c177d){const _0x4a7004=_0x5110,_0x433d07=_0x5057ec();while(!![]){try{const _0x174ee2=parseInt(_0x4a7004(0xb8))/0x1*(parseInt(_0x4a7004(0x89))/0x2)+-parseInt(_0x4a7004(0xd1))/0x3*(-parseInt(_0x4a7004(0xbb))/0x4)+-parseInt(_0x4a7004(0x8a))/0x5*(parseInt(_0x4a7004(0xd0))/0x6)+parseInt(_0x4a7004(0xa9))/0x7+-parseInt(_0x4a7004(0x95))/0x8+-parseInt(_0x4a7004(0xaa))/0x9*(parseInt(_0x4a7004(0xa0))/0xa)+-parseInt(_0x4a7004(0x9c))/0xb*(parseInt(_0x4a7004(0x83))/0xc);if(_0x174ee2===_0x3c177d)break;else _0x433d07['push'](_0x433d07['shift']());}catch(_0x25066b){_0x433d07['push'](_0x433d07['shift']());}}}(_0x1c5f,0x47eb1));import{ObservableMixin as _0x593e47}from'ckeditor5/src/utils.js';function _0x5110(_0x5538e0,_0x234313){const _0x1c5f1b=_0x1c5f();return _0x5110=function(_0x511022,_0x42e25f){_0x511022=_0x511022-0x71;let _0x4072b4=_0x1c5f1b[_0x511022];return _0x4072b4;},_0x5110(_0x5538e0,_0x234313);}import{AIRequestError as _0x207005}from'../adapters/aiadapter.js';import{Matcher as _0x5bf82c,UpcastWriter as _0x4f1054}from'ckeditor5/src/engine.js';const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class y extends/* #__PURE__ -- @preserve */
24
+ _0x593e47(){constructor(_0x2b22a3,_0x2dbb6e,_0x3768b6){const _0x2b1f12=_0x5110;super(),this[_0x2b1f12(0x9f)]=_0x2b22a3,this[_0x2b1f12(0x86)]=_0x2dbb6e,this[_0x2b1f12(0xa7)]=document[_0x2b1f12(0x91)](_0x2b1f12(0xb9)),this[_0x2b1f12(0x9e)]=new DOMParser(),this[_0x2b1f12(0x88)]=new XMLSerializer(),this[_0x2b1f12(0x90)]=_0x3768b6,this[_0x2b1f12(0x72)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x2b1f12(0xc2),(_0x9a86c7,_0x2ea02d,_0xfb5e25)=>{const _0x29baf9=_0x2b1f12;this[_0x29baf9(0x90)][_0x29baf9(0xac)]=this[_0x29baf9(0xbe)](_0xfb5e25);}),this[_0x2b1f12(0xc9)](this[_0x2b1f12(0x90)],_0x2b1f12(0xaf),(_0x146747,_0x4781ac)=>{const _0x4ddf72=_0x2b1f12,_0x4c508a=this[_0x4ddf72(0xa2)]||this[_0x4ddf72(0xae)];this[_0x4ddf72(0x8c)](_0x4781ac,_0x4c508a,_0x4ddf72(0xbd));}),this[_0x2b1f12(0xc9)](this[_0x2b1f12(0x90)],_0x2b1f12(0xa6),()=>{const _0xe6fa9f=_0x2b1f12;this[_0xe6fa9f(0x90)][_0xe6fa9f(0x7a)]=this[_0xe6fa9f(0x7c)],this[_0xe6fa9f(0x8c)](this[_0xe6fa9f(0x7e)],this[_0xe6fa9f(0x9a)],this[_0xe6fa9f(0xba)],this[_0xe6fa9f(0x7c)]);}),this[_0x2b1f12(0xc9)](this[_0x2b1f12(0x90)],_0x2b1f12(0x7f),()=>{const _0x47c2ed=_0x2b1f12;this[_0x47c2ed(0x7f)]();});}[_0x25e565(0x8b)](){const _0x430c89=_0x25e565;this[_0x430c89(0xb6)]();}async[_0x25e565(0x9d)]({actionId:_0x2bbcc6,query:_0x2a1d61,htmlContent:_0x2af24f,label:_0x241248,mainActionLabel:_0x5e4d10}){const _0x4dc33e=_0x25e565;this[_0x4dc33e(0x90)][_0x4dc33e(0x7a)]=_0x241248,this[_0x4dc33e(0x90)][_0x4dc33e(0xbc)]=_0x5e4d10,this[_0x4dc33e(0xae)]=_0x2af24f,_0x2a1d61&&(this[_0x4dc33e(0x90)][_0x4dc33e(0x8d)]?this[_0x4dc33e(0x8c)](_0x2a1d61,_0x2af24f,_0x2bbcc6,_0x241248):this[_0x4dc33e(0x90)][_0x4dc33e(0x94)](_0x4dc33e(0x73),()=>{const _0xa32896=_0x4dc33e;this[_0xa32896(0x8c)](_0x2a1d61,_0x2af24f,_0x2bbcc6,_0x241248);}));}[_0x25e565(0x7f)](){const _0x42430e=_0x25e565;this[_0x42430e(0xb4)]&&(this[_0x42430e(0xb4)]=!0x1,this[_0x42430e(0x90)][_0x42430e(0x75)](),this[_0x42430e(0x86)][_0x42430e(0xb2)]());}[_0x25e565(0x79)](){const _0x30aa76=_0x25e565;this[_0x30aa76(0xae)]='',this[_0x30aa76(0xa2)]='',this[_0x30aa76(0xb5)]='',this[_0x30aa76(0x9a)]='',this[_0x30aa76(0x7e)]='',this[_0x30aa76(0x7c)]='',this[_0x30aa76(0xba)]=void 0x0,this[_0x30aa76(0x90)][_0x30aa76(0x79)](),this[_0x30aa76(0x7f)]();}async[_0x25e565(0x8c)](_0x1b39cd,_0x247d46,_0x4360cf,_0x57029d){const _0x2b3e69=_0x25e565;return this[_0x2b3e69(0xb4)]=!0x0,this[_0x2b3e69(0x90)][_0x2b3e69(0xc3)](),this[_0x2b3e69(0x9a)]=_0x247d46,this[_0x2b3e69(0x7e)]=_0x1b39cd,this[_0x2b3e69(0x7c)]=_0x57029d||_0x1b39cd,this[_0x2b3e69(0xba)]=_0x4360cf,new Promise(_0x40f48a=>{const _0x47bb86=_0x2b3e69;this[_0x47bb86(0x86)][_0x47bb86(0x96)]({'query':_0x1b39cd,'context':_0x247d46,'onData':_0x48b3a5=>{const _0x19464a=_0x47bb86;this[_0x19464a(0xb5)]=_0x48b3a5,this[_0x19464a(0xa2)]=this[_0x19464a(0xbf)](this[_0x19464a(0xb5)]);},'actionId':_0x4360cf})[_0x47bb86(0x80)](()=>{const _0x3576fc=_0x47bb86;!this[_0x3576fc(0xa2)]&&this[_0x3576fc(0xb5)]&&(this[_0x3576fc(0xa2)]=this[_0x3576fc(0xbf)](this[_0x3576fc(0xb5)],!0x0));})[_0x47bb86(0xb3)](_0x2c3db8=>{const _0x2c141d=_0x47bb86;_0x2c3db8 instanceof _0x207005?this[_0x2c141d(0x90)][_0x2c141d(0x8e)](_0x2c3db8[_0x2c141d(0xcd)]):this[_0x2c141d(0x90)][_0x2c141d(0x8e)](),_0x40f48a();})[_0x47bb86(0xa8)](()=>{const _0x4e1259=_0x47bb86;this[_0x4e1259(0x7f)](),_0x40f48a();});});}[_0x25e565(0xbf)](_0x36adba,_0x46d9db=!0x1){const _0xc0fa7b=_0x25e565,_0x4b211c=Q[_0xc0fa7b(0x98)](_0x36adba);_0x36adba=_0x4b211c?_0x36adba[_0xc0fa7b(0x84)](_0x4b211c[0x1][_0xc0fa7b(0xa5)]):_0x36adba[_0xc0fa7b(0xa5)]<0x64&&!_0x46d9db?'':this[_0xc0fa7b(0x78)](_0x36adba);const _0x282393=this[_0xc0fa7b(0x9e)][_0xc0fa7b(0xce)](_0x36adba,_0xc0fa7b(0xc7));if(_0x4b211c){const _0x114946=Array[_0xc0fa7b(0x93)](_0x282393[_0xc0fa7b(0x92)][_0xc0fa7b(0x85)]);_0x114946[_0xc0fa7b(0x81)]();for(const _0x439c59 of _0x114946){if(_0x439c59[_0xc0fa7b(0x76)]==Node[_0xc0fa7b(0xc0)])break;_0x439c59[_0xc0fa7b(0x97)]();}}const _0x540088=this[_0xc0fa7b(0x9f)][_0xc0fa7b(0xcc)][_0xc0fa7b(0xad)][_0xc0fa7b(0x7b)](this[_0xc0fa7b(0x88)][_0xc0fa7b(0xb0)](_0x282393[_0xc0fa7b(0x92)]));return this[_0xc0fa7b(0xa4)]()||this[_0xc0fa7b(0x9b)](_0x540088),this[_0xc0fa7b(0x9f)][_0xc0fa7b(0xcc)][_0xc0fa7b(0x8f)](this[_0xc0fa7b(0x9f)][_0xc0fa7b(0xcc)][_0xc0fa7b(0xc4)](_0x540088));}[_0x25e565(0x9b)](_0x1dc2bf){const _0x4589b7=_0x25e565,_0x62a2fc=new _0x4f1054(this[_0x4589b7(0x9f)][_0x4589b7(0xc6)][_0x4589b7(0x90)][_0x4589b7(0x99)]),_0x13bcdc=new _0x5bf82c({'name':/^h[1-5]$/}),_0x260e7c=[];let _0x30b4f6=!0x1;for(const _0x347b8c of _0x1dc2bf)_0x347b8c['is'](_0x4589b7(0xca))&&_0x13bcdc[_0x4589b7(0xab)](_0x347b8c)&&(_0x260e7c[_0x4589b7(0x71)](_0x347b8c),'h1'==_0x347b8c[_0x4589b7(0xb7)]&&(_0x30b4f6=!0x0));if(_0x30b4f6){for(const _0x39b7a6 of _0x260e7c)_0x62a2fc[_0x4589b7(0x74)]('h'+(parseInt(_0x39b7a6[_0x4589b7(0xb7)][0x1])+0x1),_0x39b7a6);}}[_0x25e565(0xa4)](){const _0x1463f8=_0x25e565,{data:_0x2afce6,editing:_0x2b5655}=this[_0x1463f8(0x9f)],_0x41ae46=_0x2afce6[_0x1463f8(0x77)][_0x1463f8(0x7b)](_0x1463f8(0xcb)),_0x351bea=_0x2afce6[_0x1463f8(0x7b)](_0x2afce6[_0x1463f8(0xc4)](_0x41ae46));return!!_0x2b5655[_0x1463f8(0x90)][_0x1463f8(0xc5)][_0x1463f8(0xa1)](_0x351bea)[_0x1463f8(0xb1)]('h1');}[_0x25e565(0xbe)](_0x2143ee){const _0x4d28b6=_0x25e565;return this[_0x4d28b6(0x9f)][_0x4d28b6(0xc6)][_0x4d28b6(0x90)][_0x4d28b6(0xc5)][_0x4d28b6(0x7d)](this[_0x4d28b6(0xa7)],_0x2143ee),this[_0x4d28b6(0xa7)][_0x4d28b6(0xc1)];}[_0x25e565(0x78)](_0x1f6611){const _0x77f187=_0x25e565,_0x31d602=_0x1f6611[_0x77f187(0xc8)]();return _0x31d602[_0x77f187(0x87)](_0x77f187(0xa3))?_0x31d602[_0x77f187(0x82)](_0x77f187(0xcf))?_0x31d602[_0x77f187(0x84)](0x7,_0x31d602[_0x77f187(0xa5)]-0x3):_0x31d602[_0x77f187(0x84)](0x7):_0x1f6611;}}function _0x1c5f(){const _0x28900b=['viewToDom','currentContext','```html','_isH1TagSupportEnabled','length','tryAgainEvent','_sanitizationContainer','finally','3565079seMYqt','2086767QLdpyL','match','value','processor','initialContext','submitPrompt','serializeToString','querySelector','abort','catch','isProcessing','currentResponse','stopListening','name','1658nLcMto','div','previousActionId','968cBesYu','mainAction','custom','_sanitizeHTML','_parseAndNormalizeContent','ELEMENT_NODE','innerHTML','set:currentContext','startProcessing','toModel','domConverter','editing','text/html','trim','listenTo','element','<h1></h1>','data','message','parseFromString','```','46074SKLLzR','5061OXGevj','push','set','render','rename','finishProcessing','nodeType','htmlProcessor','_stripMarkdownSyntax','reset','prompt','toView','previousLabel','setContentOf','previousQuery','stopProcessing','then','reverse','endsWith','372jFexyR','substring','childNodes','textAdapter','startsWith','_xmlSerializer','662SNFPvq','185JrPsvZ','destroy','_handleQuery','isRendered','handleError','stringify','view','createElement','body','from','once','2577696pRLguf','makeRequest','remove','exec','document','previousContext','_normalizeResponseHeadings','36091OMYYEZ','updateView','_domParser','editor','20iPbEMK'];_0x1c5f=function(){return _0x28900b;};return _0x1c5f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7a68d4=_0xb85c;(function(_0x52de55,_0x180ab8){const _0x1e44ff=_0xb85c,_0x1261f2=_0x52de55();while(!![]){try{const _0x298d63=parseInt(_0x1e44ff(0x99))/0x1+parseInt(_0x1e44ff(0x9d))/0x2+parseInt(_0x1e44ff(0xc3))/0x3+parseInt(_0x1e44ff(0x98))/0x4*(parseInt(_0x1e44ff(0xab))/0x5)+parseInt(_0x1e44ff(0xbd))/0x6+parseInt(_0x1e44ff(0x9e))/0x7+-parseInt(_0x1e44ff(0xa7))/0x8;if(_0x298d63===_0x180ab8)break;else _0x1261f2['push'](_0x1261f2['shift']());}catch(_0x2cb57b){_0x1261f2['push'](_0x1261f2['shift']());}}}(_0x2ccd,0x8d9c2));import{global as _0x3c3e03}from'ckeditor5/src/utils.js';function _0xb85c(_0x2e2cf3,_0x2a6001){const _0x2ccd48=_0x2ccd();return _0xb85c=function(_0xb85c8b,_0xe6308f){_0xb85c8b=_0xb85c8b-0x94;let _0x1886b8=_0x2ccd48[_0xb85c8b];return _0x1886b8;},_0xb85c(_0x2e2cf3,_0x2a6001);}import{View as _0x3c15e6,ButtonView as _0x4776da,SpinnerView as _0x53827f}from'ckeditor5/src/ui.js';import _0x2f85fe from'../../../theme/icons/copy.svg';import{getTranslation as _0x348890}from'../../utils/common-translations.js';import{icons as _0x357428}from'ckeditor5/src/core.js';function _0x2ccd(){const _0x22a27e=['ClipboardItem','div','execute','ck-ai-form__content-area','value','ck-ai-form__content-area-wrapper','bindTemplate','setContent','render','-9999px','icon','firstElementChild','scrollTo','check','body','remove','Copy','lastElementChild','.ck-ai-form__loader','set','text/plain','execCommand','createRange','scrollHeight','appendLoader','appendChild','change:value','removeAllRanges','bind','wheel','ck-ai-form__content-area--processing','text/html','write','contentFieldView','setTemplate','style','<span>]</span>','ck-reset_all-excluded','isVisible','ck-ai-form__copy-button','12aCcgty','910767QXyxdA','absolute','innerHTML','<span>[</span>','340166FISMTc','2835994JPkkUj','isEnabled','addRange','createElement','_createCopyButton','loaderView','setEndBefore','AI\x20is\x20writing...','ck-content','27332560WIVVZJ','clipboard','listenTo','ck-ai-form__content-field','820865LyuAdh','getSelection','position','isProcessing','ck-hidden','_createLoader','locale','textContent','ck-ai-form__copy-button-wrapper','class','change:isProcessing','element','copy','_copyHTMLToClipboard','left','querySelector','mousedown','\x20ck-ai-form__copy-button--copied','5450058ccxuyU','smooth','ck-ai-form__loader','setStartAfter','focus','copyButtonView','3329250tDEFgN'];_0x2ccd=function(){return _0x22a27e;};return _0x2ccd();}export default class ot extends _0x3c15e6{constructor(_0x156ebb,_0x29cfd0=''){const _0x299d00=_0xb85c;super(_0x156ebb),this[_0x299d00(0xd7)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x32198e=this[_0x299d00(0xca)];this[_0x299d00(0xe5)]=new ContentFieldView(_0x156ebb,_0x29cfd0),this[_0x299d00(0xc2)]=this[_0x299d00(0xa2)](),this[_0x299d00(0xe6)]({'tag':_0x299d00(0xc5),'attributes':{'class':['ck',_0x299d00(0xc9),_0x32198e['if'](_0x299d00(0x96),_0x299d00(0xaf),_0x2ede3d=>!_0x2ede3d)],'tabindex':'-1'},'children':[{'tag':_0x299d00(0xc5),'attributes':{'class':['ck',_0x299d00(0xc7),_0x32198e['if'](_0x299d00(0xae),_0x299d00(0xe2))]},'children':[this[_0x299d00(0xe5)],{'tag':_0x299d00(0xc5),'attributes':{'class':['ck',_0x299d00(0xb3)]},'children':[this[_0x299d00(0xc2)]]}]}]});}[_0x7a68d4(0xcc)](){const _0x4a4180=_0x7a68d4;super[_0x4a4180(0xcc)](),this[_0x4a4180(0xc8)]&&this[_0x4a4180(0xe5)][_0x4a4180(0xcb)](this[_0x4a4180(0xc8)]);let _0x5b0020=!0x1;this['on'](_0x4a4180(0xde),(_0x44c7f2,_0x510dd1,_0xb4db70)=>{const _0x306330=_0x4a4180,_0xfe0a3d=!this[_0x306330(0xe5)][_0x306330(0xb6)][_0x306330(0xba)](_0x306330(0xd6));this[_0x306330(0xe5)][_0x306330(0xcb)](_0xb4db70),this[_0x306330(0xae)]&&_0xfe0a3d&&!_0x5b0020&&this[_0x306330(0xb6)][_0x306330(0xd0)]({'top':this[_0x306330(0xb6)][_0x306330(0xdb)],'behavior':_0x306330(0xbe)});}),this['on'](_0x4a4180(0xb5),(_0x5a8cbd,_0x2bfc9b,_0x3037d0)=>{const _0x93cf40=_0x4a4180;_0x5b0020=!0x1,_0x3037d0?(this[_0x93cf40(0xc8)]=null,this[_0x93cf40(0xe5)][_0x93cf40(0xdc)]()):this[_0x93cf40(0xc8)]||this[_0x93cf40(0xe5)][_0x93cf40(0xcb)]('');}),this[_0x4a4180(0xa9)](this[_0x4a4180(0xb6)],_0x4a4180(0xe1),()=>{_0x5b0020=!0x0;}),this[_0x4a4180(0xa9)](this[_0x4a4180(0xb6)],_0x4a4180(0xbb),()=>{_0x5b0020=!0x0;});}[_0x7a68d4(0xc1)](){const _0x33d701=_0x7a68d4;this[_0x33d701(0xb6)][_0x33d701(0xc1)]();}[_0x7a68d4(0xa2)](){const _0x31b309=_0x7a68d4,_0x46f85e=this[_0x31b309(0xb1)],_0x45dfb2=new _0x4776da(this[_0x31b309(0xb1)]),_0x15cbed=_0x31b309(0x97);return _0x45dfb2[_0x31b309(0xd7)]({'label':_0x348890(_0x46f85e,_0x31b309(0xd4)),'icon':_0x2f85fe,'class':_0x15cbed,'tooltip':!0x0}),_0x45dfb2[_0x31b309(0xe0)](_0x31b309(0x96))['to'](this,_0x31b309(0xc8),_0x5c54ed=>!!_0x5c54ed),_0x45dfb2[_0x31b309(0xe0)](_0x31b309(0x9f))['to'](this,_0x31b309(0xae),_0x2a0c2a=>!_0x2a0c2a),_0x45dfb2['on'](_0x31b309(0xc6),()=>{const _0x50da56=_0x31b309;this[_0x50da56(0xb8)](this[_0x50da56(0xe5)][_0x50da56(0xb6)]),_0x45dfb2[_0x50da56(0xce)]=_0x357428[_0x50da56(0xd1)],_0x45dfb2[_0x50da56(0xb4)]=_0x15cbed+_0x50da56(0xbc),this[_0x50da56(0xc1)](),setTimeout(()=>{const _0x8e8c4c=_0x50da56;_0x45dfb2[_0x8e8c4c(0xce)]=_0x2f85fe,_0x45dfb2[_0x8e8c4c(0xb4)]=_0x15cbed;},0x3e8);}),_0x45dfb2;}[_0x7a68d4(0xb8)](_0x183409){const _0xabd5fd=_0x7a68d4,{window:_0x50e673,document:_0x2c0021}=_0x3c3e03;if(_0x50e673[_0xabd5fd(0xc4)]){const {Blob:_0x31e8e9,ClipboardItem:_0x5ad65e}=_0x50e673,_0x5ba9f4=[new _0x5ad65e({'text/html':new _0x31e8e9([_0x183409[_0xabd5fd(0x9b)]],{'type':_0xabd5fd(0xe3)}),'text/plain':new _0x31e8e9([_0x183409[_0xabd5fd(0xb2)]||''],{'type':_0xabd5fd(0xd8)})})];navigator[_0xabd5fd(0xa8)][_0xabd5fd(0xe4)](_0x5ba9f4);}else{const _0x463222=_0x2c0021[_0xabd5fd(0xa1)](_0xabd5fd(0xc5));_0x463222[_0xabd5fd(0xe7)][_0xabd5fd(0xad)]=_0xabd5fd(0x9a),_0x463222[_0xabd5fd(0xe7)][_0xabd5fd(0xb9)]=_0xabd5fd(0xcd),_0x463222[_0xabd5fd(0x9b)]=_0xabd5fd(0x9c)+_0x183409[_0xabd5fd(0x9b)]+_0xabd5fd(0x94),_0x2c0021[_0xabd5fd(0xd2)][_0xabd5fd(0xdd)](_0x463222);const _0x5b766f=_0x2c0021[_0xabd5fd(0xda)]();_0x5b766f[_0xabd5fd(0xc0)](_0x463222[_0xabd5fd(0xcf)]),_0x5b766f[_0xabd5fd(0xa4)](_0x463222[_0xabd5fd(0xd5)]);const _0x411ea6=_0x50e673[_0xabd5fd(0xac)]();_0x411ea6[_0xabd5fd(0xdf)](),_0x411ea6[_0xabd5fd(0xa0)](_0x5b766f),_0x2c0021[_0xabd5fd(0xd9)](_0xabd5fd(0xb7)),_0x463222[_0xabd5fd(0xd3)]();}}}export class ContentFieldView extends _0x3c15e6{constructor(_0xfb0ccf,_0xaddb92=''){const _0x125a22=_0x7a68d4;super(_0xfb0ccf),this[_0x125a22(0xa3)]=this[_0x125a22(0xb0)](),this[_0x125a22(0xe6)]({'tag':_0x125a22(0xc5),'attributes':{'class':['ck',_0x125a22(0xa6),_0xaddb92,_0x125a22(0x95),_0x125a22(0xaa)]}});}[_0x7a68d4(0xcb)](_0x4249ae){const _0x41cc33=_0x7a68d4;this[_0x41cc33(0xb6)][_0x41cc33(0x9b)]=_0x4249ae;}[_0x7a68d4(0xdc)](){const _0x1406ed=_0x7a68d4;this[_0x1406ed(0xb6)][_0x1406ed(0xdd)](this[_0x1406ed(0xa3)][_0x1406ed(0xb6)]);}[_0x7a68d4(0xb0)](){const _0x202c31=_0x7a68d4,_0x3ba1e0=new _0x3c15e6(),_0x5d728f=this[_0x202c31(0xb1)],_0x1d3bc5=new _0x53827f();return _0x1d3bc5[_0x202c31(0x96)]=!0x0,_0x3ba1e0[_0x202c31(0xe6)]({'tag':_0x202c31(0xc5),'attributes':{'class':['ck',_0x202c31(0xbf)]},'children':[_0x1d3bc5,{'text':_0x348890(_0x5d728f,_0x202c31(0xa5))}]}),_0x3ba1e0[_0x202c31(0xcc)](),_0x3ba1e0;}}
23
+ const _0x184e95=_0x512e;(function(_0x43cb85,_0x1dd3b4){const _0x1b3c44=_0x512e,_0x2ee1c4=_0x43cb85();while(!![]){try{const _0x7f3f9f=-parseInt(_0x1b3c44(0x173))/0x1*(-parseInt(_0x1b3c44(0x157))/0x2)+-parseInt(_0x1b3c44(0x152))/0x3+-parseInt(_0x1b3c44(0x14b))/0x4*(-parseInt(_0x1b3c44(0x183))/0x5)+-parseInt(_0x1b3c44(0x149))/0x6+parseInt(_0x1b3c44(0x14c))/0x7+parseInt(_0x1b3c44(0x192))/0x8+-parseInt(_0x1b3c44(0x185))/0x9*(parseInt(_0x1b3c44(0x14f))/0xa);if(_0x7f3f9f===_0x1dd3b4)break;else _0x2ee1c4['push'](_0x2ee1c4['shift']());}catch(_0x17c531){_0x2ee1c4['push'](_0x2ee1c4['shift']());}}}(_0x38b6,0x1f093));import{global as _0xae9127}from'ckeditor5/src/utils.js';import{View as _0x2dfd9d,ButtonView as _0x58fc37,SpinnerView as _0x4fde29}from'ckeditor5/src/ui.js';function _0x512e(_0x5aaa37,_0x1a7989){const _0x38b603=_0x38b6();return _0x512e=function(_0x512ef2,_0x1d6015){_0x512ef2=_0x512ef2-0x146;let _0x101432=_0x38b603[_0x512ef2];return _0x101432;},_0x512e(_0x5aaa37,_0x1a7989);}import _0x2e9a17 from'../../../theme/icons/copy.svg';import{getTranslation as _0x1783f3}from'../../utils/common-translations.js';import{icons as _0x109148}from'ckeditor5/src/core.js';export default class K extends _0x2dfd9d{constructor(_0x354c25,_0x5d2442=''){const _0x2288de=_0x512e;super(_0x354c25),this[_0x2288de(0x16e)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x339c90=this[_0x2288de(0x161)];this[_0x2288de(0x186)]=new ContentFieldView(_0x354c25,_0x5d2442),this[_0x2288de(0x18c)]=this[_0x2288de(0x198)](),this[_0x2288de(0x16b)]({'tag':_0x2288de(0x159),'attributes':{'class':['ck',_0x2288de(0x182),_0x339c90['if'](_0x2288de(0x19a),_0x2288de(0x199),_0x1450ff=>!_0x1450ff)],'tabindex':'-1'},'children':[{'tag':_0x2288de(0x159),'attributes':{'class':['ck',_0x2288de(0x193),_0x339c90['if'](_0x2288de(0x16d),_0x2288de(0x155))]},'children':[this[_0x2288de(0x186)],{'tag':_0x2288de(0x159),'attributes':{'class':['ck',_0x2288de(0x187)]},'children':[this[_0x2288de(0x18c)]]}]}]});}[_0x184e95(0x153)](){const _0x234e8e=_0x184e95;super[_0x234e8e(0x153)](),this[_0x234e8e(0x151)]&&this[_0x234e8e(0x186)][_0x234e8e(0x163)](this[_0x234e8e(0x151)]);let _0x26bc4e=!0x1;this['on'](_0x234e8e(0x15d),(_0x58e2bf,_0x3600aa,_0x478f68)=>{const _0x567ea0=_0x234e8e,_0x417bbe=!this[_0x567ea0(0x186)][_0x567ea0(0x189)][_0x567ea0(0x184)](_0x567ea0(0x170));this[_0x567ea0(0x186)][_0x567ea0(0x163)](_0x478f68),this[_0x567ea0(0x16d)]&&_0x417bbe&&!_0x26bc4e&&this[_0x567ea0(0x189)][_0x567ea0(0x17d)]({'top':this[_0x567ea0(0x189)][_0x567ea0(0x162)],'behavior':_0x567ea0(0x164)});}),this['on'](_0x234e8e(0x17a),(_0x6f36b1,_0x40e467,_0x5cd4fa)=>{const _0x540204=_0x234e8e;_0x26bc4e=!0x1,_0x5cd4fa?(this[_0x540204(0x151)]=null,this[_0x540204(0x186)][_0x540204(0x14e)]()):this[_0x540204(0x151)]||this[_0x540204(0x186)][_0x540204(0x163)]('');}),this[_0x234e8e(0x156)](this[_0x234e8e(0x189)],_0x234e8e(0x191),()=>{_0x26bc4e=!0x0;}),this[_0x234e8e(0x156)](this[_0x234e8e(0x189)],_0x234e8e(0x169),()=>{_0x26bc4e=!0x0;});}[_0x184e95(0x194)](){const _0x48ec32=_0x184e95;this[_0x48ec32(0x189)][_0x48ec32(0x194)]();}[_0x184e95(0x198)](){const _0xb1e9c9=_0x184e95,_0x24e136=this[_0xb1e9c9(0x14a)],_0x2bb3df=new _0x58fc37(this[_0xb1e9c9(0x14a)]),_0x59bc48=_0xb1e9c9(0x154);return _0x2bb3df[_0xb1e9c9(0x16e)]({'label':_0x1783f3(_0x24e136,_0xb1e9c9(0x188)),'icon':_0x2e9a17,'class':_0x59bc48,'tooltip':!0x0}),_0x2bb3df[_0xb1e9c9(0x15e)](_0xb1e9c9(0x19a))['to'](this,_0xb1e9c9(0x151),_0x48d913=>!!_0x48d913),_0x2bb3df[_0xb1e9c9(0x15e)](_0xb1e9c9(0x176))['to'](this,_0xb1e9c9(0x16d),_0x129aad=>!_0x129aad),_0x2bb3df['on'](_0xb1e9c9(0x197),()=>{const _0x564978=_0xb1e9c9;this[_0x564978(0x146)](this[_0x564978(0x186)][_0x564978(0x189)]),_0x2bb3df[_0x564978(0x190)]=_0x109148[_0x564978(0x15c)],_0x2bb3df[_0x564978(0x167)]=_0x59bc48+_0x564978(0x17e),this[_0x564978(0x194)](),setTimeout(()=>{const _0x3817eb=_0x564978;_0x2bb3df[_0x3817eb(0x190)]=_0x2e9a17,_0x2bb3df[_0x3817eb(0x167)]=_0x59bc48;},0x3e8);}),_0x2bb3df;}[_0x184e95(0x146)](_0x1f20e7){const _0x344842=_0x184e95,{window:_0x41a912,document:_0x14dc97}=_0xae9127;if(_0x41a912[_0x344842(0x148)]){const {Blob:_0x4b0425,ClipboardItem:_0x456210}=_0x41a912,_0xfd156f=[new _0x456210({'text/html':new _0x4b0425([_0x1f20e7[_0x344842(0x150)]],{'type':_0x344842(0x17b)}),'text/plain':new _0x4b0425([_0x1f20e7[_0x344842(0x16f)]||''],{'type':_0x344842(0x171)})})];navigator[_0x344842(0x15b)][_0x344842(0x165)](_0xfd156f);}else{const _0x387ff8=_0x14dc97[_0x344842(0x18e)](_0x344842(0x159));_0x387ff8[_0x344842(0x174)][_0x344842(0x195)]=_0x344842(0x181),_0x387ff8[_0x344842(0x174)][_0x344842(0x16a)]=_0x344842(0x18a),_0x387ff8[_0x344842(0x150)]=_0x344842(0x179)+_0x1f20e7[_0x344842(0x150)]+_0x344842(0x160),_0x14dc97[_0x344842(0x19b)][_0x344842(0x18b)](_0x387ff8);const _0x3c8607=_0x14dc97[_0x344842(0x18d)]();_0x3c8607[_0x344842(0x15f)](_0x387ff8[_0x344842(0x177)]),_0x3c8607[_0x344842(0x16c)](_0x387ff8[_0x344842(0x158)]);const _0x39fff6=_0x41a912[_0x344842(0x147)]();_0x39fff6[_0x344842(0x178)](),_0x39fff6[_0x344842(0x18f)](_0x3c8607),_0x14dc97[_0x344842(0x14d)](_0x344842(0x168)),_0x387ff8[_0x344842(0x175)]();}}}function _0x38b6(){const _0x1338c3=['set','textContent','.ck-ai-form__loader','text/plain','ck-content','344xkpvOS','style','remove','isEnabled','firstElementChild','removeAllRanges','<span>[</span>','change:isProcessing','text/html','ck-ai-form__content-field','scrollTo','\x20ck-ai-form__copy-button--copied','_createLoader','AI\x20is\x20writing...','absolute','ck-ai-form__content-area-wrapper','5jynEog','querySelector','3931299ShSBYe','contentFieldView','ck-ai-form__copy-button-wrapper','Copy','element','-9999px','appendChild','copyButtonView','createRange','createElement','addRange','icon','wheel','1902736SJCWkz','ck-ai-form__content-area','focus','position','ck-reset_all-excluded','execute','_createCopyButton','ck-hidden','isVisible','body','_copyHTMLToClipboard','getSelection','ClipboardItem','262668PZhTMt','locale','204764GqnRJR','1511888WAZPsY','execCommand','appendLoader','10gnfHtL','innerHTML','value','200691sDbMzQ','render','ck-ai-form__copy-button','ck-ai-form__content-area--processing','listenTo','986zFtxjw','lastElementChild','div','ck-ai-form__loader','clipboard','check','change:value','bind','setStartAfter','<span>]</span>','bindTemplate','scrollHeight','setContent','smooth','write','loaderView','class','copy','mousedown','left','setTemplate','setEndBefore','isProcessing'];_0x38b6=function(){return _0x1338c3;};return _0x38b6();}export class ContentFieldView extends _0x2dfd9d{constructor(_0x471520,_0x3e5df7=''){const _0xbc08dd=_0x184e95;super(_0x471520),this[_0xbc08dd(0x166)]=this[_0xbc08dd(0x17f)](),this[_0xbc08dd(0x16b)]({'tag':_0xbc08dd(0x159),'attributes':{'class':['ck',_0xbc08dd(0x172),_0x3e5df7,_0xbc08dd(0x196),_0xbc08dd(0x17c)]}});}[_0x184e95(0x163)](_0x4061cc){const _0x37ae6b=_0x184e95;this[_0x37ae6b(0x189)][_0x37ae6b(0x150)]=_0x4061cc;}[_0x184e95(0x14e)](){const _0x443ba7=_0x184e95;this[_0x443ba7(0x189)][_0x443ba7(0x18b)](this[_0x443ba7(0x166)][_0x443ba7(0x189)]);}[_0x184e95(0x17f)](){const _0x5da780=_0x184e95,_0x4d9fa1=new _0x2dfd9d(),_0x5aa040=this[_0x5da780(0x14a)],_0x4df141=new _0x4fde29();return _0x4df141[_0x5da780(0x19a)]=!0x0,_0x4d9fa1[_0x5da780(0x16b)]({'tag':_0x5da780(0x159),'attributes':{'class':['ck',_0x5da780(0x15a)]},'children':[_0x4df141,{'text':_0x1783f3(_0x5aa040,_0x5da780(0x180))}]}),_0x4d9fa1[_0x5da780(0x153)](),_0x4d9fa1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1d392b,_0x1fb172){const _0x3cdfaa=_0x32e0,_0x35f363=_0x1d392b();while(!![]){try{const _0x2b6bc5=parseInt(_0x3cdfaa(0x11d))/0x1*(parseInt(_0x3cdfaa(0x128))/0x2)+-parseInt(_0x3cdfaa(0x122))/0x3*(parseInt(_0x3cdfaa(0x121))/0x4)+-parseInt(_0x3cdfaa(0x127))/0x5+parseInt(_0x3cdfaa(0x11f))/0x6+parseInt(_0x3cdfaa(0x11e))/0x7+-parseInt(_0x3cdfaa(0x123))/0x8+parseInt(_0x3cdfaa(0x11c))/0x9;if(_0x2b6bc5===_0x1fb172)break;else _0x35f363['push'](_0x35f363['shift']());}catch(_0x6053b3){_0x35f363['push'](_0x35f363['shift']());}}}(_0x361b,0xa4d6d));function _0x361b(){const _0x285e50=['content','bindTemplate','div','6245680obGhUu','3516uvywSP','setTemplate','set','text','4081761sDPAhN','699OgGdlg','3679858gvgRji','4190418hodpjy','ck-ai-form__error','12BVisxy','537063iAIKNC','3560704TfZMdf'];_0x361b=function(){return _0x285e50;};return _0x361b();}import{View as _0x43b338,IconView as _0x1d2ae9}from'ckeditor5/src/ui.js';import _0x2871db from'../../../theme/icons/error.svg';function _0x32e0(_0x4aeb53,_0x52584c){const _0x361bd1=_0x361b();return _0x32e0=function(_0x32e033,_0x2d1344){_0x32e033=_0x32e033-0x11a;let _0x2d6667=_0x361bd1[_0x32e033];return _0x2d6667;},_0x32e0(_0x4aeb53,_0x52584c);}export default class at extends _0x43b338{constructor(_0x28700d,_0x1c3850=''){const _0x1149a9=_0x32e0;super(_0x28700d);const _0x300eb5=new _0x1d2ae9(),_0x5e7b50=this[_0x1149a9(0x125)];this[_0x1149a9(0x11a)](_0x1149a9(0x11b),_0x1c3850),_0x300eb5[_0x1149a9(0x124)]=_0x2871db,this[_0x1149a9(0x129)]({'tag':_0x1149a9(0x126),'attributes':{'class':['ck',_0x1149a9(0x120)]},'children':[_0x300eb5,{'text':_0x5e7b50['to'](_0x1149a9(0x11b))}]});}}
23
+ (function(_0x4f65a8,_0xe5fa7c){const _0xb21699=_0x25b5,_0x120934=_0x4f65a8();while(!![]){try{const _0x3828d2=-parseInt(_0xb21699(0x134))/0x1+parseInt(_0xb21699(0x129))/0x2*(-parseInt(_0xb21699(0x126))/0x3)+-parseInt(_0xb21699(0x12c))/0x4*(-parseInt(_0xb21699(0x128))/0x5)+parseInt(_0xb21699(0x132))/0x6*(-parseInt(_0xb21699(0x12a))/0x7)+-parseInt(_0xb21699(0x12d))/0x8*(-parseInt(_0xb21699(0x138))/0x9)+parseInt(_0xb21699(0x127))/0xa*(-parseInt(_0xb21699(0x12b))/0xb)+parseInt(_0xb21699(0x133))/0xc;if(_0x3828d2===_0xe5fa7c)break;else _0x120934['push'](_0x120934['shift']());}catch(_0x30bf11){_0x120934['push'](_0x120934['shift']());}}}(_0x4a9e,0x8deae));import{View as _0x4eb86a,IconView as _0x2a5fba}from'ckeditor5/src/ui.js';function _0x25b5(_0x27e336,_0x3d6bf7){const _0x4a9e84=_0x4a9e();return _0x25b5=function(_0x25b5c9,_0x560161){_0x25b5c9=_0x25b5c9-0x126;let _0x64b940=_0x4a9e84[_0x25b5c9];return _0x64b940;},_0x25b5(_0x27e336,_0x3d6bf7);}function _0x4a9e(){const _0x39b5fa=['1350877GCXtJD','401368ouNCyA','9704hTuaRb','setTemplate','ck-ai-form__error','set','bindTemplate','72JZdeph','19977564tBWowr','1115849QoGxlB','content','text','div','7218WzSjeM','3404649sklqkQ','10jsjVyL','55DvKNmI','2XoBuUW','458822Uybkij'];_0x4a9e=function(){return _0x39b5fa;};return _0x4a9e();}import _0x2300e1 from'../../../theme/icons/error.svg';export default class Y extends _0x4eb86a{constructor(_0x43ad23,_0x245685=''){const _0x3224c4=_0x25b5;super(_0x43ad23);const _0x70cb5f=new _0x2a5fba(),_0x541b1b=this[_0x3224c4(0x131)];this[_0x3224c4(0x130)](_0x3224c4(0x136),_0x245685),_0x70cb5f[_0x3224c4(0x135)]=_0x2300e1,this[_0x3224c4(0x12e)]({'tag':_0x3224c4(0x137),'attributes':{'class':['ck',_0x3224c4(0x12f)]},'children':[_0x70cb5f,{'text':_0x541b1b['to'](_0x3224c4(0x136))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4632ac=_0x2a33;(function(_0x521227,_0x4e96a3){const _0x545e44=_0x2a33,_0x40713d=_0x521227();while(!![]){try{const _0x440474=-parseInt(_0x545e44(0x8d))/0x1*(-parseInt(_0x545e44(0x8b))/0x2)+-parseInt(_0x545e44(0xaf))/0x3*(parseInt(_0x545e44(0xa3))/0x4)+parseInt(_0x545e44(0x8e))/0x5+-parseInt(_0x545e44(0x87))/0x6*(parseInt(_0x545e44(0xbb))/0x7)+-parseInt(_0x545e44(0xb4))/0x8*(parseInt(_0x545e44(0xa9))/0x9)+parseInt(_0x545e44(0x99))/0xa+parseInt(_0x545e44(0xb8))/0xb;if(_0x440474===_0x4e96a3)break;else _0x40713d['push'](_0x40713d['shift']());}catch(_0x6801e7){_0x40713d['push'](_0x40713d['shift']());}}}(_0x1c82,0x216b0));import{Rect as _0x470354,global as _0x21c39b,isVisible as _0x365ea4}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x491acc,ButtonView as _0x671aed}from'ckeditor5/src/ui.js';import{icons as _0x5d649f}from'ckeditor5/src/core.js';function _0x2a33(_0x2401d9,_0x11384a){const _0x1c828d=_0x1c82();return _0x2a33=function(_0x2a3392,_0x4324e3){_0x2a3392=_0x2a3392-0x86;let _0x8ba053=_0x1c828d[_0x2a3392];return _0x8ba053;},_0x2a33(_0x2401d9,_0x11384a);}import{getTranslation as _0x527b5f}from'../../utils/common-translations.js';import _0x5c16a1 from'../../../theme/icons/submit.svg';export default class ut extends _0x491acc{constructor(_0x2bfa07,_0x4aea02){const _0x259d67=_0x2a33;super(_0x2bfa07,_0x4aea02),this[_0x259d67(0xbe)][_0x259d67(0xba)][_0x259d67(0x9c)]=0x1,this[_0x259d67(0xbe)][_0x259d67(0xba)][_0x259d67(0x86)]=0x3,this[_0x259d67(0x95)]=this[_0x259d67(0xa7)](),this[_0x259d67(0x8f)]=this[_0x259d67(0x96)](),this[_0x259d67(0xa1)][_0x259d67(0x91)](this[_0x259d67(0x8f)],0x1),this[_0x259d67(0xa1)][_0x259d67(0x91)](this[_0x259d67(0x95)]);}[_0x4632ac(0xb0)](){const _0x2d47ea=_0x4632ac;super[_0x2d47ea(0xb0)](),this[_0x2d47ea(0xbe)][_0x2d47ea(0x8c)][_0x2d47ea(0x91)](this[_0x2d47ea(0x8f)]),this[_0x2d47ea(0x89)][_0x2d47ea(0x91)](this[_0x2d47ea(0x95)]),this[_0x2d47ea(0xb9)][_0x2d47ea(0xbc)](_0x2d47ea(0xbd),(_0x468abf,_0xef9b29)=>{const _0x2ca019=_0x2d47ea;_0x468abf[_0x2ca019(0xb6)]==this[_0x2ca019(0xbe)][_0x2ca019(0xba)][_0x2ca019(0x98)]&&(this[_0x2ca019(0xac)](),_0xef9b29());});}[_0x4632ac(0xa7)](){const _0x4d69f5=_0x4632ac,_0x3812c0=new _0x671aed(this[_0x4d69f5(0x93)]),_0x5d0304=this[_0x4d69f5(0x93)];return _0x3812c0[_0x4d69f5(0xbc)]({'icon':_0x5c16a1,'label':_0x527b5f(_0x5d0304,_0x4d69f5(0x92)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4d69f5(0x94)}),_0x3812c0['on'](_0x4d69f5(0xad),()=>{const _0x4034dc=_0x4d69f5;this[_0x4034dc(0xac)]();}),_0x3812c0[_0x4d69f5(0xa2)](_0x4d69f5(0x9e))['to'](this[_0x4d69f5(0xbe)][_0x4d69f5(0xba)],_0x4d69f5(0xaa),this,_0x4d69f5(0x9e),(_0x3fd925,_0x4c460a)=>!_0x3fd925&&_0x4c460a),_0x3812c0;}[_0x4632ac(0x96)](){const _0x1079a8=_0x4632ac,_0x2da03e=new _0x671aed(this[_0x1079a8(0x93)]),_0x25e304=this[_0x1079a8(0xa6)],_0x6c470b=this[_0x1079a8(0x93)];_0x2da03e[_0x1079a8(0xbc)]({'label':_0x527b5f(_0x6c470b,_0x1079a8(0xa5)),'withText':!0x1,'icon':_0x5d649f[_0x1079a8(0xb2)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1079a8(0x97)}),_0x2da03e[_0x1079a8(0xa2)](_0x1079a8(0x9d))['to'](_0x25e304,_0x1079a8(0x9b)),_0x2da03e[_0x1079a8(0xa2)](_0x1079a8(0x9e))['to'](this,_0x1079a8(0x9e)),_0x2da03e['on'](_0x1079a8(0xad),()=>{const _0x4c7f0b=_0x1079a8;_0x25e304[_0x4c7f0b(0x9b)]=!_0x25e304[_0x4c7f0b(0x9b)],_0x25e304[_0x4c7f0b(0x9b)]?this[_0x4c7f0b(0x9f)][_0x4c7f0b(0xb3)]():this[_0x4c7f0b(0xb3)]();});const _0xe0a18c=()=>{const _0x3dd8c7=_0x1079a8;_0x21c39b[_0x3dd8c7(0xab)][_0x3dd8c7(0x88)](()=>{const _0x5c547b=_0x3dd8c7;if(_0x365ea4(this[_0x5c547b(0x98)])){const _0x591d08=new _0x470354(this[_0x5c547b(0xbe)][_0x5c547b(0xba)][_0x5c547b(0x98)]),_0x5c540d=_0x591d08[_0x5c547b(0xb7)],_0x1c9f2a=_0x5c547b(0x9a)===_0x6c470b[_0x5c547b(0xa8)]?_0x5c547b(0x8a):_0x5c547b(0xa4);_0x591d08[_0x5c547b(0xb5)](),_0x2da03e[_0x5c547b(0x98)][_0x5c547b(0xae)][_0x1c9f2a]=_0x5c540d-_0x591d08[_0x5c547b(0xb7)]+0x1+'px';}});};return this[_0x1079a8(0xbe)][_0x1079a8(0xba)]['on'](_0x1079a8(0xc1),_0xe0a18c),this['on'](_0x1079a8(0xb0),_0xe0a18c),_0x2da03e;}[_0x4632ac(0xac)](){const _0x1df2d0=_0x4632ac,_0x29c141=this[_0x1df2d0(0xbe)][_0x1df2d0(0xba)][_0x1df2d0(0x98)][_0x1df2d0(0xb1)];this[_0x1df2d0(0xc0)](_0x1df2d0(0xac),_0x29c141);}[_0x4632ac(0xb3)](_0x5e725d){const _0x88f5ec=_0x4632ac;-0x1===_0x5e725d?this[_0x88f5ec(0xbf)][_0x88f5ec(0xa0)]():this[_0x88f5ec(0xbf)][_0x88f5ec(0x90)]();}}function _0x1c82(){const _0x5046d2=['excludeScrollbarsAndBorders','target','width','3295138hyoPnD','keystrokes','fieldView','241115oeHBpo','set','enter','queryView','focusCycler','fire','update','maxRows','18wVhAkk','requestAnimationFrame','children','left','6TLWsKO','fieldWrapperChildren','1965NCecxN','504085gkDbSO','showHistoryButtonView','focusFirst','add','Submit','locale','ck-ai-form__submit','submitButtonView','_createShowHistoryButton','ck-ai-form__toggle-history','element','850270mjBopi','rtl','isVisible','minRows','isOn','isEnabled','filteredView','focusLast','focusableChildren','bind','108Tqnjwq','right','History','resultsView','_createSubmitButton','uiLanguageDirection','119961kbUiCq','isEmpty','window','submit','execute','style','2721shahfo','render','value','history','focus','136oyGcOx'];_0x1c82=function(){return _0x5046d2;};return _0x1c82();}
23
+ const _0x5dbdf9=_0xf456;(function(_0x4d1df5,_0x1c7e9a){const _0x1d5261=_0xf456,_0xe4c019=_0x4d1df5();while(!![]){try{const _0x591625=parseInt(_0x1d5261(0x16a))/0x1*(parseInt(_0x1d5261(0x150))/0x2)+-parseInt(_0x1d5261(0x181))/0x3+parseInt(_0x1d5261(0x14e))/0x4*(parseInt(_0x1d5261(0x182))/0x5)+parseInt(_0x1d5261(0x172))/0x6*(parseInt(_0x1d5261(0x14f))/0x7)+-parseInt(_0x1d5261(0x152))/0x8*(-parseInt(_0x1d5261(0x16d))/0x9)+-parseInt(_0x1d5261(0x183))/0xa*(-parseInt(_0x1d5261(0x176))/0xb)+-parseInt(_0x1d5261(0x154))/0xc*(parseInt(_0x1d5261(0x14c))/0xd);if(_0x591625===_0x1c7e9a)break;else _0xe4c019['push'](_0xe4c019['shift']());}catch(_0x58c4f3){_0xe4c019['push'](_0xe4c019['shift']());}}}(_0x3b81,0xbb38a));import{Rect as _0x4d6043,global as _0x481a7b,isVisible as _0x2ebf64}from'ckeditor5/src/utils.js';function _0xf456(_0x17c47e,_0xa4fe68){const _0x3b812c=_0x3b81();return _0xf456=function(_0xf4564,_0x431ef7){_0xf4564=_0xf4564-0x147;let _0x1828a2=_0x3b812c[_0xf4564];return _0x1828a2;},_0xf456(_0x17c47e,_0xa4fe68);}import{AutocompleteView as _0x142c89,ButtonView as _0x56a115}from'ckeditor5/src/ui.js';import{icons as _0x2338cf}from'ckeditor5/src/core.js';import{getTranslation as _0x56dcd4}from'../../utils/common-translations.js';import _0x5b385d from'../../../theme/icons/submit.svg';export default class ot extends _0x142c89{constructor(_0x135260,_0x4f91e8){const _0x46a365=_0xf456;super(_0x135260,_0x4f91e8),this[_0x46a365(0x149)][_0x46a365(0x165)][_0x46a365(0x169)]=0x1,this[_0x46a365(0x149)][_0x46a365(0x165)][_0x46a365(0x15e)]=0x3,this[_0x46a365(0x180)]=this[_0x46a365(0x147)](),this[_0x46a365(0x14b)]=this[_0x46a365(0x16e)](),this[_0x46a365(0x173)][_0x46a365(0x16b)](this[_0x46a365(0x14b)],0x1),this[_0x46a365(0x173)][_0x46a365(0x16b)](this[_0x46a365(0x180)]);}[_0x5dbdf9(0x163)](){const _0x4ab859=_0x5dbdf9;super[_0x4ab859(0x163)](),this[_0x4ab859(0x149)][_0x4ab859(0x156)][_0x4ab859(0x16b)](this[_0x4ab859(0x14b)]),this[_0x4ab859(0x17d)][_0x4ab859(0x16b)](this[_0x4ab859(0x180)]),this[_0x4ab859(0x168)][_0x4ab859(0x15b)](_0x4ab859(0x174),(_0x45b752,_0x2a15ec)=>{const _0x1af210=_0x4ab859;_0x45b752[_0x1af210(0x14d)]==this[_0x1af210(0x149)][_0x1af210(0x165)][_0x1af210(0x15a)]&&(this[_0x1af210(0x16c)](),_0x2a15ec());});}[_0x5dbdf9(0x147)](){const _0x51e6ad=_0x5dbdf9,_0x346ae9=new _0x56a115(this[_0x51e6ad(0x17c)]),_0x4e7265=this[_0x51e6ad(0x17c)];return _0x346ae9[_0x51e6ad(0x15b)]({'icon':_0x5b385d,'label':_0x56dcd4(_0x4e7265,_0x51e6ad(0x151)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x51e6ad(0x171)}),_0x346ae9['on'](_0x51e6ad(0x17a),()=>{const _0x4e0967=_0x51e6ad;this[_0x4e0967(0x16c)]();}),_0x346ae9[_0x51e6ad(0x17b)](_0x51e6ad(0x161))['to'](this[_0x51e6ad(0x149)][_0x51e6ad(0x165)],_0x51e6ad(0x162),this,_0x51e6ad(0x161),(_0x5693a6,_0x15608d)=>!_0x5693a6&&_0x15608d),_0x346ae9;}[_0x5dbdf9(0x16e)](){const _0x5bef98=_0x5dbdf9,_0x2c1dff=new _0x56a115(this[_0x5bef98(0x17c)]),_0xc1c33d=this[_0x5bef98(0x166)],_0x400e6f=this[_0x5bef98(0x17c)];_0x2c1dff[_0x5bef98(0x15b)]({'label':_0x56dcd4(_0x400e6f,_0x5bef98(0x15c)),'withText':!0x1,'icon':_0x2338cf[_0x5bef98(0x157)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5bef98(0x177)}),_0x2c1dff[_0x5bef98(0x17b)](_0x5bef98(0x17f))['to'](_0xc1c33d,_0x5bef98(0x167)),_0x2c1dff[_0x5bef98(0x17b)](_0x5bef98(0x161))['to'](this,_0x5bef98(0x161)),_0x2c1dff['on'](_0x5bef98(0x17a),()=>{const _0x1d4f17=_0x5bef98;_0xc1c33d[_0x1d4f17(0x167)]=!_0xc1c33d[_0x1d4f17(0x167)],_0xc1c33d[_0x1d4f17(0x167)]?this[_0x1d4f17(0x155)][_0x1d4f17(0x178)]():this[_0x1d4f17(0x178)]();});const _0x2cf0c7=()=>{const _0x4a5b1b=_0x5bef98;_0x481a7b[_0x4a5b1b(0x15f)][_0x4a5b1b(0x148)](()=>{const _0x263b49=_0x4a5b1b;if(_0x2ebf64(this[_0x263b49(0x15a)])){const _0xca6285=new _0x4d6043(this[_0x263b49(0x149)][_0x263b49(0x165)][_0x263b49(0x15a)]),_0x3aad52=_0xca6285[_0x263b49(0x184)],_0xfdbdf3=_0x263b49(0x16f)===_0x400e6f[_0x263b49(0x160)]?_0x263b49(0x14a):_0x263b49(0x15d);_0xca6285[_0x263b49(0x179)](),_0x2c1dff[_0x263b49(0x15a)][_0x263b49(0x159)][_0xfdbdf3]=_0x3aad52-_0xca6285[_0x263b49(0x184)]+0x1+'px';}});};return this[_0x5bef98(0x149)][_0x5bef98(0x165)]['on'](_0x5bef98(0x158),_0x2cf0c7),this['on'](_0x5bef98(0x163),_0x2cf0c7),_0x2c1dff;}[_0x5dbdf9(0x16c)](){const _0x389b16=_0x5dbdf9,_0x26381c=this[_0x389b16(0x149)][_0x389b16(0x165)][_0x389b16(0x15a)][_0x389b16(0x153)];this[_0x389b16(0x17e)](_0x389b16(0x16c),_0x26381c);}[_0x5dbdf9(0x178)](_0x3fbc0b){const _0x544482=_0x5dbdf9;-0x1===_0x3fbc0b?this[_0x544482(0x170)][_0x544482(0x175)]():this[_0x544482(0x170)][_0x544482(0x164)]();}}function _0x3b81(){const _0x44f4a1=['fire','isOn','submitButtonView','1841799FNwNtv','20tEKgUK','8306390uwpYts','width','_createSubmitButton','requestAnimationFrame','queryView','left','showHistoryButtonView','20610148yafNOh','target','201344LbQalf','180229nWzQVz','1905654bzNnJO','Submit','80232TZhsgD','value','12QHwfIG','filteredView','fieldWrapperChildren','history','update','style','element','set','History','right','maxRows','window','uiLanguageDirection','isEnabled','isEmpty','render','focusFirst','fieldView','resultsView','isVisible','keystrokes','minRows','1VrgsfF','add','submit','72IZrMYP','_createShowHistoryButton','rtl','focusCycler','ck-ai-form__submit','210PJSbCg','focusableChildren','enter','focusLast','11bKUuyA','ck-ai-form__toggle-history','focus','excludeScrollbarsAndBorders','execute','bind','locale','children'];_0x3b81=function(){return _0x44f4a1;};return _0x3b81();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x393729=_0xe30c;(function(_0x504ba1,_0x364c38){const _0x78f273=_0xe30c,_0x412069=_0x504ba1();while(!![]){try{const _0x230e32=-parseInt(_0x78f273(0x15e))/0x1+-parseInt(_0x78f273(0x16d))/0x2*(parseInt(_0x78f273(0x14d))/0x3)+-parseInt(_0x78f273(0x159))/0x4*(-parseInt(_0x78f273(0x14a))/0x5)+-parseInt(_0x78f273(0x161))/0x6+-parseInt(_0x78f273(0x158))/0x7+-parseInt(_0x78f273(0x157))/0x8*(parseInt(_0x78f273(0x15a))/0x9)+-parseInt(_0x78f273(0x16a))/0xa*(-parseInt(_0x78f273(0x164))/0xb);if(_0x230e32===_0x364c38)break;else _0x412069['push'](_0x412069['shift']());}catch(_0x17e695){_0x412069['push'](_0x412069['shift']());}}}(_0x63b9,0x46a23));function _0xe30c(_0x5290f9,_0x1264fe){const _0x63b9ab=_0x63b9();return _0xe30c=function(_0xe30ccc,_0x549244){_0xe30ccc=_0xe30ccc-0x148;let _0x260fde=_0x63b9ab[_0xe30ccc];return _0x260fde;},_0xe30c(_0x5290f9,_0x1264fe);}import{ToolbarView as _0x2975c2,ButtonView as _0x3fb3c7}from'ckeditor5/src/ui.js';import{getTranslation as _0x13fc23}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x393729(0x14e),'INSERT':_0x393729(0x15b)};function _0x63b9(){const _0x2e4fab=['Stop','replaceButton','1787574ErQsim','label','_CONTENT','173327TqkfRc','tryAgainButton','locale','bindTemplate','Try\x20again','Insert\x20below','950LwVvGY','bind','isVisible','689630NWDbzC','ck-button-action','toUpperCase','10qkFxzp','REPLACE','items','3zqECBn','replace','AI_','_createButton','set','insertButton','ck-ai-form__toolbar','ck-hidden','mainAction','extendTemplate','25328NQHRRs','279748lUSGjv','615452LVghKA','945DRahwE','insert','stopButton','addMany','500188liSJcj'];_0x63b9=function(){return _0x2e4fab;};return _0x63b9();}export default class At extends _0x2975c2{constructor(_0xe748d0){const _0x14a5bc=_0x393729;super(_0xe748d0),this[_0x14a5bc(0x151)](_0x14a5bc(0x16c),!0x1),this[_0x14a5bc(0x151)](_0x14a5bc(0x155),AIFormToolbarViewMainActionLabel[_0x14a5bc(0x14b)]),this[_0x14a5bc(0x160)]=this[_0x14a5bc(0x150)]('',_0x14a5bc(0x148)),this[_0x14a5bc(0x160)][_0x14a5bc(0x16b)](_0x14a5bc(0x162))['to'](this,_0x14a5bc(0x155),_0x3a165b=>_0x13fc23(_0xe748d0,_0x14a5bc(0x14f)+_0x3a165b[_0x14a5bc(0x149)]()+_0x14a5bc(0x163))),this[_0x14a5bc(0x152)]=this[_0x14a5bc(0x150)](_0x13fc23(_0xe748d0,_0x14a5bc(0x169))),this[_0x14a5bc(0x165)]=this[_0x14a5bc(0x150)](_0x13fc23(_0xe748d0,_0x14a5bc(0x168))),this[_0x14a5bc(0x15c)]=this[_0x14a5bc(0x150)](_0x13fc23(_0xe748d0,_0x14a5bc(0x15f)));const _0x3d157f=this[_0x14a5bc(0x167)];this[_0x14a5bc(0x156)]({'attributes':{'class':[_0x14a5bc(0x153),_0x3d157f['if'](_0x14a5bc(0x16c),_0x14a5bc(0x154),_0x46fcc6=>!_0x46fcc6)]}}),this[_0x14a5bc(0x14c)][_0x14a5bc(0x15d)]([this[_0x14a5bc(0x160)],this[_0x14a5bc(0x152)],this[_0x14a5bc(0x165)],this[_0x14a5bc(0x15c)]]);}[_0x393729(0x150)](_0x4e249c,_0x4982a6){const _0xa08c56=_0x393729,_0x77ffaa=new _0x3fb3c7(this[_0xa08c56(0x166)]);return _0x77ffaa[_0xa08c56(0x151)]({'label':_0x4e249c,'class':_0x4982a6||'','isVisible':!0x0,'withText':!0x0}),_0x77ffaa;}}
23
+ const _0x2ecb11=_0x309c;function _0x309c(_0x709fe9,_0x332cde){const _0x25fa81=_0x25fa();return _0x309c=function(_0x309cbc,_0x3355aa){_0x309cbc=_0x309cbc-0x13c;let _0x50c3e9=_0x25fa81[_0x309cbc];return _0x50c3e9;},_0x309c(_0x709fe9,_0x332cde);}(function(_0xd154d0,_0x3980ee){const _0x629804=_0x309c,_0x178b4f=_0xd154d0();while(!![]){try{const _0x11eca5=parseInt(_0x629804(0x157))/0x1*(-parseInt(_0x629804(0x143))/0x2)+-parseInt(_0x629804(0x15d))/0x3+parseInt(_0x629804(0x153))/0x4*(parseInt(_0x629804(0x14c))/0x5)+-parseInt(_0x629804(0x142))/0x6*(-parseInt(_0x629804(0x14d))/0x7)+-parseInt(_0x629804(0x14f))/0x8+parseInt(_0x629804(0x15b))/0x9+parseInt(_0x629804(0x144))/0xa*(parseInt(_0x629804(0x140))/0xb);if(_0x11eca5===_0x3980ee)break;else _0x178b4f['push'](_0x178b4f['shift']());}catch(_0x3a46ee){_0x178b4f['push'](_0x178b4f['shift']());}}}(_0x25fa,0x3a1d7));import{ToolbarView as _0x1a9619,ButtonView as _0x1e5343}from'ckeditor5/src/ui.js';import{getTranslation as _0x4f2fe7}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2ecb11(0x155),'INSERT':_0x2ecb11(0x150)};export default class rt extends _0x1a9619{constructor(_0x2ec370){const _0x4d3c62=_0x2ecb11;super(_0x2ec370),this[_0x4d3c62(0x161)](_0x4d3c62(0x14e),!0x1),this[_0x4d3c62(0x161)](_0x4d3c62(0x145),AIFormToolbarViewMainActionLabel[_0x4d3c62(0x149)]),this[_0x4d3c62(0x15c)]=this[_0x4d3c62(0x15e)]('',_0x4d3c62(0x13f)),this[_0x4d3c62(0x15c)][_0x4d3c62(0x13e)](_0x4d3c62(0x159))['to'](this,_0x4d3c62(0x145),_0x16724a=>_0x4f2fe7(_0x2ec370,_0x4d3c62(0x156)+_0x16724a[_0x4d3c62(0x154)]()+_0x4d3c62(0x13c))),this[_0x4d3c62(0x15f)]=this[_0x4d3c62(0x15e)](_0x4f2fe7(_0x2ec370,_0x4d3c62(0x152))),this[_0x4d3c62(0x148)]=this[_0x4d3c62(0x15e)](_0x4f2fe7(_0x2ec370,_0x4d3c62(0x158))),this[_0x4d3c62(0x147)]=this[_0x4d3c62(0x15e)](_0x4f2fe7(_0x2ec370,_0x4d3c62(0x160)));const _0xb4273c=this[_0x4d3c62(0x151)];this[_0x4d3c62(0x146)]({'attributes':{'class':[_0x4d3c62(0x13d),_0xb4273c['if'](_0x4d3c62(0x14e),_0x4d3c62(0x14b),_0x22b785=>!_0x22b785)]}}),this[_0x4d3c62(0x141)][_0x4d3c62(0x14a)]([this[_0x4d3c62(0x15c)],this[_0x4d3c62(0x15f)],this[_0x4d3c62(0x148)],this[_0x4d3c62(0x147)]]);}[_0x2ecb11(0x15e)](_0x39b21f,_0x48f255){const _0x251754=_0x2ecb11,_0x100175=new _0x1e5343(this[_0x251754(0x15a)]);return _0x100175[_0x251754(0x161)]({'label':_0x39b21f,'class':_0x48f255||'','isVisible':!0x0,'withText':!0x0}),_0x100175;}}function _0x25fa(){const _0x17114b=['2079815fOozxk','1917342GkZSXp','isVisible','3272944VqVAFO','insert','bindTemplate','Insert\x20below','4XELaib','toUpperCase','replace','AI_','3361TpRDdK','Try\x20again','label','locale','3355902ONkIfE','replaceButton','1386570lXusvE','_createButton','insertButton','Stop','set','_CONTENT','ck-ai-form__toolbar','bind','ck-button-action','22TlUiyz','items','6dJZQcn','52uJtlsd','669930sOgtQS','mainAction','extendTemplate','stopButton','tryAgainButton','REPLACE','addMany','ck-hidden'];_0x25fa=function(){return _0x17114b;};return _0x25fa();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30dbc2=_0x1aa7;(function(_0x460b8e,_0x2c42b9){const _0x41da8c=_0x1aa7,_0x298772=_0x460b8e();while(!![]){try{const _0x56c90a=-parseInt(_0x41da8c(0x17b))/0x1*(-parseInt(_0x41da8c(0x1cc))/0x2)+-parseInt(_0x41da8c(0x18f))/0x3*(parseInt(_0x41da8c(0x1c4))/0x4)+parseInt(_0x41da8c(0x1c5))/0x5*(-parseInt(_0x41da8c(0x189))/0x6)+parseInt(_0x41da8c(0x19b))/0x7*(parseInt(_0x41da8c(0x18b))/0x8)+-parseInt(_0x41da8c(0x190))/0x9+parseInt(_0x41da8c(0x1bb))/0xa*(-parseInt(_0x41da8c(0x181))/0xb)+parseInt(_0x41da8c(0x191))/0xc;if(_0x56c90a===_0x2c42b9)break;else _0x298772['push'](_0x298772['shift']());}catch(_0x3ee7d4){_0x298772['push'](_0x298772['shift']());}}}(_0x4801,0xd8d52));import{FocusTracker as _0x194572,KeystrokeHandler as _0x51aee2}from'ckeditor5/src/utils.js';import{View as _0x182f8c,FocusCycler as _0xa1a434,createLabeledTextarea as _0x9bfc79}from'ckeditor5/src/ui.js';import _0xf6faf4,{AIFormToolbarViewMainActionLabel as _0x5532c2}from'./aiformtoolbarview.js';function _0x4801(){const _0x2ece39=['toolbar','bind','element','mainAction','isVisible','Ask\x20AI\x20to\x20improve\x20generated\x20text','listenTo','render','bindTo','Ask\x20AI\x20to\x20edit\x20or\x20generate','locale','stopButton','insertButton','keystrokes','trim','tryAgainEvent','_focusables','ck-ai-form-content','_createHistoryView','40450kBHunb','focusFirst','copyButtonView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','fire','contentArea','stopProcessing','tryAgainButton','_createPromptView','21336DqErGX','6750ZhDjKu','focusCycler','reset','div','replaceButton','errorView','text','12URVZyb','focusLast','set','queryView','execute','fieldView','41948rdIIuI','startProcessing','shift\x20+\x20tab','isError','handleError','tab','4576AXXmvL','promptView','focus','prompt','bindTemplate','isProcessing','ck-ai-form','_createToolbar','1866yiRVxt','clear','208GDAExn','submitPrompt','clearHistory','submit','861yQVCZb','5694480XvDHld','54576216sTCMvi','REPLACE','isEnabled','value','add','high','createCollection','search','finishProcessing','replaceContent','95466huqlBI','Empty\x20history','label','chain','insertContentBelow','focusTracker','setTemplate','delegate','_promptHistory','AI_ERROR_FAILED','ck-hidden','historyGroupView','items'];_0x4801=function(){return _0x2ece39;};return _0x4801();}import _0x36ee3d from'./aiformcontentarea.js';import _0x4b6805 from'./aiformerrorview.js';import _0x16e795 from'./aiformpromptview.js';function _0x1aa7(_0x32735a,_0x206362){const _0x480106=_0x4801();return _0x1aa7=function(_0x1aa762,_0x50bfe8){_0x1aa762=_0x1aa762-0x177;let _0x34b904=_0x480106[_0x1aa762];return _0x34b904;},_0x1aa7(_0x32735a,_0x206362);}import _0x721428 from'./aihistorylistview.js';import _0x1dd48e from'./aihistorylistitemview.js';import _0x187bdb from'./prompthistory.js';import{getTranslation as _0x368b49}from'../../utils/common-translations.js';import{escape as _0x445976}from'lodash-es';export default class N extends _0x182f8c{constructor(_0x2c698b,_0x5083d1,_0x3e126b=''){const _0x4e45d3=_0x1aa7;super(_0x2c698b),this[_0x4e45d3(0x177)](_0x4e45d3(0x193),!0x0),this[_0x4e45d3(0x177)](_0x4e45d3(0x186),!0x1),this[_0x4e45d3(0x177)](_0x4e45d3(0x184),''),this[_0x4e45d3(0x177)](_0x4e45d3(0x194),''),this[_0x4e45d3(0x177)](_0x4e45d3(0x17e),!0x1),this[_0x4e45d3(0x177)](_0x4e45d3(0x1ab),_0x5532c2[_0x4e45d3(0x192)]),this[_0x4e45d3(0x1a3)]=new _0x187bdb(),this[_0x4e45d3(0x1ca)]=new _0x4b6805(_0x2c698b),this[_0x4e45d3(0x1c0)]=new _0x36ee3d(_0x2c698b,_0x3e126b),this[_0x4e45d3(0x1c0)][_0x4e45d3(0x1a9)](_0x4e45d3(0x186))['to'](this),this[_0x4e45d3(0x1c0)][_0x4e45d3(0x1a9)](_0x4e45d3(0x194))['to'](this),this[_0x4e45d3(0x1a8)]=this[_0x4e45d3(0x188)](),this[_0x4e45d3(0x1a8)][_0x4e45d3(0x1a9)](_0x4e45d3(0x1ab))['to'](this),this[_0x4e45d3(0x182)]=this[_0x4e45d3(0x1c3)](),this[_0x4e45d3(0x1a0)]=new _0x194572(),this[_0x4e45d3(0x1b5)]=new _0x51aee2(),this[_0x4e45d3(0x1b8)]=this[_0x4e45d3(0x197)]([this[_0x4e45d3(0x1c0)],this[_0x4e45d3(0x1c0)][_0x4e45d3(0x1bd)],this[_0x4e45d3(0x1a8)],this[_0x4e45d3(0x182)]]),this[_0x4e45d3(0x1c6)]=new _0xa1a434({'focusables':this[_0x4e45d3(0x1b8)],'focusTracker':this[_0x4e45d3(0x1a0)],'keystrokeHandler':this[_0x4e45d3(0x1b5)],'actions':{'focusPrevious':_0x4e45d3(0x17d),'focusNext':_0x4e45d3(0x180)}}),this[_0x4e45d3(0x1c6)][_0x4e45d3(0x19e)](this[_0x4e45d3(0x182)][_0x4e45d3(0x1c6)]),this[_0x4e45d3(0x182)][_0x4e45d3(0x178)][_0x4e45d3(0x17a)][_0x4e45d3(0x1a9)](_0x4e45d3(0x194))['to'](this,_0x4e45d3(0x184));const _0x59f0c0=this[_0x4e45d3(0x185)];this[_0x4e45d3(0x1a1)]({'tag':_0x4e45d3(0x1c8),'attributes':{'class':['ck',_0x4e45d3(0x187),_0x5083d1],'tabindex':'-1'},'children':[{'tag':_0x4e45d3(0x1c8),'attributes':{'class':['ck',_0x4e45d3(0x1b9)]},'children':[{'tag':_0x4e45d3(0x1c8),'attributes':{'class':[_0x59f0c0['if'](_0x4e45d3(0x17e),_0x4e45d3(0x1a5),_0x3ee311=>!_0x3ee311)]},'children':[this[_0x4e45d3(0x1ca)]]},this[_0x4e45d3(0x1c0)],this[_0x4e45d3(0x1a8)],this[_0x4e45d3(0x182)]]}]});}[_0x30dbc2(0x1af)](){const _0x58dac8=_0x30dbc2;super[_0x58dac8(0x1af)](),this[_0x58dac8(0x1a0)][_0x58dac8(0x195)](this[_0x58dac8(0x1c0)][_0x58dac8(0x1aa)]),this[_0x58dac8(0x1a0)][_0x58dac8(0x195)](this[_0x58dac8(0x1c0)][_0x58dac8(0x1bd)][_0x58dac8(0x1aa)]),this[_0x58dac8(0x1a0)][_0x58dac8(0x195)](this[_0x58dac8(0x1a8)][_0x58dac8(0x1aa)]),this[_0x58dac8(0x1a0)][_0x58dac8(0x195)](this[_0x58dac8(0x182)][_0x58dac8(0x1aa)]),this[_0x58dac8(0x1b5)][_0x58dac8(0x1ae)](this[_0x58dac8(0x1aa)]);}[_0x30dbc2(0x183)](_0xaa340f=0x1){const _0xfb836c=_0x30dbc2;-0x1===_0xaa340f?this[_0xfb836c(0x1c6)][_0xfb836c(0x1cd)]():this[_0xfb836c(0x1c6)][_0xfb836c(0x1bc)]();}[_0x30dbc2(0x1c7)](){const _0x6be11b=_0x30dbc2;this[_0x6be11b(0x184)]='',this[_0x6be11b(0x194)]='',this[_0x6be11b(0x17e)]=!0x1,this[_0x6be11b(0x182)][_0x6be11b(0x1c7)](),this[_0x6be11b(0x1c0)][_0x6be11b(0x1ac)]=!0x1,this[_0x6be11b(0x1a8)][_0x6be11b(0x1ac)]=!0x1;}[_0x30dbc2(0x1c3)](){const _0x3baf97=_0x30dbc2,_0x231c8c=this[_0x3baf97(0x1b2)],_0x31cfb2=new _0x16e795(_0x231c8c,{'queryView':{'label':_0x368b49(_0x231c8c,_0x3baf97(0x1b1)),'creator':_0x9bfc79,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x368b49(_0x231c8c,_0x3baf97(0x19c)),'secondary':_0x368b49(_0x231c8c,_0x3baf97(0x1be))}}},'filteredView':this[_0x3baf97(0x1ba)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x31cfb2[_0x3baf97(0x1a9)](_0x3baf97(0x193))['to'](this,_0x3baf97(0x193),this,_0x3baf97(0x186),(_0x16e676,_0x503d66)=>_0x16e676&&!_0x503d66),this[_0x3baf97(0x1ae)](_0x31cfb2,_0x3baf97(0x18e),(_0x3e5f9b,_0x1e047b)=>{const _0x553e45=_0x3baf97;this[_0x553e45(0x184)]=_0x1e047b;const _0x1305ec=_0x445976(_0x1e047b);this[_0x553e45(0x1bf)](_0x553e45(0x18c),_0x1305ec),_0x1e047b[_0x553e45(0x1b6)]()&&this[_0x553e45(0x1a3)][_0x553e45(0x195)]({'prompt':_0x1305ec},0x0);},{'priority':_0x3baf97(0x196)}),_0x31cfb2;}[_0x30dbc2(0x1ba)](){const _0x152359=_0x30dbc2,_0x30a30d=new _0x721428(this[_0x152359(0x1b2)]);return _0x30a30d[_0x152359(0x1a6)][_0x152359(0x1a7)][_0x152359(0x1b0)](this[_0x152359(0x1a3)])['as'](_0x1dd48e),_0x30a30d['on'](_0x152359(0x18d),()=>{const _0x39ab12=_0x152359;this[_0x39ab12(0x1a3)][_0x39ab12(0x18a)](),this[_0x39ab12(0x182)][_0x39ab12(0x198)](''),this[_0x39ab12(0x182)][_0x39ab12(0x183)]();}),_0x30a30d;}[_0x30dbc2(0x188)](){const _0x3b93ba=_0x30dbc2,_0x55067e=new _0xf6faf4(this[_0x3b93ba(0x1b2)]);return _0x55067e[_0x3b93ba(0x1c9)][_0x3b93ba(0x1a9)](_0x3b93ba(0x193))['to'](this,_0x3b93ba(0x193),this,_0x3b93ba(0x186),this,_0x3b93ba(0x194),(_0x1a7432,_0x303c0c,_0x367392)=>_0x1a7432&&!_0x303c0c&&!!_0x367392),_0x55067e[_0x3b93ba(0x1c9)][_0x3b93ba(0x1a2)](_0x3b93ba(0x179))['to'](this,_0x3b93ba(0x19a)),_0x55067e[_0x3b93ba(0x1b4)][_0x3b93ba(0x1a9)](_0x3b93ba(0x193))['to'](this,_0x3b93ba(0x193),this,_0x3b93ba(0x186),this,_0x3b93ba(0x194),(_0x1f655f,_0x30f068,_0x296ec2)=>_0x1f655f&&!_0x30f068&&!!_0x296ec2),_0x55067e[_0x3b93ba(0x1b4)][_0x3b93ba(0x1a2)](_0x3b93ba(0x179))['to'](this,_0x3b93ba(0x19f)),_0x55067e[_0x3b93ba(0x1c2)][_0x3b93ba(0x1a9)](_0x3b93ba(0x193))['to'](this,_0x3b93ba(0x193),this,_0x3b93ba(0x186),(_0x1f4cc6,_0x55a9f1)=>_0x1f4cc6&&!_0x55a9f1),_0x55067e[_0x3b93ba(0x1c2)][_0x3b93ba(0x1a2)](_0x3b93ba(0x179))['to'](this,_0x3b93ba(0x1b7)),_0x55067e[_0x3b93ba(0x1b3)][_0x3b93ba(0x1a9)](_0x3b93ba(0x193))['to'](this,_0x3b93ba(0x186)),_0x55067e[_0x3b93ba(0x1b3)][_0x3b93ba(0x1a2)](_0x3b93ba(0x179))['to'](this,_0x3b93ba(0x1c1)),_0x55067e;}[_0x30dbc2(0x17c)](){const _0x5757a8=_0x30dbc2;this[_0x5757a8(0x194)]='',this[_0x5757a8(0x17e)]=!0x1,this[_0x5757a8(0x186)]=!0x0,this[_0x5757a8(0x1c0)][_0x5757a8(0x1ac)]=!0x0,this[_0x5757a8(0x1a8)][_0x5757a8(0x1ac)]=!0x0,this[_0x5757a8(0x1c0)][_0x5757a8(0x183)]();}[_0x30dbc2(0x199)](){const _0xfdbef0=_0x30dbc2,_0x422131=this[_0xfdbef0(0x1b2)];this[_0xfdbef0(0x186)]=!0x1,this[_0xfdbef0(0x184)]='',this[_0xfdbef0(0x182)][_0xfdbef0(0x1c7)](),this[_0xfdbef0(0x194)]&&(this[_0xfdbef0(0x182)][_0xfdbef0(0x178)][_0xfdbef0(0x19d)]=_0x368b49(_0x422131,_0xfdbef0(0x1ad)));}[_0x30dbc2(0x17f)](_0x213399){const _0x3ce93b=_0x30dbc2,_0x5a45c9=this[_0x3ce93b(0x1b2)];this[_0x3ce93b(0x199)](),this[_0x3ce93b(0x17e)]=!0x0,this[_0x3ce93b(0x1ca)][_0x3ce93b(0x1cb)]=_0x213399||_0x368b49(_0x5a45c9,_0x3ce93b(0x1a4)),this[_0x3ce93b(0x194)]||(this[_0x3ce93b(0x1c0)][_0x3ce93b(0x1ac)]=!0x1);}}
23
+ function _0x5f47(){const _0x22c6e7=['render','1302348pfuNpb','startProcessing','div','10003ljfAWf','delegate','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','REPLACE','submitPrompt','trim','promptView','set','toolbar','label','add','focusLast','element','search','value','stopButton','high','42447MtakuG','fire','replaceButton','submit','8WXjGiJ','locale','tryAgainEvent','stopProcessing','errorView','text','keystrokes','1225829gxQduE','prompt','listenTo','797144LVjijv','Empty\x20history','focus','50tBbJmp','chain','tryAgainButton','_promptHistory','ck-ai-form-content','finishProcessing','978120PmOjIn','AI_ERROR_FAILED','focusFirst','focusTracker','5hbPvgK','replaceContent','createCollection','execute','handleError','shift\x20+\x20tab','tab','isEnabled','copyButtonView','726978cgrSfN','ck-hidden','insertButton','clear','_createHistoryView','bindTemplate','isProcessing','bindTo','mainAction','queryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','items','ck-ai-form','contentArea','_createToolbar','isVisible','historyGroupView','reset','setTemplate','fieldView','_focusables','clearHistory','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertContentBelow','focusCycler','isError','bind','_createPromptView','1072VaIIaP'];_0x5f47=function(){return _0x22c6e7;};return _0x5f47();}const _0x134585=_0x5595;(function(_0x47ee58,_0xc59452){const _0x590937=_0x5595,_0x38c6dc=_0x47ee58();while(!![]){try{const _0x24c03c=parseInt(_0x590937(0x15c))/0x1*(parseInt(_0x590937(0x160))/0x2)+parseInt(_0x590937(0x180))/0x3+-parseInt(_0x590937(0x16a))/0x4+parseInt(_0x590937(0x177))/0x5*(parseInt(_0x590937(0x148))/0x6)+-parseInt(_0x590937(0x14b))/0x7*(-parseInt(_0x590937(0x146))/0x8)+parseInt(_0x590937(0x173))/0x9+parseInt(_0x590937(0x16d))/0xa*(-parseInt(_0x590937(0x167))/0xb);if(_0x24c03c===_0xc59452)break;else _0x38c6dc['push'](_0x38c6dc['shift']());}catch(_0x4fb517){_0x38c6dc['push'](_0x38c6dc['shift']());}}}(_0x5f47,0x2a339));function _0x5595(_0x2490aa,_0x4f8209){const _0x5f470b=_0x5f47();return _0x5595=function(_0x559563,_0x36f033){_0x559563=_0x559563-0x133;let _0x30d8fe=_0x5f470b[_0x559563];return _0x30d8fe;},_0x5595(_0x2490aa,_0x4f8209);}import{FocusTracker as _0x30c8d9,KeystrokeHandler as _0x5e9bb1}from'ckeditor5/src/utils.js';import{View as _0x196895,FocusCycler as _0x26b797,createLabeledTextarea as _0x5d3289}from'ckeditor5/src/ui.js';import _0x367bcb,{AIFormToolbarViewMainActionLabel as _0x22c5fc}from'./aiformtoolbarview.js';import _0x1b500d from'./aiformcontentarea.js';import _0x2b89af from'./aiformerrorview.js';import _0x51a989 from'./aiformpromptview.js';import _0x3a7fa8 from'./aihistorylistview.js';import _0x339457 from'./aihistorylistitemview.js';import _0x239f2e from'./prompthistory.js';import{getTranslation as _0x388933}from'../../utils/common-translations.js';import{escape as _0x53b04b}from'lodash-es';export default class v extends _0x196895{constructor(_0x744059,_0x4f4ef1,_0x3a75cb=''){const _0x21032e=_0x5595;super(_0x744059),this[_0x21032e(0x152)](_0x21032e(0x17e),!0x0),this[_0x21032e(0x152)](_0x21032e(0x186),!0x1),this[_0x21032e(0x152)](_0x21032e(0x168),''),this[_0x21032e(0x152)](_0x21032e(0x159),''),this[_0x21032e(0x152)](_0x21032e(0x143),!0x1),this[_0x21032e(0x152)](_0x21032e(0x188),_0x22c5fc[_0x21032e(0x14e)]),this[_0x21032e(0x170)]=new _0x239f2e(),this[_0x21032e(0x164)]=new _0x2b89af(_0x744059),this[_0x21032e(0x137)]=new _0x1b500d(_0x744059,_0x3a75cb),this[_0x21032e(0x137)][_0x21032e(0x144)](_0x21032e(0x186))['to'](this),this[_0x21032e(0x137)][_0x21032e(0x144)](_0x21032e(0x159))['to'](this),this[_0x21032e(0x153)]=this[_0x21032e(0x138)](),this[_0x21032e(0x153)][_0x21032e(0x144)](_0x21032e(0x188))['to'](this),this[_0x21032e(0x151)]=this[_0x21032e(0x145)](),this[_0x21032e(0x176)]=new _0x30c8d9(),this[_0x21032e(0x166)]=new _0x5e9bb1(),this[_0x21032e(0x13e)]=this[_0x21032e(0x179)]([this[_0x21032e(0x137)],this[_0x21032e(0x137)][_0x21032e(0x17f)],this[_0x21032e(0x153)],this[_0x21032e(0x151)]]),this[_0x21032e(0x142)]=new _0x26b797({'focusables':this[_0x21032e(0x13e)],'focusTracker':this[_0x21032e(0x176)],'keystrokeHandler':this[_0x21032e(0x166)],'actions':{'focusPrevious':_0x21032e(0x17c),'focusNext':_0x21032e(0x17d)}}),this[_0x21032e(0x142)][_0x21032e(0x16e)](this[_0x21032e(0x151)][_0x21032e(0x142)]),this[_0x21032e(0x151)][_0x21032e(0x133)][_0x21032e(0x13d)][_0x21032e(0x144)](_0x21032e(0x159))['to'](this,_0x21032e(0x168));const _0x36e10a=this[_0x21032e(0x185)];this[_0x21032e(0x13c)]({'tag':_0x21032e(0x14a),'attributes':{'class':['ck',_0x21032e(0x136),_0x4f4ef1],'tabindex':'-1'},'children':[{'tag':_0x21032e(0x14a),'attributes':{'class':['ck',_0x21032e(0x171)]},'children':[{'tag':_0x21032e(0x14a),'attributes':{'class':[_0x36e10a['if'](_0x21032e(0x143),_0x21032e(0x181),_0x2741f7=>!_0x2741f7)]},'children':[this[_0x21032e(0x164)]]},this[_0x21032e(0x137)],this[_0x21032e(0x153)],this[_0x21032e(0x151)]]}]});}[_0x134585(0x147)](){const _0x2171b4=_0x134585;super[_0x2171b4(0x147)](),this[_0x2171b4(0x176)][_0x2171b4(0x155)](this[_0x2171b4(0x137)][_0x2171b4(0x157)]),this[_0x2171b4(0x176)][_0x2171b4(0x155)](this[_0x2171b4(0x137)][_0x2171b4(0x17f)][_0x2171b4(0x157)]),this[_0x2171b4(0x176)][_0x2171b4(0x155)](this[_0x2171b4(0x153)][_0x2171b4(0x157)]),this[_0x2171b4(0x176)][_0x2171b4(0x155)](this[_0x2171b4(0x151)][_0x2171b4(0x157)]),this[_0x2171b4(0x166)][_0x2171b4(0x169)](this[_0x2171b4(0x157)]);}[_0x134585(0x16c)](_0x374a0c=0x1){const _0x54869b=_0x134585;-0x1===_0x374a0c?this[_0x54869b(0x142)][_0x54869b(0x156)]():this[_0x54869b(0x142)][_0x54869b(0x175)]();}[_0x134585(0x13b)](){const _0x57ebb9=_0x134585;this[_0x57ebb9(0x168)]='',this[_0x57ebb9(0x159)]='',this[_0x57ebb9(0x143)]=!0x1,this[_0x57ebb9(0x151)][_0x57ebb9(0x13b)](),this[_0x57ebb9(0x137)][_0x57ebb9(0x139)]=!0x1,this[_0x57ebb9(0x153)][_0x57ebb9(0x139)]=!0x1;}[_0x134585(0x145)](){const _0x5657f0=_0x134585,_0xe40c72=this[_0x5657f0(0x161)],_0x2bce67=new _0x51a989(_0xe40c72,{'queryView':{'label':_0x388933(_0xe40c72,_0x5657f0(0x134)),'creator':_0x5d3289,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x388933(_0xe40c72,_0x5657f0(0x16b)),'secondary':_0x388933(_0xe40c72,_0x5657f0(0x14d))}}},'filteredView':this[_0x5657f0(0x184)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2bce67[_0x5657f0(0x144)](_0x5657f0(0x17e))['to'](this,_0x5657f0(0x17e),this,_0x5657f0(0x186),(_0x424478,_0x43c3b1)=>_0x424478&&!_0x43c3b1),this[_0x5657f0(0x169)](_0x2bce67,_0x5657f0(0x15f),(_0x2d8344,_0xb74970)=>{const _0x27b671=_0x5657f0;this[_0x27b671(0x168)]=_0xb74970;const _0x2138ef=_0x53b04b(_0xb74970);this[_0x27b671(0x15d)](_0x27b671(0x14f),_0x2138ef),_0xb74970[_0x27b671(0x150)]()&&this[_0x27b671(0x170)][_0x27b671(0x155)]({'prompt':_0x2138ef},0x0);},{'priority':_0x5657f0(0x15b)}),_0x2bce67;}[_0x134585(0x184)](){const _0x537e3a=_0x134585,_0x99f68d=new _0x3a7fa8(this[_0x537e3a(0x161)]);return _0x99f68d[_0x537e3a(0x13a)][_0x537e3a(0x135)][_0x537e3a(0x187)](this[_0x537e3a(0x170)])['as'](_0x339457),_0x99f68d['on'](_0x537e3a(0x13f),()=>{const _0x1b3840=_0x537e3a;this[_0x1b3840(0x170)][_0x1b3840(0x183)](),this[_0x1b3840(0x151)][_0x1b3840(0x158)](''),this[_0x1b3840(0x151)][_0x1b3840(0x16c)]();}),_0x99f68d;}[_0x134585(0x138)](){const _0x568e9b=_0x134585,_0x3629a1=new _0x367bcb(this[_0x568e9b(0x161)]);return _0x3629a1[_0x568e9b(0x15e)][_0x568e9b(0x144)](_0x568e9b(0x17e))['to'](this,_0x568e9b(0x17e),this,_0x568e9b(0x186),this,_0x568e9b(0x159),(_0x581f36,_0x1fe835,_0x32bf6a)=>_0x581f36&&!_0x1fe835&&!!_0x32bf6a),_0x3629a1[_0x568e9b(0x15e)][_0x568e9b(0x14c)](_0x568e9b(0x17a))['to'](this,_0x568e9b(0x178)),_0x3629a1[_0x568e9b(0x182)][_0x568e9b(0x144)](_0x568e9b(0x17e))['to'](this,_0x568e9b(0x17e),this,_0x568e9b(0x186),this,_0x568e9b(0x159),(_0x825d4c,_0x5493f3,_0x21173c)=>_0x825d4c&&!_0x5493f3&&!!_0x21173c),_0x3629a1[_0x568e9b(0x182)][_0x568e9b(0x14c)](_0x568e9b(0x17a))['to'](this,_0x568e9b(0x141)),_0x3629a1[_0x568e9b(0x16f)][_0x568e9b(0x144)](_0x568e9b(0x17e))['to'](this,_0x568e9b(0x17e),this,_0x568e9b(0x186),(_0x3e8c1b,_0x4d2b53)=>_0x3e8c1b&&!_0x4d2b53),_0x3629a1[_0x568e9b(0x16f)][_0x568e9b(0x14c)](_0x568e9b(0x17a))['to'](this,_0x568e9b(0x162)),_0x3629a1[_0x568e9b(0x15a)][_0x568e9b(0x144)](_0x568e9b(0x17e))['to'](this,_0x568e9b(0x186)),_0x3629a1[_0x568e9b(0x15a)][_0x568e9b(0x14c)](_0x568e9b(0x17a))['to'](this,_0x568e9b(0x163)),_0x3629a1;}[_0x134585(0x149)](){const _0x4a516f=_0x134585;this[_0x4a516f(0x159)]='',this[_0x4a516f(0x143)]=!0x1,this[_0x4a516f(0x186)]=!0x0,this[_0x4a516f(0x137)][_0x4a516f(0x139)]=!0x0,this[_0x4a516f(0x153)][_0x4a516f(0x139)]=!0x0,this[_0x4a516f(0x137)][_0x4a516f(0x16c)]();}[_0x134585(0x172)](){const _0x3f787a=_0x134585,_0x442646=this[_0x3f787a(0x161)];this[_0x3f787a(0x186)]=!0x1,this[_0x3f787a(0x168)]='',this[_0x3f787a(0x151)][_0x3f787a(0x13b)](),this[_0x3f787a(0x159)]&&(this[_0x3f787a(0x151)][_0x3f787a(0x133)][_0x3f787a(0x154)]=_0x388933(_0x442646,_0x3f787a(0x140)));}[_0x134585(0x17b)](_0x32da38){const _0x933c72=_0x134585,_0x2e76db=this[_0x933c72(0x161)];this[_0x933c72(0x172)](),this[_0x933c72(0x143)]=!0x0,this[_0x933c72(0x164)][_0x933c72(0x165)]=_0x32da38||_0x388933(_0x2e76db,_0x933c72(0x174)),this[_0x933c72(0x159)]||(this[_0x933c72(0x137)][_0x933c72(0x139)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x58f47d,_0x96951f){const _0x2b4b2b=_0x2f07,_0x2c76e1=_0x58f47d();while(!![]){try{const _0x1fde25=-parseInt(_0x2b4b2b(0x1ca))/0x1+-parseInt(_0x2b4b2b(0x1d4))/0x2*(parseInt(_0x2b4b2b(0x1d0))/0x3)+parseInt(_0x2b4b2b(0x1d7))/0x4+parseInt(_0x2b4b2b(0x1d1))/0x5*(-parseInt(_0x2b4b2b(0x1cf))/0x6)+parseInt(_0x2b4b2b(0x1c7))/0x7+-parseInt(_0x2b4b2b(0x1cd))/0x8*(-parseInt(_0x2b4b2b(0x1d5))/0x9)+-parseInt(_0x2b4b2b(0x1c6))/0xa*(-parseInt(_0x2b4b2b(0x1d2))/0xb);if(_0x1fde25===_0x96951f)break;else _0x2c76e1['push'](_0x2c76e1['shift']());}catch(_0x2e752d){_0x2c76e1['push'](_0x2c76e1['shift']());}}}(_0x2fd6,0x1d188));import{ListItemView as _0x5d7cac,ButtonView as _0x5c1d1e,ButtonLabelWithHighlightView as _0x250d43}from'ckeditor5/src/ui.js';function _0x2f07(_0xb0527b,_0x3b0e42){const _0x2fd6bc=_0x2fd6();return _0x2f07=function(_0x2f0743,_0x1b8759){_0x2f0743=_0x2f0743-0x1c6;let _0x53a119=_0x2fd6bc[_0x2f0743];return _0x53a119;},_0x2f07(_0xb0527b,_0x3b0e42);}import{unescape as _0x3f2a0c}from'lodash-es';export default class os extends _0x5d7cac{constructor(_0x826a29){const _0x56cc98=_0x2f07;super();const _0x520a84=new _0x250d43(),_0x32d0b8=new _0x5c1d1e(this[_0x56cc98(0x1cb)],_0x520a84);this[_0x56cc98(0x1c9)][_0x56cc98(0x1d3)](_0x32d0b8),_0x32d0b8[_0x56cc98(0x1cc)]({'label':_0x826a29[_0x56cc98(0x1ce)],'withText':!0x0}),_0x32d0b8['on'](_0x56cc98(0x1c8),()=>{const _0xa53f18=_0x56cc98;this[_0xa53f18(0x1d6)](_0xa53f18(0x1c8),{'value':_0x3f2a0c(_0x826a29[_0xa53f18(0x1ce)])});});}}function _0x2fd6(){const _0x381035=['6030UIJOhm','21ZqYlVY','1150HmZYUP','171193vvjKpi','add','14782JnXLpU','1780011hgWhEX','fire','260924aMefaw','110yGCdmb','319599sbUwVF','execute','children','77797vbOhai','locale','set','8zMNiwb','prompt'];_0x2fd6=function(){return _0x381035;};return _0x2fd6();}
23
+ function _0x25fd(){const _0x42ce76=['321185rBluoZ','add','fire','634464oQZnVB','execute','5760008TsLOHl','84VfKYRP','6272406moefRJ','2FJmNrF','locale','13427630nFIXam','569127LlGSpA','783gWvXKS','prompt','set','children','17496nTbzao'];_0x25fd=function(){return _0x42ce76;};return _0x25fd();}(function(_0x5aaba5,_0x2ed37d){const _0x164b21=_0x281c,_0x1473a2=_0x5aaba5();while(!![]){try{const _0x547d9e=parseInt(_0x164b21(0xe5))/0x1*(parseInt(_0x164b21(0xe0))/0x2)+-parseInt(_0x164b21(0xe8))/0x3+parseInt(_0x164b21(0xe2))/0x4+-parseInt(_0x164b21(0xdd))/0x5*(parseInt(_0x164b21(0xe3))/0x6)+parseInt(_0x164b21(0xe4))/0x7+-parseInt(_0x164b21(0xdc))/0x8*(-parseInt(_0x164b21(0xe9))/0x9)+-parseInt(_0x164b21(0xe7))/0xa;if(_0x547d9e===_0x2ed37d)break;else _0x1473a2['push'](_0x1473a2['shift']());}catch(_0x41e894){_0x1473a2['push'](_0x1473a2['shift']());}}}(_0x25fd,0xb1fab));function _0x281c(_0x505e99,_0x2654c7){const _0x25fda0=_0x25fd();return _0x281c=function(_0x281cbf,_0x213bbb){_0x281cbf=_0x281cbf-0xdc;let _0xc3284a=_0x25fda0[_0x281cbf];return _0xc3284a;},_0x281c(_0x505e99,_0x2654c7);}import{ListItemView as _0x353fa8,ButtonView as _0x15b019,ButtonLabelView as _0xe019b5}from'ckeditor5/src/ui.js';import{unescape as _0x8897a7}from'lodash-es';export default class hs extends _0x353fa8{constructor(_0x1c1014){const _0x502907=_0x281c;super();const _0x41da80=new _0xe019b5(),_0x1d7d78=new _0x15b019(this[_0x502907(0xe6)],_0x41da80);this[_0x502907(0xec)][_0x502907(0xde)](_0x1d7d78),_0x1d7d78[_0x502907(0xeb)]({'label':_0x1c1014[_0x502907(0xea)],'withText':!0x0}),_0x1d7d78['on'](_0x502907(0xe1),()=>{const _0x186905=_0x502907;this[_0x186905(0xdf)](_0x186905(0xe1),{'value':_0x8897a7(_0x1c1014[_0x186905(0xea)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39e896=_0x4bba;function _0x2f22(){const _0x304415=['items','delegate','662155hdlMSN','clearHistory','clearHistoryButton','execute','5846253bAcrba','children','fire','4dzHPOA','68799aRJQUI','16lUsrVY','length','historyGroupView','Prompt\x20history','621339szzvtD','13117788zzZfey','Clear','_createClearHistoryButton','set','4818496svIKfC','locale','filter','add','1359174wrQplz','label'];_0x2f22=function(){return _0x304415;};return _0x2f22();}function _0x4bba(_0xe2821b,_0x184e94){const _0x2f229a=_0x2f22();return _0x4bba=function(_0x4bba05,_0x430476){_0x4bba05=_0x4bba05-0x116;let _0x512c7e=_0x2f229a[_0x4bba05];return _0x512c7e;},_0x4bba(_0xe2821b,_0x184e94);}(function(_0x122b9d,_0x37279c){const _0x2dfc12=_0x4bba,_0x59e53b=_0x122b9d();while(!![]){try{const _0x529ca5=parseInt(_0x2dfc12(0x123))/0x1+-parseInt(_0x2dfc12(0x11f))/0x2*(-parseInt(_0x2dfc12(0x11e))/0x3)+-parseInt(_0x2dfc12(0x11d))/0x4*(parseInt(_0x2dfc12(0x116))/0x5)+-parseInt(_0x2dfc12(0x12c))/0x6+-parseInt(_0x2dfc12(0x11a))/0x7+-parseInt(_0x2dfc12(0x128))/0x8+parseInt(_0x2dfc12(0x124))/0x9;if(_0x529ca5===_0x37279c)break;else _0x59e53b['push'](_0x59e53b['shift']());}catch(_0x5e8a87){_0x59e53b['push'](_0x59e53b['shift']());}}}(_0x2f22,0x71bdc));import{ListView as _0x40047a,ListItemGroupView as _0xbb5aa0,ButtonView as _0x21f9a4}from'ckeditor5/src/ui.js';import{getTranslation as _0x1b46bd}from'../../utils/common-translations.js';export default class hs extends _0x40047a{constructor(_0x1edfd7){const _0x34cb28=_0x4bba;super(_0x1edfd7),this[_0x34cb28(0x118)]=this[_0x34cb28(0x126)](),this[_0x34cb28(0x121)]=new _0xbb5aa0(),this[_0x34cb28(0x121)][_0x34cb28(0x11b)][_0x34cb28(0x12b)](this[_0x34cb28(0x118)],0x1),this[_0x34cb28(0x121)][_0x34cb28(0x12d)]=_0x1b46bd(_0x1edfd7,_0x34cb28(0x122)),this[_0x34cb28(0x121)][_0x34cb28(0x12e)][_0x34cb28(0x12f)](_0x34cb28(0x119))['to'](this),this[_0x34cb28(0x12e)][_0x34cb28(0x12b)](this[_0x34cb28(0x121)]);}[_0x39e896(0x12a)](){const _0x2ae66c=_0x39e896;let _0x21a207=0x0;for(const _0x25b7b2 of this[_0x2ae66c(0x12e)])_0x21a207+=_0x25b7b2[_0x2ae66c(0x12e)][_0x2ae66c(0x120)];return{'resultsCount':_0x21a207,'totalItemsCount':_0x21a207};}[_0x39e896(0x126)](){const _0x4c9225=_0x39e896,_0x24b248=this[_0x4c9225(0x129)],_0x204a7d=new _0x21f9a4(this[_0x4c9225(0x129)]);return _0x204a7d[_0x4c9225(0x127)]({'label':'('+_0x1b46bd(_0x24b248,_0x4c9225(0x125))+')','withText':!0x0}),_0x204a7d['on'](_0x4c9225(0x119),()=>this[_0x4c9225(0x11c)](_0x4c9225(0x117))),_0x204a7d;}}
23
+ const _0x43f85f=_0x2743;(function(_0x56b147,_0x2c470c){const _0x5df614=_0x2743,_0x541a14=_0x56b147();while(!![]){try{const _0x553f63=-parseInt(_0x5df614(0xb9))/0x1+parseInt(_0x5df614(0xb1))/0x2*(parseInt(_0x5df614(0xb3))/0x3)+parseInt(_0x5df614(0xb5))/0x4+parseInt(_0x5df614(0xc0))/0x5*(-parseInt(_0x5df614(0xc5))/0x6)+parseInt(_0x5df614(0xbe))/0x7+parseInt(_0x5df614(0xb0))/0x8+-parseInt(_0x5df614(0xc3))/0x9*(parseInt(_0x5df614(0xb7))/0xa);if(_0x553f63===_0x2c470c)break;else _0x541a14['push'](_0x541a14['shift']());}catch(_0x1d2ab1){_0x541a14['push'](_0x541a14['shift']());}}}(_0x33a8,0x3c2a9));function _0x2743(_0x457262,_0x73edf4){const _0x33a8b8=_0x33a8();return _0x2743=function(_0x2743da,_0x3b5201){_0x2743da=_0x2743da-0xab;let _0x1e7501=_0x33a8b8[_0x2743da];return _0x1e7501;},_0x2743(_0x457262,_0x73edf4);}import{ListView as _0x3bb2fc,ListItemGroupView as _0x205de4,ButtonView as _0x25ffa5}from'ckeditor5/src/ui.js';import{getTranslation as _0xc1963b}from'../../utils/common-translations.js';function _0x33a8(){const _0x21acb0=['27NbmtTa','fire','66UAFYhe','Prompt\x20history','delegate','label','set','_createClearHistoryButton','2778088TSUFdH','498QhyTJv','locale','1866MRxogD','clearHistoryButton','1840692qREusd','execute','1406050VPGund','children','46048oViyAR','clearHistory','Clear','items','historyGroupView','365967MkVhRg','add','136495KTffEg','filter','length'];_0x33a8=function(){return _0x21acb0;};return _0x33a8();}export default class rs extends _0x3bb2fc{constructor(_0x5ac870){const _0x3d2649=_0x2743;super(_0x5ac870),this[_0x3d2649(0xb4)]=this[_0x3d2649(0xaf)](),this[_0x3d2649(0xbd)]=new _0x205de4(),this[_0x3d2649(0xbd)][_0x3d2649(0xb8)][_0x3d2649(0xbf)](this[_0x3d2649(0xb4)],0x1),this[_0x3d2649(0xbd)][_0x3d2649(0xad)]=_0xc1963b(_0x5ac870,_0x3d2649(0xab)),this[_0x3d2649(0xbd)][_0x3d2649(0xbc)][_0x3d2649(0xac)](_0x3d2649(0xb6))['to'](this),this[_0x3d2649(0xbc)][_0x3d2649(0xbf)](this[_0x3d2649(0xbd)]);}[_0x43f85f(0xc1)](){const _0x74bf30=_0x43f85f;let _0x19982e=0x0;for(const _0x4c6911 of this[_0x74bf30(0xbc)])_0x19982e+=_0x4c6911[_0x74bf30(0xbc)][_0x74bf30(0xc2)];return{'resultsCount':_0x19982e,'totalItemsCount':_0x19982e};}[_0x43f85f(0xaf)](){const _0xe73973=_0x43f85f,_0x61b6da=this[_0xe73973(0xb2)],_0x469ec5=new _0x25ffa5(this[_0xe73973(0xb2)]);return _0x469ec5[_0xe73973(0xae)]({'label':'('+_0xc1963b(_0x61b6da,_0xe73973(0xbb))+')','withText':!0x0}),_0x469ec5['on'](_0xe73973(0xb6),()=>this[_0xe73973(0xc4)](_0xe73973(0xba))),_0x469ec5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d3b09=_0x2177;(function(_0x273719,_0x322579){const _0x7ccc9c=_0x2177,_0x11667a=_0x273719();while(!![]){try{const _0x4618de=-parseInt(_0x7ccc9c(0x19d))/0x1*(parseInt(_0x7ccc9c(0x1b5))/0x2)+-parseInt(_0x7ccc9c(0x1ae))/0x3*(parseInt(_0x7ccc9c(0x1af))/0x4)+-parseInt(_0x7ccc9c(0x1a3))/0x5*(-parseInt(_0x7ccc9c(0x1b1))/0x6)+-parseInt(_0x7ccc9c(0x1a5))/0x7+parseInt(_0x7ccc9c(0x1b6))/0x8+parseInt(_0x7ccc9c(0x1b4))/0x9+parseInt(_0x7ccc9c(0x1a1))/0xa;if(_0x4618de===_0x322579)break;else _0x11667a['push'](_0x11667a['shift']());}catch(_0x53b17e){_0x11667a['push'](_0x11667a['shift']());}}}(_0x47fb,0xd27d4));import{Collection as _0x16cc18}from'ckeditor5/src/utils.js';function _0x2177(_0x459173,_0x145da9){const _0x47fb1d=_0x47fb();return _0x2177=function(_0x217797,_0x30503e){_0x217797=_0x217797-0x19d;let _0x3cc4f7=_0x47fb1d[_0x217797];return _0x3cc4f7;},_0x2177(_0x459173,_0x145da9);}function _0x47fb(){const _0x57f259=['8795192szeVCr','stringify','toLowerCase','addMany','add','setItem','_saveToSessionStorage','getItem','last','3evlPjl','5007404ztdjdq','remove','854046vHKeCC','map','prompt','2295918SzWFVB','880026YJVLAr','410240oklOzK','3vQZjfr','_loadFromSessionStorage','length','CKEditor/AIFormView/PromptHistory','42417870jxpjRW','trim','5lwKRKj','parse'];_0x47fb=function(){return _0x57f259;};return _0x47fb();}const Ss=_0x4d3b09(0x1a0);export default class ns extends _0x16cc18{constructor(){const _0x2166c8=_0x4d3b09;super(),this[_0x2166c8(0x19e)](),this['on'](_0x2166c8(0x1a9),(_0x1de268,_0x1dee73)=>{const _0x2922af=_0x2166c8,_0x2902e1=ds(_0x1dee73[_0x2922af(0x1b3)]);for(const _0xa78908 of this)if(_0xa78908!=_0x1dee73&&ds(_0xa78908[_0x2922af(0x1b3)])===_0x2902e1){this[_0x2922af(0x1b0)](_0xa78908);break;}this[_0x2922af(0x19f)]>0x14&&this[_0x2922af(0x1b0)](this[_0x2922af(0x1ad)]),this[_0x2922af(0x1ab)]();}),this['on'](_0x2166c8(0x1b0),()=>{const _0x2f0f20=_0x2166c8;this[_0x2f0f20(0x1ab)]();});}[_0x4d3b09(0x19e)](){const _0x4143b3=_0x4d3b09,_0x2c53df=sessionStorage[_0x4143b3(0x1ac)](Ss)||'[]';this[_0x4143b3(0x1a8)](JSON[_0x4143b3(0x1a4)](_0x2c53df));}[_0x4d3b09(0x1ab)](){const _0x5d4809=_0x4d3b09;sessionStorage[_0x5d4809(0x1aa)](Ss,JSON[_0x5d4809(0x1a6)](this[_0x5d4809(0x1b2)](_0x31045a=>_0x31045a)));}}function ds(_0x166f0b){const _0x28f111=_0x4d3b09;return _0x166f0b[_0x28f111(0x1a7)]()[_0x28f111(0x1a2)]();}
23
+ const _0x49fd6b=_0x41eb;(function(_0x298020,_0x13e4dc){const _0x3a7482=_0x41eb,_0xfccc73=_0x298020();while(!![]){try{const _0x1983ee=parseInt(_0x3a7482(0xca))/0x1+-parseInt(_0x3a7482(0xc2))/0x2*(-parseInt(_0x3a7482(0xcf))/0x3)+-parseInt(_0x3a7482(0xcb))/0x4+-parseInt(_0x3a7482(0xc0))/0x5+parseInt(_0x3a7482(0xbb))/0x6*(-parseInt(_0x3a7482(0xd1))/0x7)+parseInt(_0x3a7482(0xc7))/0x8*(parseInt(_0x3a7482(0xce))/0x9)+-parseInt(_0x3a7482(0xc8))/0xa;if(_0x1983ee===_0x13e4dc)break;else _0xfccc73['push'](_0xfccc73['shift']());}catch(_0x4fbe07){_0xfccc73['push'](_0xfccc73['shift']());}}}(_0x33de,0x55f23));import{Collection as _0x1bb998}from'ckeditor5/src/utils.js';const cs=_0x49fd6b(0xc1);export default class os extends _0x1bb998{constructor(){const _0x1244f7=_0x49fd6b;super(),this[_0x1244f7(0xbd)](),this['on'](_0x1244f7(0xc9),(_0x5edf44,_0x502607)=>{const _0x3e5e50=_0x1244f7,_0x218663=Ss(_0x502607[_0x3e5e50(0xd2)]);for(const _0x2a224e of this)if(_0x2a224e!=_0x502607&&Ss(_0x2a224e[_0x3e5e50(0xd2)])===_0x218663){this[_0x3e5e50(0xc5)](_0x2a224e);break;}this[_0x3e5e50(0xb9)]>0x14&&this[_0x3e5e50(0xc5)](this[_0x3e5e50(0xba)]),this[_0x3e5e50(0xd0)]();}),this['on'](_0x1244f7(0xc5),()=>{const _0x5c32cc=_0x1244f7;this[_0x5c32cc(0xd0)]();});}[_0x49fd6b(0xbd)](){const _0x57c28a=_0x49fd6b,_0x1e686b=sessionStorage[_0x57c28a(0xbf)](cs)||'[]';this[_0x57c28a(0xc3)](JSON[_0x57c28a(0xbe)](_0x1e686b));}[_0x49fd6b(0xd0)](){const _0xdeb44=_0x49fd6b;sessionStorage[_0xdeb44(0xc6)](cs,JSON[_0xdeb44(0xbc)](this[_0xdeb44(0xc4)](_0x433e45=>_0x433e45)));}}function Ss(_0x5a8dd5){const _0x10b65a=_0x49fd6b;return _0x5a8dd5[_0x10b65a(0xcd)]()[_0x10b65a(0xcc)]();}function _0x41eb(_0x4afdd6,_0x26bbf5){const _0x33de48=_0x33de();return _0x41eb=function(_0x41ebef,_0x362687){_0x41ebef=_0x41ebef-0xb9;let _0x16e8f0=_0x33de48[_0x41ebef];return _0x16e8f0;},_0x41eb(_0x4afdd6,_0x26bbf5);}function _0x33de(){const _0x56be78=['123BWqQSl','_saveToSessionStorage','35shDQXm','prompt','length','last','158622llFTEN','stringify','_loadFromSessionStorage','parse','getItem','2113905AMwruR','CKEditor/AIFormView/PromptHistory','12648rdVNgN','addMany','map','remove','setItem','24RQUGeC','3355860ezcQbT','add','549371HXIiHq','929124DTtnCK','trim','toLowerCase','1998639rUIypi'];_0x33de=function(){return _0x56be78;};return _0x33de();}
@@ -7,7 +7,7 @@
7
7
  * @publicApi
8
8
  */
9
9
  import { Command, type Editor } from 'ckeditor5/src/core.js';
10
- import type { GroupDefinition } from '../aiassistant.js';
10
+ import type { CommandDefinition } from '../aiassistant.js';
11
11
  /**
12
12
  * Command that shows the AI Assistant user interface.
13
13
  */
@@ -21,7 +21,7 @@ export default class ShowAIAssistantCommand extends Command {
21
21
  /**
22
22
  * Creates an instance of the command.
23
23
  */
24
- constructor(editor: Editor, definitions?: Array<GroupDefinition>);
24
+ constructor(editor: Editor, commandDefinitions: Array<CommandDefinition>);
25
25
  /**
26
26
  * @inheritDoc
27
27
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb0d5fb=_0x45fa;function _0x45fa(_0x26fee1,_0x590456){const _0x36d2d5=_0x36d2();return _0x45fa=function(_0x45fa0a,_0x1136a9){_0x45fa0a=_0x45fa0a-0x92;let _0xdfb956=_0x36d2d5[_0x45fa0a];return _0xdfb956;},_0x45fa(_0x26fee1,_0x590456);}(function(_0x59026a,_0x275036){const _0x3cd01e=_0x45fa,_0x71e10b=_0x59026a();while(!![]){try{const _0x404a83=-parseInt(_0x3cd01e(0xbe))/0x1+-parseInt(_0x3cd01e(0x98))/0x2*(parseInt(_0x3cd01e(0xbf))/0x3)+parseInt(_0x3cd01e(0xbd))/0x4+parseInt(_0x3cd01e(0xb5))/0x5+parseInt(_0x3cd01e(0xbc))/0x6*(parseInt(_0x3cd01e(0xb3))/0x7)+parseInt(_0x3cd01e(0x96))/0x8+-parseInt(_0x3cd01e(0xa3))/0x9*(parseInt(_0x3cd01e(0x92))/0xa);if(_0x404a83===_0x275036)break;else _0x71e10b['push'](_0x71e10b['shift']());}catch(_0x47c4ff){_0x71e10b['push'](_0x71e10b['shift']());}}}(_0x36d2,0x3a8f4));import{Command as _0x47322a}from'ckeditor5/src/core.js';function _0x36d2(){const _0x313a5d=['reduce','from','isCollapsed','showUI','246AbKull','1370128ckXTjE','464302ZoyiTS','186aTZXfI','291910hieSrq','_hasContext','includes','getItems','1363520lPpbIi','ai.aiAssistant.disabledElements','6238txINdd','element','isEnabled','add','commands','model','refresh','concat','change:isEnabled','document','enabledCommandsIds','99XAoxiG','getSelectedBlocks','getRanges','execute','name','change:_hasContext','length','_commandDefinitions','plugins','custom','editor','isEmpty','config','getFirstRange','hasContent','requiresContent','47516qcMhRA','get','2136805HEXOkI','selection','set'];_0x36d2=function(){return _0x313a5d;};return _0x36d2();}import _0x52f2a1 from'../aiassistantui.js';export default class x extends _0x47322a{constructor(_0x3b0831,_0x457a35){const _0x3313ec=_0x45fa;super(_0x3b0831),this[_0x3313ec(0xaa)]=_0x457a35?_0x457a35[_0x3313ec(0xb8)]((_0x33f5d0,_0x5c40a7)=>_0x33f5d0[_0x3313ec(0x9f)](_0x5c40a7[_0x3313ec(0x9c)]),new Array()):[],this[_0x3313ec(0xb7)](_0x3313ec(0xa2),[]),this['on'](_0x3313ec(0xa8),(_0x36fc54,_0x5351c8,_0x32e4a7)=>{const _0x2b44eb=_0x3313ec;this[_0x2b44eb(0x9a)]&&(this[_0x2b44eb(0xa2)]=K(this[_0x2b44eb(0xaa)],_0x32e4a7));}),this[_0x3313ec(0xb7)](_0x3313ec(0x93),!0x1),this['on'](_0x3313ec(0xa0),(_0x137508,_0x1ab0de,_0x3eb4c9)=>{const _0x4a49a8=_0x3313ec;this[_0x4a49a8(0xa2)]=_0x3eb4c9?K(this[_0x4a49a8(0xaa)],this[_0x4a49a8(0x93)]):[];});}[_0xb0d5fb(0x9e)](){const _0x2a32ca=_0xb0d5fb,_0xe38f01=this[_0x2a32ca(0xad)][_0x2a32ca(0x9d)];this[_0x2a32ca(0x93)]=function(_0x485b0b){const _0x495ba0=_0x2a32ca,_0x5809d3=_0x485b0b[_0x495ba0(0xa1)][_0x495ba0(0xb6)];return _0x5809d3[_0x495ba0(0xba)]?0x0!==[..._0x5809d3[_0x495ba0(0xa4)]()][_0x495ba0(0xa9)]&&![..._0x5809d3[_0x495ba0(0xa4)]()][0x0][_0x495ba0(0xae)]:!!_0x485b0b[_0x495ba0(0xb1)](_0x5809d3[_0x495ba0(0xb0)]());}(_0xe38f01);const _0x318631=_0xe38f01[_0x2a32ca(0xa1)][_0x2a32ca(0xb6)],_0x1f8d11=this[_0x2a32ca(0xad)][_0x2a32ca(0xaf)][_0x2a32ca(0xb4)](_0x2a32ca(0x97));for(const _0xde9f5d of _0x318631[_0x2a32ca(0xa5)]())for(const _0x55f2f2 of _0xde9f5d[_0x2a32ca(0x95)]())if(_0x55f2f2['is'](_0x2a32ca(0x99))&&_0x1f8d11[_0x2a32ca(0x94)](_0x55f2f2[_0x2a32ca(0xa7)]))return void(this[_0x2a32ca(0x9a)]=!0x1);this[_0x2a32ca(0x9a)]=!0x0;}[_0xb0d5fb(0xa6)](_0x4c4547='',_0x49f87a='',_0x39c583=_0xb0d5fb(0xac)){const _0x322571=_0xb0d5fb;this[_0x322571(0xad)][_0x322571(0xab)][_0x322571(0xb4)](_0x52f2a1)[_0x322571(0xbb)](_0x4c4547,_0x49f87a,_0x39c583);}}function K(_0x40f496,_0x5f1504){const _0x1374c0=_0xb0d5fb,_0x4c8c23=new Set();for(const _0x53dc2d of _0x40f496)(_0x5f1504||!0x1===_0x53dc2d[_0x1374c0(0xb2)])&&_0x4c8c23[_0x1374c0(0x9b)](_0x53dc2d['id']);return Array[_0x1374c0(0xb9)](_0x4c8c23);}
23
+ function _0x195a(_0x58b852,_0x5c4bfa){const _0x2afeb0=_0x2afe();return _0x195a=function(_0x195ab2,_0x59f173){_0x195ab2=_0x195ab2-0x1d2;let _0x4fc6d2=_0x2afeb0[_0x195ab2];return _0x4fc6d2;},_0x195a(_0x58b852,_0x5c4bfa);}const _0x3ba667=_0x195a;(function(_0x97f3e,_0x3f4cbe){const _0x67dead=_0x195a,_0x1e6070=_0x97f3e();while(!![]){try{const _0x5285f5=parseInt(_0x67dead(0x1e8))/0x1*(parseInt(_0x67dead(0x1f8))/0x2)+-parseInt(_0x67dead(0x1f2))/0x3*(parseInt(_0x67dead(0x1d4))/0x4)+-parseInt(_0x67dead(0x1d3))/0x5+-parseInt(_0x67dead(0x1f5))/0x6*(-parseInt(_0x67dead(0x1f1))/0x7)+parseInt(_0x67dead(0x1f6))/0x8+parseInt(_0x67dead(0x1da))/0x9+-parseInt(_0x67dead(0x1fd))/0xa;if(_0x5285f5===_0x3f4cbe)break;else _0x1e6070['push'](_0x1e6070['shift']());}catch(_0x5ee837){_0x1e6070['push'](_0x1e6070['shift']());}}}(_0x2afe,0x3b6e3));import{Command as _0x1562d3}from'ckeditor5/src/core.js';import _0x320103 from'../aiassistantui.js';export default class C extends _0x1562d3{constructor(_0x320eb6,_0x1bfcc5){const _0x4d0333=_0x195a;super(_0x320eb6),this[_0x4d0333(0x1e3)]=_0x1bfcc5,this[_0x4d0333(0x1f3)](_0x4d0333(0x1f9),[]),this['on'](_0x4d0333(0x1e5),(_0x18923f,_0x21b39d,_0x464618)=>{const _0x68067=_0x4d0333;this[_0x68067(0x1d7)]&&(this[_0x68067(0x1f9)]=F(this[_0x68067(0x1e3)],_0x464618));}),this[_0x4d0333(0x1f3)](_0x4d0333(0x1dd),!0x1),this['on'](_0x4d0333(0x1dc),(_0x275eee,_0x231a63,_0x415a65)=>{const _0x569f7a=_0x4d0333;this[_0x569f7a(0x1f9)]=_0x415a65?F(this[_0x569f7a(0x1e3)],this[_0x569f7a(0x1dd)]):[];});}[_0x3ba667(0x1ef)](){const _0x502b8f=_0x3ba667,_0x5340f1=this[_0x502b8f(0x1fc)][_0x502b8f(0x1e6)];this[_0x502b8f(0x1dd)]=function(_0xfa8f29){const _0x5ef06a=_0x502b8f,_0x1cab25=_0xfa8f29[_0x5ef06a(0x1d9)][_0x5ef06a(0x1d8)];return _0x1cab25[_0x5ef06a(0x1e2)]?0x0!==[..._0x1cab25[_0x5ef06a(0x1eb)]()][_0x5ef06a(0x1d6)]&&![..._0x1cab25[_0x5ef06a(0x1eb)]()][0x0][_0x5ef06a(0x1e4)]:!!_0xfa8f29[_0x5ef06a(0x1ee)](_0x1cab25[_0x5ef06a(0x1d5)]());}(_0x5340f1);const _0x2b5f42=_0x5340f1[_0x502b8f(0x1d9)][_0x502b8f(0x1d8)],_0x2feb25=this[_0x502b8f(0x1fc)][_0x502b8f(0x1f0)][_0x502b8f(0x1ec)](_0x502b8f(0x1ea));for(const _0x39f254 of _0x2b5f42[_0x502b8f(0x1db)]())for(const _0x47d856 of _0x39f254[_0x502b8f(0x1e1)]())if(_0x47d856['is'](_0x502b8f(0x1f7))&&_0x2feb25[_0x502b8f(0x1ed)](_0x47d856[_0x502b8f(0x1f4)]))return void(this[_0x502b8f(0x1d7)]=!0x1);this[_0x502b8f(0x1d7)]=!0x0;}[_0x3ba667(0x1d2)](_0x1c25bc='',_0x40b098='',_0x4440d9=_0x3ba667(0x1e9)){const _0x197adc=_0x3ba667;this[_0x197adc(0x1fc)][_0x197adc(0x1de)][_0x197adc(0x1ec)](_0x320103)[_0x197adc(0x1fb)](_0x1c25bc,_0x40b098,_0x4440d9);}}function F(_0x151612,_0x208e46){const _0x33a29b=_0x3ba667,_0x1f9cee=new Set();for(const _0x4bb7e8 of _0x151612[_0x33a29b(0x1e7)]())(_0x208e46||!0x1===_0x4bb7e8[_0x33a29b(0x1df)])&&_0x1f9cee[_0x33a29b(0x1e0)](_0x4bb7e8['id']);return Array[_0x33a29b(0x1fa)](_0x1f9cee);}function _0x2afe(){const _0x51470c=['set','name','72264oXooVH','1668656YeoKiy','element','122776mjKheD','enabledCommandsIds','from','showUI','editor','4323630JjfMZo','execute','992255aDwuLE','484076HhvPEy','getFirstRange','length','isEnabled','selection','document','1607742UjaBgw','getRanges','change:isEnabled','_hasContext','plugins','requiresContent','add','getItems','isCollapsed','_commandDefinitions','isEmpty','change:_hasContext','model','values','5mbWxOB','custom','ai.aiAssistant.disabledElements','getSelectedBlocks','get','includes','hasContent','refresh','config','175qsldbZ','3vheWhU'];_0x2afe=function(){return _0x51470c;};return _0x2afe();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x22ae7e,_0x373d0c,_0x317c17){const t=_0x22ae7e['t'];switch(_0x373d0c){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'%0\x20commands\x20found':return t('%0\x20commands\x20found',_0x317c17);case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x317c17);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',_0x317c17);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x317c17);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'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');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'},_0x317c17);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 _0x373d0c;}}
23
+ export function getTranslation(_0xac4d,_0x3ba31e,_0x17deeb){const t=_0xac4d['t'];switch(_0x3ba31e){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',_0x17deeb);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x17deeb);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'},_0x17deeb);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 _0x3ba31e;}}
package/theme/ai.css CHANGED
@@ -15,7 +15,7 @@
15
15
  --ck-ai-form-submit-button-border-color: transparent;
16
16
  --ck-ai-form-submit-button-disabled-border-color: transparent;
17
17
  --ck-ai-toolbar-button-hover-color: var(--ck-color-text);
18
- --ck-color-ai-selection: hsla(201, 100%, 56%, 0.3);
18
+ --ck-color-ai-selection: hsla(201, 100%, 56%, 0.3);
19
19
  }
20
20
 
21
21
  /* Note: This class name is mentioned in the guide and acts like a public API. */
@@ -24,7 +24,7 @@
24
24
  --ck-color-button-default-active-background: hsl(262.1,100%,96.3%);
25
25
 
26
26
  --ck-color-button-on-background: hsl(262.1,100%,96.3%);
27
- --ck-color-button-on-hover-background: hsl(262.5,60%,92.2%);
27
+ --ck-color-button-on-hover-background: hsl(262.1,100%,96.3%);
28
28
  --ck-color-button-on-active-background: hsl(262.1,100%,96.3%);
29
29
  --ck-color-button-on-disabled-background: hsl(262.1,100%,96.3%);
30
30
  --ck-color-button-on-color: hsl(263.2,59.2%,52%);
@@ -42,7 +42,7 @@
42
42
  --ck-ai-form-submit-button-disabled-border-color: var(--ck-color-button-action-disabled-background);
43
43
  --ck-ai-toolbar-button-hover-color: var(--ck-color-button-on-color);
44
44
 
45
- --ck-color-ai-selection: hsl(262.5,60%,90%);
45
+ --ck-color-ai-selection: hsl(262.5,60%,90%);
46
46
  }
47
47
 
48
48
  /*
@@ -1,37 +0,0 @@
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
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module ai/ui/aicommandslistview
11
- */
12
- import { ListView, type FilteredView } from 'ckeditor5/src/ui.js';
13
- import type { Locale } from 'ckeditor5/src/utils.js';
14
- /**
15
- * A list view that displays a list of AI commands with filtering capabilities.
16
- *
17
- * @private
18
- */
19
- export default class AICommandsListView extends ListView implements FilteredView {
20
- /**
21
- * An array with ids of the enabled AI commands.
22
- *
23
- * @observable
24
- */
25
- enabledCommandsIds: Array<string>;
26
- /**
27
- * Creates an instance of the {@link module:ai/ui/aicommandslistview~AICommandsListView} class.
28
- */
29
- constructor(locale: Locale);
30
- /**
31
- * @inheritDoc
32
- */
33
- filter(regExp: RegExp | null): {
34
- resultsCount: number;
35
- totalItemsCount: number;
36
- };
37
- }
@@ -1,33 +0,0 @@
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/ui/aicommandslistview
7
- */
8
- import { ListView, type FilteredView } from 'ckeditor5/src/ui.js';
9
- import type { Locale } from 'ckeditor5/src/utils.js';
10
- /**
11
- * A list view that displays a list of AI commands with filtering capabilities.
12
- *
13
- * @private
14
- */
15
- export default class AICommandsListView extends ListView implements FilteredView {
16
- /**
17
- * An array with ids of the enabled AI commands.
18
- *
19
- * @observable
20
- */
21
- enabledCommandsIds: Array<string>;
22
- /**
23
- * Creates an instance of the {@link module:ai/ui/aicommandslistview~AICommandsListView} class.
24
- */
25
- constructor(locale: Locale);
26
- /**
27
- * @inheritDoc
28
- */
29
- filter(regExp: RegExp | null): {
30
- resultsCount: number;
31
- totalItemsCount: number;
32
- };
33
- }