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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x436002=_0x10b8;(function(_0x87c88a,_0x10fbd1){const _0x48b2f8=_0x10b8,_0x16e4ac=_0x87c88a();while(!![]){try{const _0x1e86d1=parseInt(_0x48b2f8(0x1f1))/0x1+-parseInt(_0x48b2f8(0x1e7))/0x2+-parseInt(_0x48b2f8(0x1e1))/0x3+parseInt(_0x48b2f8(0x1ee))/0x4*(-parseInt(_0x48b2f8(0x1e5))/0x5)+parseInt(_0x48b2f8(0x1ea))/0x6*(-parseInt(_0x48b2f8(0x1ed))/0x7)+-parseInt(_0x48b2f8(0x1fb))/0x8*(-parseInt(_0x48b2f8(0x201))/0x9)+parseInt(_0x48b2f8(0x1f0))/0xa;if(_0x1e86d1===_0x10fbd1)break;else _0x16e4ac['push'](_0x16e4ac['shift']());}catch(_0x2769b0){_0x16e4ac['push'](_0x16e4ac['shift']());}}}(_0x3401,0x7ffc1));import{ToolbarView as _0x5876c2,ButtonView as _0x516659}from'ckeditor5/src/ui.js';import{getTranslation as _0x20ae06}from'../../utils/common-translations.js';function _0x10b8(_0x5a0993,_0xa94856){const _0x3401c6=_0x3401();return _0x10b8=function(_0x10b81b,_0x3ddb32){_0x10b81b=_0x10b81b-0x1e1;let _0x46a263=_0x3401c6[_0x10b81b];return _0x46a263;},_0x10b8(_0x5a0993,_0xa94856);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x436002(0x1e3),'INSERT':_0x436002(0x1e8)};export class AIFormToolbarView extends _0x5876c2{constructor(_0x13fb8d){const _0x5087c3=_0x436002;super(_0x13fb8d),this[_0x5087c3(0x1e4)](_0x5087c3(0x1ec),!0x1),this[_0x5087c3(0x1e4)](_0x5087c3(0x1f9),AIFormToolbarViewMainActionLabel[_0x5087c3(0x1fd)]),this[_0x5087c3(0x200)]=this[_0x5087c3(0x1ff)]('',_0x5087c3(0x1f6)),this[_0x5087c3(0x200)][_0x5087c3(0x1ef)](_0x5087c3(0x1f7))['to'](this,_0x5087c3(0x1f9),_0x3a579c=>_0x20ae06(_0x13fb8d,_0x5087c3(0x1e9)+_0x3a579c[_0x5087c3(0x1f5)]()+_0x5087c3(0x1e2))),this[_0x5087c3(0x1eb)]=this[_0x5087c3(0x1ff)](_0x20ae06(_0x13fb8d,_0x5087c3(0x1fe))),this[_0x5087c3(0x204)]=this[_0x5087c3(0x1ff)](_0x20ae06(_0x13fb8d,_0x5087c3(0x1f3))),this[_0x5087c3(0x1fa)]=this[_0x5087c3(0x1ff)](_0x20ae06(_0x13fb8d,_0x5087c3(0x205)));const _0x5ee909=this[_0x5087c3(0x1e6)];this[_0x5087c3(0x203)]({'attributes':{'class':[_0x5087c3(0x1fc),_0x5ee909['if'](_0x5087c3(0x1ec),_0x5087c3(0x202),_0x5c625d=>!_0x5c625d)]}}),this[_0x5087c3(0x1f8)][_0x5087c3(0x1f2)]([this[_0x5087c3(0x200)],this[_0x5087c3(0x1eb)],this[_0x5087c3(0x204)],this[_0x5087c3(0x1fa)]]);}[_0x436002(0x1ff)](_0x50094b,_0x4ffd0b){const _0x24f211=_0x436002,_0x4297c6=new _0x516659(this[_0x24f211(0x1f4)]);return _0x4297c6[_0x24f211(0x1e4)]({'label':_0x50094b,'class':_0x4ffd0b||'','isVisible':!0x0,'withText':!0x0}),_0x4297c6;}}function _0x3401(){const _0x49f033=['locale','toUpperCase','ck-button-action','label','items','mainAction','stopButton','152fbMuLR','ck-ai-form__toolbar','REPLACE','Insert\x20below','_createButton','replaceButton','213615qvOMHu','ck-hidden','extendTemplate','tryAgainButton','Stop','2553885pYfCyR','_CONTENT','replace','set','5PQuzaV','bindTemplate','14026nMYUZA','insert','AI_','50424EVnqHe','insertButton','isVisible','602ilGjRa','3963812qFoGyE','bind','23947130hIsbwS','250552zXQPJA','addMany','Try\x20again'];_0x3401=function(){return _0x49f033;};return _0x3401();}
23
+ const _0x45a123=_0x4f62;(function(_0x238c1d,_0x54f766){const _0x368465=_0x4f62,_0x17e940=_0x238c1d();while(!![]){try{const _0x438585=parseInt(_0x368465(0x1b0))/0x1+-parseInt(_0x368465(0x1b9))/0x2+parseInt(_0x368465(0x1a3))/0x3*(-parseInt(_0x368465(0x1af))/0x4)+parseInt(_0x368465(0x1c1))/0x5+-parseInt(_0x368465(0x1b8))/0x6+parseInt(_0x368465(0x1ae))/0x7*(-parseInt(_0x368465(0x1a6))/0x8)+parseInt(_0x368465(0x1a8))/0x9*(parseInt(_0x368465(0x1be))/0xa);if(_0x438585===_0x54f766)break;else _0x17e940['push'](_0x17e940['shift']());}catch(_0x5c8e46){_0x17e940['push'](_0x17e940['shift']());}}}(_0x3285,0xba4b5));import{ToolbarView as _0x4824bc,ButtonView as _0x178166}from'ckeditor5/src/ui.js';function _0x4f62(_0x4df19d,_0x3abb68){const _0x32858e=_0x3285();return _0x4f62=function(_0x4f6236,_0x489585){_0x4f6236=_0x4f6236-0x19d;let _0x5218bf=_0x32858e[_0x4f6236];return _0x5218bf;},_0x4f62(_0x4df19d,_0x3abb68);}function _0x3285(){const _0x21b767=['8nOLAoh','bindTemplate','783adKahl','tryAgainButton','isVisible','ck-hidden','set','mainAction','6742162OZvZrZ','547360PZwpAS','941823HADEEQ','insert','ck-ai-form__toolbar','_CONTENT','Insert\x20below','_createButton','addMany','stopButton','5896014iqtWFo','2618744prIocD','locale','ck-button-action','items','bind','344130fMiURt','insertButton','Stop','1096770Coyfdn','replaceButton','REPLACE','Try\x20again','replace','toUpperCase','AI_','3iDiyOC','label','extendTemplate'];_0x3285=function(){return _0x21b767;};return _0x3285();}import{getTranslation as _0xe80289}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x45a123(0x1a0),'INSERT':_0x45a123(0x1b1)};export class AIFormToolbarView extends _0x4824bc{constructor(_0x3eae19){const _0x4acccc=_0x45a123;super(_0x3eae19),this[_0x4acccc(0x1ac)](_0x4acccc(0x1aa),!0x1),this[_0x4acccc(0x1ac)](_0x4acccc(0x1ad),AIFormToolbarViewMainActionLabel[_0x4acccc(0x19e)]),this[_0x4acccc(0x19d)]=this[_0x4acccc(0x1b5)]('',_0x4acccc(0x1bb)),this[_0x4acccc(0x19d)][_0x4acccc(0x1bd)](_0x4acccc(0x1a4))['to'](this,_0x4acccc(0x1ad),_0xd6ad65=>_0xe80289(_0x3eae19,_0x4acccc(0x1a2)+_0xd6ad65[_0x4acccc(0x1a1)]()+_0x4acccc(0x1b3))),this[_0x4acccc(0x1bf)]=this[_0x4acccc(0x1b5)](_0xe80289(_0x3eae19,_0x4acccc(0x1b4))),this[_0x4acccc(0x1a9)]=this[_0x4acccc(0x1b5)](_0xe80289(_0x3eae19,_0x4acccc(0x19f))),this[_0x4acccc(0x1b7)]=this[_0x4acccc(0x1b5)](_0xe80289(_0x3eae19,_0x4acccc(0x1c0)));const _0x23dc8e=this[_0x4acccc(0x1a7)];this[_0x4acccc(0x1a5)]({'attributes':{'class':[_0x4acccc(0x1b2),_0x23dc8e['if'](_0x4acccc(0x1aa),_0x4acccc(0x1ab),_0x3e85f6=>!_0x3e85f6)]}}),this[_0x4acccc(0x1bc)][_0x4acccc(0x1b6)]([this[_0x4acccc(0x19d)],this[_0x4acccc(0x1bf)],this[_0x4acccc(0x1a9)],this[_0x4acccc(0x1b7)]]);}[_0x45a123(0x1b5)](_0x5f484f,_0x20dff4){const _0x1e857d=_0x45a123,_0x4e893d=new _0x178166(this[_0x1e857d(0x1ba)]);return _0x4e893d[_0x1e857d(0x1ac)]({'label':_0x5f484f,'class':_0x20dff4||'','isVisible':!0x0,'withText':!0x0}),_0x4e893d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1c25(_0x24c5fe,_0x25f887){const _0x158b00=_0x158b();return _0x1c25=function(_0x1c25d,_0x212e93){_0x1c25d=_0x1c25d-0x1e5;let _0x3dd2d4=_0x158b00[_0x1c25d];return _0x3dd2d4;},_0x1c25(_0x24c5fe,_0x25f887);}const _0x54fea4=_0x1c25;(function(_0x1520cf,_0x40ef13){const _0x1b451c=_0x1c25,_0x118ebf=_0x1520cf();while(!![]){try{const _0x49f8b7=parseInt(_0x1b451c(0x1ef))/0x1+parseInt(_0x1b451c(0x1ed))/0x2*(parseInt(_0x1b451c(0x216))/0x3)+parseInt(_0x1b451c(0x229))/0x4+parseInt(_0x1b451c(0x1eb))/0x5+parseInt(_0x1b451c(0x1f9))/0x6+-parseInt(_0x1b451c(0x1f8))/0x7*(-parseInt(_0x1b451c(0x1fc))/0x8)+-parseInt(_0x1b451c(0x232))/0x9;if(_0x49f8b7===_0x40ef13)break;else _0x118ebf['push'](_0x118ebf['shift']());}catch(_0x46bbcf){_0x118ebf['push'](_0x118ebf['shift']());}}}(_0x158b,0xc976a));import{FocusTracker as _0x20f4a7,KeystrokeHandler as _0x52c60d}from'ckeditor5/src/utils.js';import{View as _0xec07d6,FocusCycler as _0x140814,createLabeledTextarea as _0x1cd2ee}from'ckeditor5/src/ui.js';function _0x158b(){const _0x4a7387=['tab','focusLast','replaceContent','7wFHtuB','792732RbDfzu','render','execute','8208200LSCmlr','errorView','_promptHistory','focusFirst','element','submitPrompt','isError','set','chain','trim','copyButtonView','stopProcessing','submit','listenTo','focusTracker','shift\x20+\x20tab','_createHistoryView','ck-ai-form-content','ck-ai-form','prompt','ck-hidden','reset','Ask\x20AI\x20to\x20edit\x20or\x20generate','setTemplate','high','insertContentBelow','126hziQpS','_createPromptView','keystrokes','fire','div','isVisible','promptView','historyGroupView','items','insertButton','isEnabled','handleError','fieldView','bind','_createToolbar','text','_focusables','mainAction','label','1682256fIhdoj','AI_ERROR_FAILED','queryView','contentArea','add','createCollection','tryAgainEvent','clearHistory','focusCycler','23947578pLXmlq','Ask\x20AI\x20to\x20improve\x20generated\x20text','startProcessing','toolbar','Empty\x20history','bindTo','replaceButton','isProcessing','tryAgainButton','locale','finishProcessing','clear','value','8217705URRikH','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','6098rwNiRA','search','135726kVgaxK','delegate','stopButton','REPLACE','focus','bindTemplate'];_0x158b=function(){return _0x4a7387;};return _0x158b();}import{AIFormToolbarView as _0x1c0ba2,AIFormToolbarViewMainActionLabel as _0x445eac}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x364b05}from'./aiformcontentarea.js';import{AIFormErrorView as _0x210e21}from'./aiformerrorview.js';import{AIFormPromptView as _0x34263}from'./aiformpromptview.js';import{AIHistoryListView as _0x3352a3}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x2ef45e}from'./aihistorylistitemview.js';import{PromptHistory as _0x1ca882}from'./prompthistory.js';import{getTranslation as _0x9b681a}from'../../utils/common-translations.js';import{escape as _0x56995b}from'es-toolkit/compat';export class AIFormView extends _0xec07d6{[_0x54fea4(0x20a)];[_0x54fea4(0x218)];[_0x54fea4(0x22c)];[_0x54fea4(0x235)];[_0x54fea4(0x21c)];[_0x54fea4(0x1fd)];[_0x54fea4(0x226)];[_0x54fea4(0x231)];[_0x54fea4(0x1fe)];constructor(_0x19d4f5,_0x234d9a,_0xaaa4a1=''){const _0x1846b2=_0x54fea4;super(_0x19d4f5),this[_0x1846b2(0x203)](_0x1846b2(0x220),!0x0),this[_0x1846b2(0x203)](_0x1846b2(0x1e5),!0x1),this[_0x1846b2(0x203)](_0x1846b2(0x20f),''),this[_0x1846b2(0x203)](_0x1846b2(0x1ea),''),this[_0x1846b2(0x203)](_0x1846b2(0x202),!0x1),this[_0x1846b2(0x203)](_0x1846b2(0x227),_0x445eac[_0x1846b2(0x1f2)]),this[_0x1846b2(0x1fe)]=new _0x1ca882(),this[_0x1846b2(0x1fd)]=new _0x210e21(_0x19d4f5),this[_0x1846b2(0x22c)]=new _0x364b05(_0x19d4f5,_0xaaa4a1),this[_0x1846b2(0x22c)][_0x1846b2(0x223)](_0x1846b2(0x1e5))['to'](this),this[_0x1846b2(0x22c)][_0x1846b2(0x223)](_0x1846b2(0x1ea))['to'](this),this[_0x1846b2(0x235)]=this[_0x1846b2(0x224)](),this[_0x1846b2(0x235)][_0x1846b2(0x223)](_0x1846b2(0x227))['to'](this),this[_0x1846b2(0x21c)]=this[_0x1846b2(0x217)](),this[_0x1846b2(0x20a)]=new _0x20f4a7(),this[_0x1846b2(0x218)]=new _0x52c60d(),this[_0x1846b2(0x226)]=this[_0x1846b2(0x22e)]([this[_0x1846b2(0x22c)],this[_0x1846b2(0x22c)][_0x1846b2(0x206)],this[_0x1846b2(0x235)],this[_0x1846b2(0x21c)]]),this[_0x1846b2(0x231)]=new _0x140814({'focusables':this[_0x1846b2(0x226)],'focusTracker':this[_0x1846b2(0x20a)],'keystrokeHandler':this[_0x1846b2(0x218)],'actions':{'focusPrevious':_0x1846b2(0x20b),'focusNext':_0x1846b2(0x1f5)}}),this[_0x1846b2(0x231)][_0x1846b2(0x204)](this[_0x1846b2(0x21c)][_0x1846b2(0x231)]),this[_0x1846b2(0x21c)][_0x1846b2(0x22b)][_0x1846b2(0x222)][_0x1846b2(0x223)](_0x1846b2(0x1ea))['to'](this,_0x1846b2(0x20f));const _0x18526f=this[_0x1846b2(0x1f4)];this[_0x1846b2(0x213)]({'tag':_0x1846b2(0x21a),'attributes':{'class':['ck',_0x1846b2(0x20e),_0x234d9a],'tabindex':'-1'},'children':[{'tag':_0x1846b2(0x21a),'attributes':{'class':['ck',_0x1846b2(0x20d)]},'children':[{'tag':_0x1846b2(0x21a),'attributes':{'class':[_0x18526f['if'](_0x1846b2(0x202),_0x1846b2(0x210),_0x1f85c8=>!_0x1f85c8)]},'children':[this[_0x1846b2(0x1fd)]]},this[_0x1846b2(0x22c)],this[_0x1846b2(0x235)],this[_0x1846b2(0x21c)]]}]});}[_0x54fea4(0x1fa)](){const _0x33b43b=_0x54fea4;super[_0x33b43b(0x1fa)](),this[_0x33b43b(0x20a)][_0x33b43b(0x22d)](this[_0x33b43b(0x22c)][_0x33b43b(0x200)]),this[_0x33b43b(0x20a)][_0x33b43b(0x22d)](this[_0x33b43b(0x22c)][_0x33b43b(0x206)][_0x33b43b(0x200)]),this[_0x33b43b(0x20a)][_0x33b43b(0x22d)](this[_0x33b43b(0x235)][_0x33b43b(0x200)]),this[_0x33b43b(0x20a)][_0x33b43b(0x22d)](this[_0x33b43b(0x21c)][_0x33b43b(0x200)]),this[_0x33b43b(0x218)][_0x33b43b(0x209)](this[_0x33b43b(0x200)]);}[_0x54fea4(0x1f3)](_0x4548e4=0x1){const _0x5d33c2=_0x54fea4;-0x1===_0x4548e4?this[_0x5d33c2(0x231)][_0x5d33c2(0x1f6)]():this[_0x5d33c2(0x231)][_0x5d33c2(0x1ff)]();}[_0x54fea4(0x211)](){const _0x1cc875=_0x54fea4;this[_0x1cc875(0x20f)]='',this[_0x1cc875(0x1ea)]='',this[_0x1cc875(0x202)]=!0x1,this[_0x1cc875(0x21c)][_0x1cc875(0x211)](),this[_0x1cc875(0x22c)][_0x1cc875(0x21b)]=!0x1,this[_0x1cc875(0x235)][_0x1cc875(0x21b)]=!0x1;}[_0x54fea4(0x217)](){const _0x487639=_0x54fea4,_0x4bc409=this[_0x487639(0x1e7)],_0x32ca07=new _0x34263(_0x4bc409,{'queryView':{'label':_0x9b681a(_0x4bc409,_0x487639(0x212)),'creator':_0x1cd2ee,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x9b681a(_0x4bc409,_0x487639(0x236)),'secondary':_0x9b681a(_0x4bc409,_0x487639(0x1ec))}}},'filteredView':this[_0x487639(0x20c)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x32ca07[_0x487639(0x223)](_0x487639(0x220))['to'](this,_0x487639(0x220),this,_0x487639(0x1e5),(_0xde5f18,_0x5f349c)=>_0xde5f18&&!_0x5f349c),this[_0x487639(0x209)](_0x32ca07,_0x487639(0x208),(_0x9543a9,_0x341e25)=>{const _0x484340=_0x487639;this[_0x484340(0x20f)]=_0x341e25;const _0xdd8b14=_0x56995b(_0x341e25);this[_0x484340(0x219)](_0x484340(0x201),_0xdd8b14),_0x341e25[_0x484340(0x205)]()&&this[_0x484340(0x1fe)][_0x484340(0x22d)]({'prompt':_0xdd8b14},0x0);},{'priority':_0x487639(0x214)}),_0x32ca07;}[_0x54fea4(0x20c)](){const _0x1bf335=_0x54fea4,_0x316d6a=new _0x3352a3(this[_0x1bf335(0x1e7)]);return _0x316d6a[_0x1bf335(0x21d)][_0x1bf335(0x21e)][_0x1bf335(0x237)](this[_0x1bf335(0x1fe)])['as'](_0x2ef45e),_0x316d6a['on'](_0x1bf335(0x230),()=>{const _0x4de351=_0x1bf335;this[_0x4de351(0x1fe)][_0x4de351(0x1e9)](),this[_0x4de351(0x21c)][_0x4de351(0x1ee)](''),this[_0x4de351(0x21c)][_0x4de351(0x1f3)]();}),_0x316d6a;}[_0x54fea4(0x224)](){const _0x15f49e=_0x54fea4,_0x29d425=new _0x1c0ba2(this[_0x15f49e(0x1e7)]);return _0x29d425[_0x15f49e(0x238)][_0x15f49e(0x223)](_0x15f49e(0x220))['to'](this,_0x15f49e(0x220),this,_0x15f49e(0x1e5),this,_0x15f49e(0x1ea),(_0x4b54ea,_0x42e332,_0x3e8e59)=>_0x4b54ea&&!_0x42e332&&!!_0x3e8e59),_0x29d425[_0x15f49e(0x238)][_0x15f49e(0x1f0)](_0x15f49e(0x1fb))['to'](this,_0x15f49e(0x1f7)),_0x29d425[_0x15f49e(0x21f)][_0x15f49e(0x223)](_0x15f49e(0x220))['to'](this,_0x15f49e(0x220),this,_0x15f49e(0x1e5),this,_0x15f49e(0x1ea),(_0x1ca8b9,_0x29a8c7,_0x40a12d)=>_0x1ca8b9&&!_0x29a8c7&&!!_0x40a12d),_0x29d425[_0x15f49e(0x21f)][_0x15f49e(0x1f0)](_0x15f49e(0x1fb))['to'](this,_0x15f49e(0x215)),_0x29d425[_0x15f49e(0x1e6)][_0x15f49e(0x223)](_0x15f49e(0x220))['to'](this,_0x15f49e(0x220),this,_0x15f49e(0x1e5),(_0x2c416a,_0x15cb72)=>_0x2c416a&&!_0x15cb72),_0x29d425[_0x15f49e(0x1e6)][_0x15f49e(0x1f0)](_0x15f49e(0x1fb))['to'](this,_0x15f49e(0x22f)),_0x29d425[_0x15f49e(0x1f1)][_0x15f49e(0x223)](_0x15f49e(0x220))['to'](this,_0x15f49e(0x1e5)),_0x29d425[_0x15f49e(0x1f1)][_0x15f49e(0x1f0)](_0x15f49e(0x1fb))['to'](this,_0x15f49e(0x207)),_0x29d425;}[_0x54fea4(0x234)](){const _0x3061f7=_0x54fea4;this[_0x3061f7(0x1ea)]='',this[_0x3061f7(0x202)]=!0x1,this[_0x3061f7(0x1e5)]=!0x0,this[_0x3061f7(0x22c)][_0x3061f7(0x21b)]=!0x0,this[_0x3061f7(0x235)][_0x3061f7(0x21b)]=!0x0,this[_0x3061f7(0x22c)][_0x3061f7(0x1f3)]();}[_0x54fea4(0x1e8)](){const _0x1a6fea=_0x54fea4,_0x1e676d=this[_0x1a6fea(0x1e7)];this[_0x1a6fea(0x1e5)]=!0x1,this[_0x1a6fea(0x20f)]='',this[_0x1a6fea(0x21c)][_0x1a6fea(0x211)](),this[_0x1a6fea(0x1ea)]&&(this[_0x1a6fea(0x21c)][_0x1a6fea(0x22b)][_0x1a6fea(0x228)]=_0x9b681a(_0x1e676d,_0x1a6fea(0x233)));}[_0x54fea4(0x221)](_0x340bea){const _0x3c0252=_0x54fea4,_0x559efd=this[_0x3c0252(0x1e7)];this[_0x3c0252(0x1e8)](),this[_0x3c0252(0x202)]=!0x0,this[_0x3c0252(0x1fd)][_0x3c0252(0x225)]=_0x340bea||_0x9b681a(_0x559efd,_0x3c0252(0x22a)),this[_0x3c0252(0x1ea)]||(this[_0x3c0252(0x22c)][_0x3c0252(0x21b)]=!0x1);}}
23
+ const _0x408733=_0x1777;(function(_0x1d0bc2,_0x54d916){const _0x1971ff=_0x1777,_0x1eddce=_0x1d0bc2();while(!![]){try{const _0xada151=-parseInt(_0x1971ff(0x1b0))/0x1*(parseInt(_0x1971ff(0x1a3))/0x2)+-parseInt(_0x1971ff(0x1c4))/0x3*(parseInt(_0x1971ff(0x1d3))/0x4)+-parseInt(_0x1971ff(0x1e8))/0x5*(-parseInt(_0x1971ff(0x19f))/0x6)+-parseInt(_0x1971ff(0x1f5))/0x7*(-parseInt(_0x1971ff(0x1c1))/0x8)+parseInt(_0x1971ff(0x1c6))/0x9*(parseInt(_0x1971ff(0x1c9))/0xa)+parseInt(_0x1971ff(0x1b3))/0xb+parseInt(_0x1971ff(0x19e))/0xc*(-parseInt(_0x1971ff(0x1e7))/0xd);if(_0xada151===_0x54d916)break;else _0x1eddce['push'](_0x1eddce['shift']());}catch(_0x3477a3){_0x1eddce['push'](_0x1eddce['shift']());}}}(_0xd553,0xe09e4));import{FocusTracker as _0x524c3a,KeystrokeHandler as _0x4f0450}from'ckeditor5/src/utils.js';import{View as _0x1354fe,FocusCycler as _0x5a20ff,createLabeledTextarea as _0x30f8a2}from'ckeditor5/src/ui.js';function _0x1777(_0x2c8aeb,_0x201012){const _0xd55332=_0xd553();return _0x1777=function(_0x177733,_0x222561){_0x177733=_0x177733-0x19e;let _0x565b27=_0xd55332[_0x177733];return _0x565b27;},_0x1777(_0x2c8aeb,_0x201012);}import{AIFormToolbarView as _0x1ffba7,AIFormToolbarViewMainActionLabel as _0x12cd20}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x190297}from'./aiformcontentarea.js';import{AIFormErrorView as _0x27135e}from'./aiformerrorview.js';import{AIFormPromptView as _0x3d7056}from'./aiformpromptview.js';import{AIHistoryListView as _0x43dec1}from'./aihistorylistview.js';function _0xd553(){const _0x154987=['tryAgainEvent','2982930sZraUx','focusFirst','ck-ai-form','promptView','mainAction','tab','bindTo','submitPrompt','reset','Empty\x20history','925772OBZsge','prompt','trim','clear','stopProcessing','label','createCollection','_promptHistory','clearHistory','set','isProcessing','submit','bind','_createToolbar','add','AI_ERROR_FAILED','_createPromptView','REPLACE','high','_createHistoryView','26397163uJuAln','10pADPBx','tryAgainButton','finishProcessing','Ask\x20AI\x20to\x20improve\x20generated\x20text','isError','stopButton','items','startProcessing','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','toolbar','replaceContent','fieldView','isVisible','10832773rrcOMA','12pRuIYh','4231182qVjPva','listenTo','delegate','contentArea','2zqHgVM','handleError','ck-ai-form-content','shift\x20+\x20tab','focusLast','insertContentBelow','div','insertButton','_focusables','focusCycler','queryView','element','errorView','1128669tWSrIL','copyButtonView','keystrokes','9393153yjCMuw','focus','focusTracker','setTemplate','isEnabled','bindTemplate','render','execute','value','chain','replaceButton','historyGroupView','locale','search','8XdIprd','text','fire','12vvBnKr','ck-hidden','36LcRezx','Ask\x20AI\x20to\x20edit\x20or\x20generate'];_0xd553=function(){return _0x154987;};return _0xd553();}import{AIHistoryListItemView as _0x22fcbb}from'./aihistorylistitemview.js';import{PromptHistory as _0xa1afee}from'./prompthistory.js';import{getTranslation as _0x4cf354}from'../../utils/common-translations.js';import{escape as _0xdc1bcd}from'es-toolkit/compat';export class AIFormView extends _0x1354fe{[_0x408733(0x1b5)];[_0x408733(0x1b2)];[_0x408733(0x1a2)];[_0x408733(0x1f1)];[_0x408733(0x1cc)];[_0x408733(0x1af)];[_0x408733(0x1ab)];[_0x408733(0x1ac)];[_0x408733(0x1da)];constructor(_0x32c8f1,_0xc3c51b,_0x5f55f5=''){const _0x5a3192=_0x408733;super(_0x32c8f1),this[_0x5a3192(0x1dc)](_0x5a3192(0x1b7),!0x0),this[_0x5a3192(0x1dc)](_0x5a3192(0x1dd),!0x1),this[_0x5a3192(0x1dc)](_0x5a3192(0x1d4),''),this[_0x5a3192(0x1dc)](_0x5a3192(0x1bb),''),this[_0x5a3192(0x1dc)](_0x5a3192(0x1ec),!0x1),this[_0x5a3192(0x1dc)](_0x5a3192(0x1cd),_0x12cd20[_0x5a3192(0x1e4)]),this[_0x5a3192(0x1da)]=new _0xa1afee(),this[_0x5a3192(0x1af)]=new _0x27135e(_0x32c8f1),this[_0x5a3192(0x1a2)]=new _0x190297(_0x32c8f1,_0x5f55f5),this[_0x5a3192(0x1a2)][_0x5a3192(0x1df)](_0x5a3192(0x1dd))['to'](this),this[_0x5a3192(0x1a2)][_0x5a3192(0x1df)](_0x5a3192(0x1bb))['to'](this),this[_0x5a3192(0x1f1)]=this[_0x5a3192(0x1e0)](),this[_0x5a3192(0x1f1)][_0x5a3192(0x1df)](_0x5a3192(0x1cd))['to'](this),this[_0x5a3192(0x1cc)]=this[_0x5a3192(0x1e3)](),this[_0x5a3192(0x1b5)]=new _0x524c3a(),this[_0x5a3192(0x1b2)]=new _0x4f0450(),this[_0x5a3192(0x1ab)]=this[_0x5a3192(0x1d9)]([this[_0x5a3192(0x1a2)],this[_0x5a3192(0x1a2)][_0x5a3192(0x1b1)],this[_0x5a3192(0x1f1)],this[_0x5a3192(0x1cc)]]),this[_0x5a3192(0x1ac)]=new _0x5a20ff({'focusables':this[_0x5a3192(0x1ab)],'focusTracker':this[_0x5a3192(0x1b5)],'keystrokeHandler':this[_0x5a3192(0x1b2)],'actions':{'focusPrevious':_0x5a3192(0x1a6),'focusNext':_0x5a3192(0x1ce)}}),this[_0x5a3192(0x1ac)][_0x5a3192(0x1bc)](this[_0x5a3192(0x1cc)][_0x5a3192(0x1ac)]),this[_0x5a3192(0x1cc)][_0x5a3192(0x1ad)][_0x5a3192(0x1f3)][_0x5a3192(0x1df)](_0x5a3192(0x1bb))['to'](this,_0x5a3192(0x1d4));const _0x5fc33d=this[_0x5a3192(0x1b8)];this[_0x5a3192(0x1b6)]({'tag':_0x5a3192(0x1a9),'attributes':{'class':['ck',_0x5a3192(0x1cb),_0xc3c51b],'tabindex':'-1'},'children':[{'tag':_0x5a3192(0x1a9),'attributes':{'class':['ck',_0x5a3192(0x1a5)]},'children':[{'tag':_0x5a3192(0x1a9),'attributes':{'class':[_0x5fc33d['if'](_0x5a3192(0x1ec),_0x5a3192(0x1c5),_0x12febc=>!_0x12febc)]},'children':[this[_0x5a3192(0x1af)]]},this[_0x5a3192(0x1a2)],this[_0x5a3192(0x1f1)],this[_0x5a3192(0x1cc)]]}]});}[_0x408733(0x1b9)](){const _0x29e6a2=_0x408733;super[_0x29e6a2(0x1b9)](),this[_0x29e6a2(0x1b5)][_0x29e6a2(0x1e1)](this[_0x29e6a2(0x1a2)][_0x29e6a2(0x1ae)]),this[_0x29e6a2(0x1b5)][_0x29e6a2(0x1e1)](this[_0x29e6a2(0x1a2)][_0x29e6a2(0x1b1)][_0x29e6a2(0x1ae)]),this[_0x29e6a2(0x1b5)][_0x29e6a2(0x1e1)](this[_0x29e6a2(0x1f1)][_0x29e6a2(0x1ae)]),this[_0x29e6a2(0x1b5)][_0x29e6a2(0x1e1)](this[_0x29e6a2(0x1cc)][_0x29e6a2(0x1ae)]),this[_0x29e6a2(0x1b2)][_0x29e6a2(0x1a0)](this[_0x29e6a2(0x1ae)]);}[_0x408733(0x1b4)](_0x21a411=0x1){const _0x1a369a=_0x408733;-0x1===_0x21a411?this[_0x1a369a(0x1ac)][_0x1a369a(0x1a7)]():this[_0x1a369a(0x1ac)][_0x1a369a(0x1ca)]();}[_0x408733(0x1d1)](){const _0x433c9b=_0x408733;this[_0x433c9b(0x1d4)]='',this[_0x433c9b(0x1bb)]='',this[_0x433c9b(0x1ec)]=!0x1,this[_0x433c9b(0x1cc)][_0x433c9b(0x1d1)](),this[_0x433c9b(0x1a2)][_0x433c9b(0x1f4)]=!0x1,this[_0x433c9b(0x1f1)][_0x433c9b(0x1f4)]=!0x1;}[_0x408733(0x1e3)](){const _0x234c39=_0x408733,_0x366add=this[_0x234c39(0x1bf)],_0x34f1aa=new _0x3d7056(_0x366add,{'queryView':{'label':_0x4cf354(_0x366add,_0x234c39(0x1c7)),'creator':_0x30f8a2,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4cf354(_0x366add,_0x234c39(0x1d2)),'secondary':_0x4cf354(_0x366add,_0x234c39(0x1f0))}}},'filteredView':this[_0x234c39(0x1e6)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x34f1aa[_0x234c39(0x1df)](_0x234c39(0x1b7))['to'](this,_0x234c39(0x1b7),this,_0x234c39(0x1dd),(_0x4ea2e7,_0x1783fb)=>_0x4ea2e7&&!_0x1783fb),this[_0x234c39(0x1a0)](_0x34f1aa,_0x234c39(0x1de),(_0x3c89f5,_0x3941a6)=>{const _0x2a1c99=_0x234c39;this[_0x2a1c99(0x1d4)]=_0x3941a6;const _0x5e31cb=_0xdc1bcd(_0x3941a6);this[_0x2a1c99(0x1c3)](_0x2a1c99(0x1d0),_0x5e31cb),_0x3941a6[_0x2a1c99(0x1d5)]()&&this[_0x2a1c99(0x1da)][_0x2a1c99(0x1e1)]({'prompt':_0x5e31cb},0x0);},{'priority':_0x234c39(0x1e5)}),_0x34f1aa;}[_0x408733(0x1e6)](){const _0x5476c7=_0x408733,_0x1b8dd6=new _0x43dec1(this[_0x5476c7(0x1bf)]);return _0x1b8dd6[_0x5476c7(0x1be)][_0x5476c7(0x1ee)][_0x5476c7(0x1cf)](this[_0x5476c7(0x1da)])['as'](_0x22fcbb),_0x1b8dd6['on'](_0x5476c7(0x1db),()=>{const _0x5c56da=_0x5476c7;this[_0x5c56da(0x1da)][_0x5c56da(0x1d6)](),this[_0x5c56da(0x1cc)][_0x5c56da(0x1c0)](''),this[_0x5c56da(0x1cc)][_0x5c56da(0x1b4)]();}),_0x1b8dd6;}[_0x408733(0x1e0)](){const _0x40f8e7=_0x408733,_0x2252fe=new _0x1ffba7(this[_0x40f8e7(0x1bf)]);return _0x2252fe[_0x40f8e7(0x1bd)][_0x40f8e7(0x1df)](_0x40f8e7(0x1b7))['to'](this,_0x40f8e7(0x1b7),this,_0x40f8e7(0x1dd),this,_0x40f8e7(0x1bb),(_0x5c91fb,_0x3b4757,_0x545903)=>_0x5c91fb&&!_0x3b4757&&!!_0x545903),_0x2252fe[_0x40f8e7(0x1bd)][_0x40f8e7(0x1a1)](_0x40f8e7(0x1ba))['to'](this,_0x40f8e7(0x1f2)),_0x2252fe[_0x40f8e7(0x1aa)][_0x40f8e7(0x1df)](_0x40f8e7(0x1b7))['to'](this,_0x40f8e7(0x1b7),this,_0x40f8e7(0x1dd),this,_0x40f8e7(0x1bb),(_0x57b0dc,_0x4eeb20,_0x3a2ccd)=>_0x57b0dc&&!_0x4eeb20&&!!_0x3a2ccd),_0x2252fe[_0x40f8e7(0x1aa)][_0x40f8e7(0x1a1)](_0x40f8e7(0x1ba))['to'](this,_0x40f8e7(0x1a8)),_0x2252fe[_0x40f8e7(0x1e9)][_0x40f8e7(0x1df)](_0x40f8e7(0x1b7))['to'](this,_0x40f8e7(0x1b7),this,_0x40f8e7(0x1dd),(_0x315c10,_0x466e50)=>_0x315c10&&!_0x466e50),_0x2252fe[_0x40f8e7(0x1e9)][_0x40f8e7(0x1a1)](_0x40f8e7(0x1ba))['to'](this,_0x40f8e7(0x1c8)),_0x2252fe[_0x40f8e7(0x1ed)][_0x40f8e7(0x1df)](_0x40f8e7(0x1b7))['to'](this,_0x40f8e7(0x1dd)),_0x2252fe[_0x40f8e7(0x1ed)][_0x40f8e7(0x1a1)](_0x40f8e7(0x1ba))['to'](this,_0x40f8e7(0x1d7)),_0x2252fe;}[_0x408733(0x1ef)](){const _0x5886b4=_0x408733;this[_0x5886b4(0x1bb)]='',this[_0x5886b4(0x1ec)]=!0x1,this[_0x5886b4(0x1dd)]=!0x0,this[_0x5886b4(0x1a2)][_0x5886b4(0x1f4)]=!0x0,this[_0x5886b4(0x1f1)][_0x5886b4(0x1f4)]=!0x0,this[_0x5886b4(0x1a2)][_0x5886b4(0x1b4)]();}[_0x408733(0x1ea)](){const _0x24acc4=_0x408733,_0x3539b4=this[_0x24acc4(0x1bf)];this[_0x24acc4(0x1dd)]=!0x1,this[_0x24acc4(0x1d4)]='',this[_0x24acc4(0x1cc)][_0x24acc4(0x1d1)](),this[_0x24acc4(0x1bb)]&&(this[_0x24acc4(0x1cc)][_0x24acc4(0x1ad)][_0x24acc4(0x1d8)]=_0x4cf354(_0x3539b4,_0x24acc4(0x1eb)));}[_0x408733(0x1a4)](_0x1507c8){const _0x2807fa=_0x408733,_0x4cdf6d=this[_0x2807fa(0x1bf)];this[_0x2807fa(0x1ea)](),this[_0x2807fa(0x1ec)]=!0x0,this[_0x2807fa(0x1af)][_0x2807fa(0x1c2)]=_0x1507c8||_0x4cf354(_0x4cdf6d,_0x2807fa(0x1e2)),this[_0x2807fa(0x1bb)]||(this[_0x2807fa(0x1a2)][_0x2807fa(0x1f4)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x28d189,_0x3f3cd2){const _0x59d4a3=_0x3490,_0x50ef88=_0x28d189();while(!![]){try{const _0x583abb=-parseInt(_0x59d4a3(0x131))/0x1*(parseInt(_0x59d4a3(0x141))/0x2)+-parseInt(_0x59d4a3(0x13a))/0x3*(-parseInt(_0x59d4a3(0x137))/0x4)+-parseInt(_0x59d4a3(0x13b))/0x5*(parseInt(_0x59d4a3(0x13f))/0x6)+parseInt(_0x59d4a3(0x136))/0x7+-parseInt(_0x59d4a3(0x133))/0x8+parseInt(_0x59d4a3(0x139))/0x9+parseInt(_0x59d4a3(0x138))/0xa;if(_0x583abb===_0x3f3cd2)break;else _0x50ef88['push'](_0x50ef88['shift']());}catch(_0x2158fc){_0x50ef88['push'](_0x50ef88['shift']());}}}(_0x446c,0xe5a7b));import{ListItemView as _0x7b91fd,ButtonView as _0x437365,ButtonLabelView as _0x426890}from'ckeditor5/src/ui.js';function _0x446c(){const _0x437deb=['add','execute','11194869bIyeoC','76ByljWQ','31230510trIJNW','2031075zjZGWD','38829mOihNu','5TFOiPR','locale','fire','children','9879066aEDPjo','prompt','4fGGiAq','732026VHuKRb','set','9141440jxeNKt'];_0x446c=function(){return _0x437deb;};return _0x446c();}import{unescape as _0x287923}from'es-toolkit/compat';function _0x3490(_0x379b3f,_0x401279){const _0x446cda=_0x446c();return _0x3490=function(_0x34900e,_0x3d8f0d){_0x34900e=_0x34900e-0x131;let _0xa33cd6=_0x446cda[_0x34900e];return _0xa33cd6;},_0x3490(_0x379b3f,_0x401279);}export class AIHistoryListItemView extends _0x7b91fd{constructor(_0x546a63){const _0xdc5d76=_0x3490;super();const _0x4192a3=new _0x426890(),_0x3ef899=new _0x437365(this[_0xdc5d76(0x13c)],_0x4192a3);this[_0xdc5d76(0x13e)][_0xdc5d76(0x134)](_0x3ef899),_0x3ef899[_0xdc5d76(0x132)]({'label':_0x546a63[_0xdc5d76(0x140)],'withText':!0x0}),_0x3ef899['on'](_0xdc5d76(0x135),()=>{const _0x25383d=_0xdc5d76;this[_0x25383d(0x13d)](_0x25383d(0x135),{'value':_0x287923(_0x546a63[_0x25383d(0x140)])});});}}
23
+ (function(_0x117758,_0x2bb177){const _0x1982a3=_0x5294,_0x1432e3=_0x117758();while(!![]){try{const _0x17fa17=-parseInt(_0x1982a3(0x6e))/0x1+-parseInt(_0x1982a3(0x73))/0x2+parseInt(_0x1982a3(0x79))/0x3+parseInt(_0x1982a3(0x74))/0x4+-parseInt(_0x1982a3(0x6d))/0x5+parseInt(_0x1982a3(0x77))/0x6*(parseInt(_0x1982a3(0x76))/0x7)+parseInt(_0x1982a3(0x72))/0x8;if(_0x17fa17===_0x2bb177)break;else _0x1432e3['push'](_0x1432e3['shift']());}catch(_0x26f8d5){_0x1432e3['push'](_0x1432e3['shift']());}}}(_0x383e,0xf30a6));function _0x383e(){const _0x1c24a2=['7111086uZbJsl','locale','376755TsDdjB','fire','set','5864460coKgKa','1641953rxjIyB','execute','children','prompt','19597496FHYJlh','555150emzSRm','1309844PtqnKn','add','7KDKvsv'];_0x383e=function(){return _0x1c24a2;};return _0x383e();}import{ListItemView as _0x555ff0,ButtonView as _0x14fc51,ButtonLabelView as _0xb8c329}from'ckeditor5/src/ui.js';function _0x5294(_0x18cef0,_0x5dd101){const _0x383e08=_0x383e();return _0x5294=function(_0x5294b6,_0x14190a){_0x5294b6=_0x5294b6-0x6b;let _0x2528d0=_0x383e08[_0x5294b6];return _0x2528d0;},_0x5294(_0x18cef0,_0x5dd101);}import{unescape as _0x18b76e}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x555ff0{constructor(_0x483aed){const _0x3feffd=_0x5294;super();const _0xd89e89=new _0xb8c329(),_0x2f54bd=new _0x14fc51(this[_0x3feffd(0x78)],_0xd89e89);this[_0x3feffd(0x70)][_0x3feffd(0x75)](_0x2f54bd),_0x2f54bd[_0x3feffd(0x6c)]({'label':_0x483aed[_0x3feffd(0x71)],'withText':!0x0}),_0x2f54bd['on'](_0x3feffd(0x6f),()=>{const _0x214a02=_0x3feffd;this[_0x214a02(0x6b)](_0x214a02(0x6f),{'value':_0x18b76e(_0x483aed[_0x214a02(0x71)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5dc382=_0x4ce3;(function(_0x1a3541,_0x1b6e6c){const _0x10e23c=_0x4ce3,_0x4bc9c0=_0x1a3541();while(!![]){try{const _0x53f78d=parseInt(_0x10e23c(0x1ca))/0x1+parseInt(_0x10e23c(0x1b7))/0x2*(parseInt(_0x10e23c(0x1b5))/0x3)+-parseInt(_0x10e23c(0x1b2))/0x4*(parseInt(_0x10e23c(0x1c9))/0x5)+parseInt(_0x10e23c(0x1c5))/0x6*(parseInt(_0x10e23c(0x1b3))/0x7)+parseInt(_0x10e23c(0x1b9))/0x8*(-parseInt(_0x10e23c(0x1ba))/0x9)+-parseInt(_0x10e23c(0x1bb))/0xa*(-parseInt(_0x10e23c(0x1cb))/0xb)+-parseInt(_0x10e23c(0x1c1))/0xc;if(_0x53f78d===_0x1b6e6c)break;else _0x4bc9c0['push'](_0x4bc9c0['shift']());}catch(_0x5b6a0b){_0x4bc9c0['push'](_0x4bc9c0['shift']());}}}(_0x9231,0x4631a));function _0x4ce3(_0x15146b,_0x507394){const _0x9231f4=_0x9231();return _0x4ce3=function(_0x4ce3ae,_0x26d8ec){_0x4ce3ae=_0x4ce3ae-0x1af;let _0x154ccb=_0x9231f4[_0x4ce3ae];return _0x154ccb;},_0x4ce3(_0x15146b,_0x507394);}function _0x9231(){const _0x4ae770=['5007492fXfakN','delegate','filter','length','1638sIzqFL','_createClearHistoryButton','label','fire','153565jLUOgI','521479qLpTUR','750761IJFnyL','Prompt\x20history','execute','clearHistoryButton','56EagaVa','2016gStvsy','add','38139NmbEqD','historyGroupView','44lGniKu','items','690056iGuQic','9NxvayP','50XshMVP','locale','set','children','Clear','clearHistory'];_0x9231=function(){return _0x4ae770;};return _0x9231();}import{ListView as _0xccac2e,ListItemGroupView as _0x1afcc7,ButtonView as _0x1a4c08}from'ckeditor5/src/ui.js';import{getTranslation as _0x38c729}from'../../utils/common-translations.js';export class AIHistoryListView extends _0xccac2e{[_0x5dc382(0x1b6)];[_0x5dc382(0x1b1)];constructor(_0x1627c5){const _0x4dec85=_0x5dc382;super(_0x1627c5),this[_0x4dec85(0x1b1)]=this[_0x4dec85(0x1c6)](),this[_0x4dec85(0x1b6)]=new _0x1afcc7(),this[_0x4dec85(0x1b6)][_0x4dec85(0x1be)][_0x4dec85(0x1b4)](this[_0x4dec85(0x1b1)],0x1),this[_0x4dec85(0x1b6)][_0x4dec85(0x1c7)]=_0x38c729(_0x1627c5,_0x4dec85(0x1af)),this[_0x4dec85(0x1b6)][_0x4dec85(0x1b8)][_0x4dec85(0x1c2)](_0x4dec85(0x1b0))['to'](this),this[_0x4dec85(0x1b8)][_0x4dec85(0x1b4)](this[_0x4dec85(0x1b6)]);}[_0x5dc382(0x1c3)](){const _0x4f7e1d=_0x5dc382;let _0x2852fe=0x0;for(const _0x26ddbd of this[_0x4f7e1d(0x1b8)])_0x2852fe+=_0x26ddbd[_0x4f7e1d(0x1b8)][_0x4f7e1d(0x1c4)];return{'resultsCount':_0x2852fe,'totalItemsCount':_0x2852fe};}[_0x5dc382(0x1c6)](){const _0x126374=_0x5dc382,_0x3a0e2c=this[_0x126374(0x1bc)],_0x4e1ab6=new _0x1a4c08(this[_0x126374(0x1bc)]);return _0x4e1ab6[_0x126374(0x1bd)]({'label':'('+_0x38c729(_0x3a0e2c,_0x126374(0x1bf))+')','withText':!0x0}),_0x4e1ab6['on'](_0x126374(0x1b0),()=>this[_0x126374(0x1c8)](_0x126374(0x1c0))),_0x4e1ab6;}}
23
+ const _0x48c011=_0x26e8;function _0x26e8(_0x1ef5b1,_0x1b6483){const _0x1ff819=_0x1ff8();return _0x26e8=function(_0x26e89a,_0x2c9fde){_0x26e89a=_0x26e89a-0x148;let _0x507933=_0x1ff819[_0x26e89a];return _0x507933;},_0x26e8(_0x1ef5b1,_0x1b6483);}(function(_0x5e090a,_0x4d451b){const _0x230a47=_0x26e8,_0x3d21f4=_0x5e090a();while(!![]){try{const _0x29de13=parseInt(_0x230a47(0x15c))/0x1+-parseInt(_0x230a47(0x152))/0x2*(-parseInt(_0x230a47(0x14f))/0x3)+parseInt(_0x230a47(0x15b))/0x4+-parseInt(_0x230a47(0x155))/0x5+parseInt(_0x230a47(0x150))/0x6+parseInt(_0x230a47(0x158))/0x7+-parseInt(_0x230a47(0x14b))/0x8;if(_0x29de13===_0x4d451b)break;else _0x3d21f4['push'](_0x3d21f4['shift']());}catch(_0x2bfb9b){_0x3d21f4['push'](_0x3d21f4['shift']());}}}(_0x1ff8,0x94f21));function _0x1ff8(){const _0x31d38f=['children','locale','clearHistoryButton','label','_createClearHistoryButton','add','25492064ohYoYS','set','delegate','filter','698613uEYJvW','4050510BIcaog','clearHistory','8MsuopM','Clear','execute','3680760eKozYW','Prompt\x20history','items','8511384LkjyrN','fire','length','4179212sYpEzm','665457rOmzPa','historyGroupView'];_0x1ff8=function(){return _0x31d38f;};return _0x1ff8();}import{ListView as _0x4b5070,ListItemGroupView as _0x4829a3,ButtonView as _0x2ad523}from'ckeditor5/src/ui.js';import{getTranslation as _0x488494}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x4b5070{[_0x48c011(0x15d)];[_0x48c011(0x160)];constructor(_0x28f05d){const _0x38262b=_0x48c011;super(_0x28f05d),this[_0x38262b(0x160)]=this[_0x38262b(0x149)](),this[_0x38262b(0x15d)]=new _0x4829a3(),this[_0x38262b(0x15d)][_0x38262b(0x15e)][_0x38262b(0x14a)](this[_0x38262b(0x160)],0x1),this[_0x38262b(0x15d)][_0x38262b(0x148)]=_0x488494(_0x28f05d,_0x38262b(0x156)),this[_0x38262b(0x15d)][_0x38262b(0x157)][_0x38262b(0x14d)](_0x38262b(0x154))['to'](this),this[_0x38262b(0x157)][_0x38262b(0x14a)](this[_0x38262b(0x15d)]);}[_0x48c011(0x14e)](){const _0x344c5a=_0x48c011;let _0x4d9128=0x0;for(const _0x47dd60 of this[_0x344c5a(0x157)])_0x4d9128+=_0x47dd60[_0x344c5a(0x157)][_0x344c5a(0x15a)];return{'resultsCount':_0x4d9128,'totalItemsCount':_0x4d9128};}[_0x48c011(0x149)](){const _0x22eba0=_0x48c011,_0x21fce8=this[_0x22eba0(0x15f)],_0x377d5f=new _0x2ad523(this[_0x22eba0(0x15f)]);return _0x377d5f[_0x22eba0(0x14c)]({'label':'('+_0x488494(_0x21fce8,_0x22eba0(0x153))+')','withText':!0x0}),_0x377d5f['on'](_0x22eba0(0x154),()=>this[_0x22eba0(0x159)](_0x22eba0(0x151))),_0x377d5f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x33bf(_0x474bc1,_0x1ccd61){const _0x24226d=_0x2422();return _0x33bf=function(_0x33bf84,_0x42825f){_0x33bf84=_0x33bf84-0x15a;let _0x41c076=_0x24226d[_0x33bf84];return _0x41c076;},_0x33bf(_0x474bc1,_0x1ccd61);}const _0x2931db=_0x33bf;(function(_0x2c8dc9,_0x40543c){const _0x57770d=_0x33bf,_0x5097aa=_0x2c8dc9();while(!![]){try{const _0x1907ec=-parseInt(_0x57770d(0x15a))/0x1*(parseInt(_0x57770d(0x166))/0x2)+parseInt(_0x57770d(0x160))/0x3*(-parseInt(_0x57770d(0x165))/0x4)+-parseInt(_0x57770d(0x16c))/0x5+-parseInt(_0x57770d(0x15d))/0x6+parseInt(_0x57770d(0x16b))/0x7*(-parseInt(_0x57770d(0x15f))/0x8)+-parseInt(_0x57770d(0x163))/0x9+parseInt(_0x57770d(0x164))/0xa;if(_0x1907ec===_0x40543c)break;else _0x5097aa['push'](_0x5097aa['shift']());}catch(_0x5c7d6c){_0x5097aa['push'](_0x5097aa['shift']());}}}(_0x2422,0x90717));import{Collection as _0x5f5155}from'ckeditor5/src/utils.js';const ts=_0x2931db(0x170);export class PromptHistory extends _0x5f5155{constructor(){const _0x4ef7a3=_0x2931db;super(),this[_0x4ef7a3(0x16e)](),this['on'](_0x4ef7a3(0x167),(_0x5e7f11,_0x2dec24)=>{const _0x30f37f=_0x4ef7a3,_0x496ed2=os(_0x2dec24[_0x30f37f(0x16a)]);for(const _0x55f2c4 of this)if(_0x55f2c4!=_0x2dec24&&os(_0x55f2c4[_0x30f37f(0x16a)])===_0x496ed2){this[_0x30f37f(0x171)](_0x55f2c4);break;}this[_0x30f37f(0x161)]>0x14&&this[_0x30f37f(0x171)](this[_0x30f37f(0x168)]),this[_0x30f37f(0x16d)]();}),this['on'](_0x4ef7a3(0x171),()=>{const _0x19e5c7=_0x4ef7a3;this[_0x19e5c7(0x16d)]();});}[_0x2931db(0x16e)](){const _0x329205=_0x2931db,_0x113b62=sessionStorage[_0x329205(0x172)](ts)||'[]';this[_0x329205(0x15e)](JSON[_0x329205(0x15b)](_0x113b62));}[_0x2931db(0x16d)](){const _0x566785=_0x2931db;sessionStorage[_0x566785(0x15c)](ts,JSON[_0x566785(0x16f)](this[_0x566785(0x173)](_0x490355=>_0x490355)));}}function _0x2422(){const _0x5c5ab1=['prompt','1141553lVHBMq','4522795PEevjq','_saveToSessionStorage','_loadFromSessionStorage','stringify','CKEditor/AIFormView/PromptHistory','remove','getItem','map','237QDVcBN','parse','setItem','2690202FABfWa','addMany','32bxBwgC','446451BPCwvd','length','trim','6141528KiMlgq','46175740DmzKqW','8BlwIIh','8782lnsPVv','add','last','toLowerCase'];_0x2422=function(){return _0x5c5ab1;};return _0x2422();}function os(_0x272261){const _0x531a28=_0x2931db;return _0x272261[_0x531a28(0x169)]()[_0x531a28(0x162)]();}
23
+ const _0x13c6cf=_0x3c82;function _0x4ee7(){const _0xc1f762=['9073328VatVoJ','580310uvZJMQ','addMany','parse','prompt','_saveToSessionStorage','775011DlhUPz','trim','2693656QddLXA','_loadFromSessionStorage','715740LwjeuK','setItem','stringify','12BTXmKA','11722109snyBYI','getItem','remove','add','CKEditor/AIFormView/PromptHistory','length','2073962efITiv','last','map','toLowerCase'];_0x4ee7=function(){return _0xc1f762;};return _0x4ee7();}(function(_0x1abde2,_0x474cdb){const _0x4de78b=_0x3c82,_0x1dd1a0=_0x1abde2();while(!![]){try{const _0x2d0b53=parseInt(_0x4de78b(0xb5))/0x1+-parseInt(_0x4de78b(0xbf))/0x2+parseInt(_0x4de78b(0xc9))/0x3+parseInt(_0x4de78b(0xb3))/0x4+-parseInt(_0x4de78b(0xc4))/0x5*(parseInt(_0x4de78b(0xb8))/0x6)+parseInt(_0x4de78b(0xb9))/0x7+-parseInt(_0x4de78b(0xc3))/0x8;if(_0x2d0b53===_0x474cdb)break;else _0x1dd1a0['push'](_0x1dd1a0['shift']());}catch(_0x201c06){_0x1dd1a0['push'](_0x1dd1a0['shift']());}}}(_0x4ee7,0xe0517));function _0x3c82(_0x2d1193,_0x42b56e){const _0x4ee7bf=_0x4ee7();return _0x3c82=function(_0x3c829a,_0x3599d7){_0x3c829a=_0x3c829a-0xb2;let _0x20ffb4=_0x4ee7bf[_0x3c829a];return _0x20ffb4;},_0x3c82(_0x2d1193,_0x42b56e);}import{Collection as _0x4cc042}from'ckeditor5/src/utils.js';const ts=_0x13c6cf(0xbd);export class PromptHistory extends _0x4cc042{constructor(){const _0x211dc8=_0x13c6cf;super(),this[_0x211dc8(0xb4)](),this['on'](_0x211dc8(0xbc),(_0x3a4c4f,_0x352139)=>{const _0x4342ed=_0x211dc8,_0x254533=os(_0x352139[_0x4342ed(0xc7)]);for(const _0x5c8931 of this)if(_0x5c8931!=_0x352139&&os(_0x5c8931[_0x4342ed(0xc7)])===_0x254533){this[_0x4342ed(0xbb)](_0x5c8931);break;}this[_0x4342ed(0xbe)]>0x14&&this[_0x4342ed(0xbb)](this[_0x4342ed(0xc0)]),this[_0x4342ed(0xc8)]();}),this['on'](_0x211dc8(0xbb),()=>{const _0x143c98=_0x211dc8;this[_0x143c98(0xc8)]();});}[_0x13c6cf(0xb4)](){const _0x5cc96c=_0x13c6cf,_0x410db3=sessionStorage[_0x5cc96c(0xba)](ts)||'[]';this[_0x5cc96c(0xc5)](JSON[_0x5cc96c(0xc6)](_0x410db3));}[_0x13c6cf(0xc8)](){const _0x38fad5=_0x13c6cf;sessionStorage[_0x38fad5(0xb6)](ts,JSON[_0x38fad5(0xb7)](this[_0x38fad5(0xc1)](_0x2e1894=>_0x2e1894)));}}function os(_0x331fe1){const _0x51070c=_0x13c6cf;return _0x331fe1[_0x51070c(0xc2)]()[_0x51070c(0xb2)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2af3(_0x2af13b,_0x1b402e){const _0x5e111e=_0x5e11();return _0x2af3=function(_0x2af384,_0x2029c8){_0x2af384=_0x2af384-0xc6;let _0xff667=_0x5e111e[_0x2af384];return _0xff667;},_0x2af3(_0x2af13b,_0x1b402e);}const _0x1fe88f=_0x2af3;(function(_0x1a7633,_0x350e95){const _0x2ce0b1=_0x2af3,_0x4d7817=_0x1a7633();while(!![]){try{const _0x3e71c8=parseInt(_0x2ce0b1(0xe4))/0x1*(-parseInt(_0x2ce0b1(0xce))/0x2)+parseInt(_0x2ce0b1(0xd0))/0x3+parseInt(_0x2ce0b1(0xcd))/0x4*(-parseInt(_0x2ce0b1(0xed))/0x5)+parseInt(_0x2ce0b1(0xd2))/0x6+parseInt(_0x2ce0b1(0xec))/0x7+parseInt(_0x2ce0b1(0xe6))/0x8*(parseInt(_0x2ce0b1(0xde))/0x9)+-parseInt(_0x2ce0b1(0xda))/0xa*(parseInt(_0x2ce0b1(0xe5))/0xb);if(_0x3e71c8===_0x350e95)break;else _0x4d7817['push'](_0x4d7817['shift']());}catch(_0x16378f){_0x4d7817['push'](_0x4d7817['shift']());}}}(_0x5e11,0x59284));import{Command as _0x3efa80}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1d8758}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x3efa80{[_0x1fe88f(0xcb)];constructor(_0x5176c6,_0x1a7a35){const _0x3b1d0b=_0x1fe88f;super(_0x5176c6),this[_0x3b1d0b(0xcb)]=_0x1a7a35,this[_0x3b1d0b(0xe9)](_0x3b1d0b(0xe7),[]),this['on'](_0x3b1d0b(0xe3),(_0x38a23d,_0x2c1862,_0x2ea917)=>{const _0x17fe0e=_0x3b1d0b;this[_0x17fe0e(0xc9)]&&(this[_0x17fe0e(0xe7)]=F(this[_0x17fe0e(0xcb)],_0x2ea917));}),this[_0x3b1d0b(0xe9)](_0x3b1d0b(0xdb),!0x1),this['on'](_0x3b1d0b(0xd3),(_0x190969,_0x336059,_0x4fec0a)=>{const _0xa0a07a=_0x3b1d0b;this[_0xa0a07a(0xe7)]=_0x4fec0a?F(this[_0xa0a07a(0xcb)],this[_0xa0a07a(0xdb)]):[];});}[_0x1fe88f(0xcf)](){const _0x113170=_0x1fe88f,_0x256d3b=this[_0x113170(0xdd)][_0x113170(0xd1)];this[_0x113170(0xdb)]=function(_0x1eba91){const _0x2e9750=_0x113170,_0xe7e6b7=_0x1eba91[_0x2e9750(0xc7)][_0x2e9750(0xd8)];return _0xe7e6b7[_0x2e9750(0xe0)]?0x0!==[..._0xe7e6b7[_0x2e9750(0xeb)]()][_0x2e9750(0xe2)]&&![..._0xe7e6b7[_0x2e9750(0xeb)]()][0x0][_0x2e9750(0xca)]:!!_0x1eba91[_0x2e9750(0xdf)](_0xe7e6b7[_0x2e9750(0xd7)]());}(_0x256d3b);const _0x590bf8=_0x256d3b[_0x113170(0xc7)][_0x113170(0xd8)],_0x41b8d2=this[_0x113170(0xdd)][_0x113170(0xf2)][_0x113170(0xd4)](_0x113170(0xd5));for(const _0x234bcb of _0x590bf8[_0x113170(0xdc)]())for(const _0xfc0ff3 of _0x234bcb[_0x113170(0xee)]())if(_0xfc0ff3['is'](_0x113170(0xe1))&&_0x41b8d2[_0x113170(0xea)](_0xfc0ff3[_0x113170(0xf0)]))return void(this[_0x113170(0xc9)]=!0x1);this[_0x113170(0xc9)]=!0x0;}[_0x1fe88f(0xd9)](_0x1443b4='',_0x21555f='',_0x3194f9=_0x1fe88f(0xcc)){const _0x27f0ca=_0x1fe88f;this[_0x27f0ca(0xdd)][_0x27f0ca(0xc8)][_0x27f0ca(0xd4)](_0x1d8758)[_0x27f0ca(0xd6)](_0x1443b4,_0x21555f,_0x3194f9);}}function _0x5e11(){const _0x28793d=['requiresContent','config','values','document','plugins','isEnabled','isEmpty','_commandDefinitions','custom','64bzkqAY','82bujyeU','refresh','2023872nCPlHj','model','3403554MBqpaR','change:isEnabled','get','ai.aiAssistant.disabledElements','showUI','getFirstRange','selection','execute','5671870FnOlnB','_hasContext','getRanges','editor','3546qGnpIR','hasContent','isCollapsed','element','length','change:_hasContext','2067TnOQRs','22ehKNlW','13512TnYwqX','enabledCommandsIds','add','set','includes','getSelectedBlocks','2151184TdOWEu','196985guAETQ','getItems','from','name'];_0x5e11=function(){return _0x28793d;};return _0x5e11();}function F(_0x2b6962,_0x4ee29b){const _0x36c04b=_0x1fe88f,_0x2f4ebd=new Set();for(const _0x11e445 of _0x2b6962[_0x36c04b(0xc6)]())(_0x4ee29b||!0x1===_0x11e445[_0x36c04b(0xf1)])&&_0x2f4ebd[_0x36c04b(0xe8)](_0x11e445['id']);return Array[_0x36c04b(0xef)](_0x2f4ebd);}
23
+ const _0x1251b6=_0x6103;(function(_0x239402,_0x158ee7){const _0x585916=_0x6103,_0x235f21=_0x239402();while(!![]){try{const _0x42e9d5=-parseInt(_0x585916(0x126))/0x1+-parseInt(_0x585916(0x114))/0x2+-parseInt(_0x585916(0x129))/0x3*(parseInt(_0x585916(0x119))/0x4)+-parseInt(_0x585916(0x125))/0x5*(-parseInt(_0x585916(0x122))/0x6)+parseInt(_0x585916(0x138))/0x7+parseInt(_0x585916(0x12d))/0x8+-parseInt(_0x585916(0x124))/0x9*(parseInt(_0x585916(0x116))/0xa);if(_0x42e9d5===_0x158ee7)break;else _0x235f21['push'](_0x235f21['shift']());}catch(_0x2ef1a0){_0x235f21['push'](_0x235f21['shift']());}}}(_0x2777,0x2f46c));function _0x6103(_0x4e7b84,_0x15ef21){const _0x2777ab=_0x2777();return _0x6103=function(_0x610314,_0x5d9bf7){_0x610314=_0x610314-0x110;let _0xb09ed0=_0x2777ab[_0x610314];return _0xb09ed0;},_0x6103(_0x4e7b84,_0x15ef21);}function _0x2777(){const _0x1f94f2=['355194KGyYdZ','requiresContent','1161890NmZcSP','editor','config','86672SPoASS','hasContent','execute','get','isCollapsed','showUI','enabledCommandsIds','getFirstRange','selection','6RCeTsB','custom','9zFbzZl','1800445aLyocb','248597KPWbBm','isEmpty','change:isEnabled','33QfSPet','getRanges','plugins','model','2155048bEVESK','isEnabled','getSelectedBlocks','set','add','values','length','document','getItems','_hasContext','ai.aiAssistant.disabledElements','2414335MsHFKH','_commandDefinitions','from','name','refresh','includes','change:_hasContext','element'];_0x2777=function(){return _0x1f94f2;};return _0x2777();}import{Command as _0x3b5888}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x59dc7d}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x3b5888{[_0x1251b6(0x139)];constructor(_0x2c30be,_0x557a5d){const _0x2fe11c=_0x1251b6;super(_0x2c30be),this[_0x2fe11c(0x139)]=_0x557a5d,this[_0x2fe11c(0x130)](_0x2fe11c(0x11f),[]),this['on'](_0x2fe11c(0x112),(_0x6b348d,_0x5677a0,_0x260a2f)=>{const _0x110a02=_0x2fe11c;this[_0x110a02(0x12e)]&&(this[_0x110a02(0x11f)]=F(this[_0x110a02(0x139)],_0x260a2f));}),this[_0x2fe11c(0x130)](_0x2fe11c(0x136),!0x1),this['on'](_0x2fe11c(0x128),(_0x9bd2e0,_0x511445,_0x22a43d)=>{const _0x1b4e30=_0x2fe11c;this[_0x1b4e30(0x11f)]=_0x22a43d?F(this[_0x1b4e30(0x139)],this[_0x1b4e30(0x136)]):[];});}[_0x1251b6(0x110)](){const _0x4f3574=_0x1251b6,_0x53db27=this[_0x4f3574(0x117)][_0x4f3574(0x12c)];this[_0x4f3574(0x136)]=function(_0xe55f48){const _0x477b2a=_0x4f3574,_0x4e473e=_0xe55f48[_0x477b2a(0x134)][_0x477b2a(0x121)];return _0x4e473e[_0x477b2a(0x11d)]?0x0!==[..._0x4e473e[_0x477b2a(0x12f)]()][_0x477b2a(0x133)]&&![..._0x4e473e[_0x477b2a(0x12f)]()][0x0][_0x477b2a(0x127)]:!!_0xe55f48[_0x477b2a(0x11a)](_0x4e473e[_0x477b2a(0x120)]());}(_0x53db27);const _0x364c40=_0x53db27[_0x4f3574(0x134)][_0x4f3574(0x121)],_0xf9d8b4=this[_0x4f3574(0x117)][_0x4f3574(0x118)][_0x4f3574(0x11c)](_0x4f3574(0x137));for(const _0x45687d of _0x364c40[_0x4f3574(0x12a)]())for(const _0x4ad6f7 of _0x45687d[_0x4f3574(0x135)]())if(_0x4ad6f7['is'](_0x4f3574(0x113))&&_0xf9d8b4[_0x4f3574(0x111)](_0x4ad6f7[_0x4f3574(0x13b)]))return void(this[_0x4f3574(0x12e)]=!0x1);this[_0x4f3574(0x12e)]=!0x0;}[_0x1251b6(0x11b)](_0x4cef0e='',_0x244cfb='',_0x13aae5=_0x1251b6(0x123)){const _0x8c20a5=_0x1251b6;this[_0x8c20a5(0x117)][_0x8c20a5(0x12b)][_0x8c20a5(0x11c)](_0x59dc7d)[_0x8c20a5(0x11e)](_0x4cef0e,_0x244cfb,_0x13aae5);}}function F(_0x1208bb,_0x4d306f){const _0x1f3b12=_0x1251b6,_0x30e3bb=new Set();for(const _0x4d597b of _0x1208bb[_0x1f3b12(0x132)]())(_0x4d306f||!0x1===_0x4d597b[_0x1f3b12(0x115)])&&_0x30e3bb[_0x1f3b12(0x131)](_0x4d597b['id']);return Array[_0x1f3b12(0x13a)](_0x30e3bb);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x391fb8,_0x114f82,_0x5d5144){const t=_0x391fb8['t'];switch(_0x114f82){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',_0x5d5144);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x5d5144);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'},_0x5d5144);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 _0x114f82;}}
23
+ export function getTranslation(_0x3bff8e,_0x5e7041,_0x16dd9f){const t=_0x3bff8e['t'];switch(_0x5e7041){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',_0x16dd9f);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x16dd9f);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'},_0x16dd9f);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 _0x5e7041;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x93d7a5,_0x301c48){const _0x2b874e=(0x0,_0x301c48['t'])('Other');return _0x93d7a5['length']?'groupId'in _0x93d7a5[0x0]?_0x93d7a5:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2b874e,'order':0x1/0x0,'commands':_0x93d7a5}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2b874e,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x1f47a8,_0x3dd1ff){const _0x508239=(0x0,_0x3dd1ff['t'])('Other');return _0x1f47a8['length']?'groupId'in _0x1f47a8[0x0]?_0x1f47a8:[{'groupId':'_ungrouppedCommands','groupLabel':_0x508239,'order':0x1/0x0,'commands':_0x1f47a8}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x508239,'order':0x1/0x0,'commands':[]}];}