@ckeditor/ckeditor5-ai 45.0.0-alpha.0 → 45.0.0-alpha.2

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 (170) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/adapters/aiadapter.js +1 -1
  151. package/src/adapters/aitextadapter.js +1 -1
  152. package/src/adapters/awstextadapter.js +1 -1
  153. package/src/adapters/openaitextadapter.js +1 -1
  154. package/src/aiassistant.js +1 -1
  155. package/src/aiassistantediting.js +1 -1
  156. package/src/aiassistantui.js +1 -1
  157. package/src/index.js +1 -1
  158. package/src/legacyerrors.js +1 -1
  159. package/src/ui/aiassistantcontroller.js +2 -2
  160. package/src/ui/form/aiformcontentarea.js +1 -1
  161. package/src/ui/form/aiformerrorview.js +1 -1
  162. package/src/ui/form/aiformpromptview.js +1 -1
  163. package/src/ui/form/aiformtoolbarview.js +1 -1
  164. package/src/ui/form/aiformview.js +1 -1
  165. package/src/ui/form/aihistorylistitemview.js +1 -1
  166. package/src/ui/form/aihistorylistview.js +1 -1
  167. package/src/ui/form/prompthistory.js +1 -1
  168. package/src/ui/showaiassistantcommand.js +1 -1
  169. package/src/utils/common-translations.js +1 -1
  170. package/src/utils/normalizecommandsconfig.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14a4a3=_0x2da5;(function(_0x4b22ca,_0x101b7e){const _0x39c9a6=_0x2da5,_0x573b37=_0x4b22ca();while(!![]){try{const _0x455ab4=-parseInt(_0x39c9a6(0x11b))/0x1*(-parseInt(_0x39c9a6(0x11f))/0x2)+parseInt(_0x39c9a6(0x12a))/0x3+-parseInt(_0x39c9a6(0x10b))/0x4*(-parseInt(_0x39c9a6(0x113))/0x5)+-parseInt(_0x39c9a6(0x11c))/0x6+-parseInt(_0x39c9a6(0x10c))/0x7+-parseInt(_0x39c9a6(0x112))/0x8+-parseInt(_0x39c9a6(0x129))/0x9*(-parseInt(_0x39c9a6(0x11d))/0xa);if(_0x455ab4===_0x101b7e)break;else _0x573b37['push'](_0x573b37['shift']());}catch(_0x448313){_0x573b37['push'](_0x573b37['shift']());}}}(_0x4312,0x5a345));import{ToolbarView as _0x5c9eb9,ButtonView as _0x43fc0d}from'ckeditor5/src/ui.js';function _0x4312(){const _0x1c0bf5=['insertButton','bind','ck-button-action','REPLACE','tryAgainButton','replaceButton','ck-ai-form__toolbar','739WTctwe','1317252ajDHyU','402200JHZYLH','_CONTENT','622PCRzNy','bindTemplate','mainAction','Insert\x20below','extendTemplate','stopButton','_createButton','Stop','insert','replace','18mpGbsS','804393AqWQMn','isVisible','Try\x20again','locale','toUpperCase','AI_','220uilFew','3217634dsutvV','ck-hidden','label','addMany','set','items','525552uXaWVl','48725tsDpwP'];_0x4312=function(){return _0x1c0bf5;};return _0x4312();}import{getTranslation as _0x456dab}from'../../utils/common-translations.js';function _0x2da5(_0x1c2438,_0x3fdbd4){const _0x431244=_0x4312();return _0x2da5=function(_0x2da5c9,_0x41ab2e){_0x2da5c9=_0x2da5c9-0x107;let _0xa52f1f=_0x431244[_0x2da5c9];return _0xa52f1f;},_0x2da5(_0x1c2438,_0x3fdbd4);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x14a4a3(0x128),'INSERT':_0x14a4a3(0x127)};export default class lt extends _0x5c9eb9{constructor(_0x1e873a){const _0x170dc3=_0x14a4a3;super(_0x1e873a),this[_0x170dc3(0x110)](_0x170dc3(0x12b),!0x1),this[_0x170dc3(0x110)](_0x170dc3(0x121),AIFormToolbarViewMainActionLabel[_0x170dc3(0x117)]),this[_0x170dc3(0x119)]=this[_0x170dc3(0x125)]('',_0x170dc3(0x116)),this[_0x170dc3(0x119)][_0x170dc3(0x115)](_0x170dc3(0x10e))['to'](this,_0x170dc3(0x121),_0x5b763b=>_0x456dab(_0x1e873a,_0x170dc3(0x10a)+_0x5b763b[_0x170dc3(0x109)]()+_0x170dc3(0x11e))),this[_0x170dc3(0x114)]=this[_0x170dc3(0x125)](_0x456dab(_0x1e873a,_0x170dc3(0x122))),this[_0x170dc3(0x118)]=this[_0x170dc3(0x125)](_0x456dab(_0x1e873a,_0x170dc3(0x107))),this[_0x170dc3(0x124)]=this[_0x170dc3(0x125)](_0x456dab(_0x1e873a,_0x170dc3(0x126)));const _0x47acf1=this[_0x170dc3(0x120)];this[_0x170dc3(0x123)]({'attributes':{'class':[_0x170dc3(0x11a),_0x47acf1['if'](_0x170dc3(0x12b),_0x170dc3(0x10d),_0x144657=>!_0x144657)]}}),this[_0x170dc3(0x111)][_0x170dc3(0x10f)]([this[_0x170dc3(0x119)],this[_0x170dc3(0x114)],this[_0x170dc3(0x118)],this[_0x170dc3(0x124)]]);}[_0x14a4a3(0x125)](_0xb18bef,_0x498137){const _0x119cf5=_0x14a4a3,_0xd17907=new _0x43fc0d(this[_0x119cf5(0x108)]);return _0xd17907[_0x119cf5(0x110)]({'label':_0xb18bef,'class':_0x498137||'','isVisible':!0x0,'withText':!0x0}),_0xd17907;}}
