@ckeditor/ckeditor5-ai 44.2.0-alpha.10 → 44.2.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +9 -9
  148. package/src/adapters/aiadapter.js +1 -1
  149. package/src/adapters/aitextadapter.js +1 -1
  150. package/src/adapters/awstextadapter.js +1 -1
  151. package/src/adapters/openaitextadapter.js +1 -1
  152. package/src/aiassistant.js +1 -1
  153. package/src/aiassistantediting.js +1 -1
  154. package/src/aiassistantui.js +1 -1
  155. package/src/index.js +1 -1
  156. package/src/legacyerrors.js +1 -1
  157. package/src/ui/aiassistantcontroller.js +2 -2
  158. package/src/ui/form/aiformcontentarea.js +1 -1
  159. package/src/ui/form/aiformerrorview.js +1 -1
  160. package/src/ui/form/aiformpromptview.js +1 -1
  161. package/src/ui/form/aiformtoolbarview.js +1 -1
  162. package/src/ui/form/aiformview.js +1 -1
  163. package/src/ui/form/aihistorylistitemview.js +1 -1
  164. package/src/ui/form/aihistorylistview.js +1 -1
  165. package/src/ui/form/prompthistory.js +1 -1
  166. package/src/ui/showaiassistantcommand.js +1 -1
  167. package/src/utils/common-translations.js +1 -1
  168. package/src/utils/normalizecommandsconfig.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1168cc=_0x254d;function _0x254d(_0x207c81,_0x4b19c1){const _0x11ab3e=_0x11ab();return _0x254d=function(_0x254dc4,_0x17a5ad){_0x254dc4=_0x254dc4-0xe2;let _0x5efb1d=_0x11ab3e[_0x254dc4];return _0x5efb1d;},_0x254d(_0x207c81,_0x4b19c1);}(function(_0x4a704a,_0x1d7ee5){const _0x3f7c5c=_0x254d,_0x50c8cd=_0x4a704a();while(!![]){try{const _0x2041a1=parseInt(_0x3f7c5c(0xf2))/0x1+-parseInt(_0x3f7c5c(0xf1))/0x2*(-parseInt(_0x3f7c5c(0xf4))/0x3)+-parseInt(_0x3f7c5c(0x106))/0x4*(-parseInt(_0x3f7c5c(0xec))/0x5)+parseInt(_0x3f7c5c(0xf8))/0x6+-parseInt(_0x3f7c5c(0xee))/0x7+parseInt(_0x3f7c5c(0xed))/0x8*(parseInt(_0x3f7c5c(0xe4))/0x9)+parseInt(_0x3f7c5c(0x103))/0xa*(-parseInt(_0x3f7c5c(0xf6))/0xb);if(_0x2041a1===_0x1d7ee5)break;else _0x50c8cd['push'](_0x50c8cd['shift']());}catch(_0xe2ffed){_0x50c8cd['push'](_0x50c8cd['shift']());}}}(_0x11ab,0x7a38d));import{ToolbarView as _0x22030f,ButtonView as _0x4f4418}from'ckeditor5/src/ui.js';function _0x11ab(){const _0x4d1531=['ck-button-action','12YrgrFZ','bindTemplate','ck-hidden','replace','2043czMbvr','tryAgainButton','isVisible','toUpperCase','items','AI_','extendTemplate','_createButton','151765nPcGSF','19736lsSiBe','2380175UKtTSd','insert','bind','30adITHB','931796lGJlTS','label','52233zlSHst','set','13851563wGhkAj','addMany','1535100iKtNFe','locale','replaceButton','_CONTENT','stopButton','mainAction','REPLACE','ck-ai-form__toolbar','Try\x20again','Stop','Insert\x20below','10rMFJgH','insertButton'];_0x11ab=function(){return _0x4d1531;};return _0x11ab();}import{getTranslation as _0x533cbe}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1168cc(0xe3),'INSERT':_0x1168cc(0xef)};export default class at extends _0x22030f{constructor(_0x219dd3){const _0x3dd3e2=_0x1168cc;super(_0x219dd3),this[_0x3dd3e2(0xf5)](_0x3dd3e2(0xe6),!0x1),this[_0x3dd3e2(0xf5)](_0x3dd3e2(0xfd),AIFormToolbarViewMainActionLabel[_0x3dd3e2(0xfe)]),this[_0x3dd3e2(0xfa)]=this[_0x3dd3e2(0xeb)]('',_0x3dd3e2(0x105)),this[_0x3dd3e2(0xfa)][_0x3dd3e2(0xf0)](_0x3dd3e2(0xf3))['to'](this,_0x3dd3e2(0xfd),_0x13fba2=>_0x533cbe(_0x219dd3,_0x3dd3e2(0xe9)+_0x13fba2[_0x3dd3e2(0xe7)]()+_0x3dd3e2(0xfb))),this[_0x3dd3e2(0x104)]=this[_0x3dd3e2(0xeb)](_0x533cbe(_0x219dd3,_0x3dd3e2(0x102))),this[_0x3dd3e2(0xe5)]=this[_0x3dd3e2(0xeb)](_0x533cbe(_0x219dd3,_0x3dd3e2(0x100))),this[_0x3dd3e2(0xfc)]=this[_0x3dd3e2(0xeb)](_0x533cbe(_0x219dd3,_0x3dd3e2(0x101)));const _0x286bb1=this[_0x3dd3e2(0x107)];this[_0x3dd3e2(0xea)]({'attributes':{'class':[_0x3dd3e2(0xff),_0x286bb1['if'](_0x3dd3e2(0xe6),_0x3dd3e2(0xe2),_0x44744a=>!_0x44744a)]}}),this[_0x3dd3e2(0xe8)][_0x3dd3e2(0xf7)]([this[_0x3dd3e2(0xfa)],this[_0x3dd3e2(0x104)],this[_0x3dd3e2(0xe5)],this[_0x3dd3e2(0xfc)]]);}[_0x1168cc(0xeb)](_0x207165,_0x260e11){const _0x392494=_0x1168cc,_0x1a0a57=new _0x4f4418(this[_0x392494(0xf9)]);return _0x1a0a57[_0x392494(0xf5)]({'label':_0x207165,'class':_0x260e11||'','isVisible':!0x0,'withText':!0x0}),_0x1a0a57;}}
