@ckeditor/ckeditor5-ai 46.0.0-alpha.1 → 46.0.0-alpha.3

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 (171) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/adapters/aiadapter.js +1 -1
  151. package/src/adapters/aitextadapter.js +1 -1
  152. package/src/adapters/awstextadapter.js +1 -1
  153. package/src/adapters/openaitextadapter.d.ts +1 -2
  154. package/src/adapters/openaitextadapter.js +1 -1
  155. package/src/aiassistant.js +1 -1
  156. package/src/aiassistantediting.js +1 -1
  157. package/src/aiassistantui.js +1 -1
  158. package/src/index.js +1 -1
  159. package/src/legacyerrors.js +1 -1
  160. package/src/ui/aiassistantcontroller.js +2 -2
  161. package/src/ui/form/aiformcontentarea.js +1 -1
  162. package/src/ui/form/aiformerrorview.js +1 -1
  163. package/src/ui/form/aiformpromptview.js +1 -1
  164. package/src/ui/form/aiformtoolbarview.js +1 -1
  165. package/src/ui/form/aiformview.js +1 -1
  166. package/src/ui/form/aihistorylistitemview.js +1 -1
  167. package/src/ui/form/aihistorylistview.js +1 -1
  168. package/src/ui/form/prompthistory.js +1 -1
  169. package/src/ui/showaiassistantcommand.js +1 -1
  170. package/src/utils/common-translations.js +1 -1
  171. package/src/utils/normalizecommandsconfig.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x499939=_0x5184;(function(_0x221db3,_0x5ed16d){const _0x2497d2=_0x5184,_0x18a7ae=_0x221db3();while(!![]){try{const _0x5284a0=-parseInt(_0x2497d2(0x17f))/0x1+parseInt(_0x2497d2(0x1af))/0x2+parseInt(_0x2497d2(0x1c4))/0x3*(parseInt(_0x2497d2(0x184))/0x4)+parseInt(_0x2497d2(0x1ad))/0x5*(-parseInt(_0x2497d2(0x1ba))/0x6)+-parseInt(_0x2497d2(0x182))/0x7*(parseInt(_0x2497d2(0x18d))/0x8)+-parseInt(_0x2497d2(0x1a9))/0x9+parseInt(_0x2497d2(0x17e))/0xa;if(_0x5284a0===_0x5ed16d)break;else _0x18a7ae['push'](_0x18a7ae['shift']());}catch(_0x23268b){_0x18a7ae['push'](_0x18a7ae['shift']());}}}(_0x4f55,0x2868d));import{global as _0x12ab0f}from'ckeditor5/src/utils.js';function _0x5184(_0x535f82,_0x467f88){const _0x4f5501=_0x4f55();return _0x5184=function(_0x5184b8,_0x2599b2){_0x5184b8=_0x5184b8-0x172;let _0x486eab=_0x4f5501[_0x5184b8];return _0x486eab;},_0x5184(_0x535f82,_0x467f88);}import{View as _0x3a9f94,ButtonView as _0x5393a9,SpinnerView as _0x249047}from'ckeditor5/src/ui.js';import{IconCheck as _0x2b3ff5,IconCopy as _0x5621fe}from'ckeditor5/src/icons.js';function _0x4f55(){const _0xe06db6=['<span>]</span>','render','smooth','504453vpxjWo','locale','ck-hidden','isProcessing','setStartAfter','ck-ai-form__content-area','focus','isVisible','execCommand','addRange','body','absolute','clipboard','ck-ai-form__content-area-wrapper','_createCopyButton','3281730sHUscl','123963uoeIYp','text/html','ck-ai-form__loader','1141nbPOXt','<span>[</span>','4KEbAbZ','text/plain','value','ClipboardItem','remove','mousedown','ck-ai-form__content-area--processing','left','ck-content','13528EXSuKV','ck-ai-form__content-field','_createLoader','createRange','copy','textContent','appendChild','setContent','firstElementChild','change:isProcessing','scrollHeight','ck-reset_all-excluded','getSelection','appendLoader','.ck-ai-form__loader','createElement','copyButtonView','set','div','bind','isEnabled','execute','listenTo','style','innerHTML','write','loaderView','contentFieldView','2073834IcZIlk','scrollTo','removeAllRanges','querySelector','290WYKbRd','bindTemplate','610726CByzeG','setTemplate','\x20ck-ai-form__copy-button--copied','Copy','AI\x20is\x20writing...','position','wheel','setEndBefore','change:value','ck-ai-form__copy-button','class','636HmACmo','-9999px','ck-ai-form__copy-button-wrapper','element','lastElementChild','icon','_copyHTMLToClipboard'];_0x4f55=function(){return _0xe06db6;};return _0x4f55();}import{getTranslation as _0x283340}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x3a9f94{[_0x499939(0x1a8)];[_0x499939(0x19d)];constructor(_0x352ede,_0x5b3975=''){const _0x6755b=_0x499939;super(_0x352ede),this[_0x6755b(0x19e)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x3e2bf1=this[_0x6755b(0x1ae)];this[_0x6755b(0x1a8)]=new ContentFieldView(_0x352ede,_0x5b3975),this[_0x6755b(0x19d)]=this[_0x6755b(0x17d)](),this[_0x6755b(0x1b0)]({'tag':_0x6755b(0x19f),'attributes':{'class':['ck',_0x6755b(0x17c),_0x3e2bf1['if'](_0x6755b(0x176),_0x6755b(0x1c6),_0x357480=>!_0x357480)],'tabindex':'-1'},'children':[{'tag':_0x6755b(0x19f),'attributes':{'class':['ck',_0x6755b(0x174),_0x3e2bf1['if'](_0x6755b(0x172),_0x6755b(0x18a))]},'children':[this[_0x6755b(0x1a8)],{'tag':_0x6755b(0x19f),'attributes':{'class':['ck',_0x6755b(0x1bc)]},'children':[this[_0x6755b(0x19d)]]}]}]});}[_0x499939(0x1c2)](){const _0x5e2039=_0x499939;super[_0x5e2039(0x1c2)](),this[_0x5e2039(0x186)]&&this[_0x5e2039(0x1a8)][_0x5e2039(0x194)](this[_0x5e2039(0x186)]);let _0x56c792=!0x1;this['on'](_0x5e2039(0x1b7),(_0x78204a,_0x8a1956,_0x1aea16)=>{const _0x58538d=_0x5e2039,_0xa279c9=!this[_0x58538d(0x1a8)][_0x58538d(0x1bd)][_0x58538d(0x1ac)](_0x58538d(0x19b));this[_0x58538d(0x1a8)][_0x58538d(0x194)](_0x1aea16),this[_0x58538d(0x172)]&&_0xa279c9&&!_0x56c792&&this[_0x58538d(0x1bd)][_0x58538d(0x1aa)]({'top':this[_0x58538d(0x1bd)][_0x58538d(0x197)],'behavior':_0x58538d(0x1c3)});}),this['on'](_0x5e2039(0x196),(_0x5d4c43,_0x46224f,_0x412aed)=>{const _0xa18a93=_0x5e2039;_0x56c792=!0x1,_0x412aed?(this[_0xa18a93(0x186)]=null,this[_0xa18a93(0x1a8)][_0xa18a93(0x19a)]()):this[_0xa18a93(0x186)]||this[_0xa18a93(0x1a8)][_0xa18a93(0x194)]('');}),this[_0x5e2039(0x1a3)](this[_0x5e2039(0x1bd)],_0x5e2039(0x1b5),()=>{_0x56c792=!0x0;}),this[_0x5e2039(0x1a3)](this[_0x5e2039(0x1bd)],_0x5e2039(0x189),()=>{_0x56c792=!0x0;});}[_0x499939(0x175)](){const _0x44381f=_0x499939;this[_0x44381f(0x1bd)][_0x44381f(0x175)]();}[_0x499939(0x17d)](){const _0x199ff8=_0x499939,_0x3cb5c3=this[_0x199ff8(0x1c5)],_0x39abba=new _0x5393a9(this[_0x199ff8(0x1c5)]),_0x24a00c=_0x199ff8(0x1b8);return _0x39abba[_0x199ff8(0x19e)]({'label':_0x283340(_0x3cb5c3,_0x199ff8(0x1b2)),'icon':_0x5621fe,'class':_0x24a00c,'tooltip':!0x0}),_0x39abba[_0x199ff8(0x1a0)](_0x199ff8(0x176))['to'](this,_0x199ff8(0x186),_0x53b54a=>!!_0x53b54a),_0x39abba[_0x199ff8(0x1a0)](_0x199ff8(0x1a1))['to'](this,_0x199ff8(0x172),_0x56da88=>!_0x56da88),_0x39abba['on'](_0x199ff8(0x1a2),()=>{const _0x4bb66e=_0x199ff8;this[_0x4bb66e(0x1c0)](this[_0x4bb66e(0x1a8)][_0x4bb66e(0x1bd)]),_0x39abba[_0x4bb66e(0x1bf)]=_0x2b3ff5,_0x39abba[_0x4bb66e(0x1b9)]=_0x24a00c+_0x4bb66e(0x1b1),this[_0x4bb66e(0x175)](),setTimeout(()=>{const _0x1cf3f2=_0x4bb66e;_0x39abba[_0x1cf3f2(0x1bf)]=_0x5621fe,_0x39abba[_0x1cf3f2(0x1b9)]=_0x24a00c;},0x3e8);}),_0x39abba;}[_0x499939(0x1c0)](_0xbe2416){const _0x5fc1b2=_0x499939,{window:_0x2fa88d,document:_0x3f9195}=_0x12ab0f;if(_0x2fa88d[_0x5fc1b2(0x187)]){const {Blob:_0x4fd360,ClipboardItem:_0x9686d1}=_0x2fa88d,_0x5eb7bd=[new _0x9686d1({'text/html':new _0x4fd360([_0xbe2416[_0x5fc1b2(0x1a5)]],{'type':_0x5fc1b2(0x180)}),'text/plain':new _0x4fd360([_0xbe2416[_0x5fc1b2(0x192)]||''],{'type':_0x5fc1b2(0x185)})})];navigator[_0x5fc1b2(0x17b)][_0x5fc1b2(0x1a6)](_0x5eb7bd);}else{const _0x17cd35=_0x3f9195[_0x5fc1b2(0x19c)](_0x5fc1b2(0x19f));_0x17cd35[_0x5fc1b2(0x1a4)][_0x5fc1b2(0x1b4)]=_0x5fc1b2(0x17a),_0x17cd35[_0x5fc1b2(0x1a4)][_0x5fc1b2(0x18b)]=_0x5fc1b2(0x1bb),_0x17cd35[_0x5fc1b2(0x1a5)]=_0x5fc1b2(0x183)+_0xbe2416[_0x5fc1b2(0x1a5)]+_0x5fc1b2(0x1c1),_0x3f9195[_0x5fc1b2(0x179)][_0x5fc1b2(0x193)](_0x17cd35);const _0x294b91=_0x3f9195[_0x5fc1b2(0x190)]();_0x294b91[_0x5fc1b2(0x173)](_0x17cd35[_0x5fc1b2(0x195)]),_0x294b91[_0x5fc1b2(0x1b6)](_0x17cd35[_0x5fc1b2(0x1be)]);const _0x1077cb=_0x2fa88d[_0x5fc1b2(0x199)]();_0x1077cb[_0x5fc1b2(0x1ab)](),_0x1077cb[_0x5fc1b2(0x178)](_0x294b91),_0x3f9195[_0x5fc1b2(0x177)](_0x5fc1b2(0x191)),_0x17cd35[_0x5fc1b2(0x188)]();}}}export class ContentFieldView extends _0x3a9f94{constructor(_0x3bddaf,_0x6f4479=''){const _0x17b004=_0x499939;super(_0x3bddaf),this[_0x17b004(0x1a7)]=this[_0x17b004(0x18f)](),this[_0x17b004(0x1b0)]({'tag':_0x17b004(0x19f),'attributes':{'class':['ck',_0x17b004(0x18c),_0x6f4479,_0x17b004(0x198),_0x17b004(0x18e)]}});}[_0x499939(0x194)](_0x4f63d6){const _0x356aee=_0x499939;this[_0x356aee(0x1bd)][_0x356aee(0x1a5)]=_0x4f63d6;}[_0x499939(0x19a)](){const _0x3fec76=_0x499939;this[_0x3fec76(0x1bd)][_0x3fec76(0x193)](this[_0x3fec76(0x1a7)][_0x3fec76(0x1bd)]);}[_0x499939(0x18f)](){const _0x19b16e=_0x499939,_0x41e573=new _0x3a9f94(),_0x1bd44a=this[_0x19b16e(0x1c5)],_0x44e5b4=new _0x249047();return _0x44e5b4[_0x19b16e(0x176)]=!0x0,_0x41e573[_0x19b16e(0x1b0)]({'tag':_0x19b16e(0x19f),'attributes':{'class':['ck',_0x19b16e(0x181)]},'children':[_0x44e5b4,{'text':_0x283340(_0x1bd44a,_0x19b16e(0x1b3))}]}),_0x41e573[_0x19b16e(0x1c2)](),_0x41e573;}}
23
+ const _0x46218d=_0x302a;(function(_0xcbe10a,_0x943caa){const _0x525102=_0x302a,_0x4c2522=_0xcbe10a();while(!![]){try{const _0x39d5d0=-parseInt(_0x525102(0x1fc))/0x1*(-parseInt(_0x525102(0x215))/0x2)+parseInt(_0x525102(0x224))/0x3+parseInt(_0x525102(0x21f))/0x4*(parseInt(_0x525102(0x1e4))/0x5)+-parseInt(_0x525102(0x1e9))/0x6+-parseInt(_0x525102(0x20a))/0x7+-parseInt(_0x525102(0x1f9))/0x8+parseInt(_0x525102(0x1db))/0x9;if(_0x39d5d0===_0x943caa)break;else _0x4c2522['push'](_0x4c2522['shift']());}catch(_0x54a0ad){_0x4c2522['push'](_0x4c2522['shift']());}}}(_0x1eb5,0xcb74d));import{global as _0x41a528}from'ckeditor5/src/utils.js';function _0x302a(_0x56b93d,_0x1efffa){const _0x1eb5f4=_0x1eb5();return _0x302a=function(_0x302a0b,_0x27f6bb){_0x302a0b=_0x302a0b-0x1d7;let _0x49cc2b=_0x1eb5f4[_0x302a0b];return _0x49cc2b;},_0x302a(_0x56b93d,_0x1efffa);}import{View as _0x5f14f7,ButtonView as _0x1dd376,SpinnerView as _0x1838bd}from'ckeditor5/src/ui.js';function _0x1eb5(){const _0x109fca=['setStartAfter','\x20ck-ai-form__copy-button--copied','8538066veJAWm','_createLoader','AI\x20is\x20writing...','ck-ai-form__copy-button','Copy','ck-ai-form__content-field','<span>]</span>','addRange','contentFieldView','wheel','listenTo','style','copy','render','position','firstElementChild','5092400LSERHW','element','querySelector','1CvJwQu','scrollHeight','icon','createElement','ck-ai-form__content-area-wrapper','locale','setEndBefore','scrollTo','value','setTemplate','loaderView','_createCopyButton','change:isProcessing','createRange','10604300kMUhBn','class','isProcessing','isEnabled','text/plain','clipboard','textContent','remove','appendLoader','absolute','ck-reset_all-excluded','2094576xQVMzd','ck-ai-form__content-area--processing','appendChild','ck-hidden','left','getSelection','set','body','focus','lastElementChild','42332Uutnpq','text/html','copyButtonView','_copyHTMLToClipboard','bind','2398368JVJlLL','ck-content','div','.ck-ai-form__loader','<span>[</span>','isVisible','execute','change:value','ck-ai-form__loader','-9999px','write','14858424JIWTfa','setContent','mousedown','smooth','execCommand','bindTemplate','ck-ai-form__copy-button-wrapper','ck-ai-form__content-area','ClipboardItem','430SwVHbV','innerHTML','removeAllRanges'];_0x1eb5=function(){return _0x109fca;};return _0x1eb5();}import{IconCheck as _0x3a5e96,IconCopy as _0x1706f3}from'ckeditor5/src/icons.js';import{getTranslation as _0x328644}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x5f14f7{[_0x46218d(0x1f1)];[_0x46218d(0x221)];constructor(_0x204c7e,_0x7ce362=''){const _0x5875ab=_0x46218d;super(_0x204c7e),this[_0x5875ab(0x21b)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x7475ab=this[_0x5875ab(0x1e0)];this[_0x5875ab(0x1f1)]=new ContentFieldView(_0x204c7e,_0x7ce362),this[_0x5875ab(0x221)]=this[_0x5875ab(0x207)](),this[_0x5875ab(0x205)]({'tag':_0x5875ab(0x226),'attributes':{'class':['ck',_0x5875ab(0x200),_0x7475ab['if'](_0x5875ab(0x229),_0x5875ab(0x218),_0x1d0940=>!_0x1d0940)],'tabindex':'-1'},'children':[{'tag':_0x5875ab(0x226),'attributes':{'class':['ck',_0x5875ab(0x1e2),_0x7475ab['if'](_0x5875ab(0x20c),_0x5875ab(0x216))]},'children':[this[_0x5875ab(0x1f1)],{'tag':_0x5875ab(0x226),'attributes':{'class':['ck',_0x5875ab(0x1e1)]},'children':[this[_0x5875ab(0x221)]]}]}]});}[_0x46218d(0x1f6)](){const _0x4c6c94=_0x46218d;super[_0x4c6c94(0x1f6)](),this[_0x4c6c94(0x204)]&&this[_0x4c6c94(0x1f1)][_0x4c6c94(0x1dc)](this[_0x4c6c94(0x204)]);let _0x5c41e6=!0x1;this['on'](_0x4c6c94(0x1d7),(_0x5cb567,_0x99d286,_0x52dd77)=>{const _0xad3f3b=_0x4c6c94,_0x1e2e5b=!this[_0xad3f3b(0x1f1)][_0xad3f3b(0x1fa)][_0xad3f3b(0x1fb)](_0xad3f3b(0x227));this[_0xad3f3b(0x1f1)][_0xad3f3b(0x1dc)](_0x52dd77),this[_0xad3f3b(0x20c)]&&_0x1e2e5b&&!_0x5c41e6&&this[_0xad3f3b(0x1fa)][_0xad3f3b(0x203)]({'top':this[_0xad3f3b(0x1fa)][_0xad3f3b(0x1fd)],'behavior':_0xad3f3b(0x1de)});}),this['on'](_0x4c6c94(0x208),(_0x450bbb,_0x4181af,_0x513a80)=>{const _0x1d557a=_0x4c6c94;_0x5c41e6=!0x1,_0x513a80?(this[_0x1d557a(0x204)]=null,this[_0x1d557a(0x1f1)][_0x1d557a(0x212)]()):this[_0x1d557a(0x204)]||this[_0x1d557a(0x1f1)][_0x1d557a(0x1dc)]('');}),this[_0x4c6c94(0x1f3)](this[_0x4c6c94(0x1fa)],_0x4c6c94(0x1f2),()=>{_0x5c41e6=!0x0;}),this[_0x4c6c94(0x1f3)](this[_0x4c6c94(0x1fa)],_0x4c6c94(0x1dd),()=>{_0x5c41e6=!0x0;});}[_0x46218d(0x21d)](){const _0x1c6d31=_0x46218d;this[_0x1c6d31(0x1fa)][_0x1c6d31(0x21d)]();}[_0x46218d(0x207)](){const _0x574f7f=_0x46218d,_0x294e05=this[_0x574f7f(0x201)],_0x558f18=new _0x1dd376(this[_0x574f7f(0x201)]),_0x31eec8=_0x574f7f(0x1ec);return _0x558f18[_0x574f7f(0x21b)]({'label':_0x328644(_0x294e05,_0x574f7f(0x1ed)),'icon':_0x1706f3,'class':_0x31eec8,'tooltip':!0x0}),_0x558f18[_0x574f7f(0x223)](_0x574f7f(0x229))['to'](this,_0x574f7f(0x204),_0x18c92b=>!!_0x18c92b),_0x558f18[_0x574f7f(0x223)](_0x574f7f(0x20d))['to'](this,_0x574f7f(0x20c),_0x4a9dda=>!_0x4a9dda),_0x558f18['on'](_0x574f7f(0x22a),()=>{const _0x6d1c9d=_0x574f7f;this[_0x6d1c9d(0x222)](this[_0x6d1c9d(0x1f1)][_0x6d1c9d(0x1fa)]),_0x558f18[_0x6d1c9d(0x1fe)]=_0x3a5e96,_0x558f18[_0x6d1c9d(0x20b)]=_0x31eec8+_0x6d1c9d(0x1e8),this[_0x6d1c9d(0x21d)](),setTimeout(()=>{const _0x1d8a7b=_0x6d1c9d;_0x558f18[_0x1d8a7b(0x1fe)]=_0x1706f3,_0x558f18[_0x1d8a7b(0x20b)]=_0x31eec8;},0x3e8);}),_0x558f18;}[_0x46218d(0x222)](_0x1d5524){const _0x5dd8f6=_0x46218d,{window:_0x128e98,document:_0x231ac8}=_0x41a528;if(_0x128e98[_0x5dd8f6(0x1e3)]){const {Blob:_0x4a4dbf,ClipboardItem:_0x5a6fe8}=_0x128e98,_0x3757f5=[new _0x5a6fe8({'text/html':new _0x4a4dbf([_0x1d5524[_0x5dd8f6(0x1e5)]],{'type':_0x5dd8f6(0x220)}),'text/plain':new _0x4a4dbf([_0x1d5524[_0x5dd8f6(0x210)]||''],{'type':_0x5dd8f6(0x20e)})})];navigator[_0x5dd8f6(0x20f)][_0x5dd8f6(0x1da)](_0x3757f5);}else{const _0x462202=_0x231ac8[_0x5dd8f6(0x1ff)](_0x5dd8f6(0x226));_0x462202[_0x5dd8f6(0x1f4)][_0x5dd8f6(0x1f7)]=_0x5dd8f6(0x213),_0x462202[_0x5dd8f6(0x1f4)][_0x5dd8f6(0x219)]=_0x5dd8f6(0x1d9),_0x462202[_0x5dd8f6(0x1e5)]=_0x5dd8f6(0x228)+_0x1d5524[_0x5dd8f6(0x1e5)]+_0x5dd8f6(0x1ef),_0x231ac8[_0x5dd8f6(0x21c)][_0x5dd8f6(0x217)](_0x462202);const _0x181c77=_0x231ac8[_0x5dd8f6(0x209)]();_0x181c77[_0x5dd8f6(0x1e7)](_0x462202[_0x5dd8f6(0x1f8)]),_0x181c77[_0x5dd8f6(0x202)](_0x462202[_0x5dd8f6(0x21e)]);const _0x33b6ba=_0x128e98[_0x5dd8f6(0x21a)]();_0x33b6ba[_0x5dd8f6(0x1e6)](),_0x33b6ba[_0x5dd8f6(0x1f0)](_0x181c77),_0x231ac8[_0x5dd8f6(0x1df)](_0x5dd8f6(0x1f5)),_0x462202[_0x5dd8f6(0x211)]();}}}export class ContentFieldView extends _0x5f14f7{constructor(_0x34df9d,_0x2e7a77=''){const _0x23b58f=_0x46218d;super(_0x34df9d),this[_0x23b58f(0x206)]=this[_0x23b58f(0x1ea)](),this[_0x23b58f(0x205)]({'tag':_0x23b58f(0x226),'attributes':{'class':['ck',_0x23b58f(0x225),_0x2e7a77,_0x23b58f(0x214),_0x23b58f(0x1ee)]}});}[_0x46218d(0x1dc)](_0x5151de){const _0x20c331=_0x46218d;this[_0x20c331(0x1fa)][_0x20c331(0x1e5)]=_0x5151de;}[_0x46218d(0x212)](){const _0x4f7513=_0x46218d;this[_0x4f7513(0x1fa)][_0x4f7513(0x217)](this[_0x4f7513(0x206)][_0x4f7513(0x1fa)]);}[_0x46218d(0x1ea)](){const _0xa268f8=_0x46218d,_0x24a9e1=new _0x5f14f7(),_0x2d5e8=this[_0xa268f8(0x201)],_0x44bf6a=new _0x1838bd();return _0x44bf6a[_0xa268f8(0x229)]=!0x0,_0x24a9e1[_0xa268f8(0x205)]({'tag':_0xa268f8(0x226),'attributes':{'class':['ck',_0xa268f8(0x1d8)]},'children':[_0x44bf6a,{'text':_0x328644(_0x2d5e8,_0xa268f8(0x1eb))}]}),_0x24a9e1[_0xa268f8(0x1f6)](),_0x24a9e1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x7a83a,_0x2dc797){const _0x360fcd=_0x1374,_0x4b4451=_0x7a83a();while(!![]){try{const _0x477acc=-parseInt(_0x360fcd(0x176))/0x1*(parseInt(_0x360fcd(0x17e))/0x2)+-parseInt(_0x360fcd(0x179))/0x3+-parseInt(_0x360fcd(0x174))/0x4+parseInt(_0x360fcd(0x16f))/0x5*(-parseInt(_0x360fcd(0x170))/0x6)+parseInt(_0x360fcd(0x178))/0x7*(-parseInt(_0x360fcd(0x177))/0x8)+-parseInt(_0x360fcd(0x17a))/0x9*(parseInt(_0x360fcd(0x17b))/0xa)+parseInt(_0x360fcd(0x171))/0xb;if(_0x477acc===_0x2dc797)break;else _0x4b4451['push'](_0x4b4451['shift']());}catch(_0x2d9c70){_0x4b4451['push'](_0x4b4451['shift']());}}}(_0x5350,0x94f7f));import{IconError as _0x315fd4}from'ckeditor5/src/icons.js';import{View as _0x457bd1,IconView as _0x34d498}from'ckeditor5/src/ui.js';function _0x5350(){const _0xadf7a0=['54919887LwDfzC','bindTemplate','set','3166808wzjGFG','ck-ai-form__error','2113quCQxA','7632nZdfdt','3850szrKsl','2314461AvRTdz','9FITDhG','10869890ctFZSz','setTemplate','text','4bRFxvt','content','div','6017190XoLtiN','6JXCQUu'];_0x5350=function(){return _0xadf7a0;};return _0x5350();}function _0x1374(_0x4173de,_0x424c98){const _0x535088=_0x5350();return _0x1374=function(_0x13745a,_0xf24d71){_0x13745a=_0x13745a-0x16f;let _0x10b9d9=_0x535088[_0x13745a];return _0x10b9d9;},_0x1374(_0x4173de,_0x424c98);}export class AIFormErrorView extends _0x457bd1{constructor(_0x277706,_0x4af488=''){const _0xd10a64=_0x1374;super(_0x277706);const _0x3e56b1=new _0x34d498(),_0xd6be20=this[_0xd10a64(0x172)];this[_0xd10a64(0x173)](_0xd10a64(0x17d),_0x4af488),_0x3e56b1[_0xd10a64(0x17f)]=_0x315fd4,this[_0xd10a64(0x17c)]({'tag':_0xd10a64(0x180),'attributes':{'class':['ck',_0xd10a64(0x175)]},'children':[_0x3e56b1,{'text':_0xd6be20['to'](_0xd10a64(0x17d))}]});}}
23
+ (function(_0xb12f52,_0x48c2b0){const _0x3784=_0x1599,_0x15fa43=_0xb12f52();while(!![]){try{const _0x411e3f=parseInt(_0x3784(0xe6))/0x1*(-parseInt(_0x3784(0xec))/0x2)+-parseInt(_0x3784(0xee))/0x3+parseInt(_0x3784(0xe9))/0x4*(parseInt(_0x3784(0xe8))/0x5)+-parseInt(_0x3784(0xed))/0x6+parseInt(_0x3784(0xea))/0x7+-parseInt(_0x3784(0xe7))/0x8+parseInt(_0x3784(0xeb))/0x9;if(_0x411e3f===_0x48c2b0)break;else _0x15fa43['push'](_0x15fa43['shift']());}catch(_0x4085b4){_0x15fa43['push'](_0x15fa43['shift']());}}}(_0x50f1,0x32e98));import{IconError as _0xe44a8b}from'ckeditor5/src/icons.js';function _0x1599(_0x380d8f,_0x4b5d46){const _0x50f102=_0x50f1();return _0x1599=function(_0x159996,_0x5b4618){_0x159996=_0x159996-0xe4;let _0x4f623b=_0x50f102[_0x159996];return _0x4f623b;},_0x1599(_0x380d8f,_0x4b5d46);}import{View as _0x3d120c,IconView as _0x1bec64}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x3d120c{constructor(_0x27dd3,_0x118c80=''){const _0x1516f2=_0x1599;super(_0x27dd3);const _0x101426=new _0x1bec64(),_0x4b2cd3=this[_0x1516f2(0xf2)];this[_0x1516f2(0xf3)](_0x1516f2(0xf1),_0x118c80),_0x101426[_0x1516f2(0xef)]=_0xe44a8b,this[_0x1516f2(0xf0)]({'tag':_0x1516f2(0xe4),'attributes':{'class':['ck',_0x1516f2(0xe5)]},'children':[_0x101426,{'text':_0x4b2cd3['to'](_0x1516f2(0xf1))}]});}}function _0x50f1(){const _0x59f772=['setTemplate','text','bindTemplate','set','div','ck-ai-form__error','20469WRGTgb','1873008TUusjq','5fUawbG','1051124avqIrA','2560551BCQlgn','4626819FJlCRO','40mLipoo','977448VpkbfU','383145vqXpae','content'];_0x50f1=function(){return _0x59f772;};return _0x50f1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x570f(_0x172f36,_0x339d0b){const _0x21a2fa=_0x21a2();return _0x570f=function(_0x570f31,_0x32eb1c){_0x570f31=_0x570f31-0xf2;let _0x50da28=_0x21a2fa[_0x570f31];return _0x50da28;},_0x570f(_0x172f36,_0x339d0b);}const _0x191caf=_0x570f;(function(_0x398d69,_0x539c83){const _0x44878d=_0x570f,_0x34c70e=_0x398d69();while(!![]){try{const _0x33f2b0=parseInt(_0x44878d(0x11e))/0x1*(parseInt(_0x44878d(0x10d))/0x2)+-parseInt(_0x44878d(0x104))/0x3+-parseInt(_0x44878d(0x122))/0x4+-parseInt(_0x44878d(0x10e))/0x5+parseInt(_0x44878d(0xfa))/0x6+-parseInt(_0x44878d(0xfd))/0x7+parseInt(_0x44878d(0xf3))/0x8*(parseInt(_0x44878d(0x11f))/0x9);if(_0x33f2b0===_0x539c83)break;else _0x34c70e['push'](_0x34c70e['shift']());}catch(_0x388bc0){_0x34c70e['push'](_0x34c70e['shift']());}}}(_0x21a2,0x91f21));import{Rect as _0x1faeb2,global as _0x487a9a,isVisible as _0x461447}from'ckeditor5/src/utils.js';import{IconHistory as _0x45ef35,IconSubmit as _0x23c222}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x1fe516,ButtonView as _0x35ad30}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b8b24}from'../../utils/common-translations.js';function _0x21a2(){const _0x25073c=['ck-ai-form__submit','fieldView','add','uiLanguageDirection','2107254RDtAwM','isEmpty','children','3084606JfWntB','queryView','keystrokes','focusCycler','submit','History','maxRows','1560201nMTnrQ','target','resultsView','excludeScrollbarsAndBorders','requestAnimationFrame','Submit','execute','enter','isVisible','1370586vNRcUf','4897200wvQkFL','focusLast','ck-ai-form__toggle-history','focusFirst','fieldWrapperChildren','fire','render','isOn','style','left','set','element','width','update','value','right','1aAuMFq','227781vEiPAA','_createShowHistoryButton','locale','2700472GoHSKk','focusableChildren','submitButtonView','bind','minRows','focus','window','showHistoryButtonView','isEnabled','filteredView','688jmzbRO','rtl','_createSubmitButton'];_0x21a2=function(){return _0x25073c;};return _0x21a2();}export class AIFormPromptView extends _0x1fe516{[_0x191caf(0x124)];[_0x191caf(0x129)];constructor(_0x53017a,_0x59844e){const _0x3e2a0a=_0x191caf;super(_0x53017a,_0x59844e),this[_0x3e2a0a(0xfe)][_0x3e2a0a(0xf7)][_0x3e2a0a(0x126)]=0x1,this[_0x3e2a0a(0xfe)][_0x3e2a0a(0xf7)][_0x3e2a0a(0x103)]=0x3,this[_0x3e2a0a(0x124)]=this[_0x3e2a0a(0xf5)](),this[_0x3e2a0a(0x129)]=this[_0x3e2a0a(0x120)](),this[_0x3e2a0a(0x123)][_0x3e2a0a(0xf8)](this[_0x3e2a0a(0x129)],0x1),this[_0x3e2a0a(0x123)][_0x3e2a0a(0xf8)](this[_0x3e2a0a(0x124)]);}[_0x191caf(0x114)](){const _0x18c3c7=_0x191caf;super[_0x18c3c7(0x114)](),this[_0x18c3c7(0xfe)][_0x18c3c7(0x112)][_0x18c3c7(0xf8)](this[_0x18c3c7(0x129)]),this[_0x18c3c7(0xfc)][_0x18c3c7(0xf8)](this[_0x18c3c7(0x124)]),this[_0x18c3c7(0xff)][_0x18c3c7(0x118)](_0x18c3c7(0x10b),(_0x57571f,_0x10e97a)=>{const _0x31dbfc=_0x18c3c7;_0x57571f[_0x31dbfc(0x105)]==this[_0x31dbfc(0xfe)][_0x31dbfc(0xf7)][_0x31dbfc(0x119)]&&(this[_0x31dbfc(0x101)](),_0x10e97a());});}[_0x191caf(0xf5)](){const _0x43db09=_0x191caf,_0x1d0dfb=new _0x35ad30(this[_0x43db09(0x121)]),_0x8964a=this[_0x43db09(0x121)];return _0x1d0dfb[_0x43db09(0x118)]({'icon':_0x23c222,'label':_0x3b8b24(_0x8964a,_0x43db09(0x109)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x43db09(0xf6)}),_0x1d0dfb['on'](_0x43db09(0x10a),()=>{const _0x5bd0a8=_0x43db09;this[_0x5bd0a8(0x101)]();}),_0x1d0dfb[_0x43db09(0x125)](_0x43db09(0x12a))['to'](this[_0x43db09(0xfe)][_0x43db09(0xf7)],_0x43db09(0xfb),this,_0x43db09(0x12a),(_0x2c6fd6,_0x1baf30)=>!_0x2c6fd6&&_0x1baf30),_0x1d0dfb;}[_0x191caf(0x120)](){const _0x14a285=_0x191caf,_0x4f6596=new _0x35ad30(this[_0x14a285(0x121)]),_0x401528=this[_0x14a285(0x106)],_0x218557=this[_0x14a285(0x121)];_0x4f6596[_0x14a285(0x118)]({'label':_0x3b8b24(_0x218557,_0x14a285(0x102)),'withText':!0x1,'icon':_0x45ef35,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x14a285(0x110)}),_0x4f6596[_0x14a285(0x125)](_0x14a285(0x115))['to'](_0x401528,_0x14a285(0x10c)),_0x4f6596[_0x14a285(0x125)](_0x14a285(0x12a))['to'](this,_0x14a285(0x12a)),_0x4f6596['on'](_0x14a285(0x10a),()=>{const _0x182ff1=_0x14a285;_0x401528[_0x182ff1(0x10c)]=!_0x401528[_0x182ff1(0x10c)],_0x401528[_0x182ff1(0x10c)]?this[_0x182ff1(0xf2)][_0x182ff1(0x127)]():this[_0x182ff1(0x127)]();});const _0x362378=()=>{const _0x2ff2cf=_0x14a285;_0x487a9a[_0x2ff2cf(0x128)][_0x2ff2cf(0x108)](()=>{const _0x3ecc40=_0x2ff2cf;if(_0x461447(this[_0x3ecc40(0x119)])){const _0x1c94c2=new _0x1faeb2(this[_0x3ecc40(0xfe)][_0x3ecc40(0xf7)][_0x3ecc40(0x119)]),_0x32f6ee=_0x1c94c2[_0x3ecc40(0x11a)],_0x311592=_0x3ecc40(0xf4)===_0x218557[_0x3ecc40(0xf9)]?_0x3ecc40(0x117):_0x3ecc40(0x11d);_0x1c94c2[_0x3ecc40(0x107)](),_0x4f6596[_0x3ecc40(0x119)][_0x3ecc40(0x116)][_0x311592]=_0x32f6ee-_0x1c94c2[_0x3ecc40(0x11a)]+0x1+'px';}});};return this[_0x14a285(0xfe)][_0x14a285(0xf7)]['on'](_0x14a285(0x11b),_0x362378),this['on'](_0x14a285(0x114),_0x362378),_0x4f6596;}[_0x191caf(0x101)](){const _0x125f25=_0x191caf,_0x492b6f=this[_0x125f25(0xfe)][_0x125f25(0xf7)][_0x125f25(0x119)][_0x125f25(0x11c)];this[_0x125f25(0x113)](_0x125f25(0x101),_0x492b6f);}[_0x191caf(0x127)](_0x563be0){const _0x1233bc=_0x191caf;-0x1===_0x563be0?this[_0x1233bc(0x100)][_0x1233bc(0x10f)]():this[_0x1233bc(0x100)][_0x1233bc(0x111)]();}}
23
+ function _0x51d8(_0x222f87,_0x44662e){const _0x1f5240=_0x1f52();return _0x51d8=function(_0x51d8b1,_0x3217b3){_0x51d8b1=_0x51d8b1-0x123;let _0x421103=_0x1f5240[_0x51d8b1];return _0x421103;},_0x51d8(_0x222f87,_0x44662e);}const _0x461e38=_0x51d8;function _0x1f52(){const _0x2bd412=['6aTHOus','uiLanguageDirection','keystrokes','filteredView','20PYOPYf','_createShowHistoryButton','isOn','element','Submit','submitButtonView','fire','right','4347618ueovOi','isEmpty','5009296ShEhOF','12465Xvmmll','rtl','focus','style','value','add','left','ck-ai-form__submit','1443825JsXGgQ','History','requestAnimationFrame','minRows','isEnabled','fieldWrapperChildren','render','width','bind','target','showHistoryButtonView','235707ZcWYlU','resultsView','_createSubmitButton','focusableChildren','excludeScrollbarsAndBorders','focusLast','maxRows','execute','window','fieldView','update','focusFirst','796AqCqox','children','isVisible','set','locale','focusCycler','ck-ai-form__toggle-history','3491327oNlsfT','queryView','submit','165985enAieH','enter','6NyJtwZ'];_0x1f52=function(){return _0x2bd412;};return _0x1f52();}(function(_0x377a44,_0x3ded06){const _0x15bae9=_0x51d8,_0x5ca2a4=_0x377a44();while(!![]){try{const _0x4fedde=-parseInt(_0x15bae9(0x144))/0x1+-parseInt(_0x15bae9(0x146))/0x2*(-parseInt(_0x15bae9(0x12e))/0x3)+parseInt(_0x15bae9(0x13a))/0x4*(-parseInt(_0x15bae9(0x156))/0x5)+parseInt(_0x15bae9(0x147))/0x6*(-parseInt(_0x15bae9(0x141))/0x7)+parseInt(_0x15bae9(0x155))/0x8+-parseInt(_0x15bae9(0x123))/0x9+parseInt(_0x15bae9(0x14b))/0xa*(parseInt(_0x15bae9(0x153))/0xb);if(_0x4fedde===_0x3ded06)break;else _0x5ca2a4['push'](_0x5ca2a4['shift']());}catch(_0x26ed62){_0x5ca2a4['push'](_0x5ca2a4['shift']());}}}(_0x1f52,0x50d3b));import{Rect as _0x1d18c6,global as _0x2e36db,isVisible as _0x538252}from'ckeditor5/src/utils.js';import{IconHistory as _0x4e70fe,IconSubmit as _0x4b9e8c}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2bcb35,ButtonView as _0x3af624}from'ckeditor5/src/ui.js';import{getTranslation as _0x1f846b}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2bcb35{[_0x461e38(0x150)];[_0x461e38(0x12d)];constructor(_0x218333,_0x3042e3){const _0x3396b0=_0x461e38;super(_0x218333,_0x3042e3),this[_0x3396b0(0x142)][_0x3396b0(0x137)][_0x3396b0(0x126)]=0x1,this[_0x3396b0(0x142)][_0x3396b0(0x137)][_0x3396b0(0x134)]=0x3,this[_0x3396b0(0x150)]=this[_0x3396b0(0x130)](),this[_0x3396b0(0x12d)]=this[_0x3396b0(0x14c)](),this[_0x3396b0(0x131)][_0x3396b0(0x15b)](this[_0x3396b0(0x12d)],0x1),this[_0x3396b0(0x131)][_0x3396b0(0x15b)](this[_0x3396b0(0x150)]);}[_0x461e38(0x129)](){const _0x26a7d9=_0x461e38;super[_0x26a7d9(0x129)](),this[_0x26a7d9(0x142)][_0x26a7d9(0x128)][_0x26a7d9(0x15b)](this[_0x26a7d9(0x12d)]),this[_0x26a7d9(0x13b)][_0x26a7d9(0x15b)](this[_0x26a7d9(0x150)]),this[_0x26a7d9(0x149)][_0x26a7d9(0x13d)](_0x26a7d9(0x145),(_0x4459c8,_0x4714c3)=>{const _0x34bb21=_0x26a7d9;_0x4459c8[_0x34bb21(0x12c)]==this[_0x34bb21(0x142)][_0x34bb21(0x137)][_0x34bb21(0x14e)]&&(this[_0x34bb21(0x143)](),_0x4714c3());});}[_0x461e38(0x130)](){const _0x2c7885=_0x461e38,_0x53e29e=new _0x3af624(this[_0x2c7885(0x13e)]),_0x12ae12=this[_0x2c7885(0x13e)];return _0x53e29e[_0x2c7885(0x13d)]({'icon':_0x4b9e8c,'label':_0x1f846b(_0x12ae12,_0x2c7885(0x14f)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2c7885(0x15d)}),_0x53e29e['on'](_0x2c7885(0x135),()=>{const _0x1df0b9=_0x2c7885;this[_0x1df0b9(0x143)]();}),_0x53e29e[_0x2c7885(0x12b)](_0x2c7885(0x127))['to'](this[_0x2c7885(0x142)][_0x2c7885(0x137)],_0x2c7885(0x154),this,_0x2c7885(0x127),(_0x20860a,_0x3f2b76)=>!_0x20860a&&_0x3f2b76),_0x53e29e;}[_0x461e38(0x14c)](){const _0x47510d=_0x461e38,_0x5ca435=new _0x3af624(this[_0x47510d(0x13e)]),_0x447fda=this[_0x47510d(0x12f)],_0x46153d=this[_0x47510d(0x13e)];_0x5ca435[_0x47510d(0x13d)]({'label':_0x1f846b(_0x46153d,_0x47510d(0x124)),'withText':!0x1,'icon':_0x4e70fe,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x47510d(0x140)}),_0x5ca435[_0x47510d(0x12b)](_0x47510d(0x14d))['to'](_0x447fda,_0x47510d(0x13c)),_0x5ca435[_0x47510d(0x12b)](_0x47510d(0x127))['to'](this,_0x47510d(0x127)),_0x5ca435['on'](_0x47510d(0x135),()=>{const _0x1e42c6=_0x47510d;_0x447fda[_0x1e42c6(0x13c)]=!_0x447fda[_0x1e42c6(0x13c)],_0x447fda[_0x1e42c6(0x13c)]?this[_0x1e42c6(0x14a)][_0x1e42c6(0x158)]():this[_0x1e42c6(0x158)]();});const _0x57b05b=()=>{const _0xec1085=_0x47510d;_0x2e36db[_0xec1085(0x136)][_0xec1085(0x125)](()=>{const _0x3c7d1b=_0xec1085;if(_0x538252(this[_0x3c7d1b(0x14e)])){const _0x33c0e6=new _0x1d18c6(this[_0x3c7d1b(0x142)][_0x3c7d1b(0x137)][_0x3c7d1b(0x14e)]),_0x1c3cf0=_0x33c0e6[_0x3c7d1b(0x12a)],_0xa2de2=_0x3c7d1b(0x157)===_0x46153d[_0x3c7d1b(0x148)]?_0x3c7d1b(0x15c):_0x3c7d1b(0x152);_0x33c0e6[_0x3c7d1b(0x132)](),_0x5ca435[_0x3c7d1b(0x14e)][_0x3c7d1b(0x159)][_0xa2de2]=_0x1c3cf0-_0x33c0e6[_0x3c7d1b(0x12a)]+0x1+'px';}});};return this[_0x47510d(0x142)][_0x47510d(0x137)]['on'](_0x47510d(0x138),_0x57b05b),this['on'](_0x47510d(0x129),_0x57b05b),_0x5ca435;}[_0x461e38(0x143)](){const _0x4da83e=_0x461e38,_0x5678e1=this[_0x4da83e(0x142)][_0x4da83e(0x137)][_0x4da83e(0x14e)][_0x4da83e(0x15a)];this[_0x4da83e(0x151)](_0x4da83e(0x143),_0x5678e1);}[_0x461e38(0x158)](_0x3e8183){const _0x3050c9=_0x461e38;-0x1===_0x3e8183?this[_0x3050c9(0x13f)][_0x3050c9(0x133)]():this[_0x3050c9(0x13f)][_0x3050c9(0x139)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cadf5=_0x4263;(function(_0x4963f3,_0x4517e1){const _0x22769a=_0x4263,_0x1bf215=_0x4963f3();while(!![]){try{const _0x14b786=parseInt(_0x22769a(0x18e))/0x1*(-parseInt(_0x22769a(0x17a))/0x2)+-parseInt(_0x22769a(0x17d))/0x3+parseInt(_0x22769a(0x189))/0x4*(parseInt(_0x22769a(0x197))/0x5)+-parseInt(_0x22769a(0x192))/0x6*(-parseInt(_0x22769a(0x180))/0x7)+parseInt(_0x22769a(0x17f))/0x8*(-parseInt(_0x22769a(0x190))/0x9)+-parseInt(_0x22769a(0x18d))/0xa*(-parseInt(_0x22769a(0x18a))/0xb)+parseInt(_0x22769a(0x199))/0xc*(parseInt(_0x22769a(0x184))/0xd);if(_0x14b786===_0x4517e1)break;else _0x1bf215['push'](_0x1bf215['shift']());}catch(_0x4eedc9){_0x1bf215['push'](_0x1bf215['shift']());}}}(_0x3a46,0xdc074));import{ToolbarView as _0x187506,ButtonView as _0x27b3b0}from'ckeditor5/src/ui.js';function _0x4263(_0x3e9761,_0x307b2c){const _0x3a462a=_0x3a46();return _0x4263=function(_0x4263e5,_0x408fd3){_0x4263e5=_0x4263e5-0x174;let _0x3d2aa1=_0x3a462a[_0x4263e5];return _0x3d2aa1;},_0x4263(_0x3e9761,_0x307b2c);}import{getTranslation as _0x5f823f}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1cadf5(0x183),'INSERT':_0x1cadf5(0x185)};export class AIFormToolbarView extends _0x187506{constructor(_0xeae3e0){const _0xd28d1=_0x1cadf5;super(_0xeae3e0),this[_0xd28d1(0x193)](_0xd28d1(0x178),!0x1),this[_0xd28d1(0x193)](_0xd28d1(0x175),AIFormToolbarViewMainActionLabel[_0xd28d1(0x177)]),this[_0xd28d1(0x181)]=this[_0xd28d1(0x187)]('',_0xd28d1(0x19b)),this[_0xd28d1(0x181)][_0xd28d1(0x17b)](_0xd28d1(0x188))['to'](this,_0xd28d1(0x175),_0xf42bc1=>_0x5f823f(_0xeae3e0,_0xd28d1(0x18c)+_0xf42bc1[_0xd28d1(0x198)]()+_0xd28d1(0x186))),this[_0xd28d1(0x195)]=this[_0xd28d1(0x187)](_0x5f823f(_0xeae3e0,_0xd28d1(0x176))),this[_0xd28d1(0x196)]=this[_0xd28d1(0x187)](_0x5f823f(_0xeae3e0,_0xd28d1(0x194))),this[_0xd28d1(0x191)]=this[_0xd28d1(0x187)](_0x5f823f(_0xeae3e0,_0xd28d1(0x17c)));const _0x3689be=this[_0xd28d1(0x174)];this[_0xd28d1(0x19a)]({'attributes':{'class':[_0xd28d1(0x18b),_0x3689be['if'](_0xd28d1(0x178),_0xd28d1(0x18f),_0x3902d7=>!_0x3902d7)]}}),this[_0xd28d1(0x17e)][_0xd28d1(0x182)]([this[_0xd28d1(0x181)],this[_0xd28d1(0x195)],this[_0xd28d1(0x196)],this[_0xd28d1(0x191)]]);}[_0x1cadf5(0x187)](_0x4d8523,_0x2b7014){const _0x1fb4d2=_0x1cadf5,_0x4c1502=new _0x27b3b0(this[_0x1fb4d2(0x179)]);return _0x4c1502[_0x1fb4d2(0x193)]({'label':_0x4d8523,'class':_0x2b7014||'','isVisible':!0x0,'withText':!0x0}),_0x4c1502;}}function _0x3a46(){const _0xe5cda8=['items','96GdOojj','319123hMsDCn','replaceButton','addMany','replace','11623001qLvBcw','insert','_CONTENT','_createButton','label','24TGJdXs','10119703sVawVa','ck-ai-form__toolbar','AI_','10APgSId','2NUDMRe','ck-hidden','534231ilJGdo','stopButton','42LOddmB','set','Try\x20again','insertButton','tryAgainButton','1258080RfhRCB','toUpperCase','24hqKHUb','extendTemplate','ck-button-action','bindTemplate','mainAction','Insert\x20below','REPLACE','isVisible','locale','1321982uvNSBy','bind','Stop','4804260zgVEQE'];_0x3a46=function(){return _0xe5cda8;};return _0x3a46();}
23
+ const _0x309ef3=_0x82b3;(function(_0x5b004f,_0x5dde5d){const _0x4b77f8=_0x82b3,_0x9aa6df=_0x5b004f();while(!![]){try{const _0x4ffe7e=parseInt(_0x4b77f8(0x187))/0x1+parseInt(_0x4b77f8(0x1a0))/0x2*(-parseInt(_0x4b77f8(0x195))/0x3)+-parseInt(_0x4b77f8(0x19b))/0x4*(parseInt(_0x4b77f8(0x18d))/0x5)+parseInt(_0x4b77f8(0x191))/0x6+-parseInt(_0x4b77f8(0x188))/0x7*(-parseInt(_0x4b77f8(0x1a8))/0x8)+-parseInt(_0x4b77f8(0x18f))/0x9+-parseInt(_0x4b77f8(0x185))/0xa*(-parseInt(_0x4b77f8(0x1a4))/0xb);if(_0x4ffe7e===_0x5dde5d)break;else _0x9aa6df['push'](_0x9aa6df['shift']());}catch(_0x579a24){_0x9aa6df['push'](_0x9aa6df['shift']());}}}(_0x1c96,0x59c0b));import{ToolbarView as _0x1bbd68,ButtonView as _0x11191a}from'ckeditor5/src/ui.js';function _0x1c96(){const _0x4ba117=['6NgPHhr','REPLACE','stopButton','locale','11aoPIxS','isVisible','bindTemplate','mainAction','35472vqWMwZ','replace','addMany','5535960SwgeqA','tryAgainButton','148716JFNPPq','987xmkUIM','set','_CONTENT','items','extendTemplate','139800VjxHvk','Try\x20again','6563367rNZOMU','insert','2026890ipVULx','_createButton','ck-hidden','ck-button-action','121071PJQQKO','AI_','replaceButton','label','toUpperCase','ck-ai-form__toolbar','64RoNMXc','Insert\x20below','Stop','bind','insertButton'];_0x1c96=function(){return _0x4ba117;};return _0x1c96();}import{getTranslation as _0x4dcd73}from'../../utils/common-translations.js';function _0x82b3(_0x22fb60,_0x13a9e2){const _0x1c961f=_0x1c96();return _0x82b3=function(_0x82b36b,_0x2a5088){_0x82b36b=_0x82b36b-0x184;let _0x971100=_0x1c961f[_0x82b36b];return _0x971100;},_0x82b3(_0x22fb60,_0x13a9e2);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x309ef3(0x1a9),'INSERT':_0x309ef3(0x190)};export class AIFormToolbarView extends _0x1bbd68{constructor(_0x1b41f7){const _0x81cdd6=_0x309ef3;super(_0x1b41f7),this[_0x81cdd6(0x189)](_0x81cdd6(0x1a5),!0x1),this[_0x81cdd6(0x189)](_0x81cdd6(0x1a7),AIFormToolbarViewMainActionLabel[_0x81cdd6(0x1a1)]),this[_0x81cdd6(0x197)]=this[_0x81cdd6(0x192)]('',_0x81cdd6(0x194)),this[_0x81cdd6(0x197)][_0x81cdd6(0x19e)](_0x81cdd6(0x198))['to'](this,_0x81cdd6(0x1a7),_0x35bf27=>_0x4dcd73(_0x1b41f7,_0x81cdd6(0x196)+_0x35bf27[_0x81cdd6(0x199)]()+_0x81cdd6(0x18a))),this[_0x81cdd6(0x19f)]=this[_0x81cdd6(0x192)](_0x4dcd73(_0x1b41f7,_0x81cdd6(0x19c))),this[_0x81cdd6(0x186)]=this[_0x81cdd6(0x192)](_0x4dcd73(_0x1b41f7,_0x81cdd6(0x18e))),this[_0x81cdd6(0x1a2)]=this[_0x81cdd6(0x192)](_0x4dcd73(_0x1b41f7,_0x81cdd6(0x19d)));const _0x2feeca=this[_0x81cdd6(0x1a6)];this[_0x81cdd6(0x18c)]({'attributes':{'class':[_0x81cdd6(0x19a),_0x2feeca['if'](_0x81cdd6(0x1a5),_0x81cdd6(0x193),_0x19e436=>!_0x19e436)]}}),this[_0x81cdd6(0x18b)][_0x81cdd6(0x184)]([this[_0x81cdd6(0x197)],this[_0x81cdd6(0x19f)],this[_0x81cdd6(0x186)],this[_0x81cdd6(0x1a2)]]);}[_0x309ef3(0x192)](_0x426292,_0x21a6e0){const _0x469d05=_0x309ef3,_0xecd204=new _0x11191a(this[_0x469d05(0x1a3)]);return _0xecd204[_0x469d05(0x189)]({'label':_0x426292,'class':_0x21a6e0||'','isVisible':!0x0,'withText':!0x0}),_0xecd204;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33f22b=_0x1bb8;(function(_0x4e4bc5,_0xc44772){const _0x49b4cf=_0x1bb8,_0x405679=_0x4e4bc5();while(!![]){try{const _0x3548c4=parseInt(_0x49b4cf(0xb8))/0x1*(parseInt(_0x49b4cf(0x92))/0x2)+parseInt(_0x49b4cf(0xd6))/0x3+parseInt(_0x49b4cf(0xb7))/0x4+parseInt(_0x49b4cf(0xc1))/0x5+parseInt(_0x49b4cf(0xca))/0x6+parseInt(_0x49b4cf(0x8f))/0x7*(parseInt(_0x49b4cf(0x99))/0x8)+parseInt(_0x49b4cf(0x93))/0x9*(-parseInt(_0x49b4cf(0x90))/0xa);if(_0x3548c4===_0xc44772)break;else _0x405679['push'](_0x405679['shift']());}catch(_0x48eccc){_0x405679['push'](_0x405679['shift']());}}}(_0x1e95,0xc5495));import{FocusTracker as _0x1bf017,KeystrokeHandler as _0x49c680}from'ckeditor5/src/utils.js';function _0x1e95(){const _0x295cf1=['focus','4622xLcheu','477sSqEnO','Empty\x20history','_focusables','chain','Ask\x20AI\x20to\x20edit\x20or\x20generate','focusFirst','4935032KqbgaA','focusTracker','execute','items','keystrokes','startProcessing','reset','queryView','contentArea','tryAgainButton','_createPromptView','listenTo','focusLast','stopProcessing','render','text','set','REPLACE','setTemplate','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','submitPrompt','isEnabled','element','replaceContent','submit','errorView','shift\x20+\x20tab','_createToolbar','mainAction','isError','914608YpBLed','131hVauFU','clear','ck-ai-form','ck-ai-form-content','div','createCollection','trim','promptView','tab','4687445UVRoKY','add','fire','_createHistoryView','isProcessing','prompt','ck-hidden','toolbar','finishProcessing','1296942QPlCEy','locale','replaceButton','insertButton','tryAgainEvent','label','value','delegate','Ask\x20AI\x20to\x20improve\x20generated\x20text','copyButtonView','AI_ERROR_FAILED','focusCycler','2832660rrZEYn','isVisible','high','fieldView','handleError','historyGroupView','bindTemplate','stopButton','insertContentBelow','_promptHistory','bind','clearHistory','search','bindTo','7aPXGWF','460010rYCgQO'];_0x1e95=function(){return _0x295cf1;};return _0x1e95();}import{View as _0x15596c,FocusCycler as _0x3ce281,createLabeledTextarea as _0x2f40a5}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x1bad73,AIFormToolbarViewMainActionLabel as _0x59764e}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x9a0d05}from'./aiformcontentarea.js';import{AIFormErrorView as _0x5801bf}from'./aiformerrorview.js';function _0x1bb8(_0x168da4,_0x4ccede){const _0x1e9576=_0x1e95();return _0x1bb8=function(_0x1bb84e,_0x493771){_0x1bb84e=_0x1bb84e-0x82;let _0x5cee3c=_0x1e9576[_0x1bb84e];return _0x5cee3c;},_0x1bb8(_0x168da4,_0x4ccede);}import{AIFormPromptView as _0x465a23}from'./aiformpromptview.js';import{AIHistoryListView as _0x2f86c7}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x98e300}from'./aihistorylistitemview.js';import{PromptHistory as _0x371e9d}from'./prompthistory.js';import{getTranslation as _0x25e8ca}from'../../utils/common-translations.js';import{escape as _0x4bf8d8}from'es-toolkit/compat';export class AIFormView extends _0x15596c{[_0x33f22b(0x9a)];[_0x33f22b(0x9d)];[_0x33f22b(0xa1)];[_0x33f22b(0xc8)];[_0x33f22b(0xbf)];[_0x33f22b(0xb2)];[_0x33f22b(0x95)];[_0x33f22b(0xd5)];[_0x33f22b(0x8a)];constructor(_0x4139d9,_0x1d43a0,_0x2b86c8=''){const _0x5442d1=_0x33f22b;super(_0x4139d9),this[_0x5442d1(0xa9)](_0x5442d1(0xae),!0x0),this[_0x5442d1(0xa9)](_0x5442d1(0xc5),!0x1),this[_0x5442d1(0xa9)](_0x5442d1(0xc6),''),this[_0x5442d1(0xa9)](_0x5442d1(0xd0),''),this[_0x5442d1(0xa9)](_0x5442d1(0xb6),!0x1),this[_0x5442d1(0xa9)](_0x5442d1(0xb5),_0x59764e[_0x5442d1(0xaa)]),this[_0x5442d1(0x8a)]=new _0x371e9d(),this[_0x5442d1(0xb2)]=new _0x5801bf(_0x4139d9),this[_0x5442d1(0xa1)]=new _0x9a0d05(_0x4139d9,_0x2b86c8),this[_0x5442d1(0xa1)][_0x5442d1(0x8b)](_0x5442d1(0xc5))['to'](this),this[_0x5442d1(0xa1)][_0x5442d1(0x8b)](_0x5442d1(0xd0))['to'](this),this[_0x5442d1(0xc8)]=this[_0x5442d1(0xb4)](),this[_0x5442d1(0xc8)][_0x5442d1(0x8b)](_0x5442d1(0xb5))['to'](this),this[_0x5442d1(0xbf)]=this[_0x5442d1(0xa3)](),this[_0x5442d1(0x9a)]=new _0x1bf017(),this[_0x5442d1(0x9d)]=new _0x49c680(),this[_0x5442d1(0x95)]=this[_0x5442d1(0xbd)]([this[_0x5442d1(0xa1)],this[_0x5442d1(0xa1)][_0x5442d1(0xd3)],this[_0x5442d1(0xc8)],this[_0x5442d1(0xbf)]]),this[_0x5442d1(0xd5)]=new _0x3ce281({'focusables':this[_0x5442d1(0x95)],'focusTracker':this[_0x5442d1(0x9a)],'keystrokeHandler':this[_0x5442d1(0x9d)],'actions':{'focusPrevious':_0x5442d1(0xb3),'focusNext':_0x5442d1(0xc0)}}),this[_0x5442d1(0xd5)][_0x5442d1(0x96)](this[_0x5442d1(0xbf)][_0x5442d1(0xd5)]),this[_0x5442d1(0xbf)][_0x5442d1(0xa0)][_0x5442d1(0x84)][_0x5442d1(0x8b)](_0x5442d1(0xd0))['to'](this,_0x5442d1(0xc6));const _0x342f3c=this[_0x5442d1(0x87)];this[_0x5442d1(0xab)]({'tag':_0x5442d1(0xbc),'attributes':{'class':['ck',_0x5442d1(0xba),_0x1d43a0],'tabindex':'-1'},'children':[{'tag':_0x5442d1(0xbc),'attributes':{'class':['ck',_0x5442d1(0xbb)]},'children':[{'tag':_0x5442d1(0xbc),'attributes':{'class':[_0x342f3c['if'](_0x5442d1(0xb6),_0x5442d1(0xc7),_0x528319=>!_0x528319)]},'children':[this[_0x5442d1(0xb2)]]},this[_0x5442d1(0xa1)],this[_0x5442d1(0xc8)],this[_0x5442d1(0xbf)]]}]});}[_0x33f22b(0xa7)](){const _0x33ec46=_0x33f22b;super[_0x33ec46(0xa7)](),this[_0x33ec46(0x9a)][_0x33ec46(0xc2)](this[_0x33ec46(0xa1)][_0x33ec46(0xaf)]),this[_0x33ec46(0x9a)][_0x33ec46(0xc2)](this[_0x33ec46(0xa1)][_0x33ec46(0xd3)][_0x33ec46(0xaf)]),this[_0x33ec46(0x9a)][_0x33ec46(0xc2)](this[_0x33ec46(0xc8)][_0x33ec46(0xaf)]),this[_0x33ec46(0x9a)][_0x33ec46(0xc2)](this[_0x33ec46(0xbf)][_0x33ec46(0xaf)]),this[_0x33ec46(0x9d)][_0x33ec46(0xa4)](this[_0x33ec46(0xaf)]);}[_0x33f22b(0x91)](_0x440d9f=0x1){const _0x3789a0=_0x33f22b;-0x1===_0x440d9f?this[_0x3789a0(0xd5)][_0x3789a0(0xa5)]():this[_0x3789a0(0xd5)][_0x3789a0(0x98)]();}[_0x33f22b(0x9f)](){const _0x248b4d=_0x33f22b;this[_0x248b4d(0xc6)]='',this[_0x248b4d(0xd0)]='',this[_0x248b4d(0xb6)]=!0x1,this[_0x248b4d(0xbf)][_0x248b4d(0x9f)](),this[_0x248b4d(0xa1)][_0x248b4d(0x82)]=!0x1,this[_0x248b4d(0xc8)][_0x248b4d(0x82)]=!0x1;}[_0x33f22b(0xa3)](){const _0x1932b7=_0x33f22b,_0x264afa=this[_0x1932b7(0xcb)],_0x4e1466=new _0x465a23(_0x264afa,{'queryView':{'label':_0x25e8ca(_0x264afa,_0x1932b7(0x97)),'creator':_0x2f40a5,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x25e8ca(_0x264afa,_0x1932b7(0x94)),'secondary':_0x25e8ca(_0x264afa,_0x1932b7(0xac))}}},'filteredView':this[_0x1932b7(0xc4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4e1466[_0x1932b7(0x8b)](_0x1932b7(0xae))['to'](this,_0x1932b7(0xae),this,_0x1932b7(0xc5),(_0x847ba9,_0x6a8a6e)=>_0x847ba9&&!_0x6a8a6e),this[_0x1932b7(0xa4)](_0x4e1466,_0x1932b7(0xb1),(_0x5bb7ff,_0x1ccbd4)=>{const _0x458927=_0x1932b7;this[_0x458927(0xc6)]=_0x1ccbd4;const _0x4c1387=_0x4bf8d8(_0x1ccbd4);this[_0x458927(0xc3)](_0x458927(0xad),_0x4c1387),_0x1ccbd4[_0x458927(0xbe)]()&&this[_0x458927(0x8a)][_0x458927(0xc2)]({'prompt':_0x4c1387},0x0);},{'priority':_0x1932b7(0x83)}),_0x4e1466;}[_0x33f22b(0xc4)](){const _0x3da4ac=_0x33f22b,_0x4ba420=new _0x2f86c7(this[_0x3da4ac(0xcb)]);return _0x4ba420[_0x3da4ac(0x86)][_0x3da4ac(0x9c)][_0x3da4ac(0x8e)](this[_0x3da4ac(0x8a)])['as'](_0x98e300),_0x4ba420['on'](_0x3da4ac(0x8c),()=>{const _0xe80009=_0x3da4ac;this[_0xe80009(0x8a)][_0xe80009(0xb9)](),this[_0xe80009(0xbf)][_0xe80009(0x8d)](''),this[_0xe80009(0xbf)][_0xe80009(0x91)]();}),_0x4ba420;}[_0x33f22b(0xb4)](){const _0x108619=_0x33f22b,_0xdf13aa=new _0x1bad73(this[_0x108619(0xcb)]);return _0xdf13aa[_0x108619(0xcc)][_0x108619(0x8b)](_0x108619(0xae))['to'](this,_0x108619(0xae),this,_0x108619(0xc5),this,_0x108619(0xd0),(_0x4ba8d8,_0xe5964c,_0x6c05d9)=>_0x4ba8d8&&!_0xe5964c&&!!_0x6c05d9),_0xdf13aa[_0x108619(0xcc)][_0x108619(0xd1)](_0x108619(0x9b))['to'](this,_0x108619(0xb0)),_0xdf13aa[_0x108619(0xcd)][_0x108619(0x8b)](_0x108619(0xae))['to'](this,_0x108619(0xae),this,_0x108619(0xc5),this,_0x108619(0xd0),(_0x84b94f,_0x2c27c5,_0x7ada2b)=>_0x84b94f&&!_0x2c27c5&&!!_0x7ada2b),_0xdf13aa[_0x108619(0xcd)][_0x108619(0xd1)](_0x108619(0x9b))['to'](this,_0x108619(0x89)),_0xdf13aa[_0x108619(0xa2)][_0x108619(0x8b)](_0x108619(0xae))['to'](this,_0x108619(0xae),this,_0x108619(0xc5),(_0x77f185,_0x1f202b)=>_0x77f185&&!_0x1f202b),_0xdf13aa[_0x108619(0xa2)][_0x108619(0xd1)](_0x108619(0x9b))['to'](this,_0x108619(0xce)),_0xdf13aa[_0x108619(0x88)][_0x108619(0x8b)](_0x108619(0xae))['to'](this,_0x108619(0xc5)),_0xdf13aa[_0x108619(0x88)][_0x108619(0xd1)](_0x108619(0x9b))['to'](this,_0x108619(0xa6)),_0xdf13aa;}[_0x33f22b(0x9e)](){const _0x367920=_0x33f22b;this[_0x367920(0xd0)]='',this[_0x367920(0xb6)]=!0x1,this[_0x367920(0xc5)]=!0x0,this[_0x367920(0xa1)][_0x367920(0x82)]=!0x0,this[_0x367920(0xc8)][_0x367920(0x82)]=!0x0,this[_0x367920(0xa1)][_0x367920(0x91)]();}[_0x33f22b(0xc9)](){const _0x2cbe3f=_0x33f22b,_0x50b0eb=this[_0x2cbe3f(0xcb)];this[_0x2cbe3f(0xc5)]=!0x1,this[_0x2cbe3f(0xc6)]='',this[_0x2cbe3f(0xbf)][_0x2cbe3f(0x9f)](),this[_0x2cbe3f(0xd0)]&&(this[_0x2cbe3f(0xbf)][_0x2cbe3f(0xa0)][_0x2cbe3f(0xcf)]=_0x25e8ca(_0x50b0eb,_0x2cbe3f(0xd2)));}[_0x33f22b(0x85)](_0x508d42){const _0x1b2720=_0x33f22b,_0x40a7ab=this[_0x1b2720(0xcb)];this[_0x1b2720(0xc9)](),this[_0x1b2720(0xb6)]=!0x0,this[_0x1b2720(0xb2)][_0x1b2720(0xa8)]=_0x508d42||_0x25e8ca(_0x40a7ab,_0x1b2720(0xd4)),this[_0x1b2720(0xd0)]||(this[_0x1b2720(0xa1)][_0x1b2720(0x82)]=!0x1);}}
23
+ const _0x3abafc=_0x4858;(function(_0x17f056,_0x344689){const _0x1731c4=_0x4858,_0x5d20e8=_0x17f056();while(!![]){try{const _0xa1acff=-parseInt(_0x1731c4(0x10f))/0x1+parseInt(_0x1731c4(0x122))/0x2+parseInt(_0x1731c4(0x11c))/0x3+-parseInt(_0x1731c4(0x146))/0x4+parseInt(_0x1731c4(0x11b))/0x5+-parseInt(_0x1731c4(0x100))/0x6*(-parseInt(_0x1731c4(0x120))/0x7)+-parseInt(_0x1731c4(0x12f))/0x8*(parseInt(_0x1731c4(0x126))/0x9);if(_0xa1acff===_0x344689)break;else _0x5d20e8['push'](_0x5d20e8['shift']());}catch(_0x5796e9){_0x5d20e8['push'](_0x5d20e8['shift']());}}}(_0x6fa4,0xf13cd));import{FocusTracker as _0x2dec48,KeystrokeHandler as _0x44fee8}from'ckeditor5/src/utils.js';import{View as _0x1b2dda,FocusCycler as _0x29bd56,createLabeledTextarea as _0x1f0ce3}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3e8bab,AIFormToolbarViewMainActionLabel as _0x9e6835}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x5375a0}from'./aiformcontentarea.js';import{AIFormErrorView as _0x13c1e6}from'./aiformerrorview.js';import{AIFormPromptView as _0x3a055a}from'./aiformpromptview.js';import{AIHistoryListView as _0x299039}from'./aihistorylistview.js';function _0x4858(_0x5122ac,_0x7be412){const _0x6fa40a=_0x6fa4();return _0x4858=function(_0x48583f,_0x147e48){_0x48583f=_0x48583f-0xfa;let _0x3e3079=_0x6fa40a[_0x48583f];return _0x3e3079;},_0x4858(_0x5122ac,_0x7be412);}import{AIHistoryListItemView as _0x12e664}from'./aihistorylistitemview.js';import{PromptHistory as _0x5bf6cb}from'./prompthistory.js';import{getTranslation as _0x5b2fc1}from'../../utils/common-translations.js';function _0x6fa4(){const _0x213191=['_createPromptView','_focusables','label','insertContentBelow','fire','focus','listenTo','clear','high','items','value','reset','ck-ai-form','submit','265575anFiaP','submitPrompt','bindTemplate','focusTracker','handleError','finishProcessing','locale','isError','div','focusLast','Empty\x20history','execute','4207790QpjPwh','4777929JyWKTV','element','toolbar','ck-hidden','7ffpyNO','search','3709638NsIGUm','isProcessing','isVisible','ck-ai-form-content','31756707suxGxk','tryAgainButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','queryView','stopButton','tryAgainEvent','contentArea','_promptHistory','insertButton','8zKkUSr','createCollection','replaceContent','prompt','isEnabled','AI_ERROR_FAILED','delegate','replaceButton','focusFirst','promptView','trim','keystrokes','shift\x20+\x20tab','errorView','_createToolbar','tab','focusCycler','_createHistoryView','setTemplate','add','copyButtonView','fieldView','stopProcessing','2805656vREkhQ','text','startProcessing','render','bind','Ask\x20AI\x20to\x20edit\x20or\x20generate','chain','bindTo','mainAction','set','clearHistory','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','historyGroupView','REPLACE','7167606iQsAEv'];_0x6fa4=function(){return _0x213191;};return _0x6fa4();}import{escape as _0xb3e930}from'es-toolkit/compat';export class AIFormView extends _0x1b2dda{[_0x3abafc(0x112)];[_0x3abafc(0x13a)];[_0x3abafc(0x12c)];[_0x3abafc(0x11e)];[_0x3abafc(0x138)];[_0x3abafc(0x13c)];[_0x3abafc(0x102)];[_0x3abafc(0x13f)];[_0x3abafc(0x12d)];constructor(_0x344bdf,_0x13cbf7,_0x3d0ff1=''){const _0x5debf8=_0x3abafc;super(_0x344bdf),this[_0x5debf8(0xfb)](_0x5debf8(0x133),!0x0),this[_0x5debf8(0xfb)](_0x5debf8(0x123),!0x1),this[_0x5debf8(0xfb)](_0x5debf8(0x132),''),this[_0x5debf8(0xfb)](_0x5debf8(0x10b),''),this[_0x5debf8(0xfb)](_0x5debf8(0x116),!0x1),this[_0x5debf8(0xfb)](_0x5debf8(0xfa),_0x9e6835[_0x5debf8(0xff)]),this[_0x5debf8(0x12d)]=new _0x5bf6cb(),this[_0x5debf8(0x13c)]=new _0x13c1e6(_0x344bdf),this[_0x5debf8(0x12c)]=new _0x5375a0(_0x344bdf,_0x3d0ff1),this[_0x5debf8(0x12c)][_0x5debf8(0x14a)](_0x5debf8(0x123))['to'](this),this[_0x5debf8(0x12c)][_0x5debf8(0x14a)](_0x5debf8(0x10b))['to'](this),this[_0x5debf8(0x11e)]=this[_0x5debf8(0x13d)](),this[_0x5debf8(0x11e)][_0x5debf8(0x14a)](_0x5debf8(0xfa))['to'](this),this[_0x5debf8(0x138)]=this[_0x5debf8(0x101)](),this[_0x5debf8(0x112)]=new _0x2dec48(),this[_0x5debf8(0x13a)]=new _0x44fee8(),this[_0x5debf8(0x102)]=this[_0x5debf8(0x130)]([this[_0x5debf8(0x12c)],this[_0x5debf8(0x12c)][_0x5debf8(0x143)],this[_0x5debf8(0x11e)],this[_0x5debf8(0x138)]]),this[_0x5debf8(0x13f)]=new _0x29bd56({'focusables':this[_0x5debf8(0x102)],'focusTracker':this[_0x5debf8(0x112)],'keystrokeHandler':this[_0x5debf8(0x13a)],'actions':{'focusPrevious':_0x5debf8(0x13b),'focusNext':_0x5debf8(0x13e)}}),this[_0x5debf8(0x13f)][_0x5debf8(0x14c)](this[_0x5debf8(0x138)][_0x5debf8(0x13f)]),this[_0x5debf8(0x138)][_0x5debf8(0x129)][_0x5debf8(0x144)][_0x5debf8(0x14a)](_0x5debf8(0x10b))['to'](this,_0x5debf8(0x132));const _0x16aa14=this[_0x5debf8(0x111)];this[_0x5debf8(0x141)]({'tag':_0x5debf8(0x117),'attributes':{'class':['ck',_0x5debf8(0x10d),_0x13cbf7],'tabindex':'-1'},'children':[{'tag':_0x5debf8(0x117),'attributes':{'class':['ck',_0x5debf8(0x125)]},'children':[{'tag':_0x5debf8(0x117),'attributes':{'class':[_0x16aa14['if'](_0x5debf8(0x116),_0x5debf8(0x11f),_0x45356e=>!_0x45356e)]},'children':[this[_0x5debf8(0x13c)]]},this[_0x5debf8(0x12c)],this[_0x5debf8(0x11e)],this[_0x5debf8(0x138)]]}]});}[_0x3abafc(0x149)](){const _0x5f90de=_0x3abafc;super[_0x5f90de(0x149)](),this[_0x5f90de(0x112)][_0x5f90de(0x142)](this[_0x5f90de(0x12c)][_0x5f90de(0x11d)]),this[_0x5f90de(0x112)][_0x5f90de(0x142)](this[_0x5f90de(0x12c)][_0x5f90de(0x143)][_0x5f90de(0x11d)]),this[_0x5f90de(0x112)][_0x5f90de(0x142)](this[_0x5f90de(0x11e)][_0x5f90de(0x11d)]),this[_0x5f90de(0x112)][_0x5f90de(0x142)](this[_0x5f90de(0x138)][_0x5f90de(0x11d)]),this[_0x5f90de(0x13a)][_0x5f90de(0x107)](this[_0x5f90de(0x11d)]);}[_0x3abafc(0x106)](_0x1923d4=0x1){const _0x9bd358=_0x3abafc;-0x1===_0x1923d4?this[_0x9bd358(0x13f)][_0x9bd358(0x118)]():this[_0x9bd358(0x13f)][_0x9bd358(0x137)]();}[_0x3abafc(0x10c)](){const _0x450160=_0x3abafc;this[_0x450160(0x132)]='',this[_0x450160(0x10b)]='',this[_0x450160(0x116)]=!0x1,this[_0x450160(0x138)][_0x450160(0x10c)](),this[_0x450160(0x12c)][_0x450160(0x124)]=!0x1,this[_0x450160(0x11e)][_0x450160(0x124)]=!0x1;}[_0x3abafc(0x101)](){const _0x4c0aa5=_0x3abafc,_0x5ed97f=this[_0x4c0aa5(0x115)],_0x2405b1=new _0x3a055a(_0x5ed97f,{'queryView':{'label':_0x5b2fc1(_0x5ed97f,_0x4c0aa5(0x14b)),'creator':_0x1f0ce3,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5b2fc1(_0x5ed97f,_0x4c0aa5(0x119)),'secondary':_0x5b2fc1(_0x5ed97f,_0x4c0aa5(0xfd))}}},'filteredView':this[_0x4c0aa5(0x140)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2405b1[_0x4c0aa5(0x14a)](_0x4c0aa5(0x133))['to'](this,_0x4c0aa5(0x133),this,_0x4c0aa5(0x123),(_0x54b973,_0x7a11ac)=>_0x54b973&&!_0x7a11ac),this[_0x4c0aa5(0x107)](_0x2405b1,_0x4c0aa5(0x10e),(_0x2e41de,_0x51c323)=>{const _0x3f3d64=_0x4c0aa5;this[_0x3f3d64(0x132)]=_0x51c323;const _0x5a7325=_0xb3e930(_0x51c323);this[_0x3f3d64(0x105)](_0x3f3d64(0x110),_0x5a7325),_0x51c323[_0x3f3d64(0x139)]()&&this[_0x3f3d64(0x12d)][_0x3f3d64(0x142)]({'prompt':_0x5a7325},0x0);},{'priority':_0x4c0aa5(0x109)}),_0x2405b1;}[_0x3abafc(0x140)](){const _0xf16e2d=_0x3abafc,_0x190bce=new _0x299039(this[_0xf16e2d(0x115)]);return _0x190bce[_0xf16e2d(0xfe)][_0xf16e2d(0x10a)][_0xf16e2d(0x14d)](this[_0xf16e2d(0x12d)])['as'](_0x12e664),_0x190bce['on'](_0xf16e2d(0xfc),()=>{const _0x129b62=_0xf16e2d;this[_0x129b62(0x12d)][_0x129b62(0x108)](),this[_0x129b62(0x138)][_0x129b62(0x121)](''),this[_0x129b62(0x138)][_0x129b62(0x106)]();}),_0x190bce;}[_0x3abafc(0x13d)](){const _0x53e3f6=_0x3abafc,_0x484083=new _0x3e8bab(this[_0x53e3f6(0x115)]);return _0x484083[_0x53e3f6(0x136)][_0x53e3f6(0x14a)](_0x53e3f6(0x133))['to'](this,_0x53e3f6(0x133),this,_0x53e3f6(0x123),this,_0x53e3f6(0x10b),(_0x2ff201,_0x534b04,_0x579b59)=>_0x2ff201&&!_0x534b04&&!!_0x579b59),_0x484083[_0x53e3f6(0x136)][_0x53e3f6(0x135)](_0x53e3f6(0x11a))['to'](this,_0x53e3f6(0x131)),_0x484083[_0x53e3f6(0x12e)][_0x53e3f6(0x14a)](_0x53e3f6(0x133))['to'](this,_0x53e3f6(0x133),this,_0x53e3f6(0x123),this,_0x53e3f6(0x10b),(_0x10342e,_0x4a649e,_0x2d6325)=>_0x10342e&&!_0x4a649e&&!!_0x2d6325),_0x484083[_0x53e3f6(0x12e)][_0x53e3f6(0x135)](_0x53e3f6(0x11a))['to'](this,_0x53e3f6(0x104)),_0x484083[_0x53e3f6(0x127)][_0x53e3f6(0x14a)](_0x53e3f6(0x133))['to'](this,_0x53e3f6(0x133),this,_0x53e3f6(0x123),(_0x4cf186,_0x325725)=>_0x4cf186&&!_0x325725),_0x484083[_0x53e3f6(0x127)][_0x53e3f6(0x135)](_0x53e3f6(0x11a))['to'](this,_0x53e3f6(0x12b)),_0x484083[_0x53e3f6(0x12a)][_0x53e3f6(0x14a)](_0x53e3f6(0x133))['to'](this,_0x53e3f6(0x123)),_0x484083[_0x53e3f6(0x12a)][_0x53e3f6(0x135)](_0x53e3f6(0x11a))['to'](this,_0x53e3f6(0x145)),_0x484083;}[_0x3abafc(0x148)](){const _0x3e3152=_0x3abafc;this[_0x3e3152(0x10b)]='',this[_0x3e3152(0x116)]=!0x1,this[_0x3e3152(0x123)]=!0x0,this[_0x3e3152(0x12c)][_0x3e3152(0x124)]=!0x0,this[_0x3e3152(0x11e)][_0x3e3152(0x124)]=!0x0,this[_0x3e3152(0x12c)][_0x3e3152(0x106)]();}[_0x3abafc(0x114)](){const _0x4bee3d=_0x3abafc,_0x4ea31e=this[_0x4bee3d(0x115)];this[_0x4bee3d(0x123)]=!0x1,this[_0x4bee3d(0x132)]='',this[_0x4bee3d(0x138)][_0x4bee3d(0x10c)](),this[_0x4bee3d(0x10b)]&&(this[_0x4bee3d(0x138)][_0x4bee3d(0x129)][_0x4bee3d(0x103)]=_0x5b2fc1(_0x4ea31e,_0x4bee3d(0x128)));}[_0x3abafc(0x113)](_0xac6376){const _0x72d6f5=_0x3abafc,_0x2e3d31=this[_0x72d6f5(0x115)];this[_0x72d6f5(0x114)](),this[_0x72d6f5(0x116)]=!0x0,this[_0x72d6f5(0x13c)][_0x72d6f5(0x147)]=_0xac6376||_0x5b2fc1(_0x2e3d31,_0x72d6f5(0x134)),this[_0x72d6f5(0x10b)]||(this[_0x72d6f5(0x12c)][_0x72d6f5(0x124)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xba7cce,_0xe2d39c){const _0x42cff4=_0x3873,_0x18909a=_0xba7cce();while(!![]){try{const _0x486257=parseInt(_0x42cff4(0xfd))/0x1*(parseInt(_0x42cff4(0xfc))/0x2)+-parseInt(_0x42cff4(0xf7))/0x3*(-parseInt(_0x42cff4(0xf8))/0x4)+parseInt(_0x42cff4(0x102))/0x5*(-parseInt(_0x42cff4(0xfe))/0x6)+parseInt(_0x42cff4(0x106))/0x7*(-parseInt(_0x42cff4(0xf4))/0x8)+parseInt(_0x42cff4(0x105))/0x9+-parseInt(_0x42cff4(0xf5))/0xa*(-parseInt(_0x42cff4(0x103))/0xb)+-parseInt(_0x42cff4(0xfa))/0xc;if(_0x486257===_0xe2d39c)break;else _0x18909a['push'](_0x18909a['shift']());}catch(_0x78b695){_0x18909a['push'](_0x18909a['shift']());}}}(_0x23c9,0xf3f74));import{ListItemView as _0x2f4ada,ButtonView as _0xed7bf0,ButtonLabelView as _0x504543}from'ckeditor5/src/ui.js';function _0x23c9(){const _0x2ebe55=['set','11310462rqMmbq','867699kyJnSR','16SdITLV','14591860OnYDns','prompt','3QxIqOw','6904328yAdQix','execute','40892592qUPQbD','children','2EANzAN','1948847FbtGeL','6UhcycW','add','locale','fire','8679595hbWehA','11IjEumn'];_0x23c9=function(){return _0x2ebe55;};return _0x23c9();}function _0x3873(_0x5ac61e,_0x923ace){const _0x23c9c6=_0x23c9();return _0x3873=function(_0x3873f0,_0x336432){_0x3873f0=_0x3873f0-0xf4;let _0x151b0e=_0x23c9c6[_0x3873f0];return _0x151b0e;},_0x3873(_0x5ac61e,_0x923ace);}import{unescape as _0x1b7047}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x2f4ada{constructor(_0xa91cb5){const _0x5e0a2b=_0x3873;super();const _0xa775f5=new _0x504543(),_0x1c68b3=new _0xed7bf0(this[_0x5e0a2b(0x100)],_0xa775f5);this[_0x5e0a2b(0xfb)][_0x5e0a2b(0xff)](_0x1c68b3),_0x1c68b3[_0x5e0a2b(0x104)]({'label':_0xa91cb5[_0x5e0a2b(0xf6)],'withText':!0x0}),_0x1c68b3['on'](_0x5e0a2b(0xf9),()=>{const _0x1d5890=_0x5e0a2b;this[_0x1d5890(0x101)](_0x1d5890(0xf9),{'value':_0x1b7047(_0xa91cb5[_0x1d5890(0xf6)])});});}}
23
+ (function(_0x16b9f7,_0x11ded3){const _0x178bcc=_0x3512,_0x547dfb=_0x16b9f7();while(!![]){try{const _0x33f401=-parseInt(_0x178bcc(0x1c8))/0x1+-parseInt(_0x178bcc(0x1c4))/0x2+-parseInt(_0x178bcc(0x1c7))/0x3+parseInt(_0x178bcc(0x1c6))/0x4*(-parseInt(_0x178bcc(0x1ca))/0x5)+parseInt(_0x178bcc(0x1d1))/0x6+parseInt(_0x178bcc(0x1c9))/0x7*(parseInt(_0x178bcc(0x1cd))/0x8)+parseInt(_0x178bcc(0x1cb))/0x9;if(_0x33f401===_0x11ded3)break;else _0x547dfb['push'](_0x547dfb['shift']());}catch(_0x43d13a){_0x547dfb['push'](_0x547dfb['shift']());}}}(_0x115d,0xf0f85));import{ListItemView as _0x16122d,ButtonView as _0x44d4ab,ButtonLabelView as _0x5f54ce}from'ckeditor5/src/ui.js';import{unescape as _0x31c84e}from'es-toolkit/compat';function _0x3512(_0x2a7e42,_0x2e2f67){const _0x115d58=_0x115d();return _0x3512=function(_0x351204,_0x62ebbe){_0x351204=_0x351204-0x1c3;let _0x2bd72d=_0x115d58[_0x351204];return _0x2bd72d;},_0x3512(_0x2a7e42,_0x2e2f67);}export class AIHistoryListItemView extends _0x16122d{constructor(_0x10d92d){const _0x462d6a=_0x3512;super();const _0x549307=new _0x5f54ce(),_0x3e2c1d=new _0x44d4ab(this[_0x462d6a(0x1cf)],_0x549307);this[_0x462d6a(0x1cc)][_0x462d6a(0x1d0)](_0x3e2c1d),_0x3e2c1d[_0x462d6a(0x1ce)]({'label':_0x10d92d[_0x462d6a(0x1c5)],'withText':!0x0}),_0x3e2c1d['on'](_0x462d6a(0x1c3),()=>{const _0x32206d=_0x462d6a;this[_0x32206d(0x1d2)](_0x32206d(0x1c3),{'value':_0x31c84e(_0x10d92d[_0x32206d(0x1c5)])});});}}function _0x115d(){const _0x2d6bf4=['77296zxrSNf','4013679SIRVNT','1482935ZZUDMq','497zRIpEh','145lctjWk','35362548quJvyq','children','106608amGxPY','set','locale','add','5712738GYKkoM','fire','execute','2918408vymAgR','prompt'];_0x115d=function(){return _0x2d6bf4;};return _0x115d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12351c=_0x5119;(function(_0x4c5eba,_0x71224d){const _0x16238c=_0x5119,_0x29c04f=_0x4c5eba();while(!![]){try{const _0x1f05d5=-parseInt(_0x16238c(0x128))/0x1*(parseInt(_0x16238c(0x136))/0x2)+parseInt(_0x16238c(0x121))/0x3*(-parseInt(_0x16238c(0x138))/0x4)+-parseInt(_0x16238c(0x125))/0x5*(-parseInt(_0x16238c(0x13b))/0x6)+-parseInt(_0x16238c(0x126))/0x7*(parseInt(_0x16238c(0x139))/0x8)+parseInt(_0x16238c(0x122))/0x9+-parseInt(_0x16238c(0x12c))/0xa*(-parseInt(_0x16238c(0x131))/0xb)+-parseInt(_0x16238c(0x12a))/0xc*(-parseInt(_0x16238c(0x11f))/0xd);if(_0x1f05d5===_0x71224d)break;else _0x29c04f['push'](_0x29c04f['shift']());}catch(_0x19bf1c){_0x29c04f['push'](_0x29c04f['shift']());}}}(_0x2c2d,0x96e98));import{ListView as _0x2b604f,ListItemGroupView as _0x3da88b,ButtonView as _0x2932c5}from'ckeditor5/src/ui.js';function _0x5119(_0x3572c4,_0xa30269){const _0x2c2d71=_0x2c2d();return _0x5119=function(_0x511983,_0x501f5c){_0x511983=_0x511983-0x11e;let _0x26f073=_0x2c2d71[_0x511983];return _0x26f073;},_0x5119(_0x3572c4,_0xa30269);}function _0x2c2d(){const _0x4b67bf=['set','Prompt\x20history','14YILSZc','add','4gdHvNP','8hZAnyA','length','1932MCQHIM','execute','17817306GHJJuQ','locale','2856201bWxDjk','3522726CxDstd','children','historyGroupView','14255dbiYub','4996733vqHLNL','delegate','130538zgaxjm','fire','12FeVQrk','label','350ikNHap','Clear','_createClearHistoryButton','items','filter','162734qEYkcl','clearHistoryButton','clearHistory'];_0x2c2d=function(){return _0x4b67bf;};return _0x2c2d();}import{getTranslation as _0x4c68e9}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x2b604f{[_0x12351c(0x124)];[_0x12351c(0x132)];constructor(_0x580e5d){const _0x5a99cf=_0x12351c;super(_0x580e5d),this[_0x5a99cf(0x132)]=this[_0x5a99cf(0x12e)](),this[_0x5a99cf(0x124)]=new _0x3da88b(),this[_0x5a99cf(0x124)][_0x5a99cf(0x123)][_0x5a99cf(0x137)](this[_0x5a99cf(0x132)],0x1),this[_0x5a99cf(0x124)][_0x5a99cf(0x12b)]=_0x4c68e9(_0x580e5d,_0x5a99cf(0x135)),this[_0x5a99cf(0x124)][_0x5a99cf(0x12f)][_0x5a99cf(0x127)](_0x5a99cf(0x11e))['to'](this),this[_0x5a99cf(0x12f)][_0x5a99cf(0x137)](this[_0x5a99cf(0x124)]);}[_0x12351c(0x130)](){const _0x3d750e=_0x12351c;let _0x485748=0x0;for(const _0x1636d4 of this[_0x3d750e(0x12f)])_0x485748+=_0x1636d4[_0x3d750e(0x12f)][_0x3d750e(0x13a)];return{'resultsCount':_0x485748,'totalItemsCount':_0x485748};}[_0x12351c(0x12e)](){const _0x3d6b2e=_0x12351c,_0x1aa9fc=this[_0x3d6b2e(0x120)],_0x2fd838=new _0x2932c5(this[_0x3d6b2e(0x120)]);return _0x2fd838[_0x3d6b2e(0x134)]({'label':'('+_0x4c68e9(_0x1aa9fc,_0x3d6b2e(0x12d))+')','withText':!0x0}),_0x2fd838['on'](_0x3d6b2e(0x11e),()=>this[_0x3d6b2e(0x129)](_0x3d6b2e(0x133))),_0x2fd838;}}
23
+ const _0xc02d57=_0x1dd5;(function(_0x17aa6e,_0xcf900c){const _0x159044=_0x1dd5,_0x374798=_0x17aa6e();while(!![]){try{const _0x2dcd17=-parseInt(_0x159044(0x17e))/0x1+parseInt(_0x159044(0x18c))/0x2+parseInt(_0x159044(0x183))/0x3+-parseInt(_0x159044(0x191))/0x4+parseInt(_0x159044(0x184))/0x5+parseInt(_0x159044(0x189))/0x6+parseInt(_0x159044(0x187))/0x7;if(_0x2dcd17===_0xcf900c)break;else _0x374798['push'](_0x374798['shift']());}catch(_0x3feead){_0x374798['push'](_0x374798['shift']());}}}(_0x5d19,0x90f42));import{ListView as _0x1220fd,ListItemGroupView as _0x55dc32,ButtonView as _0x4574c9}from'ckeditor5/src/ui.js';function _0x1dd5(_0x316ade,_0x106b71){const _0x5d1977=_0x5d19();return _0x1dd5=function(_0x1dd54e,_0x272bb7){_0x1dd54e=_0x1dd54e-0x17a;let _0x3f46e5=_0x5d1977[_0x1dd54e];return _0x3f46e5;},_0x1dd5(_0x316ade,_0x106b71);}function _0x5d19(){const _0x45e798=['448760VLnnfW','execute','fire','children','filter','1261404MQtbDe','_createClearHistoryButton','add','delegate','label','864955WtAEOU','clearHistory','clearHistoryButton','locale','items','229296iEHObO','712300yQtInT','Prompt\x20history','Clear','3391563ILBZNN','set','5077530dtohSP','historyGroupView','length'];_0x5d19=function(){return _0x45e798;};return _0x5d19();}import{getTranslation as _0x944aaa}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1220fd{[_0xc02d57(0x18a)];[_0xc02d57(0x180)];constructor(_0xfc8cdf){const _0x38467f=_0xc02d57;super(_0xfc8cdf),this[_0x38467f(0x180)]=this[_0x38467f(0x17a)](),this[_0x38467f(0x18a)]=new _0x55dc32(),this[_0x38467f(0x18a)][_0x38467f(0x18f)][_0x38467f(0x17b)](this[_0x38467f(0x180)],0x1),this[_0x38467f(0x18a)][_0x38467f(0x17d)]=_0x944aaa(_0xfc8cdf,_0x38467f(0x185)),this[_0x38467f(0x18a)][_0x38467f(0x182)][_0x38467f(0x17c)](_0x38467f(0x18d))['to'](this),this[_0x38467f(0x182)][_0x38467f(0x17b)](this[_0x38467f(0x18a)]);}[_0xc02d57(0x190)](){const _0x401f62=_0xc02d57;let _0x240dce=0x0;for(const _0x20c280 of this[_0x401f62(0x182)])_0x240dce+=_0x20c280[_0x401f62(0x182)][_0x401f62(0x18b)];return{'resultsCount':_0x240dce,'totalItemsCount':_0x240dce};}[_0xc02d57(0x17a)](){const _0x2c3c77=_0xc02d57,_0x31e3da=this[_0x2c3c77(0x181)],_0x535c5b=new _0x4574c9(this[_0x2c3c77(0x181)]);return _0x535c5b[_0x2c3c77(0x188)]({'label':'('+_0x944aaa(_0x31e3da,_0x2c3c77(0x186))+')','withText':!0x0}),_0x535c5b['on'](_0x2c3c77(0x18d),()=>this[_0x2c3c77(0x18e)](_0x2c3c77(0x17f))),_0x535c5b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3712(){const _0xafa389=['168sCVRCN','6ujrPhL','prompt','remove','_saveToSessionStorage','stringify','773903ygnNOb','3005185xlpcUO','setItem','trim','107987QgfOqM','940ysyleO','toLowerCase','8EzZdLt','map','1IWumwp','_loadFromSessionStorage','add','1012846ZVMjSW','CKEditor/AIFormView/PromptHistory','length','addMany','getItem','parse','5589279HbaBQo','last','4462752PUoTQi','1628313Wqqmeh','8cgglHJ'];_0x3712=function(){return _0xafa389;};return _0x3712();}const _0x5d4b6e=_0x149e;(function(_0x3d0d4c,_0x5af6cf){const _0x2589ea=_0x149e,_0x2e4aff=_0x3d0d4c();while(!![]){try{const _0x5ca936=parseInt(_0x2589ea(0x85))/0x1*(parseInt(_0x2589ea(0x88))/0x2)+parseInt(_0x2589ea(0x74))/0x3*(-parseInt(_0x2589ea(0x83))/0x4)+-parseInt(_0x2589ea(0x7d))/0x5*(parseInt(_0x2589ea(0x77))/0x6)+parseInt(_0x2589ea(0x90))/0x7+-parseInt(_0x2589ea(0x75))/0x8*(parseInt(_0x2589ea(0x8e))/0x9)+-parseInt(_0x2589ea(0x81))/0xa*(-parseInt(_0x2589ea(0x80))/0xb)+-parseInt(_0x2589ea(0x76))/0xc*(-parseInt(_0x2589ea(0x7c))/0xd);if(_0x5ca936===_0x5af6cf)break;else _0x2e4aff['push'](_0x2e4aff['shift']());}catch(_0x510fe5){_0x2e4aff['push'](_0x2e4aff['shift']());}}}(_0x3712,0x90ac5));import{Collection as _0x60807}from'ckeditor5/src/utils.js';function _0x149e(_0x25f74d,_0x33c806){const _0x3712bc=_0x3712();return _0x149e=function(_0x149edd,_0x3e69bc){_0x149edd=_0x149edd-0x74;let _0x15ec7a=_0x3712bc[_0x149edd];return _0x15ec7a;},_0x149e(_0x25f74d,_0x33c806);}const ts=_0x5d4b6e(0x89);export class PromptHistory extends _0x60807{constructor(){const _0x589965=_0x5d4b6e;super(),this[_0x589965(0x86)](),this['on'](_0x589965(0x87),(_0x54562b,_0xe262a1)=>{const _0x1d886c=_0x589965,_0x4e9c2a=os(_0xe262a1[_0x1d886c(0x78)]);for(const _0x17ecf0 of this)if(_0x17ecf0!=_0xe262a1&&os(_0x17ecf0[_0x1d886c(0x78)])===_0x4e9c2a){this[_0x1d886c(0x79)](_0x17ecf0);break;}this[_0x1d886c(0x8a)]>0x14&&this[_0x1d886c(0x79)](this[_0x1d886c(0x8f)]),this[_0x1d886c(0x7a)]();}),this['on'](_0x589965(0x79),()=>{const _0x287fd3=_0x589965;this[_0x287fd3(0x7a)]();});}[_0x5d4b6e(0x86)](){const _0x48752d=_0x5d4b6e,_0x16c3e3=sessionStorage[_0x48752d(0x8c)](ts)||'[]';this[_0x48752d(0x8b)](JSON[_0x48752d(0x8d)](_0x16c3e3));}[_0x5d4b6e(0x7a)](){const _0x243cfe=_0x5d4b6e;sessionStorage[_0x243cfe(0x7e)](ts,JSON[_0x243cfe(0x7b)](this[_0x243cfe(0x84)](_0x2f375d=>_0x2f375d)));}}function os(_0x4d6ce9){const _0x5edd14=_0x5d4b6e;return _0x4d6ce9[_0x5edd14(0x82)]()[_0x5edd14(0x7f)]();}
23
+ const _0x3ed734=_0x2175;function _0x58f1(){const _0x55ebf7=['1028464umHFQt','348hltpYX','43650zhNdpQ','72jCcZpN','2799505gFJkYy','_loadFromSessionStorage','add','map','last','getItem','CKEditor/AIFormView/PromptHistory','parse','8700461HHVWmA','trim','_saveToSessionStorage','12xXyJJu','834232VUzSEE','4023260iMRxrA','remove','prompt','addMany','4807RhHnMO','toLowerCase','420YCrbOa','length','setItem','stringify'];_0x58f1=function(){return _0x55ebf7;};return _0x58f1();}function _0x2175(_0x2a4450,_0x1ae4c6){const _0x58f142=_0x58f1();return _0x2175=function(_0x217507,_0x5f28ab){_0x217507=_0x217507-0xf6;let _0x5b2352=_0x58f142[_0x217507];return _0x5b2352;},_0x2175(_0x2a4450,_0x1ae4c6);}(function(_0x3fb769,_0x4f64d5){const _0x3469b1=_0x2175,_0x593e33=_0x3fb769();while(!![]){try{const _0xb5211=-parseInt(_0x3469b1(0x106))/0x1*(-parseInt(_0x3469b1(0x10d))/0x2)+-parseInt(_0x3469b1(0x100))/0x3*(-parseInt(_0x3469b1(0x10c))/0x4)+-parseInt(_0x3469b1(0x110))/0x5+-parseInt(_0x3469b1(0x10e))/0x6*(-parseInt(_0x3469b1(0x108))/0x7)+-parseInt(_0x3469b1(0x101))/0x8*(parseInt(_0x3469b1(0x10f))/0x9)+parseInt(_0x3469b1(0x102))/0xa+-parseInt(_0x3469b1(0xfd))/0xb;if(_0xb5211===_0x4f64d5)break;else _0x593e33['push'](_0x593e33['shift']());}catch(_0x3b61f2){_0x593e33['push'](_0x593e33['shift']());}}}(_0x58f1,0x7e9e0));import{Collection as _0x312101}from'ckeditor5/src/utils.js';const ts=_0x3ed734(0xfb);export class PromptHistory extends _0x312101{constructor(){const _0x59040b=_0x3ed734;super(),this[_0x59040b(0xf6)](),this['on'](_0x59040b(0xf7),(_0x77327f,_0x14fbe0)=>{const _0x11f6da=_0x59040b,_0x118c19=os(_0x14fbe0[_0x11f6da(0x104)]);for(const _0x11a912 of this)if(_0x11a912!=_0x14fbe0&&os(_0x11a912[_0x11f6da(0x104)])===_0x118c19){this[_0x11f6da(0x103)](_0x11a912);break;}this[_0x11f6da(0x109)]>0x14&&this[_0x11f6da(0x103)](this[_0x11f6da(0xf9)]),this[_0x11f6da(0xff)]();}),this['on'](_0x59040b(0x103),()=>{const _0x38f406=_0x59040b;this[_0x38f406(0xff)]();});}[_0x3ed734(0xf6)](){const _0x36b367=_0x3ed734,_0x72801d=sessionStorage[_0x36b367(0xfa)](ts)||'[]';this[_0x36b367(0x105)](JSON[_0x36b367(0xfc)](_0x72801d));}[_0x3ed734(0xff)](){const _0x3a32f1=_0x3ed734;sessionStorage[_0x3a32f1(0x10a)](ts,JSON[_0x3a32f1(0x10b)](this[_0x3a32f1(0xf8)](_0x4d2789=>_0x4d2789)));}}function os(_0x420b25){const _0x19509d=_0x3ed734;return _0x420b25[_0x19509d(0x107)]()[_0x19509d(0xfe)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5daf6d=_0x4b60;(function(_0x470479,_0x35067d){const _0x385a67=_0x4b60,_0x4145bc=_0x470479();while(!![]){try{const _0x25f251=-parseInt(_0x385a67(0x1b4))/0x1+parseInt(_0x385a67(0x1a7))/0x2*(-parseInt(_0x385a67(0x1b5))/0x3)+parseInt(_0x385a67(0x1c8))/0x4*(parseInt(_0x385a67(0x19e))/0x5)+-parseInt(_0x385a67(0x1bd))/0x6+parseInt(_0x385a67(0x1c1))/0x7+-parseInt(_0x385a67(0x1b2))/0x8+-parseInt(_0x385a67(0x1a5))/0x9*(-parseInt(_0x385a67(0x1c5))/0xa);if(_0x25f251===_0x35067d)break;else _0x4145bc['push'](_0x4145bc['shift']());}catch(_0x107290){_0x4145bc['push'](_0x4145bc['shift']());}}}(_0x1922,0x428e3));import{Command as _0x3084b8}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2de502}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x3084b8{[_0x5daf6d(0x1ad)];constructor(_0x1e0d88,_0x585659){const _0x1e3b53=_0x5daf6d;super(_0x1e0d88),this[_0x1e3b53(0x1ad)]=_0x585659,this[_0x1e3b53(0x1bf)](_0x1e3b53(0x1ac),[]),this['on'](_0x1e3b53(0x1b1),(_0x24e2f0,_0x457cef,_0x742d6c)=>{const _0x22f80f=_0x1e3b53;this[_0x22f80f(0x1bc)]&&(this[_0x22f80f(0x1ac)]=F(this[_0x22f80f(0x1ad)],_0x742d6c));}),this[_0x1e3b53(0x1bf)](_0x1e3b53(0x1b3),!0x1),this['on'](_0x1e3b53(0x1aa),(_0x5364fb,_0x1216e6,_0x4544f2)=>{const _0x4c0c72=_0x1e3b53;this[_0x4c0c72(0x1ac)]=_0x4544f2?F(this[_0x4c0c72(0x1ad)],this[_0x4c0c72(0x1b3)]):[];});}[_0x5daf6d(0x1c4)](){const _0x37d40f=_0x5daf6d,_0x2f4c57=this[_0x37d40f(0x1a8)][_0x37d40f(0x1a4)];this[_0x37d40f(0x1b3)]=function(_0x5d84a8){const _0x2a6536=_0x37d40f,_0x5e7e4e=_0x5d84a8[_0x2a6536(0x1c3)][_0x2a6536(0x1ab)];return _0x5e7e4e[_0x2a6536(0x1be)]?0x0!==[..._0x5e7e4e[_0x2a6536(0x1a2)]()][_0x2a6536(0x1ae)]&&![..._0x5e7e4e[_0x2a6536(0x1a2)]()][0x0][_0x2a6536(0x1b6)]:!!_0x5d84a8[_0x2a6536(0x1b8)](_0x5e7e4e[_0x2a6536(0x1af)]());}(_0x2f4c57);const _0x5fd9d2=_0x2f4c57[_0x37d40f(0x1c3)][_0x37d40f(0x1ab)],_0x1f0f70=this[_0x37d40f(0x1a8)][_0x37d40f(0x1b9)][_0x37d40f(0x1bb)](_0x37d40f(0x1b0));for(const _0x55c270 of _0x5fd9d2[_0x37d40f(0x19f)]())for(const _0x4503df of _0x55c270[_0x37d40f(0x1a0)]())if(_0x4503df['is'](_0x37d40f(0x1b7))&&_0x1f0f70[_0x37d40f(0x1a3)](_0x4503df[_0x37d40f(0x1a6)]))return void(this[_0x37d40f(0x1bc)]=!0x1);this[_0x37d40f(0x1bc)]=!0x0;}[_0x5daf6d(0x1c7)](_0x48c18b='',_0x3e2a64='',_0x27c6e7=_0x5daf6d(0x1c0)){const _0x21b3fb=_0x5daf6d;this[_0x21b3fb(0x1a8)][_0x21b3fb(0x1c9)][_0x21b3fb(0x1bb)](_0x2de502)[_0x21b3fb(0x1c6)](_0x48c18b,_0x3e2a64,_0x27c6e7);}}function F(_0x37f213,_0x30f5bf){const _0xaf31bf=_0x5daf6d,_0x5dfe95=new Set();for(const _0x9c1664 of _0x37f213[_0xaf31bf(0x1a9)]())(_0x30f5bf||!0x1===_0x9c1664[_0xaf31bf(0x1c2)])&&_0x5dfe95[_0xaf31bf(0x1ba)](_0x9c1664['id']);return Array[_0xaf31bf(0x1a1)](_0x5dfe95);}function _0x4b60(_0x5c8209,_0x5b3e48){const _0x192262=_0x1922();return _0x4b60=function(_0x4b60f0,_0x35bde8){_0x4b60f0=_0x4b60f0-0x19e;let _0x241422=_0x192262[_0x4b60f0];return _0x241422;},_0x4b60(_0x5c8209,_0x5b3e48);}function _0x1922(){const _0x56dd99=['ai.aiAssistant.disabledElements','change:_hasContext','2785248RQnpPr','_hasContext','94949tQkbLa','9jnlrkJ','isEmpty','element','hasContent','config','add','get','isEnabled','2497482rfXMId','isCollapsed','set','custom','109249WMeKTm','requiresContent','document','refresh','10458350yUgyCi','showUI','execute','298436PuTVQA','plugins','30tbrJre','getRanges','getItems','from','getSelectedBlocks','includes','model','9ErETpl','name','251422WzPuVM','editor','values','change:isEnabled','selection','enabledCommandsIds','_commandDefinitions','length','getFirstRange'];_0x1922=function(){return _0x56dd99;};return _0x1922();}
23
+ function _0x5b43(){const _0x24cd9b=['6372rxLSsV','hasContent','getItems','config','add','30174221qbPSNk','requiresContent','custom','change:isEnabled','isEmpty','getSelectedBlocks','isEnabled','ai.aiAssistant.disabledElements','change:_hasContext','refresh','document','get','showUI','enabledCommandsIds','_commandDefinitions','from','18EnSZDk','values','includes','editor','set','name','1613880JOdTpH','_hasContext','getFirstRange','3662360oHSJaj','3ZNcXpL','plugins','6170213NelkOT','86XCjEEM','12276aZMZXQ','element','model','selection','4712788TNHgcf','isCollapsed','5890AEvjFA','getRanges','length','execute'];_0x5b43=function(){return _0x24cd9b;};return _0x5b43();}const _0x13e8ab=_0x5ede;function _0x5ede(_0x14824c,_0x411932){const _0x5b4332=_0x5b43();return _0x5ede=function(_0x5edec6,_0x57af5e){_0x5edec6=_0x5edec6-0x19f;let _0x5be3c0=_0x5b4332[_0x5edec6];return _0x5be3c0;},_0x5ede(_0x14824c,_0x411932);}(function(_0x49aaf8,_0x5ddb38){const _0x438dbd=_0x5ede,_0x192046=_0x49aaf8();while(!![]){try{const _0x5133f7=parseInt(_0x438dbd(0x1b6))/0x1*(-parseInt(_0x438dbd(0x1b7))/0x2)+parseInt(_0x438dbd(0x1b3))/0x3*(-parseInt(_0x438dbd(0x1bb))/0x4)+parseInt(_0x438dbd(0x1bd))/0x5*(parseInt(_0x438dbd(0x1c1))/0x6)+-parseInt(_0x438dbd(0x1b5))/0x7+-parseInt(_0x438dbd(0x1af))/0x8*(parseInt(_0x438dbd(0x1a9))/0x9)+-parseInt(_0x438dbd(0x1b2))/0xa+parseInt(_0x438dbd(0x1c6))/0xb;if(_0x5133f7===_0x5ddb38)break;else _0x192046['push'](_0x192046['shift']());}catch(_0x4c1f99){_0x192046['push'](_0x192046['shift']());}}}(_0x5b43,0x9b7f5));import{Command as _0x1a437c}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1e3778}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1a437c{[_0x13e8ab(0x1a7)];constructor(_0x5f023b,_0x3da205){const _0x2f16a6=_0x13e8ab;super(_0x5f023b),this[_0x2f16a6(0x1a7)]=_0x3da205,this[_0x2f16a6(0x1ad)](_0x2f16a6(0x1a6),[]),this['on'](_0x2f16a6(0x1a1),(_0x4cba6d,_0x236e22,_0xbf284e)=>{const _0x2efc2d=_0x2f16a6;this[_0x2efc2d(0x19f)]&&(this[_0x2efc2d(0x1a6)]=F(this[_0x2efc2d(0x1a7)],_0xbf284e));}),this[_0x2f16a6(0x1ad)](_0x2f16a6(0x1b0),!0x1),this['on'](_0x2f16a6(0x1c9),(_0x1b57d0,_0x2166a6,_0x72b903)=>{const _0x3fa30a=_0x2f16a6;this[_0x3fa30a(0x1a6)]=_0x72b903?F(this[_0x3fa30a(0x1a7)],this[_0x3fa30a(0x1b0)]):[];});}[_0x13e8ab(0x1a2)](){const _0x564aba=_0x13e8ab,_0x28f44e=this[_0x564aba(0x1ac)][_0x564aba(0x1b9)];this[_0x564aba(0x1b0)]=function(_0x2ca81b){const _0x10f55d=_0x564aba,_0x386a77=_0x2ca81b[_0x10f55d(0x1a3)][_0x10f55d(0x1ba)];return _0x386a77[_0x10f55d(0x1bc)]?0x0!==[..._0x386a77[_0x10f55d(0x1cb)]()][_0x10f55d(0x1bf)]&&![..._0x386a77[_0x10f55d(0x1cb)]()][0x0][_0x10f55d(0x1ca)]:!!_0x2ca81b[_0x10f55d(0x1c2)](_0x386a77[_0x10f55d(0x1b1)]());}(_0x28f44e);const _0x2b6cc6=_0x28f44e[_0x564aba(0x1a3)][_0x564aba(0x1ba)],_0x3ffb2e=this[_0x564aba(0x1ac)][_0x564aba(0x1c4)][_0x564aba(0x1a4)](_0x564aba(0x1a0));for(const _0x561404 of _0x2b6cc6[_0x564aba(0x1be)]())for(const _0x49cc98 of _0x561404[_0x564aba(0x1c3)]())if(_0x49cc98['is'](_0x564aba(0x1b8))&&_0x3ffb2e[_0x564aba(0x1ab)](_0x49cc98[_0x564aba(0x1ae)]))return void(this[_0x564aba(0x19f)]=!0x1);this[_0x564aba(0x19f)]=!0x0;}[_0x13e8ab(0x1c0)](_0x2ae92d='',_0x188a6c='',_0x508d47=_0x13e8ab(0x1c8)){const _0x18fcd3=_0x13e8ab;this[_0x18fcd3(0x1ac)][_0x18fcd3(0x1b4)][_0x18fcd3(0x1a4)](_0x1e3778)[_0x18fcd3(0x1a5)](_0x2ae92d,_0x188a6c,_0x508d47);}}function F(_0x29e70c,_0x35764c){const _0x43e288=_0x13e8ab,_0x14fdf7=new Set();for(const _0xa04116 of _0x29e70c[_0x43e288(0x1aa)]())(_0x35764c||!0x1===_0xa04116[_0x43e288(0x1c7)])&&_0x14fdf7[_0x43e288(0x1c5)](_0xa04116['id']);return Array[_0x43e288(0x1a8)](_0x14fdf7);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2a8a68,_0x36fe51,_0x240cd9){const t=_0x2a8a68['t'];switch(_0x36fe51){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',_0x240cd9);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x240cd9);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'},_0x240cd9);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 _0x36fe51;}}
23
+ export function getTranslation(_0x1bbf38,_0x270519,_0x34bab5){const t=_0x1bbf38['t'];switch(_0x270519){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',_0x34bab5);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x34bab5);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'},_0x34bab5);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 _0x270519;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x2ed21a,_0x1ff88d){const _0x395ad1=(0x0,_0x1ff88d['t'])('Other');return _0x2ed21a['length']?'groupId'in _0x2ed21a[0x0]?_0x2ed21a:[{'groupId':'_ungrouppedCommands','groupLabel':_0x395ad1,'order':0x1/0x0,'commands':_0x2ed21a}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x395ad1,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x25fcf1,_0x2b009c){const _0x4fbfdc=(0x0,_0x2b009c['t'])('Other');return _0x25fcf1['length']?'groupId'in _0x25fcf1[0x0]?_0x25fcf1:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4fbfdc,'order':0x1/0x0,'commands':_0x25fcf1}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4fbfdc,'order':0x1/0x0,'commands':[]}];}