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

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 (191) 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 +16 -11
  150. package/src/adapters/aiadapter.d.ts +2 -2
  151. package/src/adapters/aiadapter.js +1 -1
  152. package/src/adapters/aitextadapter.d.ts +4 -4
  153. package/src/adapters/aitextadapter.js +1 -1
  154. package/src/adapters/awstextadapter.d.ts +7 -7
  155. package/src/adapters/awstextadapter.js +1 -1
  156. package/src/adapters/openaitextadapter.d.ts +6 -7
  157. package/src/adapters/openaitextadapter.js +1 -1
  158. package/src/aiassistant.d.ts +11 -11
  159. package/src/aiassistant.js +1 -1
  160. package/src/aiassistantediting.d.ts +3 -3
  161. package/src/aiassistantediting.js +1 -1
  162. package/src/aiassistantui.d.ts +3 -3
  163. package/src/aiassistantui.js +1 -1
  164. package/src/aiconfig.d.ts +4 -4
  165. package/src/augmentation.d.ts +6 -6
  166. package/src/index.d.ts +9 -6
  167. package/src/index.js +1 -1
  168. package/src/legacyerrors.js +1 -1
  169. package/src/ui/aiassistantcontroller.d.ts +3 -3
  170. package/src/ui/aiassistantcontroller.js +2 -2
  171. package/src/ui/form/aiformcontentarea.d.ts +1 -1
  172. package/src/ui/form/aiformcontentarea.js +1 -1
  173. package/src/ui/form/aiformerrorview.d.ts +1 -1
  174. package/src/ui/form/aiformerrorview.js +1 -1
  175. package/src/ui/form/aiformpromptview.d.ts +1 -1
  176. package/src/ui/form/aiformpromptview.js +1 -1
  177. package/src/ui/form/aiformtoolbarview.d.ts +1 -1
  178. package/src/ui/form/aiformtoolbarview.js +1 -1
  179. package/src/ui/form/aiformview.d.ts +5 -5
  180. package/src/ui/form/aiformview.js +1 -1
  181. package/src/ui/form/aihistorylistitemview.d.ts +1 -1
  182. package/src/ui/form/aihistorylistitemview.js +1 -1
  183. package/src/ui/form/aihistorylistview.d.ts +1 -1
  184. package/src/ui/form/aihistorylistview.js +1 -1
  185. package/src/ui/form/prompthistory.d.ts +1 -1
  186. package/src/ui/form/prompthistory.js +1 -1
  187. package/src/ui/showaiassistantcommand.d.ts +3 -3
  188. package/src/ui/showaiassistantcommand.js +1 -1
  189. package/src/utils/common-translations.js +1 -1
  190. package/src/utils/normalizecommandsconfig.d.ts +2 -2
  191. package/src/utils/normalizecommandsconfig.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x217279=_0x425d;(function(_0xe20d5f,_0x2e4068){const _0x597432=_0x425d,_0x1cb6da=_0xe20d5f();while(!![]){try{const _0x139269=parseInt(_0x597432(0x1cd))/0x1*(parseInt(_0x597432(0x1ce))/0x2)+-parseInt(_0x597432(0x184))/0x3*(parseInt(_0x597432(0x187))/0x4)+parseInt(_0x597432(0x17e))/0x5*(parseInt(_0x597432(0x1ac))/0x6)+-parseInt(_0x597432(0x1c2))/0x7+-parseInt(_0x597432(0x18e))/0x8+parseInt(_0x597432(0x18b))/0x9+parseInt(_0x597432(0x1c0))/0xa;if(_0x139269===_0x2e4068)break;else _0x1cb6da['push'](_0x1cb6da['shift']());}catch(_0x5c13ff){_0x1cb6da['push'](_0x1cb6da['shift']());}}}(_0x3e14,0x63432));import{FocusTracker as _0x24975c,KeystrokeHandler as _0x39ab6f}from'ckeditor5/src/utils.js';import{View as _0x1c9fa8,FocusCycler as _0x36fc08,createLabeledTextarea as _0x3a6a31}from'ckeditor5/src/ui.js';import _0x863a7a,{AIFormToolbarViewMainActionLabel as _0x102782}from'./aiformtoolbarview.js';function _0x3e14(){const _0x2a29e8=['fire','1363300BmjkzA','tab','_createPromptView','clear','4924287PRATqT','focusTracker','shift\x20+\x20tab','4519816bvyqvN','add','mainAction','_createToolbar','focusFirst','high','ck-ai-form-content','items','historyGroupView','text','locale','render','submit','listenTo','promptView','handleError','prompt','focusLast','startProcessing','set','insertContentBelow','_focusables','contentArea','_createHistoryView','isVisible','ck-hidden','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','search','bindTemplate','replaceContent','6guDYuj','insertButton','_promptHistory','stopButton','tryAgainButton','errorView','queryView','focusCycler','stopProcessing','reset','execute','submitPrompt','chain','label','fieldView','value','Ask\x20AI\x20to\x20edit\x20or\x20generate','focus','createCollection','toolbar','3616500fQECuF','bindTo','294847pszwVi','keystrokes','isProcessing','bind','AI_ERROR_FAILED','delegate','ck-ai-form','copyButtonView','Empty\x20history','finishProcessing','Ask\x20AI\x20to\x20improve\x20generated\x20text','1cOtFMf','401684NyNSyM','element','setTemplate','tryAgainEvent','isEnabled','2928455JsOgGs','REPLACE','trim','replaceButton','div','isError','6BMnjPW','clearHistory'];_0x3e14=function(){return _0x2a29e8;};return _0x3e14();}function _0x425d(_0xc1c2e3,_0x276c01){const _0x3e1444=_0x3e14();return _0x425d=function(_0x425db0,_0x500846){_0x425db0=_0x425db0-0x17c;let _0x525253=_0x3e1444[_0x425db0];return _0x525253;},_0x425d(_0xc1c2e3,_0x276c01);}import _0x54c994 from'./aiformcontentarea.js';import _0x4c585c from'./aiformerrorview.js';import _0x2e6ce4 from'./aiformpromptview.js';import _0x366627 from'./aihistorylistview.js';import _0x56f6ad from'./aihistorylistitemview.js';import _0x32db99 from'./prompthistory.js';import{getTranslation as _0x5de801}from'../../utils/common-translations.js';import{escape as _0xedd658}from'es-toolkit/compat';export default class _ extends _0x1c9fa8{[_0x217279(0x18c)];[_0x217279(0x1c3)];[_0x217279(0x1a4)];[_0x217279(0x1bf)];[_0x217279(0x19c)];[_0x217279(0x1b1)];[_0x217279(0x1a3)];[_0x217279(0x1b3)];[_0x217279(0x1ae)];constructor(_0x42429f,_0x5645fe,_0x6f69f3=''){const _0x16fcef=_0x217279;super(_0x42429f),this[_0x16fcef(0x1a1)](_0x16fcef(0x17d),!0x0),this[_0x16fcef(0x1a1)](_0x16fcef(0x1c4),!0x1),this[_0x16fcef(0x1a1)](_0x16fcef(0x19e),''),this[_0x16fcef(0x1a1)](_0x16fcef(0x1bb),''),this[_0x16fcef(0x1a1)](_0x16fcef(0x183),!0x1),this[_0x16fcef(0x1a1)](_0x16fcef(0x190),_0x102782[_0x16fcef(0x17f)]),this[_0x16fcef(0x1ae)]=new _0x32db99(),this[_0x16fcef(0x1b1)]=new _0x4c585c(_0x42429f),this[_0x16fcef(0x1a4)]=new _0x54c994(_0x42429f,_0x6f69f3),this[_0x16fcef(0x1a4)][_0x16fcef(0x1c5)](_0x16fcef(0x1c4))['to'](this),this[_0x16fcef(0x1a4)][_0x16fcef(0x1c5)](_0x16fcef(0x1bb))['to'](this),this[_0x16fcef(0x1bf)]=this[_0x16fcef(0x191)](),this[_0x16fcef(0x1bf)][_0x16fcef(0x1c5)](_0x16fcef(0x190))['to'](this),this[_0x16fcef(0x19c)]=this[_0x16fcef(0x189)](),this[_0x16fcef(0x18c)]=new _0x24975c(),this[_0x16fcef(0x1c3)]=new _0x39ab6f(),this[_0x16fcef(0x1a3)]=this[_0x16fcef(0x1be)]([this[_0x16fcef(0x1a4)],this[_0x16fcef(0x1a4)][_0x16fcef(0x1c9)],this[_0x16fcef(0x1bf)],this[_0x16fcef(0x19c)]]),this[_0x16fcef(0x1b3)]=new _0x36fc08({'focusables':this[_0x16fcef(0x1a3)],'focusTracker':this[_0x16fcef(0x18c)],'keystrokeHandler':this[_0x16fcef(0x1c3)],'actions':{'focusPrevious':_0x16fcef(0x18d),'focusNext':_0x16fcef(0x188)}}),this[_0x16fcef(0x1b3)][_0x16fcef(0x1b8)](this[_0x16fcef(0x19c)][_0x16fcef(0x1b3)]),this[_0x16fcef(0x19c)][_0x16fcef(0x1b2)][_0x16fcef(0x1ba)][_0x16fcef(0x1c5)](_0x16fcef(0x1bb))['to'](this,_0x16fcef(0x19e));const _0x4785ec=this[_0x16fcef(0x1aa)];this[_0x16fcef(0x1d0)]({'tag':_0x16fcef(0x182),'attributes':{'class':['ck',_0x16fcef(0x1c8),_0x5645fe],'tabindex':'-1'},'children':[{'tag':_0x16fcef(0x182),'attributes':{'class':['ck',_0x16fcef(0x194)]},'children':[{'tag':_0x16fcef(0x182),'attributes':{'class':[_0x4785ec['if'](_0x16fcef(0x183),_0x16fcef(0x1a7),_0x3d51a6=>!_0x3d51a6)]},'children':[this[_0x16fcef(0x1b1)]]},this[_0x16fcef(0x1a4)],this[_0x16fcef(0x1bf)],this[_0x16fcef(0x19c)]]}]});}[_0x217279(0x199)](){const _0x10f819=_0x217279;super[_0x10f819(0x199)](),this[_0x10f819(0x18c)][_0x10f819(0x18f)](this[_0x10f819(0x1a4)][_0x10f819(0x1cf)]),this[_0x10f819(0x18c)][_0x10f819(0x18f)](this[_0x10f819(0x1a4)][_0x10f819(0x1c9)][_0x10f819(0x1cf)]),this[_0x10f819(0x18c)][_0x10f819(0x18f)](this[_0x10f819(0x1bf)][_0x10f819(0x1cf)]),this[_0x10f819(0x18c)][_0x10f819(0x18f)](this[_0x10f819(0x19c)][_0x10f819(0x1cf)]),this[_0x10f819(0x1c3)][_0x10f819(0x19b)](this[_0x10f819(0x1cf)]);}[_0x217279(0x1bd)](_0x384319=0x1){const _0x441e88=_0x217279;-0x1===_0x384319?this[_0x441e88(0x1b3)][_0x441e88(0x19f)]():this[_0x441e88(0x1b3)][_0x441e88(0x192)]();}[_0x217279(0x1b5)](){const _0x324cc4=_0x217279;this[_0x324cc4(0x19e)]='',this[_0x324cc4(0x1bb)]='',this[_0x324cc4(0x183)]=!0x1,this[_0x324cc4(0x19c)][_0x324cc4(0x1b5)](),this[_0x324cc4(0x1a4)][_0x324cc4(0x1a6)]=!0x1,this[_0x324cc4(0x1bf)][_0x324cc4(0x1a6)]=!0x1;}[_0x217279(0x189)](){const _0x27e58a=_0x217279,_0x1f266c=this[_0x27e58a(0x198)],_0x25eb8b=new _0x2e6ce4(_0x1f266c,{'queryView':{'label':_0x5de801(_0x1f266c,_0x27e58a(0x1bc)),'creator':_0x3a6a31,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5de801(_0x1f266c,_0x27e58a(0x1ca)),'secondary':_0x5de801(_0x1f266c,_0x27e58a(0x1a8))}}},'filteredView':this[_0x27e58a(0x1a5)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x25eb8b[_0x27e58a(0x1c5)](_0x27e58a(0x17d))['to'](this,_0x27e58a(0x17d),this,_0x27e58a(0x1c4),(_0x26d716,_0x2cf2ed)=>_0x26d716&&!_0x2cf2ed),this[_0x27e58a(0x19b)](_0x25eb8b,_0x27e58a(0x19a),(_0x4b55c5,_0x31d072)=>{const _0xce04dd=_0x27e58a;this[_0xce04dd(0x19e)]=_0x31d072;const _0x3ba45a=_0xedd658(_0x31d072);this[_0xce04dd(0x186)](_0xce04dd(0x1b7),_0x3ba45a),_0x31d072[_0xce04dd(0x180)]()&&this[_0xce04dd(0x1ae)][_0xce04dd(0x18f)]({'prompt':_0x3ba45a},0x0);},{'priority':_0x27e58a(0x193)}),_0x25eb8b;}[_0x217279(0x1a5)](){const _0x19f907=_0x217279,_0x10ab86=new _0x366627(this[_0x19f907(0x198)]);return _0x10ab86[_0x19f907(0x196)][_0x19f907(0x195)][_0x19f907(0x1c1)](this[_0x19f907(0x1ae)])['as'](_0x56f6ad),_0x10ab86['on'](_0x19f907(0x185),()=>{const _0x36e5ad=_0x19f907;this[_0x36e5ad(0x1ae)][_0x36e5ad(0x18a)](),this[_0x36e5ad(0x19c)][_0x36e5ad(0x1a9)](''),this[_0x36e5ad(0x19c)][_0x36e5ad(0x1bd)]();}),_0x10ab86;}[_0x217279(0x191)](){const _0x30d75e=_0x217279,_0x1dcc22=new _0x863a7a(this[_0x30d75e(0x198)]);return _0x1dcc22[_0x30d75e(0x181)][_0x30d75e(0x1c5)](_0x30d75e(0x17d))['to'](this,_0x30d75e(0x17d),this,_0x30d75e(0x1c4),this,_0x30d75e(0x1bb),(_0x32e701,_0x1cc3c1,_0x35f298)=>_0x32e701&&!_0x1cc3c1&&!!_0x35f298),_0x1dcc22[_0x30d75e(0x181)][_0x30d75e(0x1c7)](_0x30d75e(0x1b6))['to'](this,_0x30d75e(0x1ab)),_0x1dcc22[_0x30d75e(0x1ad)][_0x30d75e(0x1c5)](_0x30d75e(0x17d))['to'](this,_0x30d75e(0x17d),this,_0x30d75e(0x1c4),this,_0x30d75e(0x1bb),(_0x5630e7,_0x5b2672,_0x3df824)=>_0x5630e7&&!_0x5b2672&&!!_0x3df824),_0x1dcc22[_0x30d75e(0x1ad)][_0x30d75e(0x1c7)](_0x30d75e(0x1b6))['to'](this,_0x30d75e(0x1a2)),_0x1dcc22[_0x30d75e(0x1b0)][_0x30d75e(0x1c5)](_0x30d75e(0x17d))['to'](this,_0x30d75e(0x17d),this,_0x30d75e(0x1c4),(_0x948b55,_0x5e8401)=>_0x948b55&&!_0x5e8401),_0x1dcc22[_0x30d75e(0x1b0)][_0x30d75e(0x1c7)](_0x30d75e(0x1b6))['to'](this,_0x30d75e(0x17c)),_0x1dcc22[_0x30d75e(0x1af)][_0x30d75e(0x1c5)](_0x30d75e(0x17d))['to'](this,_0x30d75e(0x1c4)),_0x1dcc22[_0x30d75e(0x1af)][_0x30d75e(0x1c7)](_0x30d75e(0x1b6))['to'](this,_0x30d75e(0x1b4)),_0x1dcc22;}[_0x217279(0x1a0)](){const _0x10b1dd=_0x217279;this[_0x10b1dd(0x1bb)]='',this[_0x10b1dd(0x183)]=!0x1,this[_0x10b1dd(0x1c4)]=!0x0,this[_0x10b1dd(0x1a4)][_0x10b1dd(0x1a6)]=!0x0,this[_0x10b1dd(0x1bf)][_0x10b1dd(0x1a6)]=!0x0,this[_0x10b1dd(0x1a4)][_0x10b1dd(0x1bd)]();}[_0x217279(0x1cb)](){const _0x2aa4e0=_0x217279,_0x329d18=this[_0x2aa4e0(0x198)];this[_0x2aa4e0(0x1c4)]=!0x1,this[_0x2aa4e0(0x19e)]='',this[_0x2aa4e0(0x19c)][_0x2aa4e0(0x1b5)](),this[_0x2aa4e0(0x1bb)]&&(this[_0x2aa4e0(0x19c)][_0x2aa4e0(0x1b2)][_0x2aa4e0(0x1b9)]=_0x5de801(_0x329d18,_0x2aa4e0(0x1cc)));}[_0x217279(0x19d)](_0x3d3c06){const _0x5b2c61=_0x217279,_0x2cb1e9=this[_0x5b2c61(0x198)];this[_0x5b2c61(0x1cb)](),this[_0x5b2c61(0x183)]=!0x0,this[_0x5b2c61(0x1b1)][_0x5b2c61(0x197)]=_0x3d3c06||_0x5de801(_0x2cb1e9,_0x5b2c61(0x1c6)),this[_0x5b2c61(0x1bb)]||(this[_0x5b2c61(0x1a4)][_0x5b2c61(0x1a6)]=!0x1);}}
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);}}
@@ -10,7 +10,7 @@ import type { PromptHistoryEntry } from './prompthistory.js';
10
10
  /**
11
11
  * A list item view that displays a historical prompt
12
12
  */