23
+ const _0x548818=_0x2e7b;(function(_0x50fc5f,_0x46d21b){const _0x2aa6ed=_0x2e7b,_0x5d6563=_0x50fc5f();while(!![]){try{const _0x504cb5=parseInt(_0x2aa6ed(0xe1))/0x1*(parseInt(_0x2aa6ed(0xf0))/0x2)+parseInt(_0x2aa6ed(0xd5))/0x3*(parseInt(_0x2aa6ed(0xf8))/0x4)+-parseInt(_0x2aa6ed(0xf3))/0x5*(parseInt(_0x2aa6ed(0xe9))/0x6)+parseInt(_0x2aa6ed(0xd8))/0x7+parseInt(_0x2aa6ed(0xdf))/0x8+-parseInt(_0x2aa6ed(0xdc))/0x9+parseInt(_0x2aa6ed(0xda))/0xa;if(_0x504cb5===_0x46d21b)break;else _0x5d6563['push'](_0x5d6563['shift']());}catch(_0x14c9c2){_0x5d6563['push'](_0x5d6563['shift']());}}}(_0x1ee1,0x5387e));import{ToolbarView as _0x5506d2,ButtonView as _0x1b0465}from'ckeditor5/src/ui.js';function _0x1ee1(){const _0x8c5ab3=['items','insertButton','stopButton','Try\x20again','toUpperCase','insert','2mEuaPP','Insert\x20below','mainAction','15605QgFcjG','tryAgainButton','bindTemplate','ck-ai-form__toolbar','AI_','51268qqiJAU','_createButton','117XTOuzx','_CONTENT','isVisible','902888uwFECt','bind','1957990XgVAEl','label','2694825jVzBtd','Stop','ck-hidden','1872528EAKgPi','ck-button-action','241386VyOmWg','set','locale','REPLACE','replace','extendTemplate','addMany','replaceButton','1266lJFEHZ'];_0x1ee1=function(){return _0x8c5ab3;};return _0x1ee1();}function _0x2e7b(_0x263b48,_0x1b8205){const _0x1ee121=_0x1ee1();return _0x2e7b=function(_0x2e7b14,_0x47ae51){_0x2e7b14=_0x2e7b14-0xd4;let _0x38ee93=_0x1ee121[_0x2e7b14];return _0x38ee93;},_0x2e7b(_0x263b48,_0x1b8205);}import{getTranslation as _0x109b2b}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x548818(0xe5),'INSERT':_0x548818(0xef)};export default class at extends _0x5506d2{constructor(_0x8b0dbb){const _0x244174=_0x548818;super(_0x8b0dbb),this[_0x244174(0xe2)](_0x244174(0xd7),!0x1),this[_0x244174(0xe2)](_0x244174(0xf2),AIFormToolbarViewMainActionLabel[_0x244174(0xe4)]),this[_0x244174(0xe8)]=this[_0x244174(0xd4)]('',_0x244174(0xe0)),this[_0x244174(0xe8)][_0x244174(0xd9)](_0x244174(0xdb))['to'](this,_0x244174(0xf2),_0x228c7d=>_0x109b2b(_0x8b0dbb,_0x244174(0xf7)+_0x228c7d[_0x244174(0xee)]()+_0x244174(0xd6))),this[_0x244174(0xeb)]=this[_0x244174(0xd4)](_0x109b2b(_0x8b0dbb,_0x244174(0xf1))),this[_0x244174(0xf4)]=this[_0x244174(0xd4)](_0x109b2b(_0x8b0dbb,_0x244174(0xed))),this[_0x244174(0xec)]=this[_0x244174(0xd4)](_0x109b2b(_0x8b0dbb,_0x244174(0xdd)));const _0x557b79=this[_0x244174(0xf5)];this[_0x244174(0xe6)]({'attributes':{'class':[_0x244174(0xf6),_0x557b79['if'](_0x244174(0xd7),_0x244174(0xde),_0x26774a=>!_0x26774a)]}}),this[_0x244174(0xea)][_0x244174(0xe7)]([this[_0x244174(0xe8)],this[_0x244174(0xeb)],this[_0x244174(0xf4)],this[_0x244174(0xec)]]);}[_0x548818(0xd4)](_0x1c35df,_0xf3333d){const _0x5e1c10=_0x548818,_0x14cdad=new _0x1b0465(this[_0x5e1c10(0xe3)]);return _0x14cdad[_0x5e1c10(0xe2)]({'label':_0x1c35df,'class':_0xf3333d||'','isVisible':!0x0,'withText':!0x0}),_0x14cdad;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6d6616=_0x4947;(function(_0x2ccbd0,_0x228a3b){const _0x1af5e8=_0x4947,_0x6d1aeb=_0x2ccbd0();while(!![]){try{const _0x453a03=-parseInt(_0x1af5e8(0x1fa))/0x1*(-parseInt(_0x1af5e8(0x1fe))/0x2)+parseInt(_0x1af5e8(0x20a))/0x3+parseInt(_0x1af5e8(0x21d))/0x4+parseInt(_0x1af5e8(0x1f8))/0x5+-parseInt(_0x1af5e8(0x1e5))/0x6+-parseInt(_0x1af5e8(0x214))/0x7+-parseInt(_0x1af5e8(0x1fc))/0x8;if(_0x453a03===_0x228a3b)break;else _0x6d1aeb['push'](_0x6d1aeb['shift']());}catch(_0x463ba9){_0x6d1aeb['push'](_0x6d1aeb['shift']());}}}(_0x1450,0xc74d5));import{FocusTracker as _0x3e7425,KeystrokeHandler as _0x486c95}from'ckeditor5/src/utils.js';import{View as _0x4a8e5b,FocusCycler as _0x31ebdc,createLabeledTextarea as _0xf351a4}from'ckeditor5/src/ui.js';import _0x4bc0c6,{AIFormToolbarViewMainActionLabel as _0x434a4b}from'./aiformtoolbarview.js';import _0x1a5e36 from'./aiformcontentarea.js';function _0x4947(_0x12a3d3,_0x40a024){const _0x145015=_0x1450();return _0x4947=function(_0x4947a2,_0x318109){_0x4947a2=_0x4947a2-0x1d6;let _0x51ce69=_0x145015[_0x4947a2];return _0x51ce69;},_0x4947(_0x12a3d3,_0x40a024);}import _0x3b3cfd from'./aiformerrorview.js';import _0x4d58d6 from'./aiformpromptview.js';import _0x56f360 from'./aihistorylistview.js';import _0x254d1b from'./aihistorylistitemview.js';function _0x1450(){const _0x2c68b1=['Ask\x20AI\x20to\x20improve\x20generated\x20text','_promptHistory','label','setTemplate','focus','queryView','startProcessing','5424923ATCHyt','clear','stopProcessing','mainAction','trim','createCollection','insertContentBelow','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','finishProcessing','4561896QkCCNJ','insertButton','_focusables','toolbar','stopButton','_createPromptView','bindTo','delegate','focusLast','isProcessing','execute','search','tab','promptView','keystrokes','submit','fire','element','historyGroupView','replaceButton','replaceContent','focusTracker','reset','high','focusFirst','handleError','add','7933854wbrNxZ','fieldView','clearHistory','locale','shift\x20+\x20tab','chain','AI_ERROR_FAILED','tryAgainEvent','value','focusCycler','REPLACE','set','ck-ai-form','render','copyButtonView','ck-hidden','Empty\x20history','_createHistoryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','2395465tPmPKK','bindTemplate','384924geDjAS','div','7710696aThQuF','prompt','8ozoORZ','isVisible','listenTo','items','ck-ai-form-content','errorView','_createToolbar','contentArea','bind','submitPrompt','isError','text','2154639JHBkGx','isEnabled','tryAgainButton'];_0x1450=function(){return _0x2c68b1;};return _0x1450();}import _0x4f6d09 from'./prompthistory.js';import{getTranslation as _0x2b6759}from'../../utils/common-translations.js';import{escape as _0x199c7b}from'lodash-es';export default class k extends _0x4a8e5b{constructor(_0x432296,_0x3cacc0,_0x1a6759=''){const _0x32ed1d=_0x4947;super(_0x432296),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x20b),!0x0),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x226),!0x1),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x1fd),''),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x1ed),''),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x208),!0x1),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x217),_0x434a4b[_0x32ed1d(0x1ef)]),this[_0x32ed1d(0x20e)]=new _0x4f6d09(),this[_0x32ed1d(0x203)]=new _0x3b3cfd(_0x432296),this[_0x32ed1d(0x205)]=new _0x1a5e36(_0x432296,_0x1a6759),this[_0x32ed1d(0x205)][_0x32ed1d(0x206)](_0x32ed1d(0x226))['to'](this),this[_0x32ed1d(0x205)][_0x32ed1d(0x206)](_0x32ed1d(0x1ed))['to'](this),this[_0x32ed1d(0x220)]=this[_0x32ed1d(0x204)](),this[_0x32ed1d(0x220)][_0x32ed1d(0x206)](_0x32ed1d(0x217))['to'](this),this[_0x32ed1d(0x1d7)]=this[_0x32ed1d(0x222)](),this[_0x32ed1d(0x1df)]=new _0x3e7425(),this[_0x32ed1d(0x1d8)]=new _0x486c95(),this[_0x32ed1d(0x21f)]=this[_0x32ed1d(0x219)]([this[_0x32ed1d(0x205)],this[_0x32ed1d(0x205)][_0x32ed1d(0x1f3)],this[_0x32ed1d(0x220)],this[_0x32ed1d(0x1d7)]]),this[_0x32ed1d(0x1ee)]=new _0x31ebdc({'focusables':this[_0x32ed1d(0x21f)],'focusTracker':this[_0x32ed1d(0x1df)],'keystrokeHandler':this[_0x32ed1d(0x1d8)],'actions':{'focusPrevious':_0x32ed1d(0x1e9),'focusNext':_0x32ed1d(0x1d6)}}),this[_0x32ed1d(0x1ee)][_0x32ed1d(0x1ea)](this[_0x32ed1d(0x1d7)][_0x32ed1d(0x1ee)]),this[_0x32ed1d(0x1d7)][_0x32ed1d(0x212)][_0x32ed1d(0x1e6)][_0x32ed1d(0x206)](_0x32ed1d(0x1ed))['to'](this,_0x32ed1d(0x1fd));const _0x4b0d93=this[_0x32ed1d(0x1f9)];this[_0x32ed1d(0x210)]({'tag':_0x32ed1d(0x1fb),'attributes':{'class':['ck',_0x32ed1d(0x1f1),_0x3cacc0],'tabindex':'-1'},'children':[{'tag':_0x32ed1d(0x1fb),'attributes':{'class':['ck',_0x32ed1d(0x202)]},'children':[{'tag':_0x32ed1d(0x1fb),'attributes':{'class':[_0x4b0d93['if'](_0x32ed1d(0x208),_0x32ed1d(0x1f4),_0x5a1f17=>!_0x5a1f17)]},'children':[this[_0x32ed1d(0x203)]]},this[_0x32ed1d(0x205)],this[_0x32ed1d(0x220)],this[_0x32ed1d(0x1d7)]]}]});}[_0x6d6616(0x1f2)](){const _0x3c7f66=_0x6d6616;super[_0x3c7f66(0x1f2)](),this[_0x3c7f66(0x1df)][_0x3c7f66(0x1e4)](this[_0x3c7f66(0x205)][_0x3c7f66(0x1db)]),this[_0x3c7f66(0x1df)][_0x3c7f66(0x1e4)](this[_0x3c7f66(0x205)][_0x3c7f66(0x1f3)][_0x3c7f66(0x1db)]),this[_0x3c7f66(0x1df)][_0x3c7f66(0x1e4)](this[_0x3c7f66(0x220)][_0x3c7f66(0x1db)]),this[_0x3c7f66(0x1df)][_0x3c7f66(0x1e4)](this[_0x3c7f66(0x1d7)][_0x3c7f66(0x1db)]),this[_0x3c7f66(0x1d8)][_0x3c7f66(0x200)](this[_0x3c7f66(0x1db)]);}[_0x6d6616(0x211)](_0x2fde95=0x1){const _0x59ac89=_0x6d6616;-0x1===_0x2fde95?this[_0x59ac89(0x1ee)][_0x59ac89(0x225)]():this[_0x59ac89(0x1ee)][_0x59ac89(0x1e2)]();}[_0x6d6616(0x1e0)](){const _0x2b992d=_0x6d6616;this[_0x2b992d(0x1fd)]='',this[_0x2b992d(0x1ed)]='',this[_0x2b992d(0x208)]=!0x1,this[_0x2b992d(0x1d7)][_0x2b992d(0x1e0)](),this[_0x2b992d(0x205)][_0x2b992d(0x1ff)]=!0x1,this[_0x2b992d(0x220)][_0x2b992d(0x1ff)]=!0x1;}[_0x6d6616(0x222)](){const _0x21636e=_0x6d6616,_0x30c86a=this[_0x21636e(0x1e8)],_0x310e09=new _0x4d58d6(_0x30c86a,{'queryView':{'label':_0x2b6759(_0x30c86a,_0x21636e(0x1f7)),'creator':_0xf351a4,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2b6759(_0x30c86a,_0x21636e(0x1f5)),'secondary':_0x2b6759(_0x30c86a,_0x21636e(0x21b))}}},'filteredView':this[_0x21636e(0x1f6)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x310e09[_0x21636e(0x206)](_0x21636e(0x20b))['to'](this,_0x21636e(0x20b),this,_0x21636e(0x226),(_0x525803,_0x3a9201)=>_0x525803&&!_0x3a9201),this[_0x21636e(0x200)](_0x310e09,_0x21636e(0x1d9),(_0x10868d,_0x44c87b)=>{const _0x41460c=_0x21636e;this[_0x41460c(0x1fd)]=_0x44c87b;const _0x4e4f01=_0x199c7b(_0x44c87b);this[_0x41460c(0x1da)](_0x41460c(0x207),_0x4e4f01),_0x44c87b[_0x41460c(0x218)]()&&this[_0x41460c(0x20e)][_0x41460c(0x1e4)]({'prompt':_0x4e4f01},0x0);},{'priority':_0x21636e(0x1e1)}),_0x310e09;}[_0x6d6616(0x1f6)](){const _0x56ded5=_0x6d6616,_0x418456=new _0x56f360(this[_0x56ded5(0x1e8)]);return _0x418456[_0x56ded5(0x1dc)][_0x56ded5(0x201)][_0x56ded5(0x223)](this[_0x56ded5(0x20e)])['as'](_0x254d1b),_0x418456['on'](_0x56ded5(0x1e7),()=>{const _0x2f334f=_0x56ded5;this[_0x2f334f(0x20e)][_0x2f334f(0x215)](),this[_0x2f334f(0x1d7)][_0x2f334f(0x228)](''),this[_0x2f334f(0x1d7)][_0x2f334f(0x211)]();}),_0x418456;}[_0x6d6616(0x204)](){const _0x17935c=_0x6d6616,_0x25c3f7=new _0x4bc0c6(this[_0x17935c(0x1e8)]);return _0x25c3f7[_0x17935c(0x1dd)][_0x17935c(0x206)](_0x17935c(0x20b))['to'](this,_0x17935c(0x20b),this,_0x17935c(0x226),this,_0x17935c(0x1ed),(_0x3942a0,_0x55ddce,_0x3bb2f5)=>_0x3942a0&&!_0x55ddce&&!!_0x3bb2f5),_0x25c3f7[_0x17935c(0x1dd)][_0x17935c(0x224)](_0x17935c(0x227))['to'](this,_0x17935c(0x1de)),_0x25c3f7[_0x17935c(0x21e)][_0x17935c(0x206)](_0x17935c(0x20b))['to'](this,_0x17935c(0x20b),this,_0x17935c(0x226),this,_0x17935c(0x1ed),(_0x344666,_0x22a9cb,_0x591011)=>_0x344666&&!_0x22a9cb&&!!_0x591011),_0x25c3f7[_0x17935c(0x21e)][_0x17935c(0x224)](_0x17935c(0x227))['to'](this,_0x17935c(0x21a)),_0x25c3f7[_0x17935c(0x20c)][_0x17935c(0x206)](_0x17935c(0x20b))['to'](this,_0x17935c(0x20b),this,_0x17935c(0x226),(_0x2b157,_0x27cf97)=>_0x2b157&&!_0x27cf97),_0x25c3f7[_0x17935c(0x20c)][_0x17935c(0x224)](_0x17935c(0x227))['to'](this,_0x17935c(0x1ec)),_0x25c3f7[_0x17935c(0x221)][_0x17935c(0x206)](_0x17935c(0x20b))['to'](this,_0x17935c(0x226)),_0x25c3f7[_0x17935c(0x221)][_0x17935c(0x224)](_0x17935c(0x227))['to'](this,_0x17935c(0x216)),_0x25c3f7;}[_0x6d6616(0x213)](){const _0x194cdf=_0x6d6616;this[_0x194cdf(0x1ed)]='',this[_0x194cdf(0x208)]=!0x1,this[_0x194cdf(0x226)]=!0x0,this[_0x194cdf(0x205)][_0x194cdf(0x1ff)]=!0x0,this[_0x194cdf(0x220)][_0x194cdf(0x1ff)]=!0x0,this[_0x194cdf(0x205)][_0x194cdf(0x211)]();}[_0x6d6616(0x21c)](){const _0x225f05=_0x6d6616,_0xa4fc00=this[_0x225f05(0x1e8)];this[_0x225f05(0x226)]=!0x1,this[_0x225f05(0x1fd)]='',this[_0x225f05(0x1d7)][_0x225f05(0x1e0)](),this[_0x225f05(0x1ed)]&&(this[_0x225f05(0x1d7)][_0x225f05(0x212)][_0x225f05(0x20f)]=_0x2b6759(_0xa4fc00,_0x225f05(0x20d)));}[_0x6d6616(0x1e3)](_0x1776af){const _0x41a517=_0x6d6616,_0x100ce3=this[_0x41a517(0x1e8)];this[_0x41a517(0x21c)](),this[_0x41a517(0x208)]=!0x0,this[_0x41a517(0x203)][_0x41a517(0x209)]=_0x1776af||_0x2b6759(_0x100ce3,_0x41a517(0x1eb)),this[_0x41a517(0x1ed)]||(this[_0x41a517(0x205)][_0x41a517(0x1ff)]=!0x1);}}
23
+ function _0xc559(_0x58484f,_0x2c2ab5){const _0x422247=_0x4222();return _0xc559=function(_0xc559ba,_0x3a4cc3){_0xc559ba=_0xc559ba-0xb0;let _0xfbebf=_0x422247[_0xc559ba];return _0xfbebf;},_0xc559(_0x58484f,_0x2c2ab5);}const _0x36e54c=_0xc559;(function(_0x212786,_0x9e058){const _0x170fe6=_0xc559,_0x1cf277=_0x212786();while(!![]){try{const _0x494b6a=parseInt(_0x170fe6(0xb5))/0x1+parseInt(_0x170fe6(0xe7))/0x2+parseInt(_0x170fe6(0xf1))/0x3+-parseInt(_0x170fe6(0xf9))/0x4+-parseInt(_0x170fe6(0xe5))/0x5+parseInt(_0x170fe6(0xda))/0x6*(parseInt(_0x170fe6(0xce))/0x7)+-parseInt(_0x170fe6(0xd6))/0x8*(parseInt(_0x170fe6(0xef))/0x9);if(_0x494b6a===_0x9e058)break;else _0x1cf277['push'](_0x1cf277['shift']());}catch(_0x47d68e){_0x1cf277['push'](_0x1cf277['shift']());}}}(_0x4222,0x3f8dd));function _0x4222(){const _0x1804e8=['670276VRSsgq','isVisible','isProcessing','historyGroupView','add','toolbar','bindTo','_createPromptView','1026zsXsIw','set','1432281csaEDP','trim','clear','mainAction','element','isError','delegate','stopButton','985700VMSgXc','queryView','REPLACE','isEnabled','_promptHistory','text','replaceContent','render','finishProcessing','contentArea','focusCycler','AI_ERROR_FAILED','errorView','focusTracker','items','submitPrompt','265828EfGYoK','replaceButton','_createHistoryView','submit','ck-ai-form-content','clearHistory','focusLast','focus','reset','Ask\x20AI\x20to\x20improve\x20generated\x20text','stopProcessing','copyButtonView','bindTemplate','handleError','div','startProcessing','createCollection','execute','high','promptView','insertButton','keystrokes','prompt','search','label','24605PfwMhL','fire','focusFirst','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainEvent','ck-ai-form','value','_focusables','45848BMEhlf','fieldView','listenTo','setTemplate','144fsnmSk','Empty\x20history','chain','tab','shift\x20+\x20tab','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_createToolbar','bind','tryAgainButton','ck-hidden','locale','13385XeUxcJ','insertContentBelow'];_0x4222=function(){return _0x1804e8;};return _0x4222();}import{FocusTracker as _0x49c4a0,KeystrokeHandler as _0x815781}from'ckeditor5/src/utils.js';import{View as _0x22919c,FocusCycler as _0x25f21a,createLabeledTextarea as _0x3d39d0}from'ckeditor5/src/ui.js';import _0x44af95,{AIFormToolbarViewMainActionLabel as _0x391397}from'./aiformtoolbarview.js';import _0x2671f5 from'./aiformcontentarea.js';import _0x1ece83 from'./aiformerrorview.js';import _0x4cdb85 from'./aiformpromptview.js';import _0xdd475d from'./aihistorylistview.js';import _0x50a4db from'./aihistorylistitemview.js';import _0x1da6d0 from'./prompthistory.js';import{getTranslation as _0x2ce4de}from'../../utils/common-translations.js';import{escape as _0x349eb4}from'lodash-es';export default class k extends _0x22919c{constructor(_0x16e57e,_0x27cad4,_0x5018bd=''){const _0x3228f7=_0xc559;super(_0x16e57e),this[_0x3228f7(0xf0)](_0x3228f7(0xfc),!0x0),this[_0x3228f7(0xf0)](_0x3228f7(0xe9),!0x1),this[_0x3228f7(0xf0)](_0x3228f7(0xcb),''),this[_0x3228f7(0xf0)](_0x3228f7(0xd4),''),this[_0x3228f7(0xf0)](_0x3228f7(0xf6),!0x1),this[_0x3228f7(0xf0)](_0x3228f7(0xf4),_0x391397[_0x3228f7(0xfb)]),this[_0x3228f7(0xfd)]=new _0x1da6d0(),this[_0x3228f7(0xb1)]=new _0x1ece83(_0x16e57e),this[_0x3228f7(0x102)]=new _0x2671f5(_0x16e57e,_0x5018bd),this[_0x3228f7(0x102)][_0x3228f7(0xe1)](_0x3228f7(0xe9))['to'](this),this[_0x3228f7(0x102)][_0x3228f7(0xe1)](_0x3228f7(0xd4))['to'](this),this[_0x3228f7(0xec)]=this[_0x3228f7(0xe0)](),this[_0x3228f7(0xec)][_0x3228f7(0xe1)](_0x3228f7(0xf4))['to'](this),this[_0x3228f7(0xc8)]=this[_0x3228f7(0xee)](),this[_0x3228f7(0xb2)]=new _0x49c4a0(),this[_0x3228f7(0xca)]=new _0x815781(),this[_0x3228f7(0xd5)]=this[_0x3228f7(0xc5)]([this[_0x3228f7(0x102)],this[_0x3228f7(0x102)][_0x3228f7(0xc0)],this[_0x3228f7(0xec)],this[_0x3228f7(0xc8)]]),this[_0x3228f7(0x103)]=new _0x25f21a({'focusables':this[_0x3228f7(0xd5)],'focusTracker':this[_0x3228f7(0xb2)],'keystrokeHandler':this[_0x3228f7(0xca)],'actions':{'focusPrevious':_0x3228f7(0xde),'focusNext':_0x3228f7(0xdd)}}),this[_0x3228f7(0x103)][_0x3228f7(0xdc)](this[_0x3228f7(0xc8)][_0x3228f7(0x103)]),this[_0x3228f7(0xc8)][_0x3228f7(0xfa)][_0x3228f7(0xd7)][_0x3228f7(0xe1)](_0x3228f7(0xd4))['to'](this,_0x3228f7(0xcb));const _0x3d52c5=this[_0x3228f7(0xc1)];this[_0x3228f7(0xd9)]({'tag':_0x3228f7(0xc3),'attributes':{'class':['ck',_0x3228f7(0xd3),_0x27cad4],'tabindex':'-1'},'children':[{'tag':_0x3228f7(0xc3),'attributes':{'class':['ck',_0x3228f7(0xb9)]},'children':[{'tag':_0x3228f7(0xc3),'attributes':{'class':[_0x3d52c5['if'](_0x3228f7(0xf6),_0x3228f7(0xe3),_0xf7779b=>!_0xf7779b)]},'children':[this[_0x3228f7(0xb1)]]},this[_0x3228f7(0x102)],this[_0x3228f7(0xec)],this[_0x3228f7(0xc8)]]}]});}[_0x36e54c(0x100)](){const _0x399133=_0x36e54c;super[_0x399133(0x100)](),this[_0x399133(0xb2)][_0x399133(0xeb)](this[_0x399133(0x102)][_0x399133(0xf5)]),this[_0x399133(0xb2)][_0x399133(0xeb)](this[_0x399133(0x102)][_0x399133(0xc0)][_0x399133(0xf5)]),this[_0x399133(0xb2)][_0x399133(0xeb)](this[_0x399133(0xec)][_0x399133(0xf5)]),this[_0x399133(0xb2)][_0x399133(0xeb)](this[_0x399133(0xc8)][_0x399133(0xf5)]),this[_0x399133(0xca)][_0x399133(0xd8)](this[_0x399133(0xf5)]);}[_0x36e54c(0xbc)](_0x4c45d1=0x1){const _0x25160f=_0x36e54c;-0x1===_0x4c45d1?this[_0x25160f(0x103)][_0x25160f(0xbb)]():this[_0x25160f(0x103)][_0x25160f(0xd0)]();}[_0x36e54c(0xbd)](){const _0x419c21=_0x36e54c;this[_0x419c21(0xcb)]='',this[_0x419c21(0xd4)]='',this[_0x419c21(0xf6)]=!0x1,this[_0x419c21(0xc8)][_0x419c21(0xbd)](),this[_0x419c21(0x102)][_0x419c21(0xe8)]=!0x1,this[_0x419c21(0xec)][_0x419c21(0xe8)]=!0x1;}[_0x36e54c(0xee)](){const _0x26cd5b=_0x36e54c,_0x10f1e4=this[_0x26cd5b(0xe4)],_0x2e7cbd=new _0x4cdb85(_0x10f1e4,{'queryView':{'label':_0x2ce4de(_0x10f1e4,_0x26cd5b(0xd1)),'creator':_0x3d39d0,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2ce4de(_0x10f1e4,_0x26cd5b(0xdb)),'secondary':_0x2ce4de(_0x10f1e4,_0x26cd5b(0xdf))}}},'filteredView':this[_0x26cd5b(0xb7)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2e7cbd[_0x26cd5b(0xe1)](_0x26cd5b(0xfc))['to'](this,_0x26cd5b(0xfc),this,_0x26cd5b(0xe9),(_0x2bd518,_0x7bf6a3)=>_0x2bd518&&!_0x7bf6a3),this[_0x26cd5b(0xd8)](_0x2e7cbd,_0x26cd5b(0xb8),(_0x5f0ed0,_0x144a42)=>{const _0x126738=_0x26cd5b;this[_0x126738(0xcb)]=_0x144a42;const _0x1f4fcf=_0x349eb4(_0x144a42);this[_0x126738(0xcf)](_0x126738(0xb4),_0x1f4fcf),_0x144a42[_0x126738(0xf2)]()&&this[_0x126738(0xfd)][_0x126738(0xeb)]({'prompt':_0x1f4fcf},0x0);},{'priority':_0x26cd5b(0xc7)}),_0x2e7cbd;}[_0x36e54c(0xb7)](){const _0x3044ee=_0x36e54c,_0x1aa9cc=new _0xdd475d(this[_0x3044ee(0xe4)]);return _0x1aa9cc[_0x3044ee(0xea)][_0x3044ee(0xb3)][_0x3044ee(0xed)](this[_0x3044ee(0xfd)])['as'](_0x50a4db),_0x1aa9cc['on'](_0x3044ee(0xba),()=>{const _0x500e5a=_0x3044ee;this[_0x500e5a(0xfd)][_0x500e5a(0xf3)](),this[_0x500e5a(0xc8)][_0x500e5a(0xcc)](''),this[_0x500e5a(0xc8)][_0x500e5a(0xbc)]();}),_0x1aa9cc;}[_0x36e54c(0xe0)](){const _0x555957=_0x36e54c,_0xede9f9=new _0x44af95(this[_0x555957(0xe4)]);return _0xede9f9[_0x555957(0xb6)][_0x555957(0xe1)](_0x555957(0xfc))['to'](this,_0x555957(0xfc),this,_0x555957(0xe9),this,_0x555957(0xd4),(_0x4ba7b4,_0x29d4b4,_0x11a97e)=>_0x4ba7b4&&!_0x29d4b4&&!!_0x11a97e),_0xede9f9[_0x555957(0xb6)][_0x555957(0xf7)](_0x555957(0xc6))['to'](this,_0x555957(0xff)),_0xede9f9[_0x555957(0xc9)][_0x555957(0xe1)](_0x555957(0xfc))['to'](this,_0x555957(0xfc),this,_0x555957(0xe9),this,_0x555957(0xd4),(_0x375cc3,_0x46dd7d,_0x4b1443)=>_0x375cc3&&!_0x46dd7d&&!!_0x4b1443),_0xede9f9[_0x555957(0xc9)][_0x555957(0xf7)](_0x555957(0xc6))['to'](this,_0x555957(0xe6)),_0xede9f9[_0x555957(0xe2)][_0x555957(0xe1)](_0x555957(0xfc))['to'](this,_0x555957(0xfc),this,_0x555957(0xe9),(_0x728148,_0x142a3e)=>_0x728148&&!_0x142a3e),_0xede9f9[_0x555957(0xe2)][_0x555957(0xf7)](_0x555957(0xc6))['to'](this,_0x555957(0xd2)),_0xede9f9[_0x555957(0xf8)][_0x555957(0xe1)](_0x555957(0xfc))['to'](this,_0x555957(0xe9)),_0xede9f9[_0x555957(0xf8)][_0x555957(0xf7)](_0x555957(0xc6))['to'](this,_0x555957(0xbf)),_0xede9f9;}[_0x36e54c(0xc4)](){const _0x536aa6=_0x36e54c;this[_0x536aa6(0xd4)]='',this[_0x536aa6(0xf6)]=!0x1,this[_0x536aa6(0xe9)]=!0x0,this[_0x536aa6(0x102)][_0x536aa6(0xe8)]=!0x0,this[_0x536aa6(0xec)][_0x536aa6(0xe8)]=!0x0,this[_0x536aa6(0x102)][_0x536aa6(0xbc)]();}[_0x36e54c(0x101)](){const _0x2bd134=_0x36e54c,_0x996178=this[_0x2bd134(0xe4)];this[_0x2bd134(0xe9)]=!0x1,this[_0x2bd134(0xcb)]='',this[_0x2bd134(0xc8)][_0x2bd134(0xbd)](),this[_0x2bd134(0xd4)]&&(this[_0x2bd134(0xc8)][_0x2bd134(0xfa)][_0x2bd134(0xcd)]=_0x2ce4de(_0x996178,_0x2bd134(0xbe)));}[_0x36e54c(0xc2)](_0x4b1a29){const _0x1c1cae=_0x36e54c,_0x12f60e=this[_0x1c1cae(0xe4)];this[_0x1c1cae(0x101)](),this[_0x1c1cae(0xf6)]=!0x0,this[_0x1c1cae(0xb1)][_0x1c1cae(0xfe)]=_0x4b1a29||_0x2ce4de(_0x12f60e,_0x1c1cae(0xb0)),this[_0x1c1cae(0xd4)]||(this[_0x1c1cae(0x102)][_0x1c1cae(0xe8)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1ec5f5,_0x55d140){const _0x228d78=_0x59d2,_0x25c548=_0x1ec5f5();while(!![]){try{const _0x502b30=parseInt(_0x228d78(0x173))/0x1+parseInt(_0x228d78(0x172))/0x2+-parseInt(_0x228d78(0x171))/0x3+parseInt(_0x228d78(0x16c))/0x4+-parseInt(_0x228d78(0x16d))/0x5+-parseInt(_0x228d78(0x174))/0x6*(parseInt(_0x228d78(0x16f))/0x7)+parseInt(_0x228d78(0x169))/0x8;if(_0x502b30===_0x55d140)break;else _0x25c548['push'](_0x25c548['shift']());}catch(_0x10dd74){_0x25c548['push'](_0x25c548['shift']());}}}(_0x32f7,0xd215c));function _0x59d2(_0x587968,_0x4205ce){const _0x32f7ab=_0x32f7();return _0x59d2=function(_0x59d253,_0x282680){_0x59d253=_0x59d253-0x166;let _0x2a9ce2=_0x32f7ab[_0x59d253];return _0x2a9ce2;},_0x59d2(_0x587968,_0x4205ce);}import{ListItemView as _0x39a383,ButtonView as _0xd89c9,ButtonLabelView as _0x3c902a}from'ckeditor5/src/ui.js';import{unescape as _0x566680}from'lodash-es';function _0x32f7(){const _0x1fcc91=['execute','fire','set','18619248BGMTlK','locale','children','104856pNhhpF','5901725TogYiw','prompt','7GLTxHI','add','507342GyqnhW','987920YMyLDy','604993JlawqW','7455636rVlfIT'];_0x32f7=function(){return _0x1fcc91;};return _0x32f7();}export default class hs extends _0x39a383{constructor(_0x59b187){const _0xb121a6=_0x59d2;super();const _0x492704=new _0x3c902a(),_0x4c8aff=new _0xd89c9(this[_0xb121a6(0x16a)],_0x492704);this[_0xb121a6(0x16b)][_0xb121a6(0x170)](_0x4c8aff),_0x4c8aff[_0xb121a6(0x168)]({'label':_0x59b187[_0xb121a6(0x16e)],'withText':!0x0}),_0x4c8aff['on'](_0xb121a6(0x166),()=>{const _0x9b74f6=_0xb121a6;this[_0x9b74f6(0x167)](_0x9b74f6(0x166),{'value':_0x566680(_0x59b187[_0x9b74f6(0x16e)])});});}}
23
+ function _0x5006(_0xbaef88,_0x5043be){const _0x3928dd=_0x3928();return _0x5006=function(_0x5006aa,_0x1bfbcf){_0x5006aa=_0x5006aa-0xf9;let _0x10afcf=_0x3928dd[_0x5006aa];return _0x10afcf;},_0x5006(_0xbaef88,_0x5043be);}function _0x3928(){const _0x452da9=['20iwjZaI','set','locale','prompt','fire','add','102xrsXeN','276584OEEZXv','2328399gvTyms','320104XLnfWR','179814LWvGqS','360306wKlVpw','children','execute','4691PMALlt','1369676lonABj'];_0x3928=function(){return _0x452da9;};return _0x3928();}(function(_0x4e3379,_0x31563a){const _0x4f68ac=_0x5006,_0x56a853=_0x4e3379();while(!![]){try{const _0x1c5b21=-parseInt(_0x4f68ac(0x103))/0x1*(parseInt(_0x4f68ac(0xfb))/0x2)+parseInt(_0x4f68ac(0x100))/0x3+parseInt(_0x4f68ac(0xfe))/0x4+-parseInt(_0x4f68ac(0x105))/0x5*(parseInt(_0x4f68ac(0xff))/0x6)+parseInt(_0x4f68ac(0x104))/0x7+-parseInt(_0x4f68ac(0xfc))/0x8+parseInt(_0x4f68ac(0xfd))/0x9;if(_0x1c5b21===_0x31563a)break;else _0x56a853['push'](_0x56a853['shift']());}catch(_0x177ee6){_0x56a853['push'](_0x56a853['shift']());}}}(_0x3928,0x3fad1));import{ListItemView as _0x148afe,ButtonView as _0x577851,ButtonLabelView as _0x2a1446}from'ckeditor5/src/ui.js';import{unescape as _0x506c5d}from'lodash-es';export default class hs extends _0x148afe{constructor(_0x3b3a7c){const _0x3b7bac=_0x5006;super();const _0x1325bd=new _0x2a1446(),_0x55cd3d=new _0x577851(this[_0x3b7bac(0x107)],_0x1325bd);this[_0x3b7bac(0x101)][_0x3b7bac(0xfa)](_0x55cd3d),_0x55cd3d[_0x3b7bac(0x106)]({'label':_0x3b3a7c[_0x3b7bac(0x108)],'withText':!0x0}),_0x55cd3d['on'](_0x3b7bac(0x102),()=>{const _0x2c60f5=_0x3b7bac;this[_0x2c60f5(0xf9)](_0x2c60f5(0x102),{'value':_0x506c5d(_0x3b3a7c[_0x2c60f5(0x108)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1950(){const _0x14239b=['11dFHrQz','clearHistoryButton','1248172IdbUhF','Clear','_createClearHistoryButton','length','5342130BHHqNb','historyGroupView','136948ZQQAjT','fire','3746771XitxVN','add','clearHistory','filter','760ZcknQp','68gCrvty','Prompt\x20history','set','children','label','18870tucNuy','605cygnDI','52083SHgnvp','54963VSojRZ','locale','items','delegate','execute'];_0x1950=function(){return _0x14239b;};return _0x1950();}const _0x2479ba=_0x5ba4;(function(_0x65f371,_0x2f80c7){const _0x17a24e=_0x5ba4,_0x5cafb9=_0x65f371();while(!![]){try{const _0x28c58b=parseInt(_0x17a24e(0xc9))/0x1+parseInt(_0x17a24e(0xc3))/0x2+-parseInt(_0x17a24e(0xbb))/0x3*(parseInt(_0x17a24e(0xb4))/0x4)+parseInt(_0x17a24e(0xba))/0x5*(parseInt(_0x17a24e(0xb9))/0x6)+-parseInt(_0x17a24e(0xcb))/0x7+-parseInt(_0x17a24e(0xcf))/0x8*(-parseInt(_0x17a24e(0xbc))/0x9)+-parseInt(_0x17a24e(0xc7))/0xa*(parseInt(_0x17a24e(0xc1))/0xb);if(_0x28c58b===_0x2f80c7)break;else _0x5cafb9['push'](_0x5cafb9['shift']());}catch(_0x33316d){_0x5cafb9['push'](_0x5cafb9['shift']());}}}(_0x1950,0x57315));function _0x5ba4(_0xc0c624,_0x3314e2){const _0x1950e1=_0x1950();return _0x5ba4=function(_0x5ba43a,_0x2b1e5a){_0x5ba43a=_0x5ba43a-0xb4;let _0x473f65=_0x1950e1[_0x5ba43a];return _0x473f65;},_0x5ba4(_0xc0c624,_0x3314e2);}import{ListView as _0x218876,ListItemGroupView as _0x17aa28,ButtonView as _0x5921d7}from'ckeditor5/src/ui.js';import{getTranslation as _0x3f08f9}from'../../utils/common-translations.js';export default class rs extends _0x218876{constructor(_0x43d3ed){const _0x3590bf=_0x5ba4;super(_0x43d3ed),this[_0x3590bf(0xc2)]=this[_0x3590bf(0xc5)](),this[_0x3590bf(0xc8)]=new _0x17aa28(),this[_0x3590bf(0xc8)][_0x3590bf(0xb7)][_0x3590bf(0xcc)](this[_0x3590bf(0xc2)],0x1),this[_0x3590bf(0xc8)][_0x3590bf(0xb8)]=_0x3f08f9(_0x43d3ed,_0x3590bf(0xb5)),this[_0x3590bf(0xc8)][_0x3590bf(0xbe)][_0x3590bf(0xbf)](_0x3590bf(0xc0))['to'](this),this[_0x3590bf(0xbe)][_0x3590bf(0xcc)](this[_0x3590bf(0xc8)]);}[_0x2479ba(0xce)](){const _0x40078a=_0x2479ba;let _0x2f6c06=0x0;for(const _0x36acf1 of this[_0x40078a(0xbe)])_0x2f6c06+=_0x36acf1[_0x40078a(0xbe)][_0x40078a(0xc6)];return{'resultsCount':_0x2f6c06,'totalItemsCount':_0x2f6c06};}[_0x2479ba(0xc5)](){const _0x2cb8a8=_0x2479ba,_0x18e6e3=this[_0x2cb8a8(0xbd)],_0x12b0a3=new _0x5921d7(this[_0x2cb8a8(0xbd)]);return _0x12b0a3[_0x2cb8a8(0xb6)]({'label':'('+_0x3f08f9(_0x18e6e3,_0x2cb8a8(0xc4))+')','withText':!0x0}),_0x12b0a3['on'](_0x2cb8a8(0xc0),()=>this[_0x2cb8a8(0xca)](_0x2cb8a8(0xcd))),_0x12b0a3;}}
23
+ function _0xc896(){const _0x3607c4=['set','label','delegate','Prompt\x20history','1796934pvOITk','867182oUCGFk','2224DAFpxx','add','historyGroupView','fire','locale','65659zpxsQd','execute','length','3984603kRAIVB','7017381voCRwP','3223596owwGea','2TOPfFV','filter','10QtiBVR','children','clearHistoryButton','2490wgxZKg','clearHistory','items','_createClearHistoryButton','19683GOLLvu','Clear'];_0xc896=function(){return _0x3607c4;};return _0xc896();}const _0x42ce33=_0x513d;function _0x513d(_0x1b47fe,_0x5605b1){const _0xc89695=_0xc896();return _0x513d=function(_0x513ded,_0x274fb1){_0x513ded=_0x513ded-0x1c2;let _0x7f518b=_0xc89695[_0x513ded];return _0x7f518b;},_0x513d(_0x1b47fe,_0x5605b1);}(function(_0x181b16,_0x4e65f5){const _0x105b26=_0x513d,_0x10af16=_0x181b16();while(!![]){try{const _0x4b1255=parseInt(_0x105b26(0x1d9))/0x1+-parseInt(_0x105b26(0x1c9))/0x2*(parseInt(_0x105b26(0x1c6))/0x3)+parseInt(_0x105b26(0x1c8))/0x4+-parseInt(_0x105b26(0x1cb))/0x5*(-parseInt(_0x105b26(0x1d8))/0x6)+-parseInt(_0x105b26(0x1c7))/0x7+parseInt(_0x105b26(0x1da))/0x8*(-parseInt(_0x105b26(0x1d2))/0x9)+-parseInt(_0x105b26(0x1ce))/0xa*(-parseInt(_0x105b26(0x1c3))/0xb);if(_0x4b1255===_0x4e65f5)break;else _0x10af16['push'](_0x10af16['shift']());}catch(_0x132175){_0x10af16['push'](_0x10af16['shift']());}}}(_0xc896,0xc81d6));import{ListView as _0x359f5f,ListItemGroupView as _0x4fb3cc,ButtonView as _0x1e61b4}from'ckeditor5/src/ui.js';import{getTranslation as _0x509f16}from'../../utils/common-translations.js';export default class rs extends _0x359f5f{constructor(_0x509493){const _0x5e2c6f=_0x513d;super(_0x509493),this[_0x5e2c6f(0x1cd)]=this[_0x5e2c6f(0x1d1)](),this[_0x5e2c6f(0x1dc)]=new _0x4fb3cc(),this[_0x5e2c6f(0x1dc)][_0x5e2c6f(0x1cc)][_0x5e2c6f(0x1db)](this[_0x5e2c6f(0x1cd)],0x1),this[_0x5e2c6f(0x1dc)][_0x5e2c6f(0x1d5)]=_0x509f16(_0x509493,_0x5e2c6f(0x1d7)),this[_0x5e2c6f(0x1dc)][_0x5e2c6f(0x1d0)][_0x5e2c6f(0x1d6)](_0x5e2c6f(0x1c4))['to'](this),this[_0x5e2c6f(0x1d0)][_0x5e2c6f(0x1db)](this[_0x5e2c6f(0x1dc)]);}[_0x42ce33(0x1ca)](){const _0x1fdd42=_0x42ce33;let _0x5b532b=0x0;for(const _0x173b9b of this[_0x1fdd42(0x1d0)])_0x5b532b+=_0x173b9b[_0x1fdd42(0x1d0)][_0x1fdd42(0x1c5)];return{'resultsCount':_0x5b532b,'totalItemsCount':_0x5b532b};}[_0x42ce33(0x1d1)](){const _0x1ff1fa=_0x42ce33,_0x2f6456=this[_0x1ff1fa(0x1c2)],_0x441985=new _0x1e61b4(this[_0x1ff1fa(0x1c2)]);return _0x441985[_0x1ff1fa(0x1d4)]({'label':'('+_0x509f16(_0x2f6456,_0x1ff1fa(0x1d3))+')','withText':!0x0}),_0x441985['on'](_0x1ff1fa(0x1c4),()=>this[_0x1ff1fa(0x1dd)](_0x1ff1fa(0x1cf))),_0x441985;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2f05(_0x5e9a52,_0x258887){const _0x2a084f=_0x2a08();return _0x2f05=function(_0x2f051a,_0xb16fe1){_0x2f051a=_0x2f051a-0x88;let _0x429179=_0x2a084f[_0x2f051a];return _0x429179;},_0x2f05(_0x5e9a52,_0x258887);}const _0x1d551b=_0x2f05;(function(_0x5d6997,_0x476f6c){const _0x52c257=_0x2f05,_0x5049a=_0x5d6997();while(!![]){try{const _0x2f2862=-parseInt(_0x52c257(0x98))/0x1*(-parseInt(_0x52c257(0x8c))/0x2)+parseInt(_0x52c257(0x9d))/0x3*(-parseInt(_0x52c257(0x91))/0x4)+parseInt(_0x52c257(0x90))/0x5*(-parseInt(_0x52c257(0x9f))/0x6)+-parseInt(_0x52c257(0x94))/0x7+-parseInt(_0x52c257(0x9e))/0x8+parseInt(_0x52c257(0x93))/0x9*(-parseInt(_0x52c257(0xa3))/0xa)+-parseInt(_0x52c257(0x9a))/0xb*(-parseInt(_0x52c257(0x89))/0xc);if(_0x2f2862===_0x476f6c)break;else _0x5049a['push'](_0x5049a['shift']());}catch(_0x419d41){_0x5049a['push'](_0x5049a['shift']());}}}(_0x2a08,0x86ea1));import{Collection as _0x380134}from'ckeditor5/src/utils.js';const cs=_0x1d551b(0xa1);function _0x2a08(){const _0x3f31d3=['stringify','prompt','550tXhjFm','4MdPbNT','setItem','135027aAfWMC','6658505skpBxp','map','toLowerCase','trim','695419FQXkPm','parse','11doIfIR','addMany','add','997143lebYve','7434792lVsLEA','40164ldPSbS','_loadFromSessionStorage','CKEditor/AIFormView/PromptHistory','getItem','640LwWjBl','remove','45200004zjgHxk','last','length','2HamHbY','_saveToSessionStorage'];_0x2a08=function(){return _0x3f31d3;};return _0x2a08();}export default class os extends _0x380134{constructor(){const _0x4cb331=_0x1d551b;super(),this[_0x4cb331(0xa0)](),this['on'](_0x4cb331(0x9c),(_0x49f142,_0x50e68e)=>{const _0x7e2940=_0x4cb331,_0x130a31=Ss(_0x50e68e[_0x7e2940(0x8f)]);for(const _0x2f94ac of this)if(_0x2f94ac!=_0x50e68e&&Ss(_0x2f94ac[_0x7e2940(0x8f)])===_0x130a31){this[_0x7e2940(0x88)](_0x2f94ac);break;}this[_0x7e2940(0x8b)]>0x14&&this[_0x7e2940(0x88)](this[_0x7e2940(0x8a)]),this[_0x7e2940(0x8d)]();}),this['on'](_0x4cb331(0x88),()=>{const _0x4721ee=_0x4cb331;this[_0x4721ee(0x8d)]();});}[_0x1d551b(0xa0)](){const _0x42f789=_0x1d551b,_0x1fdc53=sessionStorage[_0x42f789(0xa2)](cs)||'[]';this[_0x42f789(0x9b)](JSON[_0x42f789(0x99)](_0x1fdc53));}[_0x1d551b(0x8d)](){const _0x50bbf5=_0x1d551b;sessionStorage[_0x50bbf5(0x92)](cs,JSON[_0x50bbf5(0x8e)](this[_0x50bbf5(0x95)](_0x4d2d9e=>_0x4d2d9e)));}}function Ss(_0x743db9){const _0xf5597a=_0x1d551b;return _0x743db9[_0xf5597a(0x96)]()[_0xf5597a(0x97)]();}
23
+ const _0x588e92=_0x4363;function _0x4575(){const _0x251600=['setItem','toLowerCase','CKEditor/AIFormView/PromptHistory','5183040HvtymW','_saveToSessionStorage','stringify','1460812eFempq','length','addMany','trim','24pOmiea','last','parse','prompt','2654388FEJmJT','add','map','getItem','241875TseKWl','7nkzaHg','10mSsskt','remove','22965975WpLaTn','8156504HpksGA','_loadFromSessionStorage','18926yptYXq'];_0x4575=function(){return _0x251600;};return _0x4575();}(function(_0x352950,_0x57c034){const _0x32dc41=_0x4363,_0x1980c1=_0x352950();while(!![]){try{const _0x3358d3=parseInt(_0x32dc41(0x8c))/0x1+parseInt(_0x32dc41(0x93))/0x2*(-parseInt(_0x32dc41(0x9e))/0x3)+parseInt(_0x32dc41(0x9a))/0x4+-parseInt(_0x32dc41(0x97))/0x5+-parseInt(_0x32dc41(0x88))/0x6+-parseInt(_0x32dc41(0x8d))/0x7*(parseInt(_0x32dc41(0x91))/0x8)+parseInt(_0x32dc41(0x90))/0x9*(parseInt(_0x32dc41(0x8e))/0xa);if(_0x3358d3===_0x57c034)break;else _0x1980c1['push'](_0x1980c1['shift']());}catch(_0x5bdb55){_0x1980c1['push'](_0x1980c1['shift']());}}}(_0x4575,0x8eb84));import{Collection as _0x144dfc}from'ckeditor5/src/utils.js';const cs=_0x588e92(0x96);export default class os extends _0x144dfc{constructor(){const _0x490dfd=_0x588e92;super(),this[_0x490dfd(0x92)](),this['on'](_0x490dfd(0x89),(_0x6f71a2,_0x313773)=>{const _0x5833eb=_0x490dfd,_0x4923ff=Ss(_0x313773[_0x5833eb(0x87)]);for(const _0x3d330c of this)if(_0x3d330c!=_0x313773&&Ss(_0x3d330c[_0x5833eb(0x87)])===_0x4923ff){this[_0x5833eb(0x8f)](_0x3d330c);break;}this[_0x5833eb(0x9b)]>0x14&&this[_0x5833eb(0x8f)](this[_0x5833eb(0x9f)]),this[_0x5833eb(0x98)]();}),this['on'](_0x490dfd(0x8f),()=>{const _0x1c39fa=_0x490dfd;this[_0x1c39fa(0x98)]();});}[_0x588e92(0x92)](){const _0x1c357a=_0x588e92,_0x225a34=sessionStorage[_0x1c357a(0x8b)](cs)||'[]';this[_0x1c357a(0x9c)](JSON[_0x1c357a(0xa0)](_0x225a34));}[_0x588e92(0x98)](){const _0x1f072=_0x588e92;sessionStorage[_0x1f072(0x94)](cs,JSON[_0x1f072(0x99)](this[_0x1f072(0x8a)](_0x3be7d8=>_0x3be7d8)));}}function _0x4363(_0x23fd9f,_0x3caac3){const _0x4575d5=_0x4575();return _0x4363=function(_0x436348,_0x219d96){_0x436348=_0x436348-0x87;let _0x57b438=_0x4575d5[_0x436348];return _0x57b438;},_0x4363(_0x23fd9f,_0x3caac3);}function Ss(_0x1a0604){const _0xc5ff25=_0x588e92;return _0x1a0604[_0xc5ff25(0x95)]()[_0xc5ff25(0x9d)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x531461=_0x2978;function _0x3df8(){const _0x4e06eb=['isEnabled','15HNNhMN','set','10576192UYzXbZ','getItems','model','selection','hasContent','isCollapsed','from','getFirstRange','requiresContent','values','isEmpty','4044971KQvMjJ','getSelectedBlocks','plugins','length','execute','enabledCommandsIds','1384054XyHcPy','8324135Bdpgaa','custom','get','_hasContext','637732vFBiBA','add','change:_hasContext','editor','18ZrVZVf','ai.aiAssistant.disabledElements','element','change:isEnabled','includes','6306408jlFXgX','config','4746910whiLdN','refresh','2CfzSgP','_commandDefinitions','document','showUI','getRanges','name'];_0x3df8=function(){return _0x4e06eb;};return _0x3df8();}function _0x2978(_0x3a511a,_0x3a7188){const _0x3df8be=_0x3df8();return _0x2978=function(_0x29783a,_0x1c6bd7){_0x29783a=_0x29783a-0xb8;let _0x3d8766=_0x3df8be[_0x29783a];return _0x3d8766;},_0x2978(_0x3a511a,_0x3a7188);}(function(_0x3300fd,_0x239ac4){const _0x46f6bb=_0x2978,_0x348078=_0x3300fd();while(!![]){try{const _0x389020=parseInt(_0x46f6bb(0xbe))/0x1*(-parseInt(_0x46f6bb(0xd0))/0x2)+parseInt(_0x46f6bb(0xd7))/0x3*(parseInt(_0x46f6bb(0xc3))/0x4)+parseInt(_0x46f6bb(0xbf))/0x5+parseInt(_0x46f6bb(0xc7))/0x6*(-parseInt(_0x46f6bb(0xb8))/0x7)+parseInt(_0x46f6bb(0xd9))/0x8+parseInt(_0x46f6bb(0xcc))/0x9+-parseInt(_0x46f6bb(0xce))/0xa;if(_0x389020===_0x239ac4)break;else _0x348078['push'](_0x348078['shift']());}catch(_0x483165){_0x348078['push'](_0x348078['shift']());}}}(_0x3df8,0xd9e08));import{Command as _0x2c2753}from'ckeditor5/src/core.js';import _0x567254 from'../aiassistantui.js';export default class E extends _0x2c2753{constructor(_0x4c5ed9,_0x4bf19c){const _0x57994a=_0x2978;super(_0x4c5ed9),this[_0x57994a(0xd1)]=_0x4bf19c,this[_0x57994a(0xd8)](_0x57994a(0xbd),[]),this['on'](_0x57994a(0xc5),(_0x258398,_0x1c054a,_0x4d7417)=>{const _0x41a5c2=_0x57994a;this[_0x41a5c2(0xd6)]&&(this[_0x41a5c2(0xbd)]=G(this[_0x41a5c2(0xd1)],_0x4d7417));}),this[_0x57994a(0xd8)](_0x57994a(0xc2),!0x1),this['on'](_0x57994a(0xca),(_0x3c7386,_0x165527,_0x4fc97e)=>{const _0x5880d9=_0x57994a;this[_0x5880d9(0xbd)]=_0x4fc97e?G(this[_0x5880d9(0xd1)],this[_0x5880d9(0xc2)]):[];});}[_0x531461(0xcf)](){const _0x1d3ada=_0x531461,_0x425586=this[_0x1d3ada(0xc6)][_0x1d3ada(0xdb)];this[_0x1d3ada(0xc2)]=function(_0x5b159f){const _0x395dba=_0x1d3ada,_0x26258e=_0x5b159f[_0x395dba(0xd2)][_0x395dba(0xdc)];return _0x26258e[_0x395dba(0xde)]?0x0!==[..._0x26258e[_0x395dba(0xb9)]()][_0x395dba(0xbb)]&&![..._0x26258e[_0x395dba(0xb9)]()][0x0][_0x395dba(0xe3)]:!!_0x5b159f[_0x395dba(0xdd)](_0x26258e[_0x395dba(0xe0)]());}(_0x425586);const _0x212254=_0x425586[_0x1d3ada(0xd2)][_0x1d3ada(0xdc)],_0x5cbd7c=this[_0x1d3ada(0xc6)][_0x1d3ada(0xcd)][_0x1d3ada(0xc1)](_0x1d3ada(0xc8));for(const _0x4ec297 of _0x212254[_0x1d3ada(0xd4)]())for(const _0x6c9bbb of _0x4ec297[_0x1d3ada(0xda)]())if(_0x6c9bbb['is'](_0x1d3ada(0xc9))&&_0x5cbd7c[_0x1d3ada(0xcb)](_0x6c9bbb[_0x1d3ada(0xd5)]))return void(this[_0x1d3ada(0xd6)]=!0x1);this[_0x1d3ada(0xd6)]=!0x0;}[_0x531461(0xbc)](_0x36bd96='',_0x20c3c0='',_0x1cc554=_0x531461(0xc0)){const _0x592265=_0x531461;this[_0x592265(0xc6)][_0x592265(0xba)][_0x592265(0xc1)](_0x567254)[_0x592265(0xd3)](_0x36bd96,_0x20c3c0,_0x1cc554);}}function G(_0x5aacb3,_0x6ca246){const _0x28e7cb=_0x531461,_0xabdc42=new Set();for(const _0xd68bf6 of _0x5aacb3[_0x28e7cb(0xe2)]())(_0x6ca246||!0x1===_0xd68bf6[_0x28e7cb(0xe1)])&&_0xabdc42[_0x28e7cb(0xc4)](_0xd68bf6['id']);return Array[_0x28e7cb(0xdf)](_0xabdc42);}
23
+ const _0x3f00f5=_0x91bb;(function(_0x404e0e,_0x3de33c){const _0x4810fa=_0x91bb,_0x430287=_0x404e0e();while(!![]){try{const _0x54b712=parseInt(_0x4810fa(0x20d))/0x1+-parseInt(_0x4810fa(0x202))/0x2*(parseInt(_0x4810fa(0x20c))/0x3)+parseInt(_0x4810fa(0x1fc))/0x4+-parseInt(_0x4810fa(0x1ef))/0x5+parseInt(_0x4810fa(0x1ed))/0x6+parseInt(_0x4810fa(0x212))/0x7*(parseInt(_0x4810fa(0x1f8))/0x8)+parseInt(_0x4810fa(0x211))/0x9*(-parseInt(_0x4810fa(0x1ec))/0xa);if(_0x54b712===_0x3de33c)break;else _0x430287['push'](_0x430287['shift']());}catch(_0x38431b){_0x430287['push'](_0x430287['shift']());}}}(_0x513e,0xeabe4));function _0x91bb(_0x36cb14,_0x159207){const _0x513e3c=_0x513e();return _0x91bb=function(_0x91bb07,_0x4cd830){_0x91bb07=_0x91bb07-0x1e9;let _0x55ff62=_0x513e3c[_0x91bb07];return _0x55ff62;},_0x91bb(_0x36cb14,_0x159207);}function _0x513e(){const _0xe68508=['change:_hasContext','8163LXuygg','63gOQfTE','showUI','ai.aiAssistant.disabledElements','set','document','name','11030ihbGnY','5472432FgzmRa','getSelectedBlocks','1986305bSQxGn','add','getItems','change:isEnabled','isCollapsed','plugins','length','requiresContent','hasContent','965768VhqXdW','model','getRanges','from','3960492qwCaCz','config','isEmpty','values','getFirstRange','element','2465768EDfinK','isEnabled','selection','enabledCommandsIds','includes','_commandDefinitions','_hasContext','execute','refresh','get','3gaQwYD','603390IVQmxn','editor','custom'];_0x513e=function(){return _0xe68508;};return _0x513e();}import{Command as _0x120fe8}from'ckeditor5/src/core.js';import _0x379ea5 from'../aiassistantui.js';export default class E extends _0x120fe8{constructor(_0x4cbb4f,_0x20bdeb){const _0xcd426=_0x91bb;super(_0x4cbb4f),this[_0xcd426(0x207)]=_0x20bdeb,this[_0xcd426(0x1e9)](_0xcd426(0x205),[]),this['on'](_0xcd426(0x210),(_0x32fc2b,_0x1ede5a,_0x565903)=>{const _0x2a0e71=_0xcd426;this[_0x2a0e71(0x203)]&&(this[_0x2a0e71(0x205)]=G(this[_0x2a0e71(0x207)],_0x565903));}),this[_0xcd426(0x1e9)](_0xcd426(0x208),!0x1),this['on'](_0xcd426(0x1f2),(_0x3b5b96,_0x3043fa,_0x9adcf8)=>{const _0x34fb0a=_0xcd426;this[_0x34fb0a(0x205)]=_0x9adcf8?G(this[_0x34fb0a(0x207)],this[_0x34fb0a(0x208)]):[];});}[_0x3f00f5(0x20a)](){const _0x2f5896=_0x3f00f5,_0x3958bb=this[_0x2f5896(0x20e)][_0x2f5896(0x1f9)];this[_0x2f5896(0x208)]=function(_0x222572){const _0x1f7d5f=_0x2f5896,_0x3ee281=_0x222572[_0x1f7d5f(0x1ea)][_0x1f7d5f(0x204)];return _0x3ee281[_0x1f7d5f(0x1f3)]?0x0!==[..._0x3ee281[_0x1f7d5f(0x1ee)]()][_0x1f7d5f(0x1f5)]&&![..._0x3ee281[_0x1f7d5f(0x1ee)]()][0x0][_0x1f7d5f(0x1fe)]:!!_0x222572[_0x1f7d5f(0x1f7)](_0x3ee281[_0x1f7d5f(0x200)]());}(_0x3958bb);const _0x46bfb9=_0x3958bb[_0x2f5896(0x1ea)][_0x2f5896(0x204)],_0x193e39=this[_0x2f5896(0x20e)][_0x2f5896(0x1fd)][_0x2f5896(0x20b)](_0x2f5896(0x214));for(const _0x13abd7 of _0x46bfb9[_0x2f5896(0x1fa)]())for(const _0x4fd2a2 of _0x13abd7[_0x2f5896(0x1f1)]())if(_0x4fd2a2['is'](_0x2f5896(0x201))&&_0x193e39[_0x2f5896(0x206)](_0x4fd2a2[_0x2f5896(0x1eb)]))return void(this[_0x2f5896(0x203)]=!0x1);this[_0x2f5896(0x203)]=!0x0;}[_0x3f00f5(0x209)](_0x35d465='',_0x5cd5b7='',_0x2242b0=_0x3f00f5(0x20f)){const _0x541773=_0x3f00f5;this[_0x541773(0x20e)][_0x541773(0x1f4)][_0x541773(0x20b)](_0x379ea5)[_0x541773(0x213)](_0x35d465,_0x5cd5b7,_0x2242b0);}}function G(_0x41d134,_0x3c34a4){const _0x1b14f4=_0x3f00f5,_0x210e91=new Set();for(const _0x146aba of _0x41d134[_0x1b14f4(0x1ff)]())(_0x3c34a4||!0x1===_0x146aba[_0x1b14f4(0x1f6)])&&_0x210e91[_0x1b14f4(0x1f0)](_0x146aba['id']);return Array[_0x1b14f4(0x1fb)](_0x210e91);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4f0eb9,_0x1ddcc5,_0x23e91d){const t=_0x4f0eb9['t'];switch(_0x1ddcc5){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',_0x23e91d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x23e91d);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'},_0x23e91d);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 _0x1ddcc5;}}
23
+ export function getTranslation(_0x36580a,_0xc7e931,_0x2f1fc7){const t=_0x36580a['t'];switch(_0xc7e931){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',_0x2f1fc7);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2f1fc7);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'},_0x2f1fc7);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 _0xc7e931;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0xb6c073,_0x7f0a36){const _0x55e5dc=(0x0,_0x7f0a36['t'])('Other');return _0xb6c073['length']?'groupId'in _0xb6c073[0x0]?_0xb6c073:[{'groupId':'_ungrouppedCommands','groupLabel':_0x55e5dc,'order':0x1/0x0,'commands':_0xb6c073}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x55e5dc,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x2ac326,_0x57d9a7){const _0x248444=(0x0,_0x57d9a7['t'])('Other');return _0x2ac326['length']?'groupId'in _0x2ac326[0x0]?_0x2ac326:[{'groupId':'_ungrouppedCommands','groupLabel':_0x248444,'order':0x1/0x0,'commands':_0x2ac326}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x248444,'order':0x1/0x0,'commands':[]}];}