23
+ const _0x3f289a=_0x4c2f;(function(_0x2f6344,_0x37699c){const _0x48e9d1=_0x4c2f,_0x2ad63e=_0x2f6344();while(!![]){try{const _0x5b4811=-parseInt(_0x48e9d1(0x200))/0x1+-parseInt(_0x48e9d1(0x20c))/0x2*(-parseInt(_0x48e9d1(0x205))/0x3)+-parseInt(_0x48e9d1(0x1f6))/0x4+-parseInt(_0x48e9d1(0x204))/0x5+parseInt(_0x48e9d1(0x206))/0x6*(parseInt(_0x48e9d1(0x20b))/0x7)+-parseInt(_0x48e9d1(0x211))/0x8*(-parseInt(_0x48e9d1(0x1fa))/0x9)+-parseInt(_0x48e9d1(0x1fe))/0xa;if(_0x5b4811===_0x37699c)break;else _0x2ad63e['push'](_0x2ad63e['shift']());}catch(_0xa4d340){_0x2ad63e['push'](_0x2ad63e['shift']());}}}(_0x5685,0xc6a3a));import{ToolbarView as _0xb792f1,ButtonView as _0x462078}from'ckeditor5/src/ui.js';import{getTranslation as _0x292f65}from'../../utils/common-translations.js';function _0x4c2f(_0x378d36,_0x774549){const _0x568535=_0x5685();return _0x4c2f=function(_0x4c2f9a,_0x2c597f){_0x4c2f9a=_0x4c2f9a-0x1ef;let _0xf69b32=_0x568535[_0x4c2f9a];return _0xf69b32;},_0x4c2f(_0x378d36,_0x774549);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3f289a(0x1f8),'INSERT':_0x3f289a(0x202)};export default class lt extends _0xb792f1{constructor(_0x2b3626){const _0x1e9248=_0x3f289a;super(_0x2b3626),this[_0x1e9248(0x20e)](_0x1e9248(0x20f),!0x1),this[_0x1e9248(0x20e)](_0x1e9248(0x201),AIFormToolbarViewMainActionLabel[_0x1e9248(0x209)]),this[_0x1e9248(0x1f4)]=this[_0x1e9248(0x212)]('',_0x1e9248(0x1fc)),this[_0x1e9248(0x1f4)][_0x1e9248(0x1f7)](_0x1e9248(0x1f0))['to'](this,_0x1e9248(0x201),_0x117117=>_0x292f65(_0x2b3626,_0x1e9248(0x1f5)+_0x117117[_0x1e9248(0x1fd)]()+_0x1e9248(0x20d))),this[_0x1e9248(0x207)]=this[_0x1e9248(0x212)](_0x292f65(_0x2b3626,_0x1e9248(0x213))),this[_0x1e9248(0x1ff)]=this[_0x1e9248(0x212)](_0x292f65(_0x2b3626,_0x1e9248(0x1fb))),this[_0x1e9248(0x1f9)]=this[_0x1e9248(0x212)](_0x292f65(_0x2b3626,_0x1e9248(0x1ef)));const _0x52a5f7=this[_0x1e9248(0x210)];this[_0x1e9248(0x208)]({'attributes':{'class':[_0x1e9248(0x20a),_0x52a5f7['if'](_0x1e9248(0x20f),_0x1e9248(0x1f2),_0x3335f3=>!_0x3335f3)]}}),this[_0x1e9248(0x1f3)][_0x1e9248(0x1f1)]([this[_0x1e9248(0x1f4)],this[_0x1e9248(0x207)],this[_0x1e9248(0x1ff)],this[_0x1e9248(0x1f9)]]);}[_0x3f289a(0x212)](_0x556d69,_0xb4496e){const _0x51dbc9=_0x3f289a,_0x30b25b=new _0x462078(this[_0x51dbc9(0x203)]);return _0x30b25b[_0x51dbc9(0x20e)]({'label':_0x556d69,'class':_0xb4496e||'','isVisible':!0x0,'withText':!0x0}),_0x30b25b;}}function _0x5685(){const _0xedb94a=['50640zEnTbq','insertButton','extendTemplate','REPLACE','ck-ai-form__toolbar','749cDAJiy','8caEzZX','_CONTENT','set','isVisible','bindTemplate','22376bHuXXK','_createButton','Insert\x20below','Stop','label','addMany','ck-hidden','items','replaceButton','AI_','1957564LTvRqC','bind','replace','stopButton','3627QByojQ','Try\x20again','ck-button-action','toUpperCase','5710200URnFnt','tryAgainButton','319253NaKNhW','mainAction','insert','locale','5761885uaWdNu','986547foZWoA'];_0x5685=function(){return _0xedb94a;};return _0x5685();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20c07b=_0x4399;(function(_0x1c3640,_0x417d7b){const _0x25241e=_0x4399,_0x1da43a=_0x1c3640();while(!![]){try{const _0x264e7c=-parseInt(_0x25241e(0x109))/0x1+parseInt(_0x25241e(0xd9))/0x2+-parseInt(_0x25241e(0x100))/0x3+-parseInt(_0x25241e(0x10b))/0x4+-parseInt(_0x25241e(0xec))/0x5*(-parseInt(_0x25241e(0xf7))/0x6)+parseInt(_0x25241e(0xfd))/0x7+-parseInt(_0x25241e(0x10a))/0x8;if(_0x264e7c===_0x417d7b)break;else _0x1da43a['push'](_0x1da43a['shift']());}catch(_0x138cb){_0x1da43a['push'](_0x1da43a['shift']());}}}(_0x5ab7,0xb5616));import{FocusTracker as _0x580f9f,KeystrokeHandler as _0x3999d9}from'ckeditor5/src/utils.js';import{View as _0x3d8c84,FocusCycler as _0x2a7130,createLabeledTextarea as _0x3ff1c7}from'ckeditor5/src/ui.js';import _0x541da8,{AIFormToolbarViewMainActionLabel as _0x5f08a1}from'./aiformtoolbarview.js';import _0x130c84 from'./aiformcontentarea.js';import _0x23d09c from'./aiformerrorview.js';import _0x320898 from'./aiformpromptview.js';import _0x4d1193 from'./aihistorylistview.js';import _0xc33326 from'./aihistorylistitemview.js';import _0x26de8d from'./prompthistory.js';import{getTranslation as _0x3e4bba}from'../../utils/common-translations.js';function _0x5ab7(){const _0x1a7348=['isVisible','ck-ai-form','shift\x20+\x20tab','value','fieldView','keystrokes','focus','REPLACE','errorView','set','prompt','reset','ck-hidden','_focusables','chain','locale','bindTemplate','2198545NgzSQA','insertButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','promptView','isError','bindTo','text','focusTracker','fire','contentArea','submitPrompt','12yiEKSa','createCollection','clearHistory','search','replaceButton','render','7612199wdEkaO','tryAgainEvent','tab','4145064ZLIwGT','div','isProcessing','finishProcessing','AI_ERROR_FAILED','bind','Empty\x20history','stopProcessing','replaceContent','159314HpqIzf','5959032xsYaIS','349492uausTv','element','delegate','listenTo','insertContentBelow','_createHistoryView','trim','startProcessing','execute','focusLast','mainAction','high','toolbar','copyButtonView','label','items','tryAgainButton','handleError','ck-ai-form-content','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_createToolbar','clear','setTemplate','submit','_promptHistory','queryView','focusFirst','_createPromptView','historyGroupView','add','stopButton','isEnabled','Ask\x20AI\x20to\x20edit\x20or\x20generate','2298626ijXijB','focusCycler'];_0x5ab7=function(){return _0x1a7348;};return _0x5ab7();}import{escape as _0x395732}from'es-toolkit/compat';function _0x4399(_0x1b2060,_0x21ad75){const _0x5ab766=_0x5ab7();return _0x4399=function(_0x439974,_0x437d32){_0x439974=_0x439974-0xc9;let _0x446114=_0x5ab766[_0x439974];return _0x446114;},_0x4399(_0x1b2060,_0x21ad75);}export default class _ extends _0x3d8c84{[_0x20c07b(0xf3)];[_0x20c07b(0xe0)];[_0x20c07b(0xf5)];[_0x20c07b(0x117)];[_0x20c07b(0xef)];[_0x20c07b(0xe3)];[_0x20c07b(0xe8)];[_0x20c07b(0xda)];[_0x20c07b(0xd0)];constructor(_0x6ddafd,_0x4e7cbb,_0x513b50=''){const _0x489a08=_0x20c07b;super(_0x6ddafd),this[_0x489a08(0xe4)](_0x489a08(0xd7),!0x0),this[_0x489a08(0xe4)](_0x489a08(0x102),!0x1),this[_0x489a08(0xe4)](_0x489a08(0xe5),''),this[_0x489a08(0xe4)](_0x489a08(0xde),''),this[_0x489a08(0xe4)](_0x489a08(0xf0),!0x1),this[_0x489a08(0xe4)](_0x489a08(0x115),_0x5f08a1[_0x489a08(0xe2)]),this[_0x489a08(0xd0)]=new _0x26de8d(),this[_0x489a08(0xe3)]=new _0x23d09c(_0x6ddafd),this[_0x489a08(0xf5)]=new _0x130c84(_0x6ddafd,_0x513b50),this[_0x489a08(0xf5)][_0x489a08(0x105)](_0x489a08(0x102))['to'](this),this[_0x489a08(0xf5)][_0x489a08(0x105)](_0x489a08(0xde))['to'](this),this[_0x489a08(0x117)]=this[_0x489a08(0xcc)](),this[_0x489a08(0x117)][_0x489a08(0x105)](_0x489a08(0x115))['to'](this),this[_0x489a08(0xef)]=this[_0x489a08(0xd3)](),this[_0x489a08(0xf3)]=new _0x580f9f(),this[_0x489a08(0xe0)]=new _0x3999d9(),this[_0x489a08(0xe8)]=this[_0x489a08(0xf8)]([this[_0x489a08(0xf5)],this[_0x489a08(0xf5)][_0x489a08(0x118)],this[_0x489a08(0x117)],this[_0x489a08(0xef)]]),this[_0x489a08(0xda)]=new _0x2a7130({'focusables':this[_0x489a08(0xe8)],'focusTracker':this[_0x489a08(0xf3)],'keystrokeHandler':this[_0x489a08(0xe0)],'actions':{'focusPrevious':_0x489a08(0xdd),'focusNext':_0x489a08(0xff)}}),this[_0x489a08(0xda)][_0x489a08(0xe9)](this[_0x489a08(0xef)][_0x489a08(0xda)]),this[_0x489a08(0xef)][_0x489a08(0xd1)][_0x489a08(0xdf)][_0x489a08(0x105)](_0x489a08(0xde))['to'](this,_0x489a08(0xe5));const _0x58844d=this[_0x489a08(0xeb)];this[_0x489a08(0xce)]({'tag':_0x489a08(0x101),'attributes':{'class':['ck',_0x489a08(0xdc),_0x4e7cbb],'tabindex':'-1'},'children':[{'tag':_0x489a08(0x101),'attributes':{'class':['ck',_0x489a08(0xca)]},'children':[{'tag':_0x489a08(0x101),'attributes':{'class':[_0x58844d['if'](_0x489a08(0xf0),_0x489a08(0xe7),_0x487ad1=>!_0x487ad1)]},'children':[this[_0x489a08(0xe3)]]},this[_0x489a08(0xf5)],this[_0x489a08(0x117)],this[_0x489a08(0xef)]]}]});}[_0x20c07b(0xfc)](){const _0x3bf049=_0x20c07b;super[_0x3bf049(0xfc)](),this[_0x3bf049(0xf3)][_0x3bf049(0xd5)](this[_0x3bf049(0xf5)][_0x3bf049(0x10c)]),this[_0x3bf049(0xf3)][_0x3bf049(0xd5)](this[_0x3bf049(0xf5)][_0x3bf049(0x118)][_0x3bf049(0x10c)]),this[_0x3bf049(0xf3)][_0x3bf049(0xd5)](this[_0x3bf049(0x117)][_0x3bf049(0x10c)]),this[_0x3bf049(0xf3)][_0x3bf049(0xd5)](this[_0x3bf049(0xef)][_0x3bf049(0x10c)]),this[_0x3bf049(0xe0)][_0x3bf049(0x10e)](this[_0x3bf049(0x10c)]);}[_0x20c07b(0xe1)](_0xc0d21f=0x1){const _0x9ce2c8=_0x20c07b;-0x1===_0xc0d21f?this[_0x9ce2c8(0xda)][_0x9ce2c8(0x114)]():this[_0x9ce2c8(0xda)][_0x9ce2c8(0xd2)]();}[_0x20c07b(0xe6)](){const _0x44d0b3=_0x20c07b;this[_0x44d0b3(0xe5)]='',this[_0x44d0b3(0xde)]='',this[_0x44d0b3(0xf0)]=!0x1,this[_0x44d0b3(0xef)][_0x44d0b3(0xe6)](),this[_0x44d0b3(0xf5)][_0x44d0b3(0xdb)]=!0x1,this[_0x44d0b3(0x117)][_0x44d0b3(0xdb)]=!0x1;}[_0x20c07b(0xd3)](){const _0x160305=_0x20c07b,_0x350217=this[_0x160305(0xea)],_0x5d94ea=new _0x320898(_0x350217,{'queryView':{'label':_0x3e4bba(_0x350217,_0x160305(0xd8)),'creator':_0x3ff1c7,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3e4bba(_0x350217,_0x160305(0x106)),'secondary':_0x3e4bba(_0x350217,_0x160305(0xcb))}}},'filteredView':this[_0x160305(0x110)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5d94ea[_0x160305(0x105)](_0x160305(0xd7))['to'](this,_0x160305(0xd7),this,_0x160305(0x102),(_0x32ddd0,_0x1f0464)=>_0x32ddd0&&!_0x1f0464),this[_0x160305(0x10e)](_0x5d94ea,_0x160305(0xcf),(_0xc56c68,_0x4def20)=>{const _0x44ff07=_0x160305;this[_0x44ff07(0xe5)]=_0x4def20;const _0x4bb247=_0x395732(_0x4def20);this[_0x44ff07(0xf4)](_0x44ff07(0xf6),_0x4bb247),_0x4def20[_0x44ff07(0x111)]()&&this[_0x44ff07(0xd0)][_0x44ff07(0xd5)]({'prompt':_0x4bb247},0x0);},{'priority':_0x160305(0x116)}),_0x5d94ea;}[_0x20c07b(0x110)](){const _0x4726dc=_0x20c07b,_0x25bef9=new _0x4d1193(this[_0x4726dc(0xea)]);return _0x25bef9[_0x4726dc(0xd4)][_0x4726dc(0x11a)][_0x4726dc(0xf1)](this[_0x4726dc(0xd0)])['as'](_0xc33326),_0x25bef9['on'](_0x4726dc(0xf9),()=>{const _0x5e1252=_0x4726dc;this[_0x5e1252(0xd0)][_0x5e1252(0xcd)](),this[_0x5e1252(0xef)][_0x5e1252(0xfa)](''),this[_0x5e1252(0xef)][_0x5e1252(0xe1)]();}),_0x25bef9;}[_0x20c07b(0xcc)](){const _0x247a10=_0x20c07b,_0x2b27e1=new _0x541da8(this[_0x247a10(0xea)]);return _0x2b27e1[_0x247a10(0xfb)][_0x247a10(0x105)](_0x247a10(0xd7))['to'](this,_0x247a10(0xd7),this,_0x247a10(0x102),this,_0x247a10(0xde),(_0x11fdb8,_0x3e1367,_0x908832)=>_0x11fdb8&&!_0x3e1367&&!!_0x908832),_0x2b27e1[_0x247a10(0xfb)][_0x247a10(0x10d)](_0x247a10(0x113))['to'](this,_0x247a10(0x108)),_0x2b27e1[_0x247a10(0xed)][_0x247a10(0x105)](_0x247a10(0xd7))['to'](this,_0x247a10(0xd7),this,_0x247a10(0x102),this,_0x247a10(0xde),(_0x4971fb,_0x3f4b69,_0x1872b5)=>_0x4971fb&&!_0x3f4b69&&!!_0x1872b5),_0x2b27e1[_0x247a10(0xed)][_0x247a10(0x10d)](_0x247a10(0x113))['to'](this,_0x247a10(0x10f)),_0x2b27e1[_0x247a10(0x11b)][_0x247a10(0x105)](_0x247a10(0xd7))['to'](this,_0x247a10(0xd7),this,_0x247a10(0x102),(_0x557bda,_0x37a93a)=>_0x557bda&&!_0x37a93a),_0x2b27e1[_0x247a10(0x11b)][_0x247a10(0x10d)](_0x247a10(0x113))['to'](this,_0x247a10(0xfe)),_0x2b27e1[_0x247a10(0xd6)][_0x247a10(0x105)](_0x247a10(0xd7))['to'](this,_0x247a10(0x102)),_0x2b27e1[_0x247a10(0xd6)][_0x247a10(0x10d)](_0x247a10(0x113))['to'](this,_0x247a10(0x107)),_0x2b27e1;}[_0x20c07b(0x112)](){const _0x32a43f=_0x20c07b;this[_0x32a43f(0xde)]='',this[_0x32a43f(0xf0)]=!0x1,this[_0x32a43f(0x102)]=!0x0,this[_0x32a43f(0xf5)][_0x32a43f(0xdb)]=!0x0,this[_0x32a43f(0x117)][_0x32a43f(0xdb)]=!0x0,this[_0x32a43f(0xf5)][_0x32a43f(0xe1)]();}[_0x20c07b(0x103)](){const _0x2f9b90=_0x20c07b,_0x3be7b8=this[_0x2f9b90(0xea)];this[_0x2f9b90(0x102)]=!0x1,this[_0x2f9b90(0xe5)]='',this[_0x2f9b90(0xef)][_0x2f9b90(0xe6)](),this[_0x2f9b90(0xde)]&&(this[_0x2f9b90(0xef)][_0x2f9b90(0xd1)][_0x2f9b90(0x119)]=_0x3e4bba(_0x3be7b8,_0x2f9b90(0xee)));}[_0x20c07b(0xc9)](_0x4200a9){const _0x3ef843=_0x20c07b,_0x1ff3d9=this[_0x3ef843(0xea)];this[_0x3ef843(0x103)](),this[_0x3ef843(0xf0)]=!0x0,this[_0x3ef843(0xe3)][_0x3ef843(0xf2)]=_0x4200a9||_0x3e4bba(_0x1ff3d9,_0x3ef843(0x104)),this[_0x3ef843(0xde)]||(this[_0x3ef843(0xf5)][_0x3ef843(0xdb)]=!0x1);}}
23
+ function _0x4f4e(){const _0x42ea01=['keystrokes','1620090GxbrCE','bindTo','shift\x20+\x20tab','trim','isProcessing','historyGroupView','stopButton','execute','Empty\x20history','focusTracker','promptView','focusFirst','chain','queryView','focusLast','setTemplate','finishProcessing','bindTemplate','_focusables','bind','set','1386ZoMwCq','listenTo','Ask\x20AI\x20to\x20improve\x20generated\x20text','1670022xagfSu','replaceButton','mainAction','focusCycler','4184GYogtb','submitPrompt','startProcessing','value','replaceContent','createCollection','1398236EBTaXW','contentArea','ck-ai-form-content','_createPromptView','_createHistoryView','render','isEnabled','submit','fieldView','high','20TedTwB','2DEcsCB','search','ck-hidden','fire','copyButtonView','insertContentBelow','tab','focus','330515fowHkk','prompt','AI_ERROR_FAILED','ck-ai-form','REPLACE','div','Ask\x20AI\x20to\x20edit\x20or\x20generate','handleError','1063014hxfVZT','reset','_promptHistory','element','tryAgainButton','tryAgainEvent','clearHistory','add','locale','isError','label','stopProcessing','clear','delegate','insertButton','_createToolbar','1450188btdTsd','text','isVisible','items','toolbar','errorView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.'];_0x4f4e=function(){return _0x42ea01;};return _0x4f4e();}const _0x5aab2e=_0x3464;(function(_0x4ce76d,_0x38aa23){const _0x33b9d4=_0x3464,_0xcbc76=_0x4ce76d();while(!![]){try{const _0x5e9b15=parseInt(_0x33b9d4(0x197))/0x1*(-parseInt(_0x33b9d4(0x18f))/0x2)+-parseInt(_0x33b9d4(0x19f))/0x3+parseInt(_0x33b9d4(0x184))/0x4+parseInt(_0x33b9d4(0x1b7))/0x5+-parseInt(_0x33b9d4(0x1af))/0x6+-parseInt(_0x33b9d4(0x177))/0x7*(-parseInt(_0x33b9d4(0x17e))/0x8)+parseInt(_0x33b9d4(0x17a))/0x9*(parseInt(_0x33b9d4(0x18e))/0xa);if(_0x5e9b15===_0x38aa23)break;else _0xcbc76['push'](_0xcbc76['shift']());}catch(_0x5f4afa){_0xcbc76['push'](_0xcbc76['shift']());}}}(_0x4f4e,0x36200));import{FocusTracker as _0x1767ad,KeystrokeHandler as _0x44b41d}from'ckeditor5/src/utils.js';function _0x3464(_0x2b4a18,_0x43dd6f){const _0x4f4e78=_0x4f4e();return _0x3464=function(_0x3464d1,_0x4baeb6){_0x3464d1=_0x3464d1-0x170;let _0x45c159=_0x4f4e78[_0x3464d1];return _0x45c159;},_0x3464(_0x2b4a18,_0x43dd6f);}import{View as _0x36adbf,FocusCycler as _0x127363,createLabeledTextarea as _0x536605}from'ckeditor5/src/ui.js';import _0x5a2ed4,{AIFormToolbarViewMainActionLabel as _0x340031}from'./aiformtoolbarview.js';import _0xd7567d from'./aiformcontentarea.js';import _0x34138d from'./aiformerrorview.js';import _0x15c4d4 from'./aiformpromptview.js';import _0x5536fb from'./aihistorylistview.js';import _0x4788d7 from'./aihistorylistitemview.js';import _0x33a78f from'./prompthistory.js';import{getTranslation as _0x44910f}from'../../utils/common-translations.js';import{escape as _0x428fb9}from'es-toolkit/compat';export default class _ extends _0x36adbf{[_0x5aab2e(0x1c0)];[_0x5aab2e(0x1b6)];[_0x5aab2e(0x185)];[_0x5aab2e(0x1b3)];[_0x5aab2e(0x1c1)];[_0x5aab2e(0x1b4)];[_0x5aab2e(0x174)];[_0x5aab2e(0x17d)];[_0x5aab2e(0x1a1)];constructor(_0x526c57,_0x5db339,_0x1ef339=''){const _0x42f158=_0x5aab2e;super(_0x526c57),this[_0x42f158(0x176)](_0x42f158(0x18a),!0x0),this[_0x42f158(0x176)](_0x42f158(0x1bb),!0x1),this[_0x42f158(0x176)](_0x42f158(0x198),''),this[_0x42f158(0x176)](_0x42f158(0x181),''),this[_0x42f158(0x176)](_0x42f158(0x1a8),!0x1),this[_0x42f158(0x176)](_0x42f158(0x17c),_0x340031[_0x42f158(0x19b)]),this[_0x42f158(0x1a1)]=new _0x33a78f(),this[_0x42f158(0x1b4)]=new _0x34138d(_0x526c57),this[_0x42f158(0x185)]=new _0xd7567d(_0x526c57,_0x1ef339),this[_0x42f158(0x185)][_0x42f158(0x175)](_0x42f158(0x1bb))['to'](this),this[_0x42f158(0x185)][_0x42f158(0x175)](_0x42f158(0x181))['to'](this),this[_0x42f158(0x1b3)]=this[_0x42f158(0x1ae)](),this[_0x42f158(0x1b3)][_0x42f158(0x175)](_0x42f158(0x17c))['to'](this),this[_0x42f158(0x1c1)]=this[_0x42f158(0x187)](),this[_0x42f158(0x1c0)]=new _0x1767ad(),this[_0x42f158(0x1b6)]=new _0x44b41d(),this[_0x42f158(0x174)]=this[_0x42f158(0x183)]([this[_0x42f158(0x185)],this[_0x42f158(0x185)][_0x42f158(0x193)],this[_0x42f158(0x1b3)],this[_0x42f158(0x1c1)]]),this[_0x42f158(0x17d)]=new _0x127363({'focusables':this[_0x42f158(0x174)],'focusTracker':this[_0x42f158(0x1c0)],'keystrokeHandler':this[_0x42f158(0x1b6)],'actions':{'focusPrevious':_0x42f158(0x1b9),'focusNext':_0x42f158(0x195)}}),this[_0x42f158(0x17d)][_0x42f158(0x1c3)](this[_0x42f158(0x1c1)][_0x42f158(0x17d)]),this[_0x42f158(0x1c1)][_0x42f158(0x1c4)][_0x42f158(0x18c)][_0x42f158(0x175)](_0x42f158(0x181))['to'](this,_0x42f158(0x198));const _0x31c46b=this[_0x42f158(0x173)];this[_0x42f158(0x171)]({'tag':_0x42f158(0x19c),'attributes':{'class':['ck',_0x42f158(0x19a),_0x5db339],'tabindex':'-1'},'children':[{'tag':_0x42f158(0x19c),'attributes':{'class':['ck',_0x42f158(0x186)]},'children':[{'tag':_0x42f158(0x19c),'attributes':{'class':[_0x31c46b['if'](_0x42f158(0x1a8),_0x42f158(0x191),_0x43ae8b=>!_0x43ae8b)]},'children':[this[_0x42f158(0x1b4)]]},this[_0x42f158(0x185)],this[_0x42f158(0x1b3)],this[_0x42f158(0x1c1)]]}]});}[_0x5aab2e(0x189)](){const _0x3f2192=_0x5aab2e;super[_0x3f2192(0x189)](),this[_0x3f2192(0x1c0)][_0x3f2192(0x1a6)](this[_0x3f2192(0x185)][_0x3f2192(0x1a2)]),this[_0x3f2192(0x1c0)][_0x3f2192(0x1a6)](this[_0x3f2192(0x185)][_0x3f2192(0x193)][_0x3f2192(0x1a2)]),this[_0x3f2192(0x1c0)][_0x3f2192(0x1a6)](this[_0x3f2192(0x1b3)][_0x3f2192(0x1a2)]),this[_0x3f2192(0x1c0)][_0x3f2192(0x1a6)](this[_0x3f2192(0x1c1)][_0x3f2192(0x1a2)]),this[_0x3f2192(0x1b6)][_0x3f2192(0x178)](this[_0x3f2192(0x1a2)]);}[_0x5aab2e(0x196)](_0x14e9ee=0x1){const _0x1ce963=_0x5aab2e;-0x1===_0x14e9ee?this[_0x1ce963(0x17d)][_0x1ce963(0x170)]():this[_0x1ce963(0x17d)][_0x1ce963(0x1c2)]();}[_0x5aab2e(0x1a0)](){const _0x578d19=_0x5aab2e;this[_0x578d19(0x198)]='',this[_0x578d19(0x181)]='',this[_0x578d19(0x1a8)]=!0x1,this[_0x578d19(0x1c1)][_0x578d19(0x1a0)](),this[_0x578d19(0x185)][_0x578d19(0x1b1)]=!0x1,this[_0x578d19(0x1b3)][_0x578d19(0x1b1)]=!0x1;}[_0x5aab2e(0x187)](){const _0x43ae25=_0x5aab2e,_0x562b35=this[_0x43ae25(0x1a7)],_0x4277b3=new _0x15c4d4(_0x562b35,{'queryView':{'label':_0x44910f(_0x562b35,_0x43ae25(0x19d)),'creator':_0x536605,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x44910f(_0x562b35,_0x43ae25(0x1bf)),'secondary':_0x44910f(_0x562b35,_0x43ae25(0x1b5))}}},'filteredView':this[_0x43ae25(0x188)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4277b3[_0x43ae25(0x175)](_0x43ae25(0x18a))['to'](this,_0x43ae25(0x18a),this,_0x43ae25(0x1bb),(_0x2aaf38,_0x3de861)=>_0x2aaf38&&!_0x3de861),this[_0x43ae25(0x178)](_0x4277b3,_0x43ae25(0x18b),(_0x26fa4c,_0x4bd6ea)=>{const _0x180e2c=_0x43ae25;this[_0x180e2c(0x198)]=_0x4bd6ea;const _0x3643d7=_0x428fb9(_0x4bd6ea);this[_0x180e2c(0x192)](_0x180e2c(0x17f),_0x3643d7),_0x4bd6ea[_0x180e2c(0x1ba)]()&&this[_0x180e2c(0x1a1)][_0x180e2c(0x1a6)]({'prompt':_0x3643d7},0x0);},{'priority':_0x43ae25(0x18d)}),_0x4277b3;}[_0x5aab2e(0x188)](){const _0x4c2acc=_0x5aab2e,_0x53a1a8=new _0x5536fb(this[_0x4c2acc(0x1a7)]);return _0x53a1a8[_0x4c2acc(0x1bc)][_0x4c2acc(0x1b2)][_0x4c2acc(0x1b8)](this[_0x4c2acc(0x1a1)])['as'](_0x4788d7),_0x53a1a8['on'](_0x4c2acc(0x1a5),()=>{const _0x9e8864=_0x4c2acc;this[_0x9e8864(0x1a1)][_0x9e8864(0x1ab)](),this[_0x9e8864(0x1c1)][_0x9e8864(0x190)](''),this[_0x9e8864(0x1c1)][_0x9e8864(0x196)]();}),_0x53a1a8;}[_0x5aab2e(0x1ae)](){const _0x4e2ed4=_0x5aab2e,_0x1fc220=new _0x5a2ed4(this[_0x4e2ed4(0x1a7)]);return _0x1fc220[_0x4e2ed4(0x17b)][_0x4e2ed4(0x175)](_0x4e2ed4(0x18a))['to'](this,_0x4e2ed4(0x18a),this,_0x4e2ed4(0x1bb),this,_0x4e2ed4(0x181),(_0x14e500,_0x557864,_0x84b232)=>_0x14e500&&!_0x557864&&!!_0x84b232),_0x1fc220[_0x4e2ed4(0x17b)][_0x4e2ed4(0x1ac)](_0x4e2ed4(0x1be))['to'](this,_0x4e2ed4(0x182)),_0x1fc220[_0x4e2ed4(0x1ad)][_0x4e2ed4(0x175)](_0x4e2ed4(0x18a))['to'](this,_0x4e2ed4(0x18a),this,_0x4e2ed4(0x1bb),this,_0x4e2ed4(0x181),(_0x5e1dba,_0x4d9d5b,_0x44876d)=>_0x5e1dba&&!_0x4d9d5b&&!!_0x44876d),_0x1fc220[_0x4e2ed4(0x1ad)][_0x4e2ed4(0x1ac)](_0x4e2ed4(0x1be))['to'](this,_0x4e2ed4(0x194)),_0x1fc220[_0x4e2ed4(0x1a3)][_0x4e2ed4(0x175)](_0x4e2ed4(0x18a))['to'](this,_0x4e2ed4(0x18a),this,_0x4e2ed4(0x1bb),(_0xc85ba3,_0x5d1dff)=>_0xc85ba3&&!_0x5d1dff),_0x1fc220[_0x4e2ed4(0x1a3)][_0x4e2ed4(0x1ac)](_0x4e2ed4(0x1be))['to'](this,_0x4e2ed4(0x1a4)),_0x1fc220[_0x4e2ed4(0x1bd)][_0x4e2ed4(0x175)](_0x4e2ed4(0x18a))['to'](this,_0x4e2ed4(0x1bb)),_0x1fc220[_0x4e2ed4(0x1bd)][_0x4e2ed4(0x1ac)](_0x4e2ed4(0x1be))['to'](this,_0x4e2ed4(0x1aa)),_0x1fc220;}[_0x5aab2e(0x180)](){const _0x11b20a=_0x5aab2e;this[_0x11b20a(0x181)]='',this[_0x11b20a(0x1a8)]=!0x1,this[_0x11b20a(0x1bb)]=!0x0,this[_0x11b20a(0x185)][_0x11b20a(0x1b1)]=!0x0,this[_0x11b20a(0x1b3)][_0x11b20a(0x1b1)]=!0x0,this[_0x11b20a(0x185)][_0x11b20a(0x196)]();}[_0x5aab2e(0x172)](){const _0x480fac=_0x5aab2e,_0x5c96fb=this[_0x480fac(0x1a7)];this[_0x480fac(0x1bb)]=!0x1,this[_0x480fac(0x198)]='',this[_0x480fac(0x1c1)][_0x480fac(0x1a0)](),this[_0x480fac(0x181)]&&(this[_0x480fac(0x1c1)][_0x480fac(0x1c4)][_0x480fac(0x1a9)]=_0x44910f(_0x5c96fb,_0x480fac(0x179)));}[_0x5aab2e(0x19e)](_0x27fd21){const _0x237e42=_0x5aab2e,_0x5414fe=this[_0x237e42(0x1a7)];this[_0x237e42(0x172)](),this[_0x237e42(0x1a8)]=!0x0,this[_0x237e42(0x1b4)][_0x237e42(0x1b0)]=_0x27fd21||_0x44910f(_0x5414fe,_0x237e42(0x199)),this[_0x237e42(0x181)]||(this[_0x237e42(0x185)][_0x237e42(0x1b1)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x38fc(){const _0x5af246=['81TfWnAl','add','12qvPUll','3847173ULJygy','fire','set','1158903MLaGVj','86630YIZVUh','prompt','locale','4PcJyFH','3031bsOJaQ','8791990iuGZoI','8724FuQdYs','5389135FywUTu','40ZvIcoy','execute','873820aJwSfB','children'];_0x38fc=function(){return _0x5af246;};return _0x38fc();}(function(_0x173afd,_0x1d4023){const _0x48c690=_0x4bea,_0x2f481=_0x173afd();while(!![]){try{const _0x3399ea=parseInt(_0x48c690(0xdf))/0x1+parseInt(_0x48c690(0xd5))/0x2*(parseInt(_0x48c690(0xe1))/0x3)+-parseInt(_0x48c690(0xd8))/0x4*(-parseInt(_0x48c690(0xdc))/0x5)+-parseInt(_0x48c690(0xdb))/0x6*(parseInt(_0x48c690(0xd9))/0x7)+-parseInt(_0x48c690(0xdd))/0x8*(parseInt(_0x48c690(0xd4))/0x9)+-parseInt(_0x48c690(0xda))/0xa+-parseInt(_0x48c690(0xd1))/0xb*(parseInt(_0x48c690(0xd0))/0xc);if(_0x3399ea===_0x1d4023)break;else _0x2f481['push'](_0x2f481['shift']());}catch(_0x47d202){_0x2f481['push'](_0x2f481['shift']());}}}(_0x38fc,0x97129));import{ListItemView as _0x3b6c7f,ButtonView as _0x11cb2e,ButtonLabelView as _0x2b4821}from'ckeditor5/src/ui.js';function _0x4bea(_0x4d3dc3,_0x3578fd){const _0x38fcb4=_0x38fc();return _0x4bea=function(_0x4bea73,_0x4c87c0){_0x4bea73=_0x4bea73-0xcf;let _0x310528=_0x38fcb4[_0x4bea73];return _0x310528;},_0x4bea(_0x4d3dc3,_0x3578fd);}import{unescape as _0x3b5363}from'es-toolkit/compat';export default class bt extends _0x3b6c7f{constructor(_0x3021cc){const _0x497a6d=_0x4bea;super();const _0x5568a2=new _0x2b4821(),_0x4cebc8=new _0x11cb2e(this[_0x497a6d(0xd7)],_0x5568a2);this[_0x497a6d(0xe0)][_0x497a6d(0xcf)](_0x4cebc8),_0x4cebc8[_0x497a6d(0xd3)]({'label':_0x3021cc[_0x497a6d(0xd6)],'withText':!0x0}),_0x4cebc8['on'](_0x497a6d(0xde),()=>{const _0x4397ba=_0x497a6d;this[_0x4397ba(0xd2)](_0x4397ba(0xde),{'value':_0x3b5363(_0x3021cc[_0x4397ba(0xd6)])});});}}
23
+ (function(_0x5719b8,_0x531a23){const _0x124feb=_0x541c,_0x2a77eb=_0x5719b8();while(!![]){try{const _0x2f9004=-parseInt(_0x124feb(0x152))/0x1+parseInt(_0x124feb(0x153))/0x2*(parseInt(_0x124feb(0x156))/0x3)+parseInt(_0x124feb(0x15b))/0x4+parseInt(_0x124feb(0x14d))/0x5+parseInt(_0x124feb(0x157))/0x6+parseInt(_0x124feb(0x154))/0x7*(-parseInt(_0x124feb(0x151))/0x8)+parseInt(_0x124feb(0x158))/0x9*(-parseInt(_0x124feb(0x14b))/0xa);if(_0x2f9004===_0x531a23)break;else _0x2a77eb['push'](_0x2a77eb['shift']());}catch(_0x5b0c79){_0x2a77eb['push'](_0x2a77eb['shift']());}}}(_0x3065,0x20b8a));import{ListItemView as _0x522a67,ButtonView as _0x3bb102,ButtonLabelView as _0x40d4ff}from'ckeditor5/src/ui.js';import{unescape as _0x5abe6d}from'es-toolkit/compat';function _0x541c(_0x5ecfd9,_0x2d8b16){const _0x306569=_0x3065();return _0x541c=function(_0x541c1e,_0x4b0609){_0x541c1e=_0x541c1e-0x14b;let _0x111dc0=_0x306569[_0x541c1e];return _0x111dc0;},_0x541c(_0x5ecfd9,_0x2d8b16);}export default class bt extends _0x522a67{constructor(_0x112f77){const _0x48df8d=_0x541c;super();const _0x518d97=new _0x40d4ff(),_0x122137=new _0x3bb102(this[_0x48df8d(0x159)],_0x518d97);this[_0x48df8d(0x14c)][_0x48df8d(0x15a)](_0x122137),_0x122137[_0x48df8d(0x14e)]({'label':_0x112f77[_0x48df8d(0x155)],'withText':!0x0}),_0x122137['on'](_0x48df8d(0x150),()=>{const _0x31feec=_0x48df8d;this[_0x31feec(0x14f)](_0x31feec(0x150),{'value':_0x5abe6d(_0x112f77[_0x31feec(0x155)])});});}}function _0x3065(){const _0x1a2d16=['16BwgfGy','4333xSjtle','prompt','41052FfEfEP','880320QlkXmJ','276678tkveAL','locale','add','324552ZKqiDv','10ykiRHz','children','296685SQVtQz','set','fire','execute','1864fUdhfv','87672CtHHJg'];_0x3065=function(){return _0x1a2d16;};return _0x3065();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4e71(){const _0x1f86f4=['items','add','_createClearHistoryButton','locale','fire','630429bWgaMW','clearHistoryButton','set','execute','delegate','4511336qNHbYN','length','filter','Clear','7FmKaOb','4838850KBoDJO','272VMhlUO','children','Prompt\x20history','clearHistory','historyGroupView','56907fYaRWC','3698322RsehLw','748950tYFvaK','170jPCGQk','label','15183ekonzH','11KFYWAd'];_0x4e71=function(){return _0x1f86f4;};return _0x4e71();}const _0x316d0f=_0x1ccb;function _0x1ccb(_0x264568,_0x3f792c){const _0x4e717c=_0x4e71();return _0x1ccb=function(_0x1ccbb3,_0x2538c9){_0x1ccbb3=_0x1ccbb3-0xf9;let _0x543449=_0x4e717c[_0x1ccbb3];return _0x543449;},_0x1ccb(_0x264568,_0x3f792c);}(function(_0x2c1406,_0x2206ec){const _0x4996a8=_0x1ccb,_0x54e624=_0x2c1406();while(!![]){try{const _0x32daa2=-parseInt(_0x4996a8(0x10c))/0x1*(-parseInt(_0x4996a8(0x10a))/0x2)+-parseInt(_0x4996a8(0x113))/0x3+parseInt(_0x4996a8(0xfc))/0x4+-parseInt(_0x4996a8(0x101))/0x5+-parseInt(_0x4996a8(0x108))/0x6*(parseInt(_0x4996a8(0x100))/0x7)+parseInt(_0x4996a8(0x102))/0x8*(parseInt(_0x4996a8(0x107))/0x9)+parseInt(_0x4996a8(0x109))/0xa*(-parseInt(_0x4996a8(0x10d))/0xb);if(_0x32daa2===_0x2206ec)break;else _0x54e624['push'](_0x54e624['shift']());}catch(_0x3a8682){_0x54e624['push'](_0x54e624['shift']());}}}(_0x4e71,0xba910));import{ListView as _0x4fb44c,ListItemGroupView as _0x5acfdf,ButtonView as _0xaf52bf}from'ckeditor5/src/ui.js';import{getTranslation as _0x9533f1}from'../../utils/common-translations.js';export default class ft extends _0x4fb44c{[_0x316d0f(0x106)];[_0x316d0f(0x114)];constructor(_0xde60f5){const _0x331f62=_0x316d0f;super(_0xde60f5),this[_0x331f62(0x114)]=this[_0x331f62(0x110)](),this[_0x331f62(0x106)]=new _0x5acfdf(),this[_0x331f62(0x106)][_0x331f62(0x103)][_0x331f62(0x10f)](this[_0x331f62(0x114)],0x1),this[_0x331f62(0x106)][_0x331f62(0x10b)]=_0x9533f1(_0xde60f5,_0x331f62(0x104)),this[_0x331f62(0x106)][_0x331f62(0x10e)][_0x331f62(0xfb)](_0x331f62(0xfa))['to'](this),this[_0x331f62(0x10e)][_0x331f62(0x10f)](this[_0x331f62(0x106)]);}[_0x316d0f(0xfe)](){const _0x44a463=_0x316d0f;let _0x2b17f7=0x0;for(const _0x5b70a4 of this[_0x44a463(0x10e)])_0x2b17f7+=_0x5b70a4[_0x44a463(0x10e)][_0x44a463(0xfd)];return{'resultsCount':_0x2b17f7,'totalItemsCount':_0x2b17f7};}[_0x316d0f(0x110)](){const _0x353702=_0x316d0f,_0x4c0d96=this[_0x353702(0x111)],_0x32e260=new _0xaf52bf(this[_0x353702(0x111)]);return _0x32e260[_0x353702(0xf9)]({'label':'('+_0x9533f1(_0x4c0d96,_0x353702(0xff))+')','withText':!0x0}),_0x32e260['on'](_0x353702(0xfa),()=>this[_0x353702(0x112)](_0x353702(0x105))),_0x32e260;}}
23
+ function _0x3468(){const _0x1aaffe=['5130DWSncG','execute','250144RlprLK','_createClearHistoryButton','delegate','children','4311ZXPwJv','add','items','1036272IJeGSq','Clear','label','clearHistory','2424540DkbYWD','locale','5RPtjZI','fire','8077080tDTsfP','length','filter','clearHistoryButton','set','4fxeaJw','546601zQcqUQ','Prompt\x20history','historyGroupView','140gIKaTF','1406490GEMSNW'];_0x3468=function(){return _0x1aaffe;};return _0x3468();}const _0x1d3951=_0x4bea;(function(_0x449c06,_0x4f211c){const _0x1690a4=_0x4bea,_0x22e9dd=_0x449c06();while(!![]){try{const _0x8417b=parseInt(_0x1690a4(0x199))/0x1+parseInt(_0x1690a4(0x18b))/0x2+parseInt(_0x1690a4(0x19d))/0x3*(-parseInt(_0x1690a4(0x198))/0x4)+-parseInt(_0x1690a4(0x191))/0x5*(parseInt(_0x1690a4(0x18f))/0x6)+parseInt(_0x1690a4(0x19c))/0x7*(parseInt(_0x1690a4(0x1a0))/0x8)+parseInt(_0x1690a4(0x1a4))/0x9*(parseInt(_0x1690a4(0x19e))/0xa)+-parseInt(_0x1690a4(0x193))/0xb;if(_0x8417b===_0x4f211c)break;else _0x22e9dd['push'](_0x22e9dd['shift']());}catch(_0x2e0e06){_0x22e9dd['push'](_0x22e9dd['shift']());}}}(_0x3468,0x503b0));import{ListView as _0x25e68e,ListItemGroupView as _0x3d33ca,ButtonView as _0x4d39c4}from'ckeditor5/src/ui.js';function _0x4bea(_0x5127ab,_0x152e61){const _0x34689d=_0x3468();return _0x4bea=function(_0x4beab4,_0x248d37){_0x4beab4=_0x4beab4-0x18a;let _0x475ef2=_0x34689d[_0x4beab4];return _0x475ef2;},_0x4bea(_0x5127ab,_0x152e61);}import{getTranslation as _0x42f205}from'../../utils/common-translations.js';export default class ft extends _0x25e68e{[_0x1d3951(0x19b)];[_0x1d3951(0x196)];constructor(_0x2fe20a){const _0x1df148=_0x1d3951;super(_0x2fe20a),this[_0x1df148(0x196)]=this[_0x1df148(0x1a1)](),this[_0x1df148(0x19b)]=new _0x3d33ca(),this[_0x1df148(0x19b)][_0x1df148(0x1a3)][_0x1df148(0x1a5)](this[_0x1df148(0x196)],0x1),this[_0x1df148(0x19b)][_0x1df148(0x18d)]=_0x42f205(_0x2fe20a,_0x1df148(0x19a)),this[_0x1df148(0x19b)][_0x1df148(0x18a)][_0x1df148(0x1a2)](_0x1df148(0x19f))['to'](this),this[_0x1df148(0x18a)][_0x1df148(0x1a5)](this[_0x1df148(0x19b)]);}[_0x1d3951(0x195)](){const _0x30c082=_0x1d3951;let _0x5d02d6=0x0;for(const _0x3c4721 of this[_0x30c082(0x18a)])_0x5d02d6+=_0x3c4721[_0x30c082(0x18a)][_0x30c082(0x194)];return{'resultsCount':_0x5d02d6,'totalItemsCount':_0x5d02d6};}[_0x1d3951(0x1a1)](){const _0x59cc59=_0x1d3951,_0x30d573=this[_0x59cc59(0x190)],_0x1e0fe6=new _0x4d39c4(this[_0x59cc59(0x190)]);return _0x1e0fe6[_0x59cc59(0x197)]({'label':'('+_0x42f205(_0x30d573,_0x59cc59(0x18c))+')','withText':!0x0}),_0x1e0fe6['on'](_0x59cc59(0x19f),()=>this[_0x59cc59(0x192)](_0x59cc59(0x18e))),_0x1e0fe6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x502345=_0x2f3e;(function(_0x5a04e4,_0x2ebd2e){const _0x4256c3=_0x2f3e,_0x297458=_0x5a04e4();while(!![]){try{const _0x49950e=-parseInt(_0x4256c3(0x10f))/0x1*(-parseInt(_0x4256c3(0x118))/0x2)+parseInt(_0x4256c3(0x10e))/0x3+-parseInt(_0x4256c3(0x114))/0x4+parseInt(_0x4256c3(0x113))/0x5+-parseInt(_0x4256c3(0x109))/0x6+parseInt(_0x4256c3(0x108))/0x7+parseInt(_0x4256c3(0x115))/0x8*(parseInt(_0x4256c3(0x10b))/0x9);if(_0x49950e===_0x2ebd2e)break;else _0x297458['push'](_0x297458['shift']());}catch(_0x46c1c2){_0x297458['push'](_0x297458['shift']());}}}(_0x26af,0xd0dc3));function _0x2f3e(_0x1cd7e1,_0x5eeef5){const _0x26afea=_0x26af();return _0x2f3e=function(_0x2f3eb7,_0x523d96){_0x2f3eb7=_0x2f3eb7-0x103;let _0x3efa24=_0x26afea[_0x2f3eb7];return _0x3efa24;},_0x2f3e(_0x1cd7e1,_0x5eeef5);}function _0x26af(){const _0x55aedb=['stringify','4MhygvQ','map','getItem','_saveToSessionStorage','add','remove','CKEditor/AIFormView/PromptHistory','parse','length','9403058xvpnwS','8134350TEYSli','trim','138861eNHoms','toLowerCase','last','404547DhLhwA','219433rxWvPb','_loadFromSessionStorage','setItem','addMany','2868835kJulaD','5685224rZjBlg','592uxstpI','prompt'];_0x26af=function(){return _0x55aedb;};return _0x26af();}import{Collection as _0x1a01ed}from'ckeditor5/src/utils.js';const ts=_0x502345(0x105);export default class wt extends _0x1a01ed{constructor(){const _0x4bb049=_0x502345;super(),this[_0x4bb049(0x110)](),this['on'](_0x4bb049(0x103),(_0x348aea,_0x3ebaa8)=>{const _0x4da9d3=_0x4bb049,_0x2f4663=os(_0x3ebaa8[_0x4da9d3(0x116)]);for(const _0x4aae58 of this)if(_0x4aae58!=_0x3ebaa8&&os(_0x4aae58[_0x4da9d3(0x116)])===_0x2f4663){this[_0x4da9d3(0x104)](_0x4aae58);break;}this[_0x4da9d3(0x107)]>0x14&&this[_0x4da9d3(0x104)](this[_0x4da9d3(0x10d)]),this[_0x4da9d3(0x11b)]();}),this['on'](_0x4bb049(0x104),()=>{const _0x3f50eb=_0x4bb049;this[_0x3f50eb(0x11b)]();});}[_0x502345(0x110)](){const _0x33efde=_0x502345,_0x458cb0=sessionStorage[_0x33efde(0x11a)](ts)||'[]';this[_0x33efde(0x112)](JSON[_0x33efde(0x106)](_0x458cb0));}[_0x502345(0x11b)](){const _0x256ef5=_0x502345;sessionStorage[_0x256ef5(0x111)](ts,JSON[_0x256ef5(0x117)](this[_0x256ef5(0x119)](_0x794a15=>_0x794a15)));}}function os(_0xc813af){const _0x33c879=_0x502345;return _0xc813af[_0x33c879(0x10c)]()[_0x33c879(0x10a)]();}
23
+ const _0x5aa481=_0x5924;function _0x2217(){const _0xb4056e=['toLowerCase','stringify','getItem','last','_loadFromSessionStorage','130152aJQdFn','_saveToSessionStorage','657028ghubQs','addMany','8ZBRddd','2651789QBsfnq','13647816CrOomM','1822360fewMKg','map','3maGDSW','trim','972260fCtUVw','remove','length','prompt','CKEditor/AIFormView/PromptHistory','parse','add','277698vinQRU','setItem'];_0x2217=function(){return _0xb4056e;};return _0x2217();}(function(_0x48d877,_0x18f19e){const _0x3cce47=_0x5924,_0x432c03=_0x48d877();while(!![]){try{const _0x41e284=parseInt(_0x3cce47(0x11e))/0x1+-parseInt(_0x3cce47(0x120))/0x2+parseInt(_0x3cce47(0x127))/0x3*(-parseInt(_0x3cce47(0x129))/0x4)+-parseInt(_0x3cce47(0x125))/0x5+-parseInt(_0x3cce47(0x117))/0x6+-parseInt(_0x3cce47(0x123))/0x7*(parseInt(_0x3cce47(0x122))/0x8)+parseInt(_0x3cce47(0x124))/0x9;if(_0x41e284===_0x18f19e)break;else _0x432c03['push'](_0x432c03['shift']());}catch(_0x542845){_0x432c03['push'](_0x432c03['shift']());}}}(_0x2217,0x45ae7));import{Collection as _0x4d2a8a}from'ckeditor5/src/utils.js';const ts=_0x5aa481(0x114);function _0x5924(_0x42f9e1,_0x1dd947){const _0x2217fe=_0x2217();return _0x5924=function(_0x5924cb,_0x15d963){_0x5924cb=_0x5924cb-0x112;let _0x14d743=_0x2217fe[_0x5924cb];return _0x14d743;},_0x5924(_0x42f9e1,_0x1dd947);}export default class wt extends _0x4d2a8a{constructor(){const _0x19e904=_0x5aa481;super(),this[_0x19e904(0x11d)](),this['on'](_0x19e904(0x116),(_0x53ef4b,_0x41191d)=>{const _0x3aa6e9=_0x19e904,_0x2557b6=os(_0x41191d[_0x3aa6e9(0x113)]);for(const _0x8756fa of this)if(_0x8756fa!=_0x41191d&&os(_0x8756fa[_0x3aa6e9(0x113)])===_0x2557b6){this[_0x3aa6e9(0x12a)](_0x8756fa);break;}this[_0x3aa6e9(0x112)]>0x14&&this[_0x3aa6e9(0x12a)](this[_0x3aa6e9(0x11c)]),this[_0x3aa6e9(0x11f)]();}),this['on'](_0x19e904(0x12a),()=>{const _0x561b72=_0x19e904;this[_0x561b72(0x11f)]();});}[_0x5aa481(0x11d)](){const _0x41ddff=_0x5aa481,_0x2c91e8=sessionStorage[_0x41ddff(0x11b)](ts)||'[]';this[_0x41ddff(0x121)](JSON[_0x41ddff(0x115)](_0x2c91e8));}[_0x5aa481(0x11f)](){const _0x281fd6=_0x5aa481;sessionStorage[_0x281fd6(0x118)](ts,JSON[_0x281fd6(0x11a)](this[_0x281fd6(0x126)](_0x3e5a13=>_0x3e5a13)));}}function os(_0x41e323){const _0x1ac63b=_0x5aa481;return _0x41e323[_0x1ac63b(0x119)]()[_0x1ac63b(0x128)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4810(_0x1a25b3,_0x22d932){const _0x44cfb8=_0x44cf();return _0x4810=function(_0x4810bf,_0x4c0df1){_0x4810bf=_0x4810bf-0x128;let _0x19cd22=_0x44cfb8[_0x4810bf];return _0x19cd22;},_0x4810(_0x1a25b3,_0x22d932);}const _0x46e5a8=_0x4810;function _0x44cf(){const _0x2a6188=['name','getFirstRange','get','getItems','isCollapsed','length','values','114394NnHiWs','refresh','isEmpty','change:isEnabled','getRanges','8780430BbTtep','ai.aiAssistant.disabledElements','custom','add','execute','plugins','_commandDefinitions','3830805sPNkqg','7038531IxDjXl','element','getSelectedBlocks','enabledCommandsIds','3007865IAqNpv','showUI','215ZatMej','document','includes','90764uRXUWF','3006712QiEkNL','model','isEnabled','hasContent','_hasContext','config','set','from','10trmQPK','change:_hasContext','selection','1fJenyZ','requiresContent','editor'];_0x44cf=function(){return _0x2a6188;};return _0x44cf();}(function(_0x40a54f,_0x18c03f){const _0x5ba65c=_0x4810,_0x492a71=_0x40a54f();while(!![]){try{const _0x1ff39e=-parseInt(_0x5ba65c(0x13e))/0x1*(-parseInt(_0x5ba65c(0x148))/0x2)+parseInt(_0x5ba65c(0x128))/0x3+-parseInt(_0x5ba65c(0x132))/0x4*(-parseInt(_0x5ba65c(0x12f))/0x5)+-parseInt(_0x5ba65c(0x14d))/0x6+-parseInt(_0x5ba65c(0x12d))/0x7+-parseInt(_0x5ba65c(0x133))/0x8+parseInt(_0x5ba65c(0x129))/0x9*(parseInt(_0x5ba65c(0x13b))/0xa);if(_0x1ff39e===_0x18c03f)break;else _0x492a71['push'](_0x492a71['shift']());}catch(_0x38bd01){_0x492a71['push'](_0x492a71['shift']());}}}(_0x44cf,0xc8eb5));import{Command as _0x4a0e15}from'ckeditor5/src/core.js';import _0x578a3d from'../aiassistantui.js';export default class j extends _0x4a0e15{[_0x46e5a8(0x153)];constructor(_0xb4e623,_0x45ea50){const _0x18add5=_0x46e5a8;super(_0xb4e623),this[_0x18add5(0x153)]=_0x45ea50,this[_0x18add5(0x139)](_0x18add5(0x12c),[]),this['on'](_0x18add5(0x13c),(_0x5d7bb4,_0x1cd352,_0x32215c)=>{const _0x208a95=_0x18add5;this[_0x208a95(0x135)]&&(this[_0x208a95(0x12c)]=G(this[_0x208a95(0x153)],_0x32215c));}),this[_0x18add5(0x139)](_0x18add5(0x137),!0x1),this['on'](_0x18add5(0x14b),(_0x15ba0a,_0xbeb837,_0x36c161)=>{const _0x44ad7a=_0x18add5;this[_0x44ad7a(0x12c)]=_0x36c161?G(this[_0x44ad7a(0x153)],this[_0x44ad7a(0x137)]):[];});}[_0x46e5a8(0x149)](){const _0xd20d62=_0x46e5a8,_0x55cf34=this[_0xd20d62(0x140)][_0xd20d62(0x134)];this[_0xd20d62(0x137)]=function(_0xfdd759){const _0x270331=_0xd20d62,_0x26b8bb=_0xfdd759[_0x270331(0x130)][_0x270331(0x13d)];return _0x26b8bb[_0x270331(0x145)]?0x0!==[..._0x26b8bb[_0x270331(0x12b)]()][_0x270331(0x146)]&&![..._0x26b8bb[_0x270331(0x12b)]()][0x0][_0x270331(0x14a)]:!!_0xfdd759[_0x270331(0x136)](_0x26b8bb[_0x270331(0x142)]());}(_0x55cf34);const _0x41fa28=_0x55cf34[_0xd20d62(0x130)][_0xd20d62(0x13d)],_0xe7e6bf=this[_0xd20d62(0x140)][_0xd20d62(0x138)][_0xd20d62(0x143)](_0xd20d62(0x14e));for(const _0x700dd8 of _0x41fa28[_0xd20d62(0x14c)]())for(const _0x57d280 of _0x700dd8[_0xd20d62(0x144)]())if(_0x57d280['is'](_0xd20d62(0x12a))&&_0xe7e6bf[_0xd20d62(0x131)](_0x57d280[_0xd20d62(0x141)]))return void(this[_0xd20d62(0x135)]=!0x1);this[_0xd20d62(0x135)]=!0x0;}[_0x46e5a8(0x151)](_0xc107c5='',_0x3cd840='',_0xd03af5=_0x46e5a8(0x14f)){const _0x2bf8f2=_0x46e5a8;this[_0x2bf8f2(0x140)][_0x2bf8f2(0x152)][_0x2bf8f2(0x143)](_0x578a3d)[_0x2bf8f2(0x12e)](_0xc107c5,_0x3cd840,_0xd03af5);}}function G(_0x1f6a51,_0x355787){const _0x2cda44=_0x46e5a8,_0x1cd3b4=new Set();for(const _0x397c98 of _0x1f6a51[_0x2cda44(0x147)]())(_0x355787||!0x1===_0x397c98[_0x2cda44(0x13f)])&&_0x1cd3b4[_0x2cda44(0x150)](_0x397c98['id']);return Array[_0x2cda44(0x13a)](_0x1cd3b4);}
23
+ const _0x3f7a08=_0x3874;(function(_0x578043,_0x42012c){const _0x158071=_0x3874,_0x337912=_0x578043();while(!![]){try{const _0x4d3cf5=parseInt(_0x158071(0xb1))/0x1+-parseInt(_0x158071(0xb8))/0x2*(-parseInt(_0x158071(0xac))/0x3)+-parseInt(_0x158071(0xae))/0x4*(parseInt(_0x158071(0xc1))/0x5)+parseInt(_0x158071(0xbd))/0x6+-parseInt(_0x158071(0xa7))/0x7*(-parseInt(_0x158071(0xb2))/0x8)+-parseInt(_0x158071(0xbf))/0x9+parseInt(_0x158071(0xb7))/0xa*(parseInt(_0x158071(0x99))/0xb);if(_0x4d3cf5===_0x42012c)break;else _0x337912['push'](_0x337912['shift']());}catch(_0x36bee1){_0x337912['push'](_0x337912['shift']());}}}(_0x139d,0x79793));import{Command as _0x5885ab}from'ckeditor5/src/core.js';import _0x45f3fa from'../aiassistantui.js';export default class j extends _0x5885ab{[_0x3f7a08(0xa4)];constructor(_0x5b358d,_0x534fb7){const _0x5bf817=_0x3f7a08;super(_0x5b358d),this[_0x5bf817(0xa4)]=_0x534fb7,this[_0x5bf817(0xb3)](_0x5bf817(0xb4),[]),this['on'](_0x5bf817(0xa0),(_0x54c46b,_0x2343a8,_0x23ae9f)=>{const _0xab0a2a=_0x5bf817;this[_0xab0a2a(0x9b)]&&(this[_0xab0a2a(0xb4)]=G(this[_0xab0a2a(0xa4)],_0x23ae9f));}),this[_0x5bf817(0xb3)](_0x5bf817(0x9a),!0x1),this['on'](_0x5bf817(0x9f),(_0x3083f3,_0x1feb2b,_0x1c1bf4)=>{const _0x528426=_0x5bf817;this[_0x528426(0xb4)]=_0x1c1bf4?G(this[_0x528426(0xa4)],this[_0x528426(0x9a)]):[];});}[_0x3f7a08(0xa1)](){const _0x452c73=_0x3f7a08,_0x15fb30=this[_0x452c73(0xaf)][_0x452c73(0xa5)];this[_0x452c73(0x9a)]=function(_0x2cf2f4){const _0x87b51e=_0x452c73,_0x1ec463=_0x2cf2f4[_0x87b51e(0xc2)][_0x87b51e(0xa6)];return _0x1ec463[_0x87b51e(0xbe)]?0x0!==[..._0x1ec463[_0x87b51e(0xb0)]()][_0x87b51e(0xc0)]&&![..._0x1ec463[_0x87b51e(0xb0)]()][0x0][_0x87b51e(0xb9)]:!!_0x2cf2f4[_0x87b51e(0xb6)](_0x1ec463[_0x87b51e(0xc5)]());}(_0x15fb30);const _0x132e7a=_0x15fb30[_0x452c73(0xc2)][_0x452c73(0xa6)],_0x130283=this[_0x452c73(0xaf)][_0x452c73(0xad)][_0x452c73(0x9c)](_0x452c73(0x9d));for(const _0x2e7621 of _0x132e7a[_0x452c73(0xaa)]())for(const _0x32c4bf of _0x2e7621[_0x452c73(0xc3)]())if(_0x32c4bf['is'](_0x452c73(0xba))&&_0x130283[_0x452c73(0xa8)](_0x32c4bf[_0x452c73(0xbc)]))return void(this[_0x452c73(0x9b)]=!0x1);this[_0x452c73(0x9b)]=!0x0;}[_0x3f7a08(0xa9)](_0x16f5f2='',_0x1d5853='',_0x2239c5=_0x3f7a08(0xa3)){const _0x1820ac=_0x3f7a08;this[_0x1820ac(0xaf)][_0x1820ac(0xab)][_0x1820ac(0x9c)](_0x45f3fa)[_0x1820ac(0x9e)](_0x16f5f2,_0x1d5853,_0x2239c5);}}function _0x139d(){const _0x25f4b7=['_commandDefinitions','model','selection','164360cNDCzg','includes','execute','getRanges','plugins','1317lxiHnm','config','2965124OVajwu','editor','getSelectedBlocks','330245gdRGXn','264Undomt','set','enabledCommandsIds','values','hasContent','10LeDABa','226OsmcXb','isEmpty','element','add','name','5865510LVdHyG','isCollapsed','8718264BXgFPq','length','5qDZsZs','document','getItems','requiresContent','getFirstRange','827805BqyFXA','_hasContext','isEnabled','get','ai.aiAssistant.disabledElements','showUI','change:isEnabled','change:_hasContext','refresh','from','custom'];_0x139d=function(){return _0x25f4b7;};return _0x139d();}function _0x3874(_0x1107f3,_0x16decd){const _0x139db1=_0x139d();return _0x3874=function(_0x38746f,_0x36f375){_0x38746f=_0x38746f-0x99;let _0x3ceee8=_0x139db1[_0x38746f];return _0x3ceee8;},_0x3874(_0x1107f3,_0x16decd);}function G(_0x21c958,_0xdad5e0){const _0x1ee3f5=_0x3f7a08,_0x25ac02=new Set();for(const _0xfb028 of _0x21c958[_0x1ee3f5(0xb5)]())(_0xdad5e0||!0x1===_0xfb028[_0x1ee3f5(0xc4)])&&_0x25ac02[_0x1ee3f5(0xbb)](_0xfb028['id']);return Array[_0x1ee3f5(0xa2)](_0x25ac02);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3d0f9f,_0x2327fb,_0x2b574f){const t=_0x3d0f9f['t'];switch(_0x2327fb){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',_0x2b574f);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2b574f);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'},_0x2b574f);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 _0x2327fb;}}
23
+ export function getTranslation(_0x480eca,_0x5e20ec,_0x12402a){const t=_0x480eca['t'];switch(_0x5e20ec){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',_0x12402a);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x12402a);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'},_0x12402a);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 _0x5e20ec;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x1cd2c2,_0x53217b){const _0x52d550=(0x0,_0x53217b['t'])('Other');return _0x1cd2c2['length']?'groupId'in _0x1cd2c2[0x0]?_0x1cd2c2:[{'groupId':'_ungrouppedCommands','groupLabel':_0x52d550,'order':0x1/0x0,'commands':_0x1cd2c2}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x52d550,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0xe8973a,_0x2e891e){const _0x18b5f6=(0x0,_0x2e891e['t'])('Other');return _0xe8973a['length']?'groupId'in _0xe8973a[0x0]?_0xe8973a:[{'groupId':'_ungrouppedCommands','groupLabel':_0x18b5f6,'order':0x1/0x0,'commands':_0xe8973a}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x18b5f6,'order':0x1/0x0,'commands':[]}];}