13
- export default class AIHistoryListItemView extends ListItemView {
13
+ export declare class AIHistoryListItemView extends ListItemView {
14
14
  /**
15
15
  * @inheritDoc
16
16
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x21e2e3,_0x3d276e){const _0x1f82b7=_0x15d5,_0x15b0ee=_0x21e2e3();while(!![]){try{const _0x511b0a=-parseInt(_0x1f82b7(0x89))/0x1*(parseInt(_0x1f82b7(0x85))/0x2)+parseInt(_0x1f82b7(0x80))/0x3+parseInt(_0x1f82b7(0x7d))/0x4+-parseInt(_0x1f82b7(0x8a))/0x5+-parseInt(_0x1f82b7(0x88))/0x6*(parseInt(_0x1f82b7(0x7e))/0x7)+-parseInt(_0x1f82b7(0x7c))/0x8*(parseInt(_0x1f82b7(0x82))/0x9)+parseInt(_0x1f82b7(0x87))/0xa;if(_0x511b0a===_0x3d276e)break;else _0x15b0ee['push'](_0x15b0ee['shift']());}catch(_0x554b71){_0x15b0ee['push'](_0x15b0ee['shift']());}}}(_0x5e59,0x3d374));import{ListItemView as _0x241745,ButtonView as _0x543990,ButtonLabelView as _0x2da252}from'ckeditor5/src/ui.js';function _0x5e59(){const _0x5a0f92=['5119900gUGxRi','391254bQSneS','5hwCZsJ','1065680hOBdzj','children','prompt','8JfkZCS','1765360uAdrAF','14KXQTCO','fire','507450onqyvP','set','909099CAHhOh','locale','execute','170870fTGiAD','add'];_0x5e59=function(){return _0x5a0f92;};return _0x5e59();}function _0x15d5(_0x3845c8,_0x326bc0){const _0x5e5993=_0x5e59();return _0x15d5=function(_0x15d547,_0x251825){_0x15d547=_0x15d547-0x7a;let _0x13cde3=_0x5e5993[_0x15d547];return _0x13cde3;},_0x15d5(_0x3845c8,_0x326bc0);}import{unescape as _0x5b4260}from'es-toolkit/compat';export default class bt extends _0x241745{constructor(_0x183270){const _0x35df2d=_0x15d5;super();const _0x2ccf92=new _0x2da252(),_0x5c5e38=new _0x543990(this[_0x35df2d(0x83)],_0x2ccf92);this[_0x35df2d(0x7a)][_0x35df2d(0x86)](_0x5c5e38),_0x5c5e38[_0x35df2d(0x81)]({'label':_0x183270[_0x35df2d(0x7b)],'withText':!0x0}),_0x5c5e38['on'](_0x35df2d(0x84),()=>{const _0x3092fb=_0x35df2d;this[_0x3092fb(0x7f)](_0x3092fb(0x84),{'value':_0x5b4260(_0x183270[_0x3092fb(0x7b)])});});}}
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)])});});}}
@@ -12,7 +12,7 @@ import type { Locale } from 'ckeditor5/src/utils.js';
12
12
  *
13
13
  * @private
14
14
  */
15
- export default class AIHistoryListView extends ListView implements FilteredView {
15
+ export declare class AIHistoryListView extends ListView implements FilteredView {
16
16
  historyGroupView: ListItemGroupView;
17
17
  clearHistoryButton: ButtonView;
18
18
  constructor(locale: Locale);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18d733=_0x4198;(function(_0x1f59f4,_0x566692){const _0xcfc6e7=_0x4198,_0x19bd7b=_0x1f59f4();while(!![]){try{const _0x3e69f9=parseInt(_0xcfc6e7(0x15d))/0x1+-parseInt(_0xcfc6e7(0x168))/0x2+parseInt(_0xcfc6e7(0x162))/0x3+parseInt(_0xcfc6e7(0x167))/0x4+-parseInt(_0xcfc6e7(0x16a))/0x5+parseInt(_0xcfc6e7(0x174))/0x6*(parseInt(_0xcfc6e7(0x165))/0x7)+-parseInt(_0xcfc6e7(0x16f))/0x8*(-parseInt(_0xcfc6e7(0x15f))/0x9);if(_0x3e69f9===_0x566692)break;else _0x19bd7b['push'](_0x19bd7b['shift']());}catch(_0x4e2e41){_0x19bd7b['push'](_0x19bd7b['shift']());}}}(_0x488b,0x709a6));function _0x488b(){const _0x1ab933=['fire','children','delegate','40560IQBtFe','set','label','items','Clear','2382aJAcVl','locale','clearHistoryButton','252586DCHlAr','add','729DasBEw','Prompt\x20history','length','2636172ghaBaN','_createClearHistoryButton','historyGroupView','6069WnHcZX','execute','1385392vNblll','1790028WjtlhG','clearHistory','4381455nKmHOt','filter'];_0x488b=function(){return _0x1ab933;};return _0x488b();}function _0x4198(_0x228cd8,_0x505b70){const _0x488b44=_0x488b();return _0x4198=function(_0x419822,_0x437098){_0x419822=_0x419822-0x15d;let _0xd9c90c=_0x488b44[_0x419822];return _0xd9c90c;},_0x4198(_0x228cd8,_0x505b70);}import{ListView as _0x3483fb,ListItemGroupView as _0x3cc585,ButtonView as _0x57cb81}from'ckeditor5/src/ui.js';import{getTranslation as _0x589866}from'../../utils/common-translations.js';export default class ft extends _0x3483fb{[_0x18d733(0x164)];[_0x18d733(0x176)];constructor(_0x20aa87){const _0x346d4e=_0x18d733;super(_0x20aa87),this[_0x346d4e(0x176)]=this[_0x346d4e(0x163)](),this[_0x346d4e(0x164)]=new _0x3cc585(),this[_0x346d4e(0x164)][_0x346d4e(0x16d)][_0x346d4e(0x15e)](this[_0x346d4e(0x176)],0x1),this[_0x346d4e(0x164)][_0x346d4e(0x171)]=_0x589866(_0x20aa87,_0x346d4e(0x160)),this[_0x346d4e(0x164)][_0x346d4e(0x172)][_0x346d4e(0x16e)](_0x346d4e(0x166))['to'](this),this[_0x346d4e(0x172)][_0x346d4e(0x15e)](this[_0x346d4e(0x164)]);}[_0x18d733(0x16b)](){const _0x49dd88=_0x18d733;let _0x43a6dd=0x0;for(const _0x513887 of this[_0x49dd88(0x172)])_0x43a6dd+=_0x513887[_0x49dd88(0x172)][_0x49dd88(0x161)];return{'resultsCount':_0x43a6dd,'totalItemsCount':_0x43a6dd};}[_0x18d733(0x163)](){const _0x5ec672=_0x18d733,_0x18d90e=this[_0x5ec672(0x175)],_0x262c64=new _0x57cb81(this[_0x5ec672(0x175)]);return _0x262c64[_0x5ec672(0x170)]({'label':'('+_0x589866(_0x18d90e,_0x5ec672(0x173))+')','withText':!0x0}),_0x262c64['on'](_0x5ec672(0x166),()=>this[_0x5ec672(0x16c)](_0x5ec672(0x169))),_0x262c64;}}
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;}}
@@ -6,7 +6,7 @@ import { Collection } from 'ckeditor5/src/utils.js';
6
6
  /**
7
7
  * A collection that stores the prompt history in the session storage as a side effect.
8
8
  */
9
- export default class PromptHistory extends Collection<PromptHistoryEntry> {
9
+ export declare class PromptHistory extends Collection<PromptHistoryEntry> {
10
10
  /**
11
11
  * @inheritDoc
12
12
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc11c99=_0x3ca4;(function(_0x97eedf,_0xeedc6c){const _0x95e835=_0x3ca4,_0x291d6e=_0x97eedf();while(!![]){try{const _0x88debf=parseInt(_0x95e835(0x144))/0x1*(parseInt(_0x95e835(0x137))/0x2)+-parseInt(_0x95e835(0x13a))/0x3+parseInt(_0x95e835(0x12f))/0x4+-parseInt(_0x95e835(0x13f))/0x5*(parseInt(_0x95e835(0x13c))/0x6)+parseInt(_0x95e835(0x145))/0x7+parseInt(_0x95e835(0x146))/0x8+parseInt(_0x95e835(0x134))/0x9;if(_0x88debf===_0xeedc6c)break;else _0x291d6e['push'](_0x291d6e['shift']());}catch(_0x14c510){_0x291d6e['push'](_0x291d6e['shift']());}}}(_0x263d,0xea06f));function _0x3ca4(_0x5d821c,_0x3b9683){const _0x263d13=_0x263d();return _0x3ca4=function(_0x3ca43b,_0x452643){_0x3ca43b=_0x3ca43b-0x12e;let _0xbe6c91=_0x263d13[_0x3ca43b];return _0xbe6c91;},_0x3ca4(_0x5d821c,_0x3b9683);}import{Collection as _0x2dbefd}from'ckeditor5/src/utils.js';const ts=_0xc11c99(0x133);export default class wt extends _0x2dbefd{constructor(){const _0xb3341c=_0xc11c99;super(),this[_0xb3341c(0x138)](),this['on'](_0xb3341c(0x141),(_0x4c9f25,_0x36cc2e)=>{const _0x4489d2=_0xb3341c,_0x3c3f1b=os(_0x36cc2e[_0x4489d2(0x130)]);for(const _0x33e9e9 of this)if(_0x33e9e9!=_0x36cc2e&&os(_0x33e9e9[_0x4489d2(0x130)])===_0x3c3f1b){this[_0x4489d2(0x140)](_0x33e9e9);break;}this[_0x4489d2(0x132)]>0x14&&this[_0x4489d2(0x140)](this[_0x4489d2(0x131)]),this[_0x4489d2(0x139)]();}),this['on'](_0xb3341c(0x140),()=>{const _0x50203e=_0xb3341c;this[_0x50203e(0x139)]();});}[_0xc11c99(0x138)](){const _0x23127d=_0xc11c99,_0x3fa65d=sessionStorage[_0x23127d(0x12e)](ts)||'[]';this[_0x23127d(0x143)](JSON[_0x23127d(0x136)](_0x3fa65d));}[_0xc11c99(0x139)](){const _0x116429=_0xc11c99;sessionStorage[_0x116429(0x13d)](ts,JSON[_0x116429(0x13e)](this[_0x116429(0x13b)](_0x17f81c=>_0x17f81c)));}}function os(_0x592218){const _0x5a1a74=_0xc11c99;return _0x592218[_0x5a1a74(0x142)]()[_0x5a1a74(0x135)]();}function _0x263d(){const _0x45a612=['3085698LEbsCR','setItem','stringify','10fPcCmv','remove','add','toLowerCase','addMany','18UeNJVu','3219034hcGYuJ','7157704jFsuKr','getItem','2740176zExxFY','prompt','last','length','CKEditor/AIFormView/PromptHistory','8780337enYZsX','trim','parse','4838qxNnrS','_loadFromSessionStorage','_saveToSessionStorage','3214839OXWnSa','map'];_0x263d=function(){return _0x45a612;};return _0x263d();}
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)]();}
@@ -7,11 +7,11 @@
7
7
  * @publicApi
8
8
  */
9
9
  import { Command, type Editor } from 'ckeditor5/src/core.js';
10
- import type { CommandDefinition } from '../aiassistant.js';
10
+ import type { AICommandDefinition } from '../aiassistant.js';
11
11
  /**
12
12
  * Command that shows the AI Assistant user interface.
13
13
  */
14
- export default class ShowAIAssistantCommand extends Command {
14
+ export declare class ShowAIAssistantCommand extends Command {
15
15
  /**
16
16
  * An array with ids of the AI commands enabled for the current selection.
17
17
  *
@@ -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, commandDefinitions: Array<CommandDefinition>);
24
+ constructor(editor: Editor, commandDefinitions: Array<AICommandDefinition>);
25
25
  /**
26
26
  * @inheritDoc
27
27
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x372aff=_0x3652;function _0x3652(_0x1e9a18,_0x133db6){const _0x17ff12=_0x17ff();return _0x3652=function(_0x36522a,_0x3ff728){_0x36522a=_0x36522a-0xb1;let _0x18c732=_0x17ff12[_0x36522a];return _0x18c732;},_0x3652(_0x1e9a18,_0x133db6);}(function(_0x2c581b,_0x3a340b){const _0x5ac745=_0x3652,_0x53cc66=_0x2c581b();while(!![]){try{const _0x148cc8=parseInt(_0x5ac745(0xc9))/0x1+parseInt(_0x5ac745(0xd3))/0x2+parseInt(_0x5ac745(0xc2))/0x3+-parseInt(_0x5ac745(0xcd))/0x4*(parseInt(_0x5ac745(0xd6))/0x5)+parseInt(_0x5ac745(0xcc))/0x6+-parseInt(_0x5ac745(0xbf))/0x7+-parseInt(_0x5ac745(0xb9))/0x8;if(_0x148cc8===_0x3a340b)break;else _0x53cc66['push'](_0x53cc66['shift']());}catch(_0xbc2c52){_0x53cc66['push'](_0x53cc66['shift']());}}}(_0x17ff,0x22719));function _0x17ff(){const _0x4a3625=['_commandDefinitions','execute','getItems','editor','values','88589aoRlFa','selection','custom','1280700CPGqvM','16IseHAP','refresh','add','getSelectedBlocks','_hasContext','hasContent','438232XxqCMB','name','length','279635FJpzeZ','get','plugins','document','element','set','enabledCommandsIds','change:_hasContext','requiresContent','ai.aiAssistant.disabledElements','config','showUI','change:isEnabled','1197216mvaEju','isEnabled','isCollapsed','getRanges','getFirstRange','includes','1070993oJbPAh','from','model','438855TitmYQ','isEmpty'];_0x17ff=function(){return _0x4a3625;};return _0x17ff();}import{Command as _0x4aee11}from'ckeditor5/src/core.js';import _0x26734 from'../aiassistantui.js';export default class j extends _0x4aee11{[_0x372aff(0xc4)];constructor(_0x3fb1d2,_0x19b838){const _0x56497c=_0x372aff;super(_0x3fb1d2),this[_0x56497c(0xc4)]=_0x19b838,this[_0x56497c(0xb1)](_0x56497c(0xb2),[]),this['on'](_0x56497c(0xb3),(_0x303409,_0x406b8a,_0x3c0b63)=>{const _0x546435=_0x56497c;this[_0x546435(0xba)]&&(this[_0x546435(0xb2)]=G(this[_0x546435(0xc4)],_0x3c0b63));}),this[_0x56497c(0xb1)](_0x56497c(0xd1),!0x1),this['on'](_0x56497c(0xb8),(_0x14d894,_0x4c1b74,_0x2fe7ab)=>{const _0x118726=_0x56497c;this[_0x118726(0xb2)]=_0x2fe7ab?G(this[_0x118726(0xc4)],this[_0x118726(0xd1)]):[];});}[_0x372aff(0xce)](){const _0x33232a=_0x372aff,_0x254b97=this[_0x33232a(0xc7)][_0x33232a(0xc1)];this[_0x33232a(0xd1)]=function(_0x1e745d){const _0x1f0514=_0x33232a,_0x2bb236=_0x1e745d[_0x1f0514(0xd9)][_0x1f0514(0xca)];return _0x2bb236[_0x1f0514(0xbb)]?0x0!==[..._0x2bb236[_0x1f0514(0xd0)]()][_0x1f0514(0xd5)]&&![..._0x2bb236[_0x1f0514(0xd0)]()][0x0][_0x1f0514(0xc3)]:!!_0x1e745d[_0x1f0514(0xd2)](_0x2bb236[_0x1f0514(0xbd)]());}(_0x254b97);const _0x15b982=_0x254b97[_0x33232a(0xd9)][_0x33232a(0xca)],_0x29d648=this[_0x33232a(0xc7)][_0x33232a(0xb6)][_0x33232a(0xd7)](_0x33232a(0xb5));for(const _0x2059da of _0x15b982[_0x33232a(0xbc)]())for(const _0x21daba of _0x2059da[_0x33232a(0xc6)]())if(_0x21daba['is'](_0x33232a(0xda))&&_0x29d648[_0x33232a(0xbe)](_0x21daba[_0x33232a(0xd4)]))return void(this[_0x33232a(0xba)]=!0x1);this[_0x33232a(0xba)]=!0x0;}[_0x372aff(0xc5)](_0x15df67='',_0x25cb13='',_0x4abc0c=_0x372aff(0xcb)){const _0x27d159=_0x372aff;this[_0x27d159(0xc7)][_0x27d159(0xd8)][_0x27d159(0xd7)](_0x26734)[_0x27d159(0xb7)](_0x15df67,_0x25cb13,_0x4abc0c);}}function G(_0x583e6f,_0x2d9c7f){const _0x107b0d=_0x372aff,_0x4c224a=new Set();for(const _0xea9770 of _0x583e6f[_0x107b0d(0xc8)]())(_0x2d9c7f||!0x1===_0xea9770[_0x107b0d(0xb4)])&&_0x4c224a[_0x107b0d(0xcf)](_0xea9770['id']);return Array[_0x107b0d(0xc0)](_0x4c224a);}
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();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5b4993,_0x538840,_0x39cadd){const t=_0x5b4993['t'];switch(_0x538840){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',_0x39cadd);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x39cadd);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'},_0x39cadd);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 _0x538840;}}
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;}}
@@ -6,9 +6,9 @@
6
6
  * @module ai/utils/normalizecommandsconfig
7
7
  */
8
8
  import type { Locale } from 'ckeditor5/src/utils.js';
9
- import type { GroupDefinition, CommandDefinition } from '../aiassistant.js';
9
+ import type { AIGroupDefinition, AICommandDefinition } from '../aiassistant.js';
10
10
  export declare const UNGROUPED_COMMANDS_GROUP_ID = "_ungrouppedCommands";
11
11
  /**
12
12
  * Normalizes the `config.ai.aiAssistant.commands` configuration taking into account different possible config formats (or lack thereof).
13
13
  */
14
- export declare function normalizeCommandsConfig(config: Array<GroupDefinition | CommandDefinition>, locale: Locale): Array<GroupDefinition>;
14
+ export declare function normalizeCommandsConfig(config: Array<AIGroupDefinition | AICommandDefinition>, locale: Locale): Array<AIGroupDefinition>;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x10cb1a,_0x4e1a44){const _0x12f703=(0x0,_0x4e1a44['t'])('Other');return _0x10cb1a['length']?'groupId'in _0x10cb1a[0x0]?_0x10cb1a:[{'groupId':'_ungrouppedCommands','groupLabel':_0x12f703,'order':0x1/0x0,'commands':_0x10cb1a}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x12f703,'order':0x1/0x0,'commands':[]}];}
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':[]}];}