@ckeditor/ckeditor5-ai 44.0.0-alpha.5 → 44.0.0-alpha.7

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 (168) 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/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +8 -8
  148. package/src/adapters/aiadapter.js +1 -1
  149. package/src/adapters/aitextadapter.js +1 -1
  150. package/src/adapters/awstextadapter.js +1 -1
  151. package/src/adapters/openaitextadapter.js +1 -1
  152. package/src/aiassistant.js +1 -1
  153. package/src/aiassistantediting.js +1 -1
  154. package/src/aiassistantui.js +1 -1
  155. package/src/index.js +1 -1
  156. package/src/legacyerrors.js +1 -1
  157. package/src/ui/aiassistantcontroller.js +2 -2
  158. package/src/ui/form/aiformcontentarea.js +1 -1
  159. package/src/ui/form/aiformerrorview.js +1 -1
  160. package/src/ui/form/aiformpromptview.js +1 -1
  161. package/src/ui/form/aiformtoolbarview.js +1 -1
  162. package/src/ui/form/aiformview.js +1 -1
  163. package/src/ui/form/aihistorylistitemview.js +1 -1
  164. package/src/ui/form/aihistorylistview.js +1 -1
  165. package/src/ui/form/prompthistory.js +1 -1
  166. package/src/ui/showaiassistantcommand.js +1 -1
  167. package/src/utils/common-translations.js +1 -1
  168. package/src/utils/normalizecommandsconfig.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e1c(){const _0x34768b=['extendTemplate','AI_','1875192TUumbE','427062wVXDao','label','_createButton','43821PokeqQ','toUpperCase','mainAction','locale','items','ck-ai-form__toolbar','121gBrYIa','replaceButton','2044368hlDWVm','bind','7fjFTXT','Insert\x20below','addMany','456606QSoTlR','1260612hjKpuQ','insert','isVisible','stopButton','2095400NJCWmt','10NgcKHh','10tDDQnS','ck-button-action','insertButton','40OOQTSt','Stop','tryAgainButton','REPLACE','ck-hidden','set','Try\x20again','_CONTENT','replace','bindTemplate'];_0x1e1c=function(){return _0x34768b;};return _0x1e1c();}const _0x58609c=_0x3099;function _0x3099(_0x370220,_0x142efb){const _0x1e1c3a=_0x1e1c();return _0x3099=function(_0x30991b,_0x546248){_0x30991b=_0x30991b-0x1e0;let _0x1fb385=_0x1e1c3a[_0x30991b];return _0x1fb385;},_0x3099(_0x370220,_0x142efb);}(function(_0x25fd81,_0x365ea6){const _0x2e13b8=_0x3099,_0x5dc23d=_0x25fd81();while(!![]){try{const _0x5afced=parseInt(_0x2e13b8(0x1e7))/0x1+parseInt(_0x2e13b8(0x1ed))/0x2*(parseInt(_0x2e13b8(0x201))/0x3)+parseInt(_0x2e13b8(0x1e2))/0x4+-parseInt(_0x2e13b8(0x1ee))/0x5*(-parseInt(_0x2e13b8(0x1fe))/0x6)+parseInt(_0x2e13b8(0x1e4))/0x7*(parseInt(_0x2e13b8(0x1ec))/0x8)+-parseInt(_0x2e13b8(0x1e8))/0x9*(-parseInt(_0x2e13b8(0x1f1))/0xa)+-parseInt(_0x2e13b8(0x1e0))/0xb*(parseInt(_0x2e13b8(0x1fd))/0xc);if(_0x5afced===_0x365ea6)break;else _0x5dc23d['push'](_0x5dc23d['shift']());}catch(_0x149305){_0x5dc23d['push'](_0x5dc23d['shift']());}}}(_0x1e1c,0x45e96));import{ToolbarView as _0x468e1d,ButtonView as _0x4ee16f}from'ckeditor5/src/ui.js';import{getTranslation as _0x1641c5}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x58609c(0x1f9),'INSERT':_0x58609c(0x1e9)};export default class nt extends _0x468e1d{constructor(_0x41739f){const _0x3ec3e4=_0x58609c;super(_0x41739f),this[_0x3ec3e4(0x1f6)](_0x3ec3e4(0x1ea),!0x1),this[_0x3ec3e4(0x1f6)](_0x3ec3e4(0x203),AIFormToolbarViewMainActionLabel[_0x3ec3e4(0x1f4)]),this[_0x3ec3e4(0x1e1)]=this[_0x3ec3e4(0x200)]('',_0x3ec3e4(0x1ef)),this[_0x3ec3e4(0x1e1)][_0x3ec3e4(0x1e3)](_0x3ec3e4(0x1ff))['to'](this,_0x3ec3e4(0x203),_0x22659d=>_0x1641c5(_0x41739f,_0x3ec3e4(0x1fc)+_0x22659d[_0x3ec3e4(0x202)]()+_0x3ec3e4(0x1f8))),this[_0x3ec3e4(0x1f0)]=this[_0x3ec3e4(0x200)](_0x1641c5(_0x41739f,_0x3ec3e4(0x1e5))),this[_0x3ec3e4(0x1f3)]=this[_0x3ec3e4(0x200)](_0x1641c5(_0x41739f,_0x3ec3e4(0x1f7))),this[_0x3ec3e4(0x1eb)]=this[_0x3ec3e4(0x200)](_0x1641c5(_0x41739f,_0x3ec3e4(0x1f2)));const _0x17bd40=this[_0x3ec3e4(0x1fa)];this[_0x3ec3e4(0x1fb)]({'attributes':{'class':[_0x3ec3e4(0x206),_0x17bd40['if'](_0x3ec3e4(0x1ea),_0x3ec3e4(0x1f5),_0x5bb02a=>!_0x5bb02a)]}}),this[_0x3ec3e4(0x205)][_0x3ec3e4(0x1e6)]([this[_0x3ec3e4(0x1e1)],this[_0x3ec3e4(0x1f0)],this[_0x3ec3e4(0x1f3)],this[_0x3ec3e4(0x1eb)]]);}[_0x58609c(0x200)](_0x121c20,_0x20d332){const _0x487cf0=_0x58609c,_0x277c6f=new _0x4ee16f(this[_0x487cf0(0x204)]);return _0x277c6f[_0x487cf0(0x1f6)]({'label':_0x121c20,'class':_0x20d332||'','isVisible':!0x0,'withText':!0x0}),_0x277c6f;}}
23
+ const _0x411129=_0x1141;(function(_0x20b1d9,_0x3a83d7){const _0xb27abe=_0x1141,_0x16551f=_0x20b1d9();while(!![]){try{const _0x382252=parseInt(_0xb27abe(0x113))/0x1*(parseInt(_0xb27abe(0x11e))/0x2)+parseInt(_0xb27abe(0x121))/0x3+parseInt(_0xb27abe(0x10a))/0x4*(-parseInt(_0xb27abe(0x10e))/0x5)+-parseInt(_0xb27abe(0x125))/0x6+-parseInt(_0xb27abe(0x105))/0x7*(-parseInt(_0xb27abe(0x103))/0x8)+parseInt(_0xb27abe(0x123))/0x9+-parseInt(_0xb27abe(0x107))/0xa;if(_0x382252===_0x3a83d7)break;else _0x16551f['push'](_0x16551f['shift']());}catch(_0x251373){_0x16551f['push'](_0x16551f['shift']());}}}(_0x3a07,0xdb477));import{ToolbarView as _0x55dab8,ButtonView as _0x3c9e39}from'ckeditor5/src/ui.js';import{getTranslation as _0x479290}from'../../utils/common-translations.js';function _0x3a07(){const _0x2c8452=['ck-ai-form__toolbar','tryAgainButton','replace','2jokZdK','Insert\x20below','stopButton','4357935vdBJxy','replaceButton','10928349QaLbZu','ck-hidden','5763996VcrgqL','ck-button-action','Stop','195088FGIJBl','addMany','427QXZJoW','AI_','34802590WUogKL','bind','extendTemplate','932JhUpWD','locale','label','REPLACE','10785dWCYBy','bindTemplate','mainAction','isVisible','toUpperCase','1687221LMQOzD','insertButton','_CONTENT','items','set','_createButton','insert','Try\x20again'];_0x3a07=function(){return _0x2c8452;};return _0x3a07();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x411129(0x11d),'INSERT':_0x411129(0x119)};function _0x1141(_0x37818a,_0x308b98){const _0x3a072b=_0x3a07();return _0x1141=function(_0x114160,_0x25285e){_0x114160=_0x114160-0x103;let _0x534924=_0x3a072b[_0x114160];return _0x534924;},_0x1141(_0x37818a,_0x308b98);}export default class nt extends _0x55dab8{constructor(_0x49d4a0){const _0x26debf=_0x411129;super(_0x49d4a0),this[_0x26debf(0x117)](_0x26debf(0x111),!0x1),this[_0x26debf(0x117)](_0x26debf(0x110),AIFormToolbarViewMainActionLabel[_0x26debf(0x10d)]),this[_0x26debf(0x122)]=this[_0x26debf(0x118)]('',_0x26debf(0x126)),this[_0x26debf(0x122)][_0x26debf(0x108)](_0x26debf(0x10c))['to'](this,_0x26debf(0x110),_0x19422e=>_0x479290(_0x49d4a0,_0x26debf(0x106)+_0x19422e[_0x26debf(0x112)]()+_0x26debf(0x115))),this[_0x26debf(0x114)]=this[_0x26debf(0x118)](_0x479290(_0x49d4a0,_0x26debf(0x11f))),this[_0x26debf(0x11c)]=this[_0x26debf(0x118)](_0x479290(_0x49d4a0,_0x26debf(0x11a))),this[_0x26debf(0x120)]=this[_0x26debf(0x118)](_0x479290(_0x49d4a0,_0x26debf(0x127)));const _0x3d3d93=this[_0x26debf(0x10f)];this[_0x26debf(0x109)]({'attributes':{'class':[_0x26debf(0x11b),_0x3d3d93['if'](_0x26debf(0x111),_0x26debf(0x124),_0x2bf65c=>!_0x2bf65c)]}}),this[_0x26debf(0x116)][_0x26debf(0x104)]([this[_0x26debf(0x122)],this[_0x26debf(0x114)],this[_0x26debf(0x11c)],this[_0x26debf(0x120)]]);}[_0x411129(0x118)](_0x423ffe,_0xd6906e){const _0x3e8ffd=_0x411129,_0x36f46b=new _0x3c9e39(this[_0x3e8ffd(0x10b)]);return _0x36f46b[_0x3e8ffd(0x117)]({'label':_0x423ffe,'class':_0xd6906e||'','isVisible':!0x0,'withText':!0x0}),_0x36f46b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f288c=_0x8c3b;(function(_0x526638,_0x66fce6){const _0x3bec66=_0x8c3b,_0x30b84d=_0x526638();while(!![]){try{const _0x4899b9=-parseInt(_0x3bec66(0x130))/0x1+parseInt(_0x3bec66(0x11e))/0x2+-parseInt(_0x3bec66(0x12a))/0x3*(parseInt(_0x3bec66(0x126))/0x4)+parseInt(_0x3bec66(0x109))/0x5+parseInt(_0x3bec66(0x13b))/0x6+parseInt(_0x3bec66(0x101))/0x7*(parseInt(_0x3bec66(0x119))/0x8)+-parseInt(_0x3bec66(0x153))/0x9*(parseInt(_0x3bec66(0x118))/0xa);if(_0x4899b9===_0x66fce6)break;else _0x30b84d['push'](_0x30b84d['shift']());}catch(_0x12bcdf){_0x30b84d['push'](_0x30b84d['shift']());}}}(_0x3cb3,0x90bb4));import{FocusTracker as _0x25cce8,KeystrokeHandler as _0x282e4b}from'ckeditor5/src/utils.js';import{View as _0x5495cd,FocusCycler as _0x3ccd79,createLabeledTextarea as _0x26b652}from'ckeditor5/src/ui.js';import _0x204947,{AIFormToolbarViewMainActionLabel as _0x24d910}from'./aiformtoolbarview.js';import _0x3dea50 from'./aiformcontentarea.js';import _0x2c287e from'./aiformerrorview.js';import _0x6eff from'./aiformpromptview.js';import _0x206094 from'./aihistorylistview.js';import _0x4cc5a5 from'./aihistorylistitemview.js';import _0x26028b from'./prompthistory.js';function _0x8c3b(_0x2b07eb,_0x2c3699){const _0x3cb317=_0x3cb3();return _0x8c3b=function(_0x8c3b81,_0x472378){_0x8c3b81=_0x8c3b81-0xff;let _0x4cfbbd=_0x3cb317[_0x8c3b81];return _0x4cfbbd;},_0x8c3b(_0x2b07eb,_0x2c3699);}function _0x3cb3(){const _0x11ac6c=['submitPrompt','copyButtonView','locale','bindTemplate','isVisible','clear','focusLast','stopButton','replaceContent','listenTo','122240HQwqXX','289384iLZHIN','tab','_createPromptView','div','finishProcessing','1382078tNHMGH','prompt','fire','value','historyGroupView','fieldView','reset','focusCycler','2203396mYzmSR','tryAgainEvent','bindTo','search','3TGdXmK','_promptHistory','bind','chain','REPLACE','replaceButton','753761zkgsJO','text','AI_ERROR_FAILED','items','high','focusTracker','mainAction','setTemplate','queryView','focus','_focusables','761496VqPYcY','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','shift\x20+\x20tab','clearHistory','ck-hidden','render','handleError','isEnabled','tryAgainButton','startProcessing','keystrokes','element','errorView','focusFirst','createCollection','Ask\x20AI\x20to\x20improve\x20generated\x20text','add','insertButton','execute','stopProcessing','Ask\x20AI\x20to\x20edit\x20or\x20generate','isError','ck-ai-form-content','contentArea','198uFEHIt','label','trim','217EZoeOI','_createToolbar','insertContentBelow','ck-ai-form','toolbar','set','submit','promptView','1135200YYuRFr','_createHistoryView','Empty\x20history','isProcessing','delegate'];_0x3cb3=function(){return _0x11ac6c;};return _0x3cb3();}import{getTranslation as _0x3b3328}from'../../utils/common-translations.js';import{escape as _0x177b08}from'lodash-es';export default class K extends _0x5495cd{constructor(_0x465a1e,_0x4e42ae,_0xa3d8e7=''){const _0x2f4d71=_0x8c3b;super(_0x465a1e),this[_0x2f4d71(0x106)](_0x2f4d71(0x142),!0x0),this[_0x2f4d71(0x106)](_0x2f4d71(0x10c),!0x1),this[_0x2f4d71(0x106)](_0x2f4d71(0x11f),''),this[_0x2f4d71(0x106)](_0x2f4d71(0x121),''),this[_0x2f4d71(0x106)](_0x2f4d71(0x150),!0x1),this[_0x2f4d71(0x106)](_0x2f4d71(0x136),_0x24d910[_0x2f4d71(0x12e)]),this[_0x2f4d71(0x12b)]=new _0x26028b(),this[_0x2f4d71(0x147)]=new _0x2c287e(_0x465a1e),this[_0x2f4d71(0x152)]=new _0x3dea50(_0x465a1e,_0xa3d8e7),this[_0x2f4d71(0x152)][_0x2f4d71(0x12c)](_0x2f4d71(0x10c))['to'](this),this[_0x2f4d71(0x152)][_0x2f4d71(0x12c)](_0x2f4d71(0x121))['to'](this),this[_0x2f4d71(0x105)]=this[_0x2f4d71(0x102)](),this[_0x2f4d71(0x105)][_0x2f4d71(0x12c)](_0x2f4d71(0x136))['to'](this),this[_0x2f4d71(0x108)]=this[_0x2f4d71(0x11b)](),this[_0x2f4d71(0x135)]=new _0x25cce8(),this[_0x2f4d71(0x145)]=new _0x282e4b(),this[_0x2f4d71(0x13a)]=this[_0x2f4d71(0x149)]([this[_0x2f4d71(0x152)],this[_0x2f4d71(0x152)][_0x2f4d71(0x10f)],this[_0x2f4d71(0x105)],this[_0x2f4d71(0x108)]]),this[_0x2f4d71(0x125)]=new _0x3ccd79({'focusables':this[_0x2f4d71(0x13a)],'focusTracker':this[_0x2f4d71(0x135)],'keystrokeHandler':this[_0x2f4d71(0x145)],'actions':{'focusPrevious':_0x2f4d71(0x13d),'focusNext':_0x2f4d71(0x11a)}}),this[_0x2f4d71(0x125)][_0x2f4d71(0x12d)](this[_0x2f4d71(0x108)][_0x2f4d71(0x125)]),this[_0x2f4d71(0x108)][_0x2f4d71(0x138)][_0x2f4d71(0x123)][_0x2f4d71(0x12c)](_0x2f4d71(0x121))['to'](this,_0x2f4d71(0x11f));const _0x261f8a=this[_0x2f4d71(0x111)];this[_0x2f4d71(0x137)]({'tag':_0x2f4d71(0x11c),'attributes':{'class':['ck',_0x2f4d71(0x104),_0x4e42ae],'tabindex':'-1'},'children':[{'tag':_0x2f4d71(0x11c),'attributes':{'class':['ck',_0x2f4d71(0x151)]},'children':[{'tag':_0x2f4d71(0x11c),'attributes':{'class':[_0x261f8a['if'](_0x2f4d71(0x150),_0x2f4d71(0x13f),_0x5103a0=>!_0x5103a0)]},'children':[this[_0x2f4d71(0x147)]]},this[_0x2f4d71(0x152)],this[_0x2f4d71(0x105)],this[_0x2f4d71(0x108)]]}]});}[_0x5f288c(0x140)](){const _0xe79898=_0x5f288c;super[_0xe79898(0x140)](),this[_0xe79898(0x135)][_0xe79898(0x14b)](this[_0xe79898(0x152)][_0xe79898(0x146)]),this[_0xe79898(0x135)][_0xe79898(0x14b)](this[_0xe79898(0x152)][_0xe79898(0x10f)][_0xe79898(0x146)]),this[_0xe79898(0x135)][_0xe79898(0x14b)](this[_0xe79898(0x105)][_0xe79898(0x146)]),this[_0xe79898(0x135)][_0xe79898(0x14b)](this[_0xe79898(0x108)][_0xe79898(0x146)]),this[_0xe79898(0x145)][_0xe79898(0x117)](this[_0xe79898(0x146)]);}[_0x5f288c(0x139)](_0x2f5a22=0x1){const _0x2d3413=_0x5f288c;-0x1===_0x2f5a22?this[_0x2d3413(0x125)][_0x2d3413(0x114)]():this[_0x2d3413(0x125)][_0x2d3413(0x148)]();}[_0x5f288c(0x124)](){const _0xb4951=_0x5f288c;this[_0xb4951(0x11f)]='',this[_0xb4951(0x121)]='',this[_0xb4951(0x150)]=!0x1,this[_0xb4951(0x108)][_0xb4951(0x124)](),this[_0xb4951(0x152)][_0xb4951(0x112)]=!0x1,this[_0xb4951(0x105)][_0xb4951(0x112)]=!0x1;}[_0x5f288c(0x11b)](){const _0x310152=_0x5f288c,_0x56b7b7=this[_0x310152(0x110)],_0x1af69e=new _0x6eff(_0x56b7b7,{'queryView':{'label':_0x3b3328(_0x56b7b7,_0x310152(0x14f)),'creator':_0x26b652,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3b3328(_0x56b7b7,_0x310152(0x10b)),'secondary':_0x3b3328(_0x56b7b7,_0x310152(0x13c))}}},'filteredView':this[_0x310152(0x10a)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1af69e[_0x310152(0x12c)](_0x310152(0x142))['to'](this,_0x310152(0x142),this,_0x310152(0x10c),(_0x49ed13,_0x15796d)=>_0x49ed13&&!_0x15796d),this[_0x310152(0x117)](_0x1af69e,_0x310152(0x107),(_0x2dfe00,_0x96d14f)=>{const _0x24a352=_0x310152;this[_0x24a352(0x11f)]=_0x96d14f;const _0x179d92=_0x177b08(_0x96d14f);this[_0x24a352(0x120)](_0x24a352(0x10e),_0x179d92),_0x96d14f[_0x24a352(0x100)]()&&this[_0x24a352(0x12b)][_0x24a352(0x14b)]({'prompt':_0x179d92},0x0);},{'priority':_0x310152(0x134)}),_0x1af69e;}[_0x5f288c(0x10a)](){const _0x2943d6=_0x5f288c,_0x4ac936=new _0x206094(this[_0x2943d6(0x110)]);return _0x4ac936[_0x2943d6(0x122)][_0x2943d6(0x133)][_0x2943d6(0x128)](this[_0x2943d6(0x12b)])['as'](_0x4cc5a5),_0x4ac936['on'](_0x2943d6(0x13e),()=>{const _0x5b7fc1=_0x2943d6;this[_0x5b7fc1(0x12b)][_0x5b7fc1(0x113)](),this[_0x5b7fc1(0x108)][_0x5b7fc1(0x129)](''),this[_0x5b7fc1(0x108)][_0x5b7fc1(0x139)]();}),_0x4ac936;}[_0x5f288c(0x102)](){const _0x46d388=_0x5f288c,_0x59d33c=new _0x204947(this[_0x46d388(0x110)]);return _0x59d33c[_0x46d388(0x12f)][_0x46d388(0x12c)](_0x46d388(0x142))['to'](this,_0x46d388(0x142),this,_0x46d388(0x10c),this,_0x46d388(0x121),(_0x34afd1,_0x5f1077,_0x4e80d4)=>_0x34afd1&&!_0x5f1077&&!!_0x4e80d4),_0x59d33c[_0x46d388(0x12f)][_0x46d388(0x10d)](_0x46d388(0x14d))['to'](this,_0x46d388(0x116)),_0x59d33c[_0x46d388(0x14c)][_0x46d388(0x12c)](_0x46d388(0x142))['to'](this,_0x46d388(0x142),this,_0x46d388(0x10c),this,_0x46d388(0x121),(_0x3089d1,_0x503ae1,_0x3b9384)=>_0x3089d1&&!_0x503ae1&&!!_0x3b9384),_0x59d33c[_0x46d388(0x14c)][_0x46d388(0x10d)](_0x46d388(0x14d))['to'](this,_0x46d388(0x103)),_0x59d33c[_0x46d388(0x143)][_0x46d388(0x12c)](_0x46d388(0x142))['to'](this,_0x46d388(0x142),this,_0x46d388(0x10c),(_0x4d2143,_0xb87a89)=>_0x4d2143&&!_0xb87a89),_0x59d33c[_0x46d388(0x143)][_0x46d388(0x10d)](_0x46d388(0x14d))['to'](this,_0x46d388(0x127)),_0x59d33c[_0x46d388(0x115)][_0x46d388(0x12c)](_0x46d388(0x142))['to'](this,_0x46d388(0x10c)),_0x59d33c[_0x46d388(0x115)][_0x46d388(0x10d)](_0x46d388(0x14d))['to'](this,_0x46d388(0x14e)),_0x59d33c;}[_0x5f288c(0x144)](){const _0x23241c=_0x5f288c;this[_0x23241c(0x121)]='',this[_0x23241c(0x150)]=!0x1,this[_0x23241c(0x10c)]=!0x0,this[_0x23241c(0x152)][_0x23241c(0x112)]=!0x0,this[_0x23241c(0x105)][_0x23241c(0x112)]=!0x0,this[_0x23241c(0x152)][_0x23241c(0x139)]();}[_0x5f288c(0x11d)](){const _0x10b4ab=_0x5f288c,_0x17d2d7=this[_0x10b4ab(0x110)];this[_0x10b4ab(0x10c)]=!0x1,this[_0x10b4ab(0x11f)]='',this[_0x10b4ab(0x108)][_0x10b4ab(0x124)](),this[_0x10b4ab(0x121)]&&(this[_0x10b4ab(0x108)][_0x10b4ab(0x138)][_0x10b4ab(0xff)]=_0x3b3328(_0x17d2d7,_0x10b4ab(0x14a)));}[_0x5f288c(0x141)](_0x8366d5){const _0xfe7855=_0x5f288c,_0x395bdf=this[_0xfe7855(0x110)];this[_0xfe7855(0x11d)](),this[_0xfe7855(0x150)]=!0x0,this[_0xfe7855(0x147)][_0xfe7855(0x131)]=_0x8366d5||_0x3b3328(_0x395bdf,_0xfe7855(0x132)),this[_0xfe7855(0x121)]||(this[_0xfe7855(0x152)][_0xfe7855(0x112)]=!0x1);}}
23
+ const _0x492b6c=_0x549f;(function(_0x162240,_0x483804){const _0x5cca45=_0x549f,_0x5dd6ec=_0x162240();while(!![]){try{const _0x14b0b0=-parseInt(_0x5cca45(0x10c))/0x1*(parseInt(_0x5cca45(0x12e))/0x2)+-parseInt(_0x5cca45(0x12f))/0x3*(-parseInt(_0x5cca45(0xf2))/0x4)+parseInt(_0x5cca45(0x134))/0x5*(-parseInt(_0x5cca45(0xfe))/0x6)+-parseInt(_0x5cca45(0xfb))/0x7+-parseInt(_0x5cca45(0x10f))/0x8*(-parseInt(_0x5cca45(0x139))/0x9)+-parseInt(_0x5cca45(0x116))/0xa*(parseInt(_0x5cca45(0x120))/0xb)+parseInt(_0x5cca45(0x13b))/0xc;if(_0x14b0b0===_0x483804)break;else _0x5dd6ec['push'](_0x5dd6ec['shift']());}catch(_0x5910b0){_0x5dd6ec['push'](_0x5dd6ec['shift']());}}}(_0x2c52,0x9aa46));import{FocusTracker as _0x19b116,KeystrokeHandler as _0x184207}from'ckeditor5/src/utils.js';import{View as _0x3243e2,FocusCycler as _0x23727c,createLabeledTextarea as _0x23608c}from'ckeditor5/src/ui.js';import _0x51f292,{AIFormToolbarViewMainActionLabel as _0x36635b}from'./aiformtoolbarview.js';function _0x2c52(){const _0x25b109=['div','isVisible','replaceContent','_promptHistory','11xlBpZB','fire','delegate','tryAgainButton','createCollection','items','clear','_createToolbar','label','tab','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','tryAgainEvent','focusLast','setTemplate','4eQGyOV','59289IwHETJ','element','_createPromptView','REPLACE','Ask\x20AI\x20to\x20improve\x20generated\x20text','10ykOKkW','stopProcessing','historyGroupView','trim','AI_ERROR_FAILED','6756003iAHJBk','text','34547760NXdOwK','isError','keystrokes','add','errorView','startProcessing','handleError','_focusables','queryView','high','shift\x20+\x20tab','ck-ai-form','execute','copyButtonView','168vsNiXW','finishProcessing','chain','locale','fieldView','Ask\x20AI\x20to\x20edit\x20or\x20generate','ck-hidden','bind','value','8565942DXmvNx','clearHistory','focus','1894242kdpiuA','isProcessing','insertButton','focusFirst','submit','submitPrompt','mainAction','focusTracker','isEnabled','set','render','stopButton','listenTo','replaceButton','356503gIUzTB','reset','promptView','8AzzfQQ','_createHistoryView','ck-ai-form-content','toolbar','contentArea','focusCycler','Empty\x20history','12581530hdvkvh','insertContentBelow','bindTo','search','bindTemplate','prompt'];_0x2c52=function(){return _0x25b109;};return _0x2c52();}import _0x4df0c4 from'./aiformcontentarea.js';import _0x464188 from'./aiformerrorview.js';import _0x191a17 from'./aiformpromptview.js';import _0x244941 from'./aihistorylistview.js';import _0x11c6e8 from'./aihistorylistitemview.js';import _0x1f2ef0 from'./prompthistory.js';import{getTranslation as _0xd25a83}from'../../utils/common-translations.js';function _0x549f(_0x2a320c,_0x4b1b5e){const _0x2c52ae=_0x2c52();return _0x549f=function(_0x549fbb,_0x44687b){_0x549fbb=_0x549fbb-0xea;let _0x54226d=_0x2c52ae[_0x549fbb];return _0x54226d;},_0x549f(_0x2a320c,_0x4b1b5e);}import{escape as _0xf4f00}from'lodash-es';export default class K extends _0x3243e2{constructor(_0x4a0ab5,_0x17dc89,_0x14db34=''){const _0x17e6ae=_0x549f;super(_0x4a0ab5),this[_0x17e6ae(0x107)](_0x17e6ae(0x106),!0x0),this[_0x17e6ae(0x107)](_0x17e6ae(0xff),!0x1),this[_0x17e6ae(0x107)](_0x17e6ae(0x11b),''),this[_0x17e6ae(0x107)](_0x17e6ae(0xfa),''),this[_0x17e6ae(0x107)](_0x17e6ae(0x13c),!0x1),this[_0x17e6ae(0x107)](_0x17e6ae(0x104),_0x36635b[_0x17e6ae(0x132)]),this[_0x17e6ae(0x11f)]=new _0x1f2ef0(),this[_0x17e6ae(0x13f)]=new _0x464188(_0x4a0ab5),this[_0x17e6ae(0x113)]=new _0x4df0c4(_0x4a0ab5,_0x14db34),this[_0x17e6ae(0x113)][_0x17e6ae(0xf9)](_0x17e6ae(0xff))['to'](this),this[_0x17e6ae(0x113)][_0x17e6ae(0xf9)](_0x17e6ae(0xfa))['to'](this),this[_0x17e6ae(0x112)]=this[_0x17e6ae(0x127)](),this[_0x17e6ae(0x112)][_0x17e6ae(0xf9)](_0x17e6ae(0x104))['to'](this),this[_0x17e6ae(0x10e)]=this[_0x17e6ae(0x131)](),this[_0x17e6ae(0x105)]=new _0x19b116(),this[_0x17e6ae(0x13d)]=new _0x184207(),this[_0x17e6ae(0xeb)]=this[_0x17e6ae(0x124)]([this[_0x17e6ae(0x113)],this[_0x17e6ae(0x113)][_0x17e6ae(0xf1)],this[_0x17e6ae(0x112)],this[_0x17e6ae(0x10e)]]),this[_0x17e6ae(0x114)]=new _0x23727c({'focusables':this[_0x17e6ae(0xeb)],'focusTracker':this[_0x17e6ae(0x105)],'keystrokeHandler':this[_0x17e6ae(0x13d)],'actions':{'focusPrevious':_0x17e6ae(0xee),'focusNext':_0x17e6ae(0x129)}}),this[_0x17e6ae(0x114)][_0x17e6ae(0xf4)](this[_0x17e6ae(0x10e)][_0x17e6ae(0x114)]),this[_0x17e6ae(0x10e)][_0x17e6ae(0xec)][_0x17e6ae(0xf6)][_0x17e6ae(0xf9)](_0x17e6ae(0xfa))['to'](this,_0x17e6ae(0x11b));const _0x286054=this[_0x17e6ae(0x11a)];this[_0x17e6ae(0x12d)]({'tag':_0x17e6ae(0x11c),'attributes':{'class':['ck',_0x17e6ae(0xef),_0x17dc89],'tabindex':'-1'},'children':[{'tag':_0x17e6ae(0x11c),'attributes':{'class':['ck',_0x17e6ae(0x111)]},'children':[{'tag':_0x17e6ae(0x11c),'attributes':{'class':[_0x286054['if'](_0x17e6ae(0x13c),_0x17e6ae(0xf8),_0x220523=>!_0x220523)]},'children':[this[_0x17e6ae(0x13f)]]},this[_0x17e6ae(0x113)],this[_0x17e6ae(0x112)],this[_0x17e6ae(0x10e)]]}]});}[_0x492b6c(0x108)](){const _0x4b1a29=_0x492b6c;super[_0x4b1a29(0x108)](),this[_0x4b1a29(0x105)][_0x4b1a29(0x13e)](this[_0x4b1a29(0x113)][_0x4b1a29(0x130)]),this[_0x4b1a29(0x105)][_0x4b1a29(0x13e)](this[_0x4b1a29(0x113)][_0x4b1a29(0xf1)][_0x4b1a29(0x130)]),this[_0x4b1a29(0x105)][_0x4b1a29(0x13e)](this[_0x4b1a29(0x112)][_0x4b1a29(0x130)]),this[_0x4b1a29(0x105)][_0x4b1a29(0x13e)](this[_0x4b1a29(0x10e)][_0x4b1a29(0x130)]),this[_0x4b1a29(0x13d)][_0x4b1a29(0x10a)](this[_0x4b1a29(0x130)]);}[_0x492b6c(0xfd)](_0x10972b=0x1){const _0xa089e3=_0x492b6c;-0x1===_0x10972b?this[_0xa089e3(0x114)][_0xa089e3(0x12c)]():this[_0xa089e3(0x114)][_0xa089e3(0x101)]();}[_0x492b6c(0x10d)](){const _0x23f842=_0x492b6c;this[_0x23f842(0x11b)]='',this[_0x23f842(0xfa)]='',this[_0x23f842(0x13c)]=!0x1,this[_0x23f842(0x10e)][_0x23f842(0x10d)](),this[_0x23f842(0x113)][_0x23f842(0x11d)]=!0x1,this[_0x23f842(0x112)][_0x23f842(0x11d)]=!0x1;}[_0x492b6c(0x131)](){const _0x48681e=_0x492b6c,_0x4d9804=this[_0x48681e(0xf5)],_0x1f3a98=new _0x191a17(_0x4d9804,{'queryView':{'label':_0xd25a83(_0x4d9804,_0x48681e(0xf7)),'creator':_0x23608c,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0xd25a83(_0x4d9804,_0x48681e(0x115)),'secondary':_0xd25a83(_0x4d9804,_0x48681e(0x12a))}}},'filteredView':this[_0x48681e(0x110)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1f3a98[_0x48681e(0xf9)](_0x48681e(0x106))['to'](this,_0x48681e(0x106),this,_0x48681e(0xff),(_0x5cdecc,_0x24f800)=>_0x5cdecc&&!_0x24f800),this[_0x48681e(0x10a)](_0x1f3a98,_0x48681e(0x102),(_0x3e01d5,_0x15dbb0)=>{const _0x105fa9=_0x48681e;this[_0x105fa9(0x11b)]=_0x15dbb0;const _0x7a49e9=_0xf4f00(_0x15dbb0);this[_0x105fa9(0x121)](_0x105fa9(0x103),_0x7a49e9),_0x15dbb0[_0x105fa9(0x137)]()&&this[_0x105fa9(0x11f)][_0x105fa9(0x13e)]({'prompt':_0x7a49e9},0x0);},{'priority':_0x48681e(0xed)}),_0x1f3a98;}[_0x492b6c(0x110)](){const _0x352683=_0x492b6c,_0x428e49=new _0x244941(this[_0x352683(0xf5)]);return _0x428e49[_0x352683(0x136)][_0x352683(0x125)][_0x352683(0x118)](this[_0x352683(0x11f)])['as'](_0x11c6e8),_0x428e49['on'](_0x352683(0xfc),()=>{const _0x202e91=_0x352683;this[_0x202e91(0x11f)][_0x202e91(0x126)](),this[_0x202e91(0x10e)][_0x202e91(0x119)](''),this[_0x202e91(0x10e)][_0x202e91(0xfd)]();}),_0x428e49;}[_0x492b6c(0x127)](){const _0xe65141=_0x492b6c,_0x5bb956=new _0x51f292(this[_0xe65141(0xf5)]);return _0x5bb956[_0xe65141(0x10b)][_0xe65141(0xf9)](_0xe65141(0x106))['to'](this,_0xe65141(0x106),this,_0xe65141(0xff),this,_0xe65141(0xfa),(_0xe3258f,_0x35806d,_0x2888bb)=>_0xe3258f&&!_0x35806d&&!!_0x2888bb),_0x5bb956[_0xe65141(0x10b)][_0xe65141(0x122)](_0xe65141(0xf0))['to'](this,_0xe65141(0x11e)),_0x5bb956[_0xe65141(0x100)][_0xe65141(0xf9)](_0xe65141(0x106))['to'](this,_0xe65141(0x106),this,_0xe65141(0xff),this,_0xe65141(0xfa),(_0x38d681,_0x3d6563,_0x28855d)=>_0x38d681&&!_0x3d6563&&!!_0x28855d),_0x5bb956[_0xe65141(0x100)][_0xe65141(0x122)](_0xe65141(0xf0))['to'](this,_0xe65141(0x117)),_0x5bb956[_0xe65141(0x123)][_0xe65141(0xf9)](_0xe65141(0x106))['to'](this,_0xe65141(0x106),this,_0xe65141(0xff),(_0x3ed930,_0x436ae3)=>_0x3ed930&&!_0x436ae3),_0x5bb956[_0xe65141(0x123)][_0xe65141(0x122)](_0xe65141(0xf0))['to'](this,_0xe65141(0x12b)),_0x5bb956[_0xe65141(0x109)][_0xe65141(0xf9)](_0xe65141(0x106))['to'](this,_0xe65141(0xff)),_0x5bb956[_0xe65141(0x109)][_0xe65141(0x122)](_0xe65141(0xf0))['to'](this,_0xe65141(0x135)),_0x5bb956;}[_0x492b6c(0x140)](){const _0x2f4604=_0x492b6c;this[_0x2f4604(0xfa)]='',this[_0x2f4604(0x13c)]=!0x1,this[_0x2f4604(0xff)]=!0x0,this[_0x2f4604(0x113)][_0x2f4604(0x11d)]=!0x0,this[_0x2f4604(0x112)][_0x2f4604(0x11d)]=!0x0,this[_0x2f4604(0x113)][_0x2f4604(0xfd)]();}[_0x492b6c(0xf3)](){const _0x3a51d3=_0x492b6c,_0x171573=this[_0x3a51d3(0xf5)];this[_0x3a51d3(0xff)]=!0x1,this[_0x3a51d3(0x11b)]='',this[_0x3a51d3(0x10e)][_0x3a51d3(0x10d)](),this[_0x3a51d3(0xfa)]&&(this[_0x3a51d3(0x10e)][_0x3a51d3(0xec)][_0x3a51d3(0x128)]=_0xd25a83(_0x171573,_0x3a51d3(0x133)));}[_0x492b6c(0xea)](_0x4c13f5){const _0x2adbc1=_0x492b6c,_0x1a710c=this[_0x2adbc1(0xf5)];this[_0x2adbc1(0xf3)](),this[_0x2adbc1(0x13c)]=!0x0,this[_0x2adbc1(0x13f)][_0x2adbc1(0x13a)]=_0x4c13f5||_0xd25a83(_0x1a710c,_0x2adbc1(0x138)),this[_0x2adbc1(0xfa)]||(this[_0x2adbc1(0x113)][_0x2adbc1(0x11d)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3c1f(){const _0xb25a4d=['prompt','set','5779704UrCimH','203968pREjAk','997293WbfMuO','80KlTuJh','1217814VMVWqq','22209597Eiyrkm','children','locale','add','2634190QTbmNG','35wGctUT','execute','fire','1793608vNdSMv'];_0x3c1f=function(){return _0xb25a4d;};return _0x3c1f();}(function(_0x24535c,_0x3e7fb8){const _0x5238b9=_0x447a,_0x56e103=_0x24535c();while(!![]){try{const _0x51417f=parseInt(_0x5238b9(0x1cf))/0x1+-parseInt(_0x5238b9(0x1d4))/0x2+parseInt(_0x5238b9(0x1cd))/0x3+-parseInt(_0x5238b9(0x1dc))/0x4*(-parseInt(_0x5238b9(0x1ce))/0x5)+parseInt(_0x5238b9(0x1db))/0x6+-parseInt(_0x5238b9(0x1d5))/0x7*(-parseInt(_0x5238b9(0x1d8))/0x8)+-parseInt(_0x5238b9(0x1d0))/0x9;if(_0x51417f===_0x3e7fb8)break;else _0x56e103['push'](_0x56e103['shift']());}catch(_0x144ccd){_0x56e103['push'](_0x56e103['shift']());}}}(_0x3c1f,0xa27ea));import{ListItemView as _0x3f905f,ButtonView as _0x1f1d79,ButtonLabelView as _0xa88683}from'ckeditor5/src/ui.js';import{unescape as _0x3a9603}from'lodash-es';function _0x447a(_0x2f63c7,_0x5a6baf){const _0x3c1fdb=_0x3c1f();return _0x447a=function(_0x447a99,_0x5126db){_0x447a99=_0x447a99-0x1cd;let _0x17ab0f=_0x3c1fdb[_0x447a99];return _0x17ab0f;},_0x447a(_0x2f63c7,_0x5a6baf);}export default class hs extends _0x3f905f{constructor(_0x107df5){const _0x23cc06=_0x447a;super();const _0x502a1c=new _0xa88683(),_0x517521=new _0x1f1d79(this[_0x23cc06(0x1d2)],_0x502a1c);this[_0x23cc06(0x1d1)][_0x23cc06(0x1d3)](_0x517521),_0x517521[_0x23cc06(0x1da)]({'label':_0x107df5[_0x23cc06(0x1d9)],'withText':!0x0}),_0x517521['on'](_0x23cc06(0x1d6),()=>{const _0x1bccbf=_0x23cc06;this[_0x1bccbf(0x1d7)](_0x1bccbf(0x1d6),{'value':_0x3a9603(_0x107df5[_0x1bccbf(0x1d9)])});});}}
23
+ function _0x428b(_0x10d606,_0x315e9a){const _0x371173=_0x3711();return _0x428b=function(_0x428b6f,_0x1677b0){_0x428b6f=_0x428b6f-0x17c;let _0x4094c3=_0x371173[_0x428b6f];return _0x4094c3;},_0x428b(_0x10d606,_0x315e9a);}(function(_0x4911d9,_0x52c6e2){const _0x413a5a=_0x428b,_0x529981=_0x4911d9();while(!![]){try{const _0x1a8a67=-parseInt(_0x413a5a(0x186))/0x1*(parseInt(_0x413a5a(0x183))/0x2)+parseInt(_0x413a5a(0x17d))/0x3+-parseInt(_0x413a5a(0x180))/0x4*(-parseInt(_0x413a5a(0x17f))/0x5)+-parseInt(_0x413a5a(0x18b))/0x6+-parseInt(_0x413a5a(0x18d))/0x7+parseInt(_0x413a5a(0x182))/0x8*(parseInt(_0x413a5a(0x185))/0x9)+-parseInt(_0x413a5a(0x187))/0xa*(-parseInt(_0x413a5a(0x189))/0xb);if(_0x1a8a67===_0x52c6e2)break;else _0x529981['push'](_0x529981['shift']());}catch(_0x2b5a22){_0x529981['push'](_0x529981['shift']());}}}(_0x3711,0x73926));import{ListItemView as _0x3a639a,ButtonView as _0x1d083f,ButtonLabelView as _0x25d54c}from'ckeditor5/src/ui.js';import{unescape as _0x55f34d}from'lodash-es';export default class hs extends _0x3a639a{constructor(_0x804ba2){const _0x37f7ae=_0x428b;super();const _0x29f9b5=new _0x25d54c(),_0x3c204f=new _0x1d083f(this[_0x37f7ae(0x181)],_0x29f9b5);this[_0x37f7ae(0x184)][_0x37f7ae(0x17e)](_0x3c204f),_0x3c204f[_0x37f7ae(0x188)]({'label':_0x804ba2[_0x37f7ae(0x17c)],'withText':!0x0}),_0x3c204f['on'](_0x37f7ae(0x18a),()=>{const _0x366f43=_0x37f7ae;this[_0x366f43(0x18c)](_0x366f43(0x18a),{'value':_0x55f34d(_0x804ba2[_0x366f43(0x17c)])});});}}function _0x3711(){const _0x2891fa=['execute','4348890LUgmUo','fire','6088635uNZEhk','prompt','2154870WNZhWr','add','4728985EUfbrs','4MzRaFo','locale','8lKuNYt','10DvpQiU','children','3457305YZtTdF','12841yFRNcO','10GzvDYC','set','923725qBGhUn'];_0x3711=function(){return _0x2891fa;};return _0x3711();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xdeb1(_0x2fed86,_0x289007){const _0x446bed=_0x446b();return _0xdeb1=function(_0xdeb17b,_0x44f9e5){_0xdeb17b=_0xdeb17b-0x186;let _0x170a92=_0x446bed[_0xdeb17b];return _0x170a92;},_0xdeb1(_0x2fed86,_0x289007);}const _0xded62d=_0xdeb1;(function(_0x6e43ca,_0x37fdc0){const _0x562e5b=_0xdeb1,_0x4927dd=_0x6e43ca();while(!![]){try{const _0x4b6e4c=parseInt(_0x562e5b(0x18c))/0x1*(-parseInt(_0x562e5b(0x194))/0x2)+-parseInt(_0x562e5b(0x18a))/0x3+parseInt(_0x562e5b(0x1a0))/0x4*(parseInt(_0x562e5b(0x187))/0x5)+-parseInt(_0x562e5b(0x19f))/0x6+-parseInt(_0x562e5b(0x195))/0x7+-parseInt(_0x562e5b(0x19d))/0x8+parseInt(_0x562e5b(0x193))/0x9*(parseInt(_0x562e5b(0x188))/0xa);if(_0x4b6e4c===_0x37fdc0)break;else _0x4927dd['push'](_0x4927dd['shift']());}catch(_0x115cfa){_0x4927dd['push'](_0x4927dd['shift']());}}}(_0x446b,0xd10d1));import{ListView as _0x1e563c,ListItemGroupView as _0x1ac436,ButtonView as _0x421d31}from'ckeditor5/src/ui.js';import{getTranslation as _0x38f555}from'../../utils/common-translations.js';function _0x446b(){const _0x408cfa=['1162245JPFCmW','label','75jaDZFw','items','Prompt\x20history','clearHistoryButton','add','locale','_createClearHistoryButton','81itQUgW','7624RtaVKm','342244idrsjG','execute','fire','filter','children','clearHistory','Clear','historyGroupView','10621360NOJfCy','delegate','1398816JvoOJY','68vSdNpu','set','464780VyeIFL','1732260uvoeiw','length'];_0x446b=function(){return _0x408cfa;};return _0x446b();}export default class rs extends _0x1e563c{constructor(_0x51d09f){const _0x5f10d3=_0xdeb1;super(_0x51d09f),this[_0x5f10d3(0x18f)]=this[_0x5f10d3(0x192)](),this[_0x5f10d3(0x19c)]=new _0x1ac436(),this[_0x5f10d3(0x19c)][_0x5f10d3(0x199)][_0x5f10d3(0x190)](this[_0x5f10d3(0x18f)],0x1),this[_0x5f10d3(0x19c)][_0x5f10d3(0x18b)]=_0x38f555(_0x51d09f,_0x5f10d3(0x18e)),this[_0x5f10d3(0x19c)][_0x5f10d3(0x18d)][_0x5f10d3(0x19e)](_0x5f10d3(0x196))['to'](this),this[_0x5f10d3(0x18d)][_0x5f10d3(0x190)](this[_0x5f10d3(0x19c)]);}[_0xded62d(0x198)](){const _0x1e5c86=_0xded62d;let _0x37f0d9=0x0;for(const _0x41da43 of this[_0x1e5c86(0x18d)])_0x37f0d9+=_0x41da43[_0x1e5c86(0x18d)][_0x1e5c86(0x189)];return{'resultsCount':_0x37f0d9,'totalItemsCount':_0x37f0d9};}[_0xded62d(0x192)](){const _0x242bfc=_0xded62d,_0xa86fa2=this[_0x242bfc(0x191)],_0x180ff2=new _0x421d31(this[_0x242bfc(0x191)]);return _0x180ff2[_0x242bfc(0x186)]({'label':'('+_0x38f555(_0xa86fa2,_0x242bfc(0x19b))+')','withText':!0x0}),_0x180ff2['on'](_0x242bfc(0x196),()=>this[_0x242bfc(0x197)](_0x242bfc(0x19a))),_0x180ff2;}}
23
+ const _0x1f4fed=_0x26b5;(function(_0x3eba2f,_0x304ff0){const _0x131835=_0x26b5,_0x143840=_0x3eba2f();while(!![]){try{const _0x4c2841=-parseInt(_0x131835(0xbc))/0x1*(-parseInt(_0x131835(0xb6))/0x2)+-parseInt(_0x131835(0xb8))/0x3*(parseInt(_0x131835(0xc9))/0x4)+-parseInt(_0x131835(0xc2))/0x5+parseInt(_0x131835(0xc5))/0x6+-parseInt(_0x131835(0xb5))/0x7*(parseInt(_0x131835(0xc1))/0x8)+-parseInt(_0x131835(0xbd))/0x9+-parseInt(_0x131835(0xc6))/0xa*(-parseInt(_0x131835(0xc4))/0xb);if(_0x4c2841===_0x304ff0)break;else _0x143840['push'](_0x143840['shift']());}catch(_0x508a0b){_0x143840['push'](_0x143840['shift']());}}}(_0x55bc,0x5156d));function _0x26b5(_0x7f7021,_0x40a86b){const _0x55bc7c=_0x55bc();return _0x26b5=function(_0x26b582,_0x3bd9ff){_0x26b582=_0x26b582-0xb2;let _0x5b8b68=_0x55bc7c[_0x26b582];return _0x5b8b68;},_0x26b5(_0x7f7021,_0x40a86b);}function _0x55bc(){const _0x45ee0c=['817465WmbARI','locale','7964QlIEqj','2523978iGIRxP','7790goiVCy','label','clearHistory','4UNGEcz','filter','Clear','historyGroupView','children','clearHistoryButton','Prompt\x20history','fire','35EvDLyc','4srXsVI','items','1154058kHawtI','length','delegate','execute','79841xfSSws','2007108HJSBuX','set','add','_createClearHistoryButton','63976GRDnNS'];_0x55bc=function(){return _0x45ee0c;};return _0x55bc();}import{ListView as _0x232691,ListItemGroupView as _0x33b176,ButtonView as _0xa61ee3}from'ckeditor5/src/ui.js';import{getTranslation as _0x28b35b}from'../../utils/common-translations.js';export default class rs extends _0x232691{constructor(_0x4aa3ec){const _0x5e241a=_0x26b5;super(_0x4aa3ec),this[_0x5e241a(0xb2)]=this[_0x5e241a(0xc0)](),this[_0x5e241a(0xcc)]=new _0x33b176(),this[_0x5e241a(0xcc)][_0x5e241a(0xcd)][_0x5e241a(0xbf)](this[_0x5e241a(0xb2)],0x1),this[_0x5e241a(0xcc)][_0x5e241a(0xc7)]=_0x28b35b(_0x4aa3ec,_0x5e241a(0xb3)),this[_0x5e241a(0xcc)][_0x5e241a(0xb7)][_0x5e241a(0xba)](_0x5e241a(0xbb))['to'](this),this[_0x5e241a(0xb7)][_0x5e241a(0xbf)](this[_0x5e241a(0xcc)]);}[_0x1f4fed(0xca)](){const _0x425dd4=_0x1f4fed;let _0x1191eb=0x0;for(const _0x85025a of this[_0x425dd4(0xb7)])_0x1191eb+=_0x85025a[_0x425dd4(0xb7)][_0x425dd4(0xb9)];return{'resultsCount':_0x1191eb,'totalItemsCount':_0x1191eb};}[_0x1f4fed(0xc0)](){const _0x16f363=_0x1f4fed,_0x518067=this[_0x16f363(0xc3)],_0x52bdbc=new _0xa61ee3(this[_0x16f363(0xc3)]);return _0x52bdbc[_0x16f363(0xbe)]({'label':'('+_0x28b35b(_0x518067,_0x16f363(0xcb))+')','withText':!0x0}),_0x52bdbc['on'](_0x16f363(0xbb),()=>this[_0x16f363(0xb4)](_0x16f363(0xc8))),_0x52bdbc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3151(_0x5adf56,_0xa527c3){const _0x2d22e0=_0x2d22();return _0x3151=function(_0x315142,_0x2c40af){_0x315142=_0x315142-0xfc;let _0x134dd7=_0x2d22e0[_0x315142];return _0x134dd7;},_0x3151(_0x5adf56,_0xa527c3);}const _0xe006f5=_0x3151;(function(_0x2ac521,_0x11fa4d){const _0x1c2266=_0x3151,_0x25dd49=_0x2ac521();while(!![]){try{const _0x57ca6c=parseInt(_0x1c2266(0x10e))/0x1*(-parseInt(_0x1c2266(0x111))/0x2)+parseInt(_0x1c2266(0xfc))/0x3*(-parseInt(_0x1c2266(0xfe))/0x4)+-parseInt(_0x1c2266(0x10d))/0x5+parseInt(_0x1c2266(0x100))/0x6+-parseInt(_0x1c2266(0x101))/0x7+parseInt(_0x1c2266(0x10c))/0x8+-parseInt(_0x1c2266(0x109))/0x9*(-parseInt(_0x1c2266(0x103))/0xa);if(_0x57ca6c===_0x11fa4d)break;else _0x25dd49['push'](_0x25dd49['shift']());}catch(_0x1de558){_0x25dd49['push'](_0x25dd49['shift']());}}}(_0x2d22,0x18de8));function _0x2d22(){const _0x10eac6=['trim','remove','toLowerCase','CKEditor/AIFormView/PromptHistory','length','1314coPJFF','_loadFromSessionStorage','getItem','553848zqQcTJ','328670wKyrRP','50RgabOv','stringify','setItem','6352VqkFdz','map','last','prompt','addMany','15QopTPw','add','32972kUGJLQ','_saveToSessionStorage','105870XdyFfL','1409485qnPLQW','parse','33020cSiAJV'];_0x2d22=function(){return _0x10eac6;};return _0x2d22();}import{Collection as _0x1d8870}from'ckeditor5/src/utils.js';const cs=_0xe006f5(0x107);export default class os extends _0x1d8870{constructor(){const _0x37a3f0=_0xe006f5;super(),this[_0x37a3f0(0x10a)](),this['on'](_0x37a3f0(0xfd),(_0x4cc7d5,_0x28f474)=>{const _0x263b66=_0x37a3f0,_0x284915=Ss(_0x28f474[_0x263b66(0x114)]);for(const _0xf685a1 of this)if(_0xf685a1!=_0x28f474&&Ss(_0xf685a1[_0x263b66(0x114)])===_0x284915){this[_0x263b66(0x105)](_0xf685a1);break;}this[_0x263b66(0x108)]>0x14&&this[_0x263b66(0x105)](this[_0x263b66(0x113)]),this[_0x263b66(0xff)]();}),this['on'](_0x37a3f0(0x105),()=>{const _0x3982e3=_0x37a3f0;this[_0x3982e3(0xff)]();});}[_0xe006f5(0x10a)](){const _0x55c109=_0xe006f5,_0x288504=sessionStorage[_0x55c109(0x10b)](cs)||'[]';this[_0x55c109(0x115)](JSON[_0x55c109(0x102)](_0x288504));}[_0xe006f5(0xff)](){const _0x158d1f=_0xe006f5;sessionStorage[_0x158d1f(0x110)](cs,JSON[_0x158d1f(0x10f)](this[_0x158d1f(0x112)](_0x5840a0=>_0x5840a0)));}}function Ss(_0x5b10f9){const _0x47fdf4=_0xe006f5;return _0x5b10f9[_0x47fdf4(0x106)]()[_0x47fdf4(0x104)]();}
23
+ const _0x4226c0=_0x36b1;(function(_0xa981c7,_0x11f8b4){const _0x5b0336=_0x36b1,_0x5e08fe=_0xa981c7();while(!![]){try{const _0x5a37a3=-parseInt(_0x5b0336(0x1ba))/0x1+parseInt(_0x5b0336(0x1ca))/0x2*(-parseInt(_0x5b0336(0x1c3))/0x3)+parseInt(_0x5b0336(0x1bb))/0x4*(parseInt(_0x5b0336(0x1cb))/0x5)+parseInt(_0x5b0336(0x1cc))/0x6*(-parseInt(_0x5b0336(0x1c1))/0x7)+parseInt(_0x5b0336(0x1c4))/0x8+-parseInt(_0x5b0336(0x1c0))/0x9+parseInt(_0x5b0336(0x1bf))/0xa;if(_0x5a37a3===_0x11f8b4)break;else _0x5e08fe['push'](_0x5e08fe['shift']());}catch(_0x3013c1){_0x5e08fe['push'](_0x5e08fe['shift']());}}}(_0xf922,0x4b525));import{Collection as _0x2fcd00}from'ckeditor5/src/utils.js';const cs=_0x4226c0(0x1cf);function _0x36b1(_0x57af52,_0x3cdbca){const _0xf9221b=_0xf922();return _0x36b1=function(_0x36b164,_0x25ad98){_0x36b164=_0x36b164-0x1ba;let _0x2f3a8b=_0xf9221b[_0x36b164];return _0x2f3a8b;},_0x36b1(_0x57af52,_0x3cdbca);}export default class os extends _0x2fcd00{constructor(){const _0x7548d8=_0x4226c0;super(),this[_0x7548d8(0x1c5)](),this['on'](_0x7548d8(0x1bd),(_0x4f1d0a,_0x5cc7bf)=>{const _0x3c6ca8=_0x7548d8,_0x3e5195=Ss(_0x5cc7bf[_0x3c6ca8(0x1c9)]);for(const _0xb2e681 of this)if(_0xb2e681!=_0x5cc7bf&&Ss(_0xb2e681[_0x3c6ca8(0x1c9)])===_0x3e5195){this[_0x3c6ca8(0x1c6)](_0xb2e681);break;}this[_0x3c6ca8(0x1d0)]>0x14&&this[_0x3c6ca8(0x1c6)](this[_0x3c6ca8(0x1bc)]),this[_0x3c6ca8(0x1d1)]();}),this['on'](_0x7548d8(0x1c6),()=>{const _0x5c3b9c=_0x7548d8;this[_0x5c3b9c(0x1d1)]();});}[_0x4226c0(0x1c5)](){const _0x1120ca=_0x4226c0,_0x3b845d=sessionStorage[_0x1120ca(0x1be)](cs)||'[]';this[_0x1120ca(0x1c8)](JSON[_0x1120ca(0x1d3)](_0x3b845d));}[_0x4226c0(0x1d1)](){const _0x142b75=_0x4226c0;sessionStorage[_0x142b75(0x1d2)](cs,JSON[_0x142b75(0x1ce)](this[_0x142b75(0x1cd)](_0x43695b=>_0x43695b)));}}function Ss(_0x255f78){const _0x1f9d81=_0x4226c0;return _0x255f78[_0x1f9d81(0x1c7)]()[_0x1f9d81(0x1c2)]();}function _0xf922(){const _0x4e9ad3=['3460504lxJOLu','_loadFromSessionStorage','remove','toLowerCase','addMany','prompt','138VATVUO','5TXcZeb','4242QqUZCQ','map','stringify','CKEditor/AIFormView/PromptHistory','length','_saveToSessionStorage','setItem','parse','146465NkEaCo','598604VOZWFG','last','add','getItem','5597410NsaBJV','1276830wnGDLz','399JcvvGd','trim','21948DDzBTK'];_0xf922=function(){return _0x4e9ad3;};return _0xf922();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46d1e9=_0x5730;function _0x51ad(){const _0xe47498=['element','showUI','execute','203760YZzbbm','custom','model','getFirstRange','requiresContent','610020UjLXwj','getItems','126ChBYxH','refresh','hasContent','change:isEnabled','5700258QMKebs','add','ai.aiAssistant.disabledElements','plugins','115494MqaVpg','getSelectedBlocks','3495824svSJcE','isEmpty','_hasContext','values','name','document','from','_commandDefinitions','getRanges','config','isCollapsed','151854kZvXTQ','364ADHcfC','isEnabled','length','change:_hasContext','selection','set','enabledCommandsIds','get','editor','18355JJnHMD','includes'];_0x51ad=function(){return _0xe47498;};return _0x51ad();}(function(_0x522e88,_0x30eadc){const _0x1c364c=_0x5730,_0x466d4f=_0x522e88();while(!![]){try{const _0x39cef0=-parseInt(_0x1c364c(0xf5))/0x1+parseInt(_0x1c364c(0xe6))/0x2+parseInt(_0x1c364c(0xcf))/0x3+parseInt(_0x1c364c(0xe7))/0x4*(parseInt(_0x1c364c(0xf0))/0x5)+-parseInt(_0x1c364c(0xd9))/0x6*(parseInt(_0x1c364c(0xd1))/0x7)+-parseInt(_0x1c364c(0xdb))/0x8+parseInt(_0x1c364c(0xd5))/0x9;if(_0x39cef0===_0x30eadc)break;else _0x466d4f['push'](_0x466d4f['shift']());}catch(_0x4cf3b4){_0x466d4f['push'](_0x466d4f['shift']());}}}(_0x51ad,0x3f58e));import{Command as _0x2a6e19}from'ckeditor5/src/core.js';import _0x51873d from'../aiassistantui.js';function _0x5730(_0x5e6851,_0x13bf81){const _0x51ad98=_0x51ad();return _0x5730=function(_0x57308f,_0x35aa08){_0x57308f=_0x57308f-0xcc;let _0x44b411=_0x51ad98[_0x57308f];return _0x44b411;},_0x5730(_0x5e6851,_0x13bf81);}export default class y extends _0x2a6e19{constructor(_0x905ff1,_0x4b3877){const _0x4b5ecf=_0x5730;super(_0x905ff1),this[_0x4b5ecf(0xe2)]=_0x4b3877,this[_0x4b5ecf(0xec)](_0x4b5ecf(0xed),[]),this['on'](_0x4b5ecf(0xea),(_0x4210c1,_0x4196ae,_0x322f75)=>{const _0x812be3=_0x4b5ecf;this[_0x812be3(0xe8)]&&(this[_0x812be3(0xed)]=G(this[_0x812be3(0xe2)],_0x322f75));}),this[_0x4b5ecf(0xec)](_0x4b5ecf(0xdd),!0x1),this['on'](_0x4b5ecf(0xd4),(_0x294b47,_0x323a23,_0x21e807)=>{const _0x405a0f=_0x4b5ecf;this[_0x405a0f(0xed)]=_0x21e807?G(this[_0x405a0f(0xe2)],this[_0x405a0f(0xdd)]):[];});}[_0x46d1e9(0xd2)](){const _0x18c457=_0x46d1e9,_0x4f358e=this[_0x18c457(0xef)][_0x18c457(0xcc)];this[_0x18c457(0xdd)]=function(_0x55a14d){const _0x222fb3=_0x18c457,_0x59eb01=_0x55a14d[_0x222fb3(0xe0)][_0x222fb3(0xeb)];return _0x59eb01[_0x222fb3(0xe5)]?0x0!==[..._0x59eb01[_0x222fb3(0xda)]()][_0x222fb3(0xe9)]&&![..._0x59eb01[_0x222fb3(0xda)]()][0x0][_0x222fb3(0xdc)]:!!_0x55a14d[_0x222fb3(0xd3)](_0x59eb01[_0x222fb3(0xcd)]());}(_0x4f358e);const _0x31756d=_0x4f358e[_0x18c457(0xe0)][_0x18c457(0xeb)],_0x4cfca1=this[_0x18c457(0xef)][_0x18c457(0xe4)][_0x18c457(0xee)](_0x18c457(0xd7));for(const _0x3b1b4c of _0x31756d[_0x18c457(0xe3)]())for(const _0x300d15 of _0x3b1b4c[_0x18c457(0xd0)]())if(_0x300d15['is'](_0x18c457(0xf2))&&_0x4cfca1[_0x18c457(0xf1)](_0x300d15[_0x18c457(0xdf)]))return void(this[_0x18c457(0xe8)]=!0x1);this[_0x18c457(0xe8)]=!0x0;}[_0x46d1e9(0xf4)](_0x5f0cbf='',_0x45b523='',_0x251947=_0x46d1e9(0xf6)){const _0x5c625e=_0x46d1e9;this[_0x5c625e(0xef)][_0x5c625e(0xd8)][_0x5c625e(0xee)](_0x51873d)[_0x5c625e(0xf3)](_0x5f0cbf,_0x45b523,_0x251947);}}function G(_0xaa5179,_0x33c727){const _0x4b0e3c=_0x46d1e9,_0x19e6a5=new Set();for(const _0x455a0c of _0xaa5179[_0x4b0e3c(0xde)]())(_0x33c727||!0x1===_0x455a0c[_0x4b0e3c(0xce)])&&_0x19e6a5[_0x4b0e3c(0xd6)](_0x455a0c['id']);return Array[_0x4b0e3c(0xe1)](_0x19e6a5);}
23
+ const _0x347b1c=_0x274e;(function(_0x4b0f40,_0x54d8ee){const _0x3951eb=_0x274e,_0x1c1511=_0x4b0f40();while(!![]){try{const _0x2857bd=-parseInt(_0x3951eb(0xec))/0x1+-parseInt(_0x3951eb(0xea))/0x2+-parseInt(_0x3951eb(0xef))/0x3*(parseInt(_0x3951eb(0xe7))/0x4)+-parseInt(_0x3951eb(0xc6))/0x5+parseInt(_0x3951eb(0xe5))/0x6+-parseInt(_0x3951eb(0xca))/0x7+parseInt(_0x3951eb(0xd1))/0x8;if(_0x2857bd===_0x54d8ee)break;else _0x1c1511['push'](_0x1c1511['shift']());}catch(_0x4c8beb){_0x1c1511['push'](_0x1c1511['shift']());}}}(_0xfda1,0x64b3b));function _0x274e(_0x3c710d,_0x7cab89){const _0xfda13b=_0xfda1();return _0x274e=function(_0x274e63,_0x365445){_0x274e63=_0x274e63-0xc6;let _0x40a3bb=_0xfda13b[_0x274e63];return _0x40a3bb;},_0x274e(_0x3c710d,_0x7cab89);}import{Command as _0xa7da76}from'ckeditor5/src/core.js';import _0x4ca3c7 from'../aiassistantui.js';export default class y extends _0xa7da76{constructor(_0x4eafe9,_0x323336){const _0x4ca61e=_0x274e;super(_0x4eafe9),this[_0x4ca61e(0xd8)]=_0x323336,this[_0x4ca61e(0xdb)](_0x4ca61e(0xeb),[]),this['on'](_0x4ca61e(0xd3),(_0x32cd45,_0x4aa67f,_0x3c52e0)=>{const _0x4bc2fc=_0x4ca61e;this[_0x4bc2fc(0xe8)]&&(this[_0x4bc2fc(0xeb)]=G(this[_0x4bc2fc(0xd8)],_0x3c52e0));}),this[_0x4ca61e(0xdb)](_0x4ca61e(0xe9),!0x1),this['on'](_0x4ca61e(0xd9),(_0x26eb3f,_0x1e2ee1,_0x1b3b32)=>{const _0x4cd628=_0x4ca61e;this[_0x4cd628(0xeb)]=_0x1b3b32?G(this[_0x4cd628(0xd8)],this[_0x4cd628(0xe9)]):[];});}[_0x347b1c(0xc9)](){const _0x5781e3=_0x347b1c,_0x3a10da=this[_0x5781e3(0xe1)][_0x5781e3(0xed)];this[_0x5781e3(0xe9)]=function(_0x84d626){const _0x4c9e9d=_0x5781e3,_0x59ec14=_0x84d626[_0x4c9e9d(0xe0)][_0x4c9e9d(0xcc)];return _0x59ec14[_0x4c9e9d(0xc8)]?0x0!==[..._0x59ec14[_0x4c9e9d(0xd2)]()][_0x4c9e9d(0xdc)]&&![..._0x59ec14[_0x4c9e9d(0xd2)]()][0x0][_0x4c9e9d(0xcb)]:!!_0x84d626[_0x4c9e9d(0xd4)](_0x59ec14[_0x4c9e9d(0xda)]());}(_0x3a10da);const _0x212740=_0x3a10da[_0x5781e3(0xe0)][_0x5781e3(0xcc)],_0x2d05db=this[_0x5781e3(0xe1)][_0x5781e3(0xc7)][_0x5781e3(0xe4)](_0x5781e3(0xe6));for(const _0x5069b2 of _0x212740[_0x5781e3(0xdf)]())for(const _0x29f674 of _0x5069b2[_0x5781e3(0xde)]())if(_0x29f674['is'](_0x5781e3(0xce))&&_0x2d05db[_0x5781e3(0xd0)](_0x29f674[_0x5781e3(0xdd)]))return void(this[_0x5781e3(0xe8)]=!0x1);this[_0x5781e3(0xe8)]=!0x0;}[_0x347b1c(0xe2)](_0x2565f8='',_0x58257b='',_0x4f3ba=_0x347b1c(0xcd)){const _0x2f5a74=_0x347b1c;this[_0x2f5a74(0xe1)][_0x2f5a74(0xd6)][_0x2f5a74(0xe4)](_0x4ca3c7)[_0x2f5a74(0xd7)](_0x2565f8,_0x58257b,_0x4f3ba);}}function G(_0x4eb5ae,_0x200ecc){const _0x5d1276=_0x347b1c,_0x1efa6d=new Set();for(const _0x3c6960 of _0x4eb5ae[_0x5d1276(0xd5)]())(_0x200ecc||!0x1===_0x3c6960[_0x5d1276(0xe3)])&&_0x1efa6d[_0x5d1276(0xcf)](_0x3c6960['id']);return Array[_0x5d1276(0xee)](_0x1efa6d);}function _0xfda1(){const _0x1ea506=['refresh','3316852cwzrvQ','isEmpty','selection','custom','element','add','includes','19552616UplhQq','getSelectedBlocks','change:_hasContext','hasContent','values','plugins','showUI','_commandDefinitions','change:isEnabled','getFirstRange','set','length','name','getItems','getRanges','document','editor','execute','requiresContent','get','581118RJXMOq','ai.aiAssistant.disabledElements','4uflJOU','isEnabled','_hasContext','903330uwWKzB','enabledCommandsIds','603401cxpVGV','model','from','1072845KlwpxQ','1209690Byzxyj','config','isCollapsed'];_0xfda1=function(){return _0x1ea506;};return _0xfda1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1d3039,_0x1a7489,_0x2e2f56){const t=_0x1d3039['t'];switch(_0x1a7489){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',_0x2e2f56);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2e2f56);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'},_0x2e2f56);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 _0x1a7489;}}
23
+ export function getTranslation(_0x382545,_0x2ca80e,_0x45f97f){const t=_0x382545['t'];switch(_0x2ca80e){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',_0x45f97f);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x45f97f);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'},_0x45f97f);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 _0x2ca80e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x52e031,_0xc3fcc9){const _0x2689a6=(0x0,_0xc3fcc9['t'])('Other');return _0x52e031['length']?'groupId'in _0x52e031[0x0]?_0x52e031:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2689a6,'order':0x1/0x0,'commands':_0x52e031}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2689a6,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x2dfcc6,_0x475d0b){const _0x53e856=(0x0,_0x475d0b['t'])('Other');return _0x2dfcc6['length']?'groupId'in _0x2dfcc6[0x0]?_0x2dfcc6:[{'groupId':'_ungrouppedCommands','groupLabel':_0x53e856,'order':0x1/0x0,'commands':_0x2dfcc6}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x53e856,'order':0x1/0x0,'commands':[]}];}