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

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 (172) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.css +2 -2
  3. package/dist/index.js +2 -2
  4. package/dist/translations/af.js +1 -1
  5. package/dist/translations/af.umd.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/ast.js +1 -1
  9. package/dist/translations/ast.umd.js +1 -1
  10. package/dist/translations/az.js +1 -1
  11. package/dist/translations/az.umd.js +1 -1
  12. package/dist/translations/be.js +1 -1
  13. package/dist/translations/be.umd.js +1 -1
  14. package/dist/translations/bg.js +1 -1
  15. package/dist/translations/bg.umd.js +1 -1
  16. package/dist/translations/bn.js +1 -1
  17. package/dist/translations/bn.umd.js +1 -1
  18. package/dist/translations/bs.js +1 -1
  19. package/dist/translations/bs.umd.js +1 -1
  20. package/dist/translations/ca.js +1 -1
  21. package/dist/translations/ca.umd.js +1 -1
  22. package/dist/translations/cs.js +1 -1
  23. package/dist/translations/cs.umd.js +1 -1
  24. package/dist/translations/da.js +1 -1
  25. package/dist/translations/da.umd.js +1 -1
  26. package/dist/translations/de-ch.js +1 -1
  27. package/dist/translations/de-ch.umd.js +1 -1
  28. package/dist/translations/de.js +1 -1
  29. package/dist/translations/de.umd.js +1 -1
  30. package/dist/translations/el.js +1 -1
  31. package/dist/translations/el.umd.js +1 -1
  32. package/dist/translations/en-au.js +1 -1
  33. package/dist/translations/en-au.umd.js +1 -1
  34. package/dist/translations/en-gb.js +1 -1
  35. package/dist/translations/en-gb.umd.js +1 -1
  36. package/dist/translations/en.js +1 -1
  37. package/dist/translations/en.umd.js +1 -1
  38. package/dist/translations/eo.js +1 -1
  39. package/dist/translations/eo.umd.js +1 -1
  40. package/dist/translations/es-co.js +1 -1
  41. package/dist/translations/es-co.umd.js +1 -1
  42. package/dist/translations/es.js +1 -1
  43. package/dist/translations/es.umd.js +1 -1
  44. package/dist/translations/et.js +1 -1
  45. package/dist/translations/et.umd.js +1 -1
  46. package/dist/translations/eu.js +1 -1
  47. package/dist/translations/eu.umd.js +1 -1
  48. package/dist/translations/fa.js +1 -1
  49. package/dist/translations/fa.umd.js +1 -1
  50. package/dist/translations/fi.js +1 -1
  51. package/dist/translations/fi.umd.js +1 -1
  52. package/dist/translations/fr.js +1 -1
  53. package/dist/translations/fr.umd.js +1 -1
  54. package/dist/translations/gl.js +1 -1
  55. package/dist/translations/gl.umd.js +1 -1
  56. package/dist/translations/gu.js +1 -1
  57. package/dist/translations/gu.umd.js +1 -1
  58. package/dist/translations/he.js +1 -1
  59. package/dist/translations/he.umd.js +1 -1
  60. package/dist/translations/hi.js +1 -1
  61. package/dist/translations/hi.umd.js +1 -1
  62. package/dist/translations/hr.js +1 -1
  63. package/dist/translations/hr.umd.js +1 -1
  64. package/dist/translations/hu.js +1 -1
  65. package/dist/translations/hu.umd.js +1 -1
  66. package/dist/translations/hy.js +1 -1
  67. package/dist/translations/hy.umd.js +1 -1
  68. package/dist/translations/id.js +1 -1
  69. package/dist/translations/id.umd.js +1 -1
  70. package/dist/translations/it.js +1 -1
  71. package/dist/translations/it.umd.js +1 -1
  72. package/dist/translations/ja.js +1 -1
  73. package/dist/translations/ja.umd.js +1 -1
  74. package/dist/translations/jv.js +1 -1
  75. package/dist/translations/jv.umd.js +1 -1
  76. package/dist/translations/kk.js +1 -1
  77. package/dist/translations/kk.umd.js +1 -1
  78. package/dist/translations/km.js +1 -1
  79. package/dist/translations/km.umd.js +1 -1
  80. package/dist/translations/kn.js +1 -1
  81. package/dist/translations/kn.umd.js +1 -1
  82. package/dist/translations/ko.js +1 -1
  83. package/dist/translations/ko.umd.js +1 -1
  84. package/dist/translations/ku.js +1 -1
  85. package/dist/translations/ku.umd.js +1 -1
  86. package/dist/translations/lt.js +1 -1
  87. package/dist/translations/lt.umd.js +1 -1
  88. package/dist/translations/lv.js +1 -1
  89. package/dist/translations/lv.umd.js +1 -1
  90. package/dist/translations/ms.js +1 -1
  91. package/dist/translations/ms.umd.js +1 -1
  92. package/dist/translations/nb.js +1 -1
  93. package/dist/translations/nb.umd.js +1 -1
  94. package/dist/translations/ne.js +1 -1
  95. package/dist/translations/ne.umd.js +1 -1
  96. package/dist/translations/nl.js +1 -1
  97. package/dist/translations/nl.umd.js +1 -1
  98. package/dist/translations/no.js +1 -1
  99. package/dist/translations/no.umd.js +1 -1
  100. package/dist/translations/oc.js +1 -1
  101. package/dist/translations/oc.umd.js +1 -1
  102. package/dist/translations/pl.js +1 -1
  103. package/dist/translations/pl.umd.js +1 -1
  104. package/dist/translations/pt-br.js +1 -1
  105. package/dist/translations/pt-br.umd.js +1 -1
  106. package/dist/translations/pt.js +1 -1
  107. package/dist/translations/pt.umd.js +1 -1
  108. package/dist/translations/ro.js +1 -1
  109. package/dist/translations/ro.umd.js +1 -1
  110. package/dist/translations/ru.js +1 -1
  111. package/dist/translations/ru.umd.js +1 -1
  112. package/dist/translations/si.js +1 -1
  113. package/dist/translations/si.umd.js +1 -1
  114. package/dist/translations/sk.js +1 -1
  115. package/dist/translations/sk.umd.js +1 -1
  116. package/dist/translations/sl.js +1 -1
  117. package/dist/translations/sl.umd.js +1 -1
  118. package/dist/translations/sq.js +1 -1
  119. package/dist/translations/sq.umd.js +1 -1
  120. package/dist/translations/sr-latn.js +1 -1
  121. package/dist/translations/sr-latn.umd.js +1 -1
  122. package/dist/translations/sr.js +1 -1
  123. package/dist/translations/sr.umd.js +1 -1
  124. package/dist/translations/sv.js +1 -1
  125. package/dist/translations/sv.umd.js +1 -1
  126. package/dist/translations/th.js +1 -1
  127. package/dist/translations/th.umd.js +1 -1
  128. package/dist/translations/ti.js +1 -1
  129. package/dist/translations/ti.umd.js +1 -1
  130. package/dist/translations/tk.js +1 -1
  131. package/dist/translations/tk.umd.js +1 -1
  132. package/dist/translations/tr.js +1 -1
  133. package/dist/translations/tr.umd.js +1 -1
  134. package/dist/translations/tt.js +1 -1
  135. package/dist/translations/tt.umd.js +1 -1
  136. package/dist/translations/ug.js +1 -1
  137. package/dist/translations/ug.umd.js +1 -1
  138. package/dist/translations/uk.js +1 -1
  139. package/dist/translations/uk.umd.js +1 -1
  140. package/dist/translations/ur.js +1 -1
  141. package/dist/translations/ur.umd.js +1 -1
  142. package/dist/translations/uz.js +1 -1
  143. package/dist/translations/uz.umd.js +1 -1
  144. package/dist/translations/vi.js +1 -1
  145. package/dist/translations/vi.umd.js +1 -1
  146. package/dist/translations/zh-cn.js +1 -1
  147. package/dist/translations/zh-cn.umd.js +1 -1
  148. package/dist/translations/zh.js +1 -1
  149. package/dist/translations/zh.umd.js +1 -1
  150. package/package.json +9 -9
  151. package/src/adapters/aiadapter.js +1 -1
  152. package/src/adapters/aitextadapter.js +1 -1
  153. package/src/adapters/awstextadapter.js +1 -1
  154. package/src/adapters/openaitextadapter.js +1 -1
  155. package/src/aiassistant.js +1 -1
  156. package/src/aiassistantediting.js +1 -1
  157. package/src/aiassistantui.js +1 -1
  158. package/src/index.js +1 -1
  159. package/src/legacyerrors.js +1 -1
  160. package/src/ui/aiassistantcontroller.js +2 -2
  161. package/src/ui/form/aiformcontentarea.js +1 -1
  162. package/src/ui/form/aiformerrorview.js +1 -1
  163. package/src/ui/form/aiformpromptview.js +1 -1
  164. package/src/ui/form/aiformtoolbarview.js +1 -1
  165. package/src/ui/form/aiformview.js +1 -1
  166. package/src/ui/form/aihistorylistitemview.js +1 -1
  167. package/src/ui/form/aihistorylistview.js +1 -1
  168. package/src/ui/form/prompthistory.js +1 -1
  169. package/src/ui/showaiassistantcommand.js +1 -1
  170. package/src/utils/common-translations.js +1 -1
  171. package/src/utils/normalizecommandsconfig.js +1 -1
  172. package/theme/ai-form.css +2 -2
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x384f(){const _0xe036ec=['8fLycvI','8352042BEDVGU','1628958InVqfS','71TqFEea','7rGXJnA','8204750TmyxYd','8ylOPmU','18394240ojEQgV','text','div','ck-ai-form__error','12cuyEwu','9268974WDQdhq','setTemplate','set','55667876MGgIqU','10150HOmcfb','content','bindTemplate'];_0x384f=function(){return _0xe036ec;};return _0x384f();}(function(_0x5d1454,_0x3cc83f){const _0x38ffd1=_0x4d26,_0x56a149=_0x5d1454();while(!![]){try{const _0x34b01b=-parseInt(_0x38ffd1(0xca))/0x1*(parseInt(_0x38ffd1(0xc4))/0x2)+parseInt(_0x38ffd1(0xc9))/0x3*(-parseInt(_0x38ffd1(0xcd))/0x4)+parseInt(_0x38ffd1(0xcc))/0x5+parseInt(_0x38ffd1(0xc8))/0x6*(-parseInt(_0x38ffd1(0xcb))/0x7)+-parseInt(_0x38ffd1(0xc7))/0x8*(parseInt(_0x38ffd1(0xc0))/0x9)+-parseInt(_0x38ffd1(0xce))/0xa+parseInt(_0x38ffd1(0xc3))/0xb*(parseInt(_0x38ffd1(0xbf))/0xc);if(_0x34b01b===_0x3cc83f)break;else _0x56a149['push'](_0x56a149['shift']());}catch(_0x170684){_0x56a149['push'](_0x56a149['shift']());}}}(_0x384f,0xf2b04));import{IconError as _0x1af346}from'ckeditor5/src/icons.js';import{View as _0x3e8f94,IconView as _0x4f8859}from'ckeditor5/src/ui.js';function _0x4d26(_0x5d2fc2,_0x3d6e1e){const _0x384fbb=_0x384f();return _0x4d26=function(_0x4d26f8,_0x2c6588){_0x4d26f8=_0x4d26f8-0xbf;let _0x4ee52b=_0x384fbb[_0x4d26f8];return _0x4ee52b;},_0x4d26(_0x5d2fc2,_0x3d6e1e);}export class AIFormErrorView extends _0x3e8f94{constructor(_0x123b8d,_0x1f8553=''){const _0x564c4c=_0x4d26;super(_0x123b8d);const _0xbc70a1=new _0x4f8859(),_0x2dfe2f=this[_0x564c4c(0xc6)];this[_0x564c4c(0xc2)](_0x564c4c(0xcf),_0x1f8553),_0xbc70a1[_0x564c4c(0xc5)]=_0x1af346,this[_0x564c4c(0xc1)]({'tag':_0x564c4c(0xd0),'attributes':{'class':['ck',_0x564c4c(0xd1)]},'children':[_0xbc70a1,{'text':_0x2dfe2f['to'](_0x564c4c(0xcf))}]});}}
23
+ function _0x2741(_0x55058d,_0x156d9d){const _0x268234=_0x2682();return _0x2741=function(_0x27418a,_0x5de684){_0x27418a=_0x27418a-0x1ce;let _0x2d099c=_0x268234[_0x27418a];return _0x2d099c;},_0x2741(_0x55058d,_0x156d9d);}(function(_0x321832,_0x4831b0){const _0x38f3ee=_0x2741,_0x496531=_0x321832();while(!![]){try{const _0x423946=-parseInt(_0x38f3ee(0x1ce))/0x1+-parseInt(_0x38f3ee(0x1dc))/0x2*(-parseInt(_0x38f3ee(0x1d7))/0x3)+parseInt(_0x38f3ee(0x1d9))/0x4*(-parseInt(_0x38f3ee(0x1d1))/0x5)+parseInt(_0x38f3ee(0x1db))/0x6*(parseInt(_0x38f3ee(0x1d8))/0x7)+-parseInt(_0x38f3ee(0x1d5))/0x8+parseInt(_0x38f3ee(0x1d0))/0x9+parseInt(_0x38f3ee(0x1da))/0xa;if(_0x423946===_0x4831b0)break;else _0x496531['push'](_0x496531['shift']());}catch(_0x30710b){_0x496531['push'](_0x496531['shift']());}}}(_0x2682,0xe01ed));function _0x2682(){const _0x594dea=['bindTemplate','71220HwcNvT','7gYlOGY','2334764KCQqPc','6716370awuxHu','10103286kUNxWo','144Fbdmtc','div','set','1521421AcuSLU','setTemplate','2460069XSzJNY','10djlnSp','ck-ai-form__error','text','content','5850712MSgNUN'];_0x2682=function(){return _0x594dea;};return _0x2682();}import{IconError as _0x33ec60}from'ckeditor5/src/icons.js';import{View as _0x54329a,IconView as _0x746594}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x54329a{constructor(_0x50f299,_0x295c2a=''){const _0xe69661=_0x2741;super(_0x50f299);const _0x2088d8=new _0x746594(),_0x135155=this[_0xe69661(0x1d6)];this[_0xe69661(0x1de)](_0xe69661(0x1d3),_0x295c2a),_0x2088d8[_0xe69661(0x1d4)]=_0x33ec60,this[_0xe69661(0x1cf)]({'tag':_0xe69661(0x1dd),'attributes':{'class':['ck',_0xe69661(0x1d2)]},'children':[_0x2088d8,{'text':_0x135155['to'](_0xe69661(0x1d3))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x584f40=_0x2798;(function(_0x31b62d,_0x40219a){const _0x4e9f20=_0x2798,_0xffd1aa=_0x31b62d();while(!![]){try{const _0x46ef60=parseInt(_0x4e9f20(0xfe))/0x1+parseInt(_0x4e9f20(0x11b))/0x2+-parseInt(_0x4e9f20(0x128))/0x3*(-parseInt(_0x4e9f20(0x110))/0x4)+-parseInt(_0x4e9f20(0x127))/0x5*(-parseInt(_0x4e9f20(0x10d))/0x6)+parseInt(_0x4e9f20(0x113))/0x7+-parseInt(_0x4e9f20(0x109))/0x8+-parseInt(_0x4e9f20(0x123))/0x9;if(_0x46ef60===_0x40219a)break;else _0xffd1aa['push'](_0xffd1aa['shift']());}catch(_0x45ca6e){_0xffd1aa['push'](_0xffd1aa['shift']());}}}(_0x280e,0x6014a));import{Rect as _0x59aa3c,global as _0x452af1,isVisible as _0x1222f3}from'ckeditor5/src/utils.js';import{IconHistory as _0x26a6cf,IconSubmit as _0x1cfffb}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x5c1d65,ButtonView as _0x468e1b}from'ckeditor5/src/ui.js';function _0x280e(){const _0xa65f95=['focus','6RaSrzj','add','isEmpty','4CHkRLN','uiLanguageDirection','filteredView','3644354yxKEGG','queryView','fire','isEnabled','maxRows','submit','isVisible','window','681062FrJGVg','fieldWrapperChildren','Submit','focusFirst','render','locale','target','focusCycler','8232660vOJysT','left','rtl','ck-ai-form__submit','897605uneuHu','289233ZHoyaH','enter','width','showHistoryButtonView','style','fieldView','element','ck-ai-form__toggle-history','update','focusLast','excludeScrollbarsAndBorders','resultsView','bind','requestAnimationFrame','minRows','783485zvnLRC','value','focusableChildren','_createSubmitButton','_createShowHistoryButton','execute','isOn','right','children','set','History','4898272chKGEe','keystrokes','submitButtonView'];_0x280e=function(){return _0xa65f95;};return _0x280e();}function _0x2798(_0x43b4b1,_0x5449e2){const _0x280e2a=_0x280e();return _0x2798=function(_0x279807,_0x2e4e1e){_0x279807=_0x279807-0xfe;let _0x4450a4=_0x280e2a[_0x279807];return _0x4450a4;},_0x2798(_0x43b4b1,_0x5449e2);}import{getTranslation as _0x16369c}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x5c1d65{[_0x584f40(0x10b)];[_0x584f40(0x12b)];constructor(_0x2b3dc2,_0x31f0a1){const _0x3d9150=_0x584f40;super(_0x2b3dc2,_0x31f0a1),this[_0x3d9150(0x114)][_0x3d9150(0x12d)][_0x3d9150(0x136)]=0x1,this[_0x3d9150(0x114)][_0x3d9150(0x12d)][_0x3d9150(0x117)]=0x3,this[_0x3d9150(0x10b)]=this[_0x3d9150(0x101)](),this[_0x3d9150(0x12b)]=this[_0x3d9150(0x102)](),this[_0x3d9150(0x100)][_0x3d9150(0x10e)](this[_0x3d9150(0x12b)],0x1),this[_0x3d9150(0x100)][_0x3d9150(0x10e)](this[_0x3d9150(0x10b)]);}[_0x584f40(0x11f)](){const _0x4595f0=_0x584f40;super[_0x4595f0(0x11f)](),this[_0x4595f0(0x114)][_0x4595f0(0x11c)][_0x4595f0(0x10e)](this[_0x4595f0(0x12b)]),this[_0x4595f0(0x106)][_0x4595f0(0x10e)](this[_0x4595f0(0x10b)]),this[_0x4595f0(0x10a)][_0x4595f0(0x107)](_0x4595f0(0x129),(_0x37ea6c,_0x5def27)=>{const _0x59bf88=_0x4595f0;_0x37ea6c[_0x59bf88(0x121)]==this[_0x59bf88(0x114)][_0x59bf88(0x12d)][_0x59bf88(0x12e)]&&(this[_0x59bf88(0x118)](),_0x5def27());});}[_0x584f40(0x101)](){const _0x1252a7=_0x584f40,_0x550371=new _0x468e1b(this[_0x1252a7(0x120)]),_0x40a46d=this[_0x1252a7(0x120)];return _0x550371[_0x1252a7(0x107)]({'icon':_0x1cfffb,'label':_0x16369c(_0x40a46d,_0x1252a7(0x11d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1252a7(0x126)}),_0x550371['on'](_0x1252a7(0x103),()=>{const _0x46ebfb=_0x1252a7;this[_0x46ebfb(0x118)]();}),_0x550371[_0x1252a7(0x134)](_0x1252a7(0x116))['to'](this[_0x1252a7(0x114)][_0x1252a7(0x12d)],_0x1252a7(0x10f),this,_0x1252a7(0x116),(_0x522131,_0x381f5c)=>!_0x522131&&_0x381f5c),_0x550371;}[_0x584f40(0x102)](){const _0x3f1ebc=_0x584f40,_0x1d28df=new _0x468e1b(this[_0x3f1ebc(0x120)]),_0x3fce37=this[_0x3f1ebc(0x133)],_0x42ea6e=this[_0x3f1ebc(0x120)];_0x1d28df[_0x3f1ebc(0x107)]({'label':_0x16369c(_0x42ea6e,_0x3f1ebc(0x108)),'withText':!0x1,'icon':_0x26a6cf,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x3f1ebc(0x12f)}),_0x1d28df[_0x3f1ebc(0x134)](_0x3f1ebc(0x104))['to'](_0x3fce37,_0x3f1ebc(0x119)),_0x1d28df[_0x3f1ebc(0x134)](_0x3f1ebc(0x116))['to'](this,_0x3f1ebc(0x116)),_0x1d28df['on'](_0x3f1ebc(0x103),()=>{const _0x1ebe7f=_0x3f1ebc;_0x3fce37[_0x1ebe7f(0x119)]=!_0x3fce37[_0x1ebe7f(0x119)],_0x3fce37[_0x1ebe7f(0x119)]?this[_0x1ebe7f(0x112)][_0x1ebe7f(0x10c)]():this[_0x1ebe7f(0x10c)]();});const _0x2bb233=()=>{const _0x25e725=_0x3f1ebc;_0x452af1[_0x25e725(0x11a)][_0x25e725(0x135)](()=>{const _0xa85b99=_0x25e725;if(_0x1222f3(this[_0xa85b99(0x12e)])){const _0x314b3c=new _0x59aa3c(this[_0xa85b99(0x114)][_0xa85b99(0x12d)][_0xa85b99(0x12e)]),_0x1bffe6=_0x314b3c[_0xa85b99(0x12a)],_0x4f719c=_0xa85b99(0x125)===_0x42ea6e[_0xa85b99(0x111)]?_0xa85b99(0x124):_0xa85b99(0x105);_0x314b3c[_0xa85b99(0x132)](),_0x1d28df[_0xa85b99(0x12e)][_0xa85b99(0x12c)][_0x4f719c]=_0x1bffe6-_0x314b3c[_0xa85b99(0x12a)]+0x1+'px';}});};return this[_0x3f1ebc(0x114)][_0x3f1ebc(0x12d)]['on'](_0x3f1ebc(0x130),_0x2bb233),this['on'](_0x3f1ebc(0x11f),_0x2bb233),_0x1d28df;}[_0x584f40(0x118)](){const _0x3b7716=_0x584f40,_0x36e05e=this[_0x3b7716(0x114)][_0x3b7716(0x12d)][_0x3b7716(0x12e)][_0x3b7716(0xff)];this[_0x3b7716(0x115)](_0x3b7716(0x118),_0x36e05e);}[_0x584f40(0x10c)](_0x46b290){const _0x474dec=_0x584f40;-0x1===_0x46b290?this[_0x474dec(0x122)][_0x474dec(0x131)]():this[_0x474dec(0x122)][_0x474dec(0x11e)]();}}
23
+ function _0x6ca4(){const _0x2f81bc=['window','maxRows','isEnabled','minRows','2148IxEVFe','9vREhfu','fieldView','_createSubmitButton','element','13196dPsOcr','20RwfYNT','rtl','bind','queryView','keystrokes','History','requestAnimationFrame','render','showHistoryButtonView','2193aQspMJ','isVisible','children','update','right','329315NJxbTP','value','focusFirst','ck-ai-form__submit','focus','submit','950XkprCy','ck-ai-form__toggle-history','isOn','target','focusLast','isEmpty','focusCycler','focusableChildren','excludeScrollbarsAndBorders','60VDxuTk','left','fieldWrapperChildren','add','Submit','128713RKPinw','execute','style','resultsView','fire','620933zNTQoL','locale','1822zZJSQV','width','filteredView','uiLanguageDirection','1685596SDeBfz','_createShowHistoryButton','set','submitButtonView','4636024qVMWio','enter'];_0x6ca4=function(){return _0x2f81bc;};return _0x6ca4();}const _0x198abc=_0x531c;(function(_0x465a74,_0xab1ee2){const _0x3d2271=_0x531c,_0x4b6ed5=_0x465a74();while(!![]){try{const _0x137ae6=parseInt(_0x3d2271(0x213))/0x1+-parseInt(_0x3d2271(0x215))/0x2*(-parseInt(_0x3d2271(0x1f5))/0x3)+parseInt(_0x3d2271(0x228))/0x4*(parseInt(_0x3d2271(0x200))/0x5)+-parseInt(_0x3d2271(0x209))/0x6*(-parseInt(_0x3d2271(0x1fa))/0x7)+-parseInt(_0x3d2271(0x21d))/0x8*(parseInt(_0x3d2271(0x224))/0x9)+parseInt(_0x3d2271(0x229))/0xa*(parseInt(_0x3d2271(0x219))/0xb)+-parseInt(_0x3d2271(0x223))/0xc*(parseInt(_0x3d2271(0x20e))/0xd);if(_0x137ae6===_0xab1ee2)break;else _0x4b6ed5['push'](_0x4b6ed5['shift']());}catch(_0x8c01b){_0x4b6ed5['push'](_0x4b6ed5['shift']());}}}(_0x6ca4,0x52b88));import{Rect as _0x3db01d,global as _0x1903ec,isVisible as _0x2fc624}from'ckeditor5/src/utils.js';import{IconHistory as _0x5d529c,IconSubmit as _0x3ea1ce}from'ckeditor5/src/icons.js';function _0x531c(_0x4e29d6,_0x2038ae){const _0x6ca442=_0x6ca4();return _0x531c=function(_0x531cc6,_0x1abe8c){_0x531cc6=_0x531cc6-0x1ed;let _0x41ac66=_0x6ca442[_0x531cc6];return _0x41ac66;},_0x531c(_0x4e29d6,_0x2038ae);}import{AutocompleteView as _0x389b87,ButtonView as _0x3dba8f}from'ckeditor5/src/ui.js';import{getTranslation as _0x54e3dd}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x389b87{[_0x198abc(0x21c)];[_0x198abc(0x1f4)];constructor(_0x2e5aa6,_0x1c996b){const _0x3b30f1=_0x198abc;super(_0x2e5aa6,_0x1c996b),this[_0x3b30f1(0x1ef)][_0x3b30f1(0x225)][_0x3b30f1(0x222)]=0x1,this[_0x3b30f1(0x1ef)][_0x3b30f1(0x225)][_0x3b30f1(0x220)]=0x3,this[_0x3b30f1(0x21c)]=this[_0x3b30f1(0x226)](),this[_0x3b30f1(0x1f4)]=this[_0x3b30f1(0x21a)](),this[_0x3b30f1(0x207)][_0x3b30f1(0x20c)](this[_0x3b30f1(0x1f4)],0x1),this[_0x3b30f1(0x207)][_0x3b30f1(0x20c)](this[_0x3b30f1(0x21c)]);}[_0x198abc(0x1f3)](){const _0x56ec91=_0x198abc;super[_0x56ec91(0x1f3)](),this[_0x56ec91(0x1ef)][_0x56ec91(0x20b)][_0x56ec91(0x20c)](this[_0x56ec91(0x1f4)]),this[_0x56ec91(0x1f7)][_0x56ec91(0x20c)](this[_0x56ec91(0x21c)]),this[_0x56ec91(0x1f0)][_0x56ec91(0x21b)](_0x56ec91(0x21e),(_0x3df318,_0x11b229)=>{const _0xcc104f=_0x56ec91;_0x3df318[_0xcc104f(0x203)]==this[_0xcc104f(0x1ef)][_0xcc104f(0x225)][_0xcc104f(0x227)]&&(this[_0xcc104f(0x1ff)](),_0x11b229());});}[_0x198abc(0x226)](){const _0x21fa7d=_0x198abc,_0xcdcdc7=new _0x3dba8f(this[_0x21fa7d(0x214)]),_0x1d34a3=this[_0x21fa7d(0x214)];return _0xcdcdc7[_0x21fa7d(0x21b)]({'icon':_0x3ea1ce,'label':_0x54e3dd(_0x1d34a3,_0x21fa7d(0x20d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x21fa7d(0x1fd)}),_0xcdcdc7['on'](_0x21fa7d(0x20f),()=>{const _0x1ea925=_0x21fa7d;this[_0x1ea925(0x1ff)]();}),_0xcdcdc7[_0x21fa7d(0x1ee)](_0x21fa7d(0x221))['to'](this[_0x21fa7d(0x1ef)][_0x21fa7d(0x225)],_0x21fa7d(0x205),this,_0x21fa7d(0x221),(_0x7fc146,_0x46de01)=>!_0x7fc146&&_0x46de01),_0xcdcdc7;}[_0x198abc(0x21a)](){const _0x246666=_0x198abc,_0x249c6a=new _0x3dba8f(this[_0x246666(0x214)]),_0x33a5c6=this[_0x246666(0x211)],_0x2fe6a1=this[_0x246666(0x214)];_0x249c6a[_0x246666(0x21b)]({'label':_0x54e3dd(_0x2fe6a1,_0x246666(0x1f1)),'withText':!0x1,'icon':_0x5d529c,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x246666(0x201)}),_0x249c6a[_0x246666(0x1ee)](_0x246666(0x202))['to'](_0x33a5c6,_0x246666(0x1f6)),_0x249c6a[_0x246666(0x1ee)](_0x246666(0x221))['to'](this,_0x246666(0x221)),_0x249c6a['on'](_0x246666(0x20f),()=>{const _0x393cbd=_0x246666;_0x33a5c6[_0x393cbd(0x1f6)]=!_0x33a5c6[_0x393cbd(0x1f6)],_0x33a5c6[_0x393cbd(0x1f6)]?this[_0x393cbd(0x217)][_0x393cbd(0x1fe)]():this[_0x393cbd(0x1fe)]();});const _0x551109=()=>{const _0x8afdab=_0x246666;_0x1903ec[_0x8afdab(0x21f)][_0x8afdab(0x1f2)](()=>{const _0x14e98e=_0x8afdab;if(_0x2fc624(this[_0x14e98e(0x227)])){const _0xb98767=new _0x3db01d(this[_0x14e98e(0x1ef)][_0x14e98e(0x225)][_0x14e98e(0x227)]),_0x5de40e=_0xb98767[_0x14e98e(0x216)],_0x4158bf=_0x14e98e(0x1ed)===_0x2fe6a1[_0x14e98e(0x218)]?_0x14e98e(0x20a):_0x14e98e(0x1f9);_0xb98767[_0x14e98e(0x208)](),_0x249c6a[_0x14e98e(0x227)][_0x14e98e(0x210)][_0x4158bf]=_0x5de40e-_0xb98767[_0x14e98e(0x216)]+0x1+'px';}});};return this[_0x246666(0x1ef)][_0x246666(0x225)]['on'](_0x246666(0x1f8),_0x551109),this['on'](_0x246666(0x1f3),_0x551109),_0x249c6a;}[_0x198abc(0x1ff)](){const _0x1ccf33=_0x198abc,_0x16db0e=this[_0x1ccf33(0x1ef)][_0x1ccf33(0x225)][_0x1ccf33(0x227)][_0x1ccf33(0x1fb)];this[_0x1ccf33(0x212)](_0x1ccf33(0x1ff),_0x16db0e);}[_0x198abc(0x1fe)](_0x22ab19){const _0x3c03e2=_0x198abc;-0x1===_0x22ab19?this[_0x3c03e2(0x206)][_0x3c03e2(0x204)]():this[_0x3c03e2(0x206)][_0x3c03e2(0x1fc)]();}}
@@ -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 _0x1222d8=_0x3487;function _0x3487(_0x30737f,_0x83f95d){const _0x3e19e2=_0x3e19();return _0x3487=function(_0x34879a,_0x393505){_0x34879a=_0x34879a-0x9b;let _0x219d0e=_0x3e19e2[_0x34879a];return _0x219d0e;},_0x3487(_0x30737f,_0x83f95d);}(function(_0x3f14b4,_0x2d3e45){const _0x4b8b4d=_0x3487,_0x30adcc=_0x3f14b4();while(!![]){try{const _0x3fb639=-parseInt(_0x4b8b4d(0xb6))/0x1*(-parseInt(_0x4b8b4d(0x9d))/0x2)+parseInt(_0x4b8b4d(0xaa))/0x3*(parseInt(_0x4b8b4d(0xa1))/0x4)+parseInt(_0x4b8b4d(0xc0))/0x5+-parseInt(_0x4b8b4d(0xa2))/0x6*(-parseInt(_0x4b8b4d(0xaf))/0x7)+-parseInt(_0x4b8b4d(0xb0))/0x8+parseInt(_0x4b8b4d(0x9b))/0x9*(-parseInt(_0x4b8b4d(0xb7))/0xa)+parseInt(_0x4b8b4d(0xba))/0xb;if(_0x3fb639===_0x2d3e45)break;else _0x30adcc['push'](_0x30adcc['shift']());}catch(_0x23a0de){_0x30adcc['push'](_0x30adcc['shift']());}}}(_0x3e19,0xddfc2));import{ToolbarView as _0x572fd0,ButtonView as _0x52a094}from'ckeditor5/src/ui.js';import{getTranslation as _0x5be31a}from'../../utils/common-translations.js';function _0x3e19(){const _0x15bc0c=['toUpperCase','REPLACE','items','ck-hidden','5492675KERiSU','81IcNAuO','ck-ai-form__toolbar','948818pDVNPn','replaceButton','bindTemplate','Try\x20again','1364jtnCKz','6NImQgZ','tryAgainButton','_CONTENT','set','replace','bind','extendTemplate','mainAction','3624hJPXwP','locale','ck-button-action','_createButton','Insert\x20below','3068303ejEEAA','13791904fVCEEJ','label','Stop','insert','isVisible','stopButton','2DrnKzZ','1185130QlBXNb','AI_','insertButton','8824695xmJAZL','addMany'];_0x3e19=function(){return _0x15bc0c;};return _0x3e19();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1222d8(0xa6),'INSERT':_0x1222d8(0xb3)};export class AIFormToolbarView extends _0x572fd0{constructor(_0x25ade2){const _0xe142f7=_0x1222d8;super(_0x25ade2),this[_0xe142f7(0xa5)](_0xe142f7(0xb4),!0x1),this[_0xe142f7(0xa5)](_0xe142f7(0xa9),AIFormToolbarViewMainActionLabel[_0xe142f7(0xbd)]),this[_0xe142f7(0x9e)]=this[_0xe142f7(0xad)]('',_0xe142f7(0xac)),this[_0xe142f7(0x9e)][_0xe142f7(0xa7)](_0xe142f7(0xb1))['to'](this,_0xe142f7(0xa9),_0xdb2c1a=>_0x5be31a(_0x25ade2,_0xe142f7(0xb8)+_0xdb2c1a[_0xe142f7(0xbc)]()+_0xe142f7(0xa4))),this[_0xe142f7(0xb9)]=this[_0xe142f7(0xad)](_0x5be31a(_0x25ade2,_0xe142f7(0xae))),this[_0xe142f7(0xa3)]=this[_0xe142f7(0xad)](_0x5be31a(_0x25ade2,_0xe142f7(0xa0))),this[_0xe142f7(0xb5)]=this[_0xe142f7(0xad)](_0x5be31a(_0x25ade2,_0xe142f7(0xb2)));const _0x446cb5=this[_0xe142f7(0x9f)];this[_0xe142f7(0xa8)]({'attributes':{'class':[_0xe142f7(0x9c),_0x446cb5['if'](_0xe142f7(0xb4),_0xe142f7(0xbf),_0x4dc513=>!_0x4dc513)]}}),this[_0xe142f7(0xbe)][_0xe142f7(0xbb)]([this[_0xe142f7(0x9e)],this[_0xe142f7(0xb9)],this[_0xe142f7(0xa3)],this[_0xe142f7(0xb5)]]);}[_0x1222d8(0xad)](_0xf1d90,_0x538b73){const _0x2caa1f=_0x1222d8,_0x266390=new _0x52a094(this[_0x2caa1f(0xab)]);return _0x266390[_0x2caa1f(0xa5)]({'label':_0xf1d90,'class':_0x538b73||'','isVisible':!0x0,'withText':!0x0}),_0x266390;}}
@@ -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 _0x53f389=_0x1a9b;function _0x3ccd(){const _0x287be1=['insertButton','focusTracker','4332525DECxgd','isProcessing','prompt','bindTo','items','div','locale','startProcessing','AI_ERROR_FAILED','ck-ai-form-content','38643KflfEu','finishProcessing','label','focusFirst','13666626AoaCyb','listenTo','high','add','tryAgainEvent','373460OSpmpC','stopButton','5226872MDYicM','clearHistory','focus','_promptHistory','submitPrompt','keystrokes','replaceButton','execute','_createToolbar','_focusables','553221BuLMtl','9200946clxTJZ','_createPromptView','search','shift\x20+\x20tab','toolbar','render','chain','setTemplate','tryAgainButton','_createHistoryView','value','7pcADnf','element','handleError','historyGroupView','text','Empty\x20history','copyButtonView','createCollection','isEnabled','mainAction','tab','replaceContent','queryView','delegate','isVisible','focusCycler','20YXCYLP','bind','clear','errorView','Ask\x20AI\x20to\x20improve\x20generated\x20text','fire','stopProcessing','ck-ai-form','focusLast','reset','trim','promptView','ck-hidden','contentArea','submit','isError','fieldView','REPLACE','set','Ask\x20AI\x20to\x20edit\x20or\x20generate','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','insertContentBelow','4HCTPcK','bindTemplate'];_0x3ccd=function(){return _0x287be1;};return _0x3ccd();}(function(_0x398e96,_0x2b1320){const _0x35ad59=_0x1a9b,_0x210665=_0x398e96();while(!![]){try{const _0x5df207=-parseInt(_0x35ad59(0x1c1))/0x1+-parseInt(_0x35ad59(0x175))/0x2+-parseInt(_0x35ad59(0x181))/0x3*(parseInt(_0x35ad59(0x1b3))/0x4)+-parseInt(_0x35ad59(0x1b7))/0x5+parseInt(_0x35ad59(0x182))/0x6*(-parseInt(_0x35ad59(0x18d))/0x7)+parseInt(_0x35ad59(0x177))/0x8+parseInt(_0x35ad59(0x1c5))/0x9*(parseInt(_0x35ad59(0x19d))/0xa);if(_0x5df207===_0x2b1320)break;else _0x210665['push'](_0x210665['shift']());}catch(_0x39b493){_0x210665['push'](_0x210665['shift']());}}}(_0x3ccd,0xd6fe3));import{FocusTracker as _0x4d1ddb,KeystrokeHandler as _0x5e956e}from'ckeditor5/src/utils.js';import{View as _0x52304d,FocusCycler as _0xe97cad,createLabeledTextarea as _0x35cd01}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x53f21f,AIFormToolbarViewMainActionLabel as _0x380811}from'./aiformtoolbarview.js';import{AIFormContentArea as _0xfcff3d}from'./aiformcontentarea.js';import{AIFormErrorView as _0x5914dd}from'./aiformerrorview.js';import{AIFormPromptView as _0x11f780}from'./aiformpromptview.js';import{AIHistoryListView as _0x1bfcef}from'./aihistorylistview.js';function _0x1a9b(_0x5d7d5f,_0x49a650){const _0x3ccd33=_0x3ccd();return _0x1a9b=function(_0x1a9b55,_0x248673){_0x1a9b55=_0x1a9b55-0x172;let _0x1776fd=_0x3ccd33[_0x1a9b55];return _0x1776fd;},_0x1a9b(_0x5d7d5f,_0x49a650);}import{AIHistoryListItemView as _0x518720}from'./aihistorylistitemview.js';import{PromptHistory as _0x17f3ae}from'./prompthistory.js';import{getTranslation as _0x405067}from'../../utils/common-translations.js';import{escape as _0x21f2ca}from'es-toolkit/compat';export class AIFormView extends _0x52304d{[_0x53f389(0x1b6)];[_0x53f389(0x17c)];[_0x53f389(0x1aa)];[_0x53f389(0x186)];[_0x53f389(0x1a8)];[_0x53f389(0x1a0)];[_0x53f389(0x180)];[_0x53f389(0x19c)];[_0x53f389(0x17a)];constructor(_0x18ae21,_0x369ee0,_0x483357=''){const _0x51eb5a=_0x53f389;super(_0x18ae21),this[_0x51eb5a(0x1af)](_0x51eb5a(0x195),!0x0),this[_0x51eb5a(0x1af)](_0x51eb5a(0x1b8),!0x1),this[_0x51eb5a(0x1af)](_0x51eb5a(0x1b9),''),this[_0x51eb5a(0x1af)](_0x51eb5a(0x18c),''),this[_0x51eb5a(0x1af)](_0x51eb5a(0x1ac),!0x1),this[_0x51eb5a(0x1af)](_0x51eb5a(0x196),_0x380811[_0x51eb5a(0x1ae)]),this[_0x51eb5a(0x17a)]=new _0x17f3ae(),this[_0x51eb5a(0x1a0)]=new _0x5914dd(_0x18ae21),this[_0x51eb5a(0x1aa)]=new _0xfcff3d(_0x18ae21,_0x483357),this[_0x51eb5a(0x1aa)][_0x51eb5a(0x19e)](_0x51eb5a(0x1b8))['to'](this),this[_0x51eb5a(0x1aa)][_0x51eb5a(0x19e)](_0x51eb5a(0x18c))['to'](this),this[_0x51eb5a(0x186)]=this[_0x51eb5a(0x17f)](),this[_0x51eb5a(0x186)][_0x51eb5a(0x19e)](_0x51eb5a(0x196))['to'](this),this[_0x51eb5a(0x1a8)]=this[_0x51eb5a(0x183)](),this[_0x51eb5a(0x1b6)]=new _0x4d1ddb(),this[_0x51eb5a(0x17c)]=new _0x5e956e(),this[_0x51eb5a(0x180)]=this[_0x51eb5a(0x194)]([this[_0x51eb5a(0x1aa)],this[_0x51eb5a(0x1aa)][_0x51eb5a(0x193)],this[_0x51eb5a(0x186)],this[_0x51eb5a(0x1a8)]]),this[_0x51eb5a(0x19c)]=new _0xe97cad({'focusables':this[_0x51eb5a(0x180)],'focusTracker':this[_0x51eb5a(0x1b6)],'keystrokeHandler':this[_0x51eb5a(0x17c)],'actions':{'focusPrevious':_0x51eb5a(0x185),'focusNext':_0x51eb5a(0x197)}}),this[_0x51eb5a(0x19c)][_0x51eb5a(0x188)](this[_0x51eb5a(0x1a8)][_0x51eb5a(0x19c)]),this[_0x51eb5a(0x1a8)][_0x51eb5a(0x199)][_0x51eb5a(0x1ad)][_0x51eb5a(0x19e)](_0x51eb5a(0x18c))['to'](this,_0x51eb5a(0x1b9));const _0x7f3ef4=this[_0x51eb5a(0x1b4)];this[_0x51eb5a(0x189)]({'tag':_0x51eb5a(0x1bc),'attributes':{'class':['ck',_0x51eb5a(0x1a4),_0x369ee0],'tabindex':'-1'},'children':[{'tag':_0x51eb5a(0x1bc),'attributes':{'class':['ck',_0x51eb5a(0x1c0)]},'children':[{'tag':_0x51eb5a(0x1bc),'attributes':{'class':[_0x7f3ef4['if'](_0x51eb5a(0x1ac),_0x51eb5a(0x1a9),_0x2ced17=>!_0x2ced17)]},'children':[this[_0x51eb5a(0x1a0)]]},this[_0x51eb5a(0x1aa)],this[_0x51eb5a(0x186)],this[_0x51eb5a(0x1a8)]]}]});}[_0x53f389(0x187)](){const _0x306b9c=_0x53f389;super[_0x306b9c(0x187)](),this[_0x306b9c(0x1b6)][_0x306b9c(0x173)](this[_0x306b9c(0x1aa)][_0x306b9c(0x18e)]),this[_0x306b9c(0x1b6)][_0x306b9c(0x173)](this[_0x306b9c(0x1aa)][_0x306b9c(0x193)][_0x306b9c(0x18e)]),this[_0x306b9c(0x1b6)][_0x306b9c(0x173)](this[_0x306b9c(0x186)][_0x306b9c(0x18e)]),this[_0x306b9c(0x1b6)][_0x306b9c(0x173)](this[_0x306b9c(0x1a8)][_0x306b9c(0x18e)]),this[_0x306b9c(0x17c)][_0x306b9c(0x1c6)](this[_0x306b9c(0x18e)]);}[_0x53f389(0x179)](_0x77bc86=0x1){const _0x371dcc=_0x53f389;-0x1===_0x77bc86?this[_0x371dcc(0x19c)][_0x371dcc(0x1a5)]():this[_0x371dcc(0x19c)][_0x371dcc(0x1c4)]();}[_0x53f389(0x1a6)](){const _0x937f57=_0x53f389;this[_0x937f57(0x1b9)]='',this[_0x937f57(0x18c)]='',this[_0x937f57(0x1ac)]=!0x1,this[_0x937f57(0x1a8)][_0x937f57(0x1a6)](),this[_0x937f57(0x1aa)][_0x937f57(0x19b)]=!0x1,this[_0x937f57(0x186)][_0x937f57(0x19b)]=!0x1;}[_0x53f389(0x183)](){const _0x152f0c=_0x53f389,_0x5376bd=this[_0x152f0c(0x1bd)],_0x1a1798=new _0x11f780(_0x5376bd,{'queryView':{'label':_0x405067(_0x5376bd,_0x152f0c(0x1b0)),'creator':_0x35cd01,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x405067(_0x5376bd,_0x152f0c(0x192)),'secondary':_0x405067(_0x5376bd,_0x152f0c(0x1b1))}}},'filteredView':this[_0x152f0c(0x18b)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1a1798[_0x152f0c(0x19e)](_0x152f0c(0x195))['to'](this,_0x152f0c(0x195),this,_0x152f0c(0x1b8),(_0x10b304,_0x50505b)=>_0x10b304&&!_0x50505b),this[_0x152f0c(0x1c6)](_0x1a1798,_0x152f0c(0x1ab),(_0x488d25,_0x236118)=>{const _0x10dba7=_0x152f0c;this[_0x10dba7(0x1b9)]=_0x236118;const _0x5824dd=_0x21f2ca(_0x236118);this[_0x10dba7(0x1a2)](_0x10dba7(0x17b),_0x5824dd),_0x236118[_0x10dba7(0x1a7)]()&&this[_0x10dba7(0x17a)][_0x10dba7(0x173)]({'prompt':_0x5824dd},0x0);},{'priority':_0x152f0c(0x172)}),_0x1a1798;}[_0x53f389(0x18b)](){const _0x41493e=_0x53f389,_0x2cdc39=new _0x1bfcef(this[_0x41493e(0x1bd)]);return _0x2cdc39[_0x41493e(0x190)][_0x41493e(0x1bb)][_0x41493e(0x1ba)](this[_0x41493e(0x17a)])['as'](_0x518720),_0x2cdc39['on'](_0x41493e(0x178),()=>{const _0x102c57=_0x41493e;this[_0x102c57(0x17a)][_0x102c57(0x19f)](),this[_0x102c57(0x1a8)][_0x102c57(0x184)](''),this[_0x102c57(0x1a8)][_0x102c57(0x179)]();}),_0x2cdc39;}[_0x53f389(0x17f)](){const _0x30c2a8=_0x53f389,_0x2f4073=new _0x53f21f(this[_0x30c2a8(0x1bd)]);return _0x2f4073[_0x30c2a8(0x17d)][_0x30c2a8(0x19e)](_0x30c2a8(0x195))['to'](this,_0x30c2a8(0x195),this,_0x30c2a8(0x1b8),this,_0x30c2a8(0x18c),(_0x26db78,_0x14efea,_0x2e92de)=>_0x26db78&&!_0x14efea&&!!_0x2e92de),_0x2f4073[_0x30c2a8(0x17d)][_0x30c2a8(0x19a)](_0x30c2a8(0x17e))['to'](this,_0x30c2a8(0x198)),_0x2f4073[_0x30c2a8(0x1b5)][_0x30c2a8(0x19e)](_0x30c2a8(0x195))['to'](this,_0x30c2a8(0x195),this,_0x30c2a8(0x1b8),this,_0x30c2a8(0x18c),(_0xe263fa,_0x55cdfa,_0x17e687)=>_0xe263fa&&!_0x55cdfa&&!!_0x17e687),_0x2f4073[_0x30c2a8(0x1b5)][_0x30c2a8(0x19a)](_0x30c2a8(0x17e))['to'](this,_0x30c2a8(0x1b2)),_0x2f4073[_0x30c2a8(0x18a)][_0x30c2a8(0x19e)](_0x30c2a8(0x195))['to'](this,_0x30c2a8(0x195),this,_0x30c2a8(0x1b8),(_0x2cccff,_0x5a8421)=>_0x2cccff&&!_0x5a8421),_0x2f4073[_0x30c2a8(0x18a)][_0x30c2a8(0x19a)](_0x30c2a8(0x17e))['to'](this,_0x30c2a8(0x174)),_0x2f4073[_0x30c2a8(0x176)][_0x30c2a8(0x19e)](_0x30c2a8(0x195))['to'](this,_0x30c2a8(0x1b8)),_0x2f4073[_0x30c2a8(0x176)][_0x30c2a8(0x19a)](_0x30c2a8(0x17e))['to'](this,_0x30c2a8(0x1a3)),_0x2f4073;}[_0x53f389(0x1be)](){const _0x1cf302=_0x53f389;this[_0x1cf302(0x18c)]='',this[_0x1cf302(0x1ac)]=!0x1,this[_0x1cf302(0x1b8)]=!0x0,this[_0x1cf302(0x1aa)][_0x1cf302(0x19b)]=!0x0,this[_0x1cf302(0x186)][_0x1cf302(0x19b)]=!0x0,this[_0x1cf302(0x1aa)][_0x1cf302(0x179)]();}[_0x53f389(0x1c2)](){const _0x27cd84=_0x53f389,_0x406e07=this[_0x27cd84(0x1bd)];this[_0x27cd84(0x1b8)]=!0x1,this[_0x27cd84(0x1b9)]='',this[_0x27cd84(0x1a8)][_0x27cd84(0x1a6)](),this[_0x27cd84(0x18c)]&&(this[_0x27cd84(0x1a8)][_0x27cd84(0x199)][_0x27cd84(0x1c3)]=_0x405067(_0x406e07,_0x27cd84(0x1a1)));}[_0x53f389(0x18f)](_0x1e113f){const _0x18d5ba=_0x53f389,_0x20e022=this[_0x18d5ba(0x1bd)];this[_0x18d5ba(0x1c2)](),this[_0x18d5ba(0x1ac)]=!0x0,this[_0x18d5ba(0x1a0)][_0x18d5ba(0x191)]=_0x1e113f||_0x405067(_0x20e022,_0x18d5ba(0x1bf)),this[_0x18d5ba(0x18c)]||(this[_0x18d5ba(0x1aa)][_0x18d5ba(0x19b)]=!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(_0x16a16b,_0x5ec8b6){const _0x77a8fb=_0x2829,_0x1f68c9=_0x16a16b();while(!![]){try{const _0x115c5a=-parseInt(_0x77a8fb(0x1f5))/0x1+-parseInt(_0x77a8fb(0x1fc))/0x2*(parseInt(_0x77a8fb(0x1f2))/0x3)+-parseInt(_0x77a8fb(0x1fb))/0x4*(parseInt(_0x77a8fb(0x1f7))/0x5)+parseInt(_0x77a8fb(0x1fd))/0x6+parseInt(_0x77a8fb(0x1ff))/0x7*(-parseInt(_0x77a8fb(0x1f0))/0x8)+-parseInt(_0x77a8fb(0x1fe))/0x9*(parseInt(_0x77a8fb(0x1f1))/0xa)+parseInt(_0x77a8fb(0x1f4))/0xb;if(_0x115c5a===_0x5ec8b6)break;else _0x1f68c9['push'](_0x1f68c9['shift']());}catch(_0x36d7e8){_0x1f68c9['push'](_0x1f68c9['shift']());}}}(_0x5812,0xa630a));function _0x2829(_0x1e3435,_0x3bb55b){const _0x581237=_0x5812();return _0x2829=function(_0x2829cf,_0x2cd1d8){_0x2829cf=_0x2829cf-0x1ee;let _0x26345d=_0x581237[_0x2829cf];return _0x26345d;},_0x2829(_0x1e3435,_0x3bb55b);}import{ListItemView as _0x5c9cb1,ButtonView as _0x46e41a,ButtonLabelView as _0x4d985e}from'ckeditor5/src/ui.js';import{unescape as _0x5706a5}from'es-toolkit/compat';function _0x5812(){const _0x2b867e=['add','8kVqhEd','2290tlkSjC','3827082STYVXS','fire','29684655riAyXI','26052hJMZik','prompt','443995hpaGDc','locale','children','set','36sbzSRi','2GqcnEC','7784466GGFlfW','37458OnlEZW','1828869haFIhT','execute'];_0x5812=function(){return _0x2b867e;};return _0x5812();}export class AIHistoryListItemView extends _0x5c9cb1{constructor(_0x422175){const _0xccb339=_0x2829;super();const _0x2d75c2=new _0x4d985e(),_0x49f0cf=new _0x46e41a(this[_0xccb339(0x1f8)],_0x2d75c2);this[_0xccb339(0x1f9)][_0xccb339(0x1ef)](_0x49f0cf),_0x49f0cf[_0xccb339(0x1fa)]({'label':_0x422175[_0xccb339(0x1f6)],'withText':!0x0}),_0x49f0cf['on'](_0xccb339(0x1ee),()=>{const _0x5da933=_0xccb339;this[_0x5da933(0x1f3)](_0x5da933(0x1ee),{'value':_0x5706a5(_0x422175[_0x5da933(0x1f6)])});});}}
@@ -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 _0x24a110=_0x1925;(function(_0x4b1111,_0x1ff777){const _0xfaa194=_0x1925,_0xa4cd1e=_0x4b1111();while(!![]){try{const _0x27d3e2=-parseInt(_0xfaa194(0x1ee))/0x1+-parseInt(_0xfaa194(0x1f0))/0x2+-parseInt(_0xfaa194(0x1dc))/0x3+parseInt(_0xfaa194(0x1e4))/0x4*(-parseInt(_0xfaa194(0x1da))/0x5)+-parseInt(_0xfaa194(0x1e2))/0x6*(-parseInt(_0xfaa194(0x1d7))/0x7)+-parseInt(_0xfaa194(0x1dd))/0x8+parseInt(_0xfaa194(0x1ec))/0x9*(parseInt(_0xfaa194(0x1df))/0xa);if(_0x27d3e2===_0x1ff777)break;else _0xa4cd1e['push'](_0xa4cd1e['shift']());}catch(_0x1871de){_0xa4cd1e['push'](_0xa4cd1e['shift']());}}}(_0x29f2,0xefeb4));function _0x1925(_0x1bd24e,_0x582c03){const _0x29f292=_0x29f2();return _0x1925=function(_0x19251c,_0x201275){_0x19251c=_0x19251c-0x1d6;let _0x4f4000=_0x29f292[_0x19251c];return _0x4f4000;},_0x1925(_0x1bd24e,_0x582c03);}import{ListView as _0x34785d,ListItemGroupView as _0x36dadb,ButtonView as _0x331901}from'ckeditor5/src/ui.js';import{getTranslation as _0x2cdc0b}from'../../utils/common-translations.js';function _0x29f2(){const _0x4ad7bd=['historyGroupView','Prompt\x20history','6597ZZUPEd','_createClearHistoryButton','803505RagxTu','items','2850300gKqOsa','set','2152822MFquzf','Clear','filter','380JDHltH','children','471903qPZzvt','13182768zJhdWk','clearHistory','57880RfacCh','fire','add','18vgByxF','delegate','7828DleACX','clearHistoryButton','locale','execute','label','length'];_0x29f2=function(){return _0x4ad7bd;};return _0x29f2();}export class AIHistoryListView extends _0x34785d{[_0x24a110(0x1ea)];[_0x24a110(0x1e5)];constructor(_0x318cdf){const _0x2e5a4e=_0x24a110;super(_0x318cdf),this[_0x2e5a4e(0x1e5)]=this[_0x2e5a4e(0x1ed)](),this[_0x2e5a4e(0x1ea)]=new _0x36dadb(),this[_0x2e5a4e(0x1ea)][_0x2e5a4e(0x1db)][_0x2e5a4e(0x1e1)](this[_0x2e5a4e(0x1e5)],0x1),this[_0x2e5a4e(0x1ea)][_0x2e5a4e(0x1e8)]=_0x2cdc0b(_0x318cdf,_0x2e5a4e(0x1eb)),this[_0x2e5a4e(0x1ea)][_0x2e5a4e(0x1ef)][_0x2e5a4e(0x1e3)](_0x2e5a4e(0x1e7))['to'](this),this[_0x2e5a4e(0x1ef)][_0x2e5a4e(0x1e1)](this[_0x2e5a4e(0x1ea)]);}[_0x24a110(0x1d9)](){const _0x35468d=_0x24a110;let _0x461bc3=0x0;for(const _0xc0b88 of this[_0x35468d(0x1ef)])_0x461bc3+=_0xc0b88[_0x35468d(0x1ef)][_0x35468d(0x1e9)];return{'resultsCount':_0x461bc3,'totalItemsCount':_0x461bc3};}[_0x24a110(0x1ed)](){const _0xf87ec9=_0x24a110,_0x5b19fa=this[_0xf87ec9(0x1e6)],_0x3872b2=new _0x331901(this[_0xf87ec9(0x1e6)]);return _0x3872b2[_0xf87ec9(0x1d6)]({'label':'('+_0x2cdc0b(_0x5b19fa,_0xf87ec9(0x1d8))+')','withText':!0x0}),_0x3872b2['on'](_0xf87ec9(0x1e7),()=>this[_0xf87ec9(0x1e0)](_0xf87ec9(0x1de))),_0x3872b2;}}
@@ -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 _0x1b5c46=_0x8a41;function _0x8a41(_0x1aa979,_0x2abb5f){const _0x3749f3=_0x3749();return _0x8a41=function(_0x8a41f5,_0x1972bc){_0x8a41f5=_0x8a41f5-0x134;let _0xb83531=_0x3749f3[_0x8a41f5];return _0xb83531;},_0x8a41(_0x1aa979,_0x2abb5f);}(function(_0x2b90d0,_0x5e822b){const _0x1e8d8b=_0x8a41,_0x1d1c38=_0x2b90d0();while(!![]){try{const _0x5ae3f0=-parseInt(_0x1e8d8b(0x147))/0x1*(-parseInt(_0x1e8d8b(0x14b))/0x2)+parseInt(_0x1e8d8b(0x149))/0x3+parseInt(_0x1e8d8b(0x139))/0x4*(-parseInt(_0x1e8d8b(0x13b))/0x5)+-parseInt(_0x1e8d8b(0x13e))/0x6+parseInt(_0x1e8d8b(0x144))/0x7+-parseInt(_0x1e8d8b(0x140))/0x8*(-parseInt(_0x1e8d8b(0x134))/0x9)+-parseInt(_0x1e8d8b(0x137))/0xa*(-parseInt(_0x1e8d8b(0x135))/0xb);if(_0x5ae3f0===_0x5e822b)break;else _0x1d1c38['push'](_0x1d1c38['shift']());}catch(_0x188dfd){_0x1d1c38['push'](_0x1d1c38['shift']());}}}(_0x3749,0x2804d));import{Collection as _0xb37f2e}from'ckeditor5/src/utils.js';const ts=_0x1b5c46(0x13c);export class PromptHistory extends _0xb37f2e{constructor(){const _0x47326e=_0x1b5c46;super(),this[_0x47326e(0x14d)](),this['on'](_0x47326e(0x14c),(_0x25f35a,_0x5cdd27)=>{const _0xffd1f3=_0x47326e,_0x4f86fb=os(_0x5cdd27[_0xffd1f3(0x148)]);for(const _0x45d720 of this)if(_0x45d720!=_0x5cdd27&&os(_0x45d720[_0xffd1f3(0x148)])===_0x4f86fb){this[_0xffd1f3(0x142)](_0x45d720);break;}this[_0xffd1f3(0x141)]>0x14&&this[_0xffd1f3(0x142)](this[_0xffd1f3(0x13d)]),this[_0xffd1f3(0x14e)]();}),this['on'](_0x47326e(0x142),()=>{const _0x30768e=_0x47326e;this[_0x30768e(0x14e)]();});}[_0x1b5c46(0x14d)](){const _0x599b42=_0x1b5c46,_0x514c27=sessionStorage[_0x599b42(0x138)](ts)||'[]';this[_0x599b42(0x13f)](JSON[_0x599b42(0x14a)](_0x514c27));}[_0x1b5c46(0x14e)](){const _0x59a499=_0x1b5c46;sessionStorage[_0x59a499(0x145)](ts,JSON[_0x59a499(0x13a)](this[_0x59a499(0x136)](_0x1f3bae=>_0x1f3bae)));}}function _0x3749(){const _0x550d06=['955968ewGNsR','parse','104DRqUqJ','add','_loadFromSessionStorage','_saveToSessionStorage','11205ISacyp','257939kgnQbr','map','20yYAKOL','getItem','929468TpMTAq','stringify','5MlTKey','CKEditor/AIFormView/PromptHistory','last','1320516SzMzGc','addMany','16bOwbKr','length','remove','trim','444626rcDJvU','setItem','toLowerCase','3554MJEBSQ','prompt'];_0x3749=function(){return _0x550d06;};return _0x3749();}function os(_0x3f4368){const _0x186f7a=_0x1b5c46;return _0x3f4368[_0x186f7a(0x146)]()[_0x186f7a(0x143)]();}
@@ -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
+ function _0x52b0(_0x11a083,_0x37f64a){const _0x164381=_0x1643();return _0x52b0=function(_0x52b060,_0x18cbfc){_0x52b060=_0x52b060-0xeb;let _0x32b938=_0x164381[_0x52b060];return _0x32b938;},_0x52b0(_0x11a083,_0x37f64a);}const _0x15ea53=_0x52b0;(function(_0x26c2d7,_0x10a934){const _0x1d4b3c=_0x52b0,_0x1ba637=_0x26c2d7();while(!![]){try{const _0x41411e=-parseInt(_0x1d4b3c(0x110))/0x1+parseInt(_0x1d4b3c(0x106))/0x2*(parseInt(_0x1d4b3c(0xed))/0x3)+parseInt(_0x1d4b3c(0xfd))/0x4+-parseInt(_0x1d4b3c(0x10c))/0x5*(parseInt(_0x1d4b3c(0xf4))/0x6)+-parseInt(_0x1d4b3c(0x116))/0x7+parseInt(_0x1d4b3c(0x103))/0x8*(-parseInt(_0x1d4b3c(0x115))/0x9)+-parseInt(_0x1d4b3c(0x113))/0xa*(-parseInt(_0x1d4b3c(0x108))/0xb);if(_0x41411e===_0x10a934)break;else _0x1ba637['push'](_0x1ba637['shift']());}catch(_0xfd58bc){_0x1ba637['push'](_0x1ba637['shift']());}}}(_0x1643,0x8c930));import{Command as _0x435476}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x34903b}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x435476{[_0x15ea53(0xfc)];constructor(_0x307a8e,_0x5aa201){const _0xc28022=_0x15ea53;super(_0x307a8e),this[_0xc28022(0xfc)]=_0x5aa201,this[_0xc28022(0xeb)](_0xc28022(0xf7),[]),this['on'](_0xc28022(0x104),(_0x39d8e2,_0x4a8549,_0x4638dc)=>{const _0x4eb1f9=_0xc28022;this[_0x4eb1f9(0x102)]&&(this[_0x4eb1f9(0xf7)]=F(this[_0x4eb1f9(0xfc)],_0x4638dc));}),this[_0xc28022(0xeb)](_0xc28022(0xef),!0x1),this['on'](_0xc28022(0xf5),(_0x415893,_0x36ed83,_0x4a771a)=>{const _0x4da2db=_0xc28022;this[_0x4da2db(0xf7)]=_0x4a771a?F(this[_0x4da2db(0xfc)],this[_0x4da2db(0xef)]):[];});}[_0x15ea53(0x10a)](){const _0xb4f9e2=_0x15ea53,_0x1081c7=this[_0xb4f9e2(0x10e)][_0xb4f9e2(0xec)];this[_0xb4f9e2(0xef)]=function(_0x3c895e){const _0x3562d8=_0xb4f9e2,_0x16137b=_0x3c895e[_0x3562d8(0x101)][_0x3562d8(0xf0)];return _0x16137b[_0x3562d8(0x107)]?0x0!==[..._0x16137b[_0x3562d8(0x105)]()][_0x3562d8(0x10b)]&&![..._0x16137b[_0x3562d8(0x105)]()][0x0][_0x3562d8(0x10d)]:!!_0x3c895e[_0x3562d8(0xfb)](_0x16137b[_0x3562d8(0xf1)]());}(_0x1081c7);const _0xccedaa=_0x1081c7[_0xb4f9e2(0x101)][_0xb4f9e2(0xf0)],_0x1c509f=this[_0xb4f9e2(0x10e)][_0xb4f9e2(0x10f)][_0xb4f9e2(0x114)](_0xb4f9e2(0x109));for(const _0x321657 of _0xccedaa[_0xb4f9e2(0xfe)]())for(const _0x426846 of _0x321657[_0xb4f9e2(0xf8)]())if(_0x426846['is'](_0xb4f9e2(0xf9))&&_0x1c509f[_0xb4f9e2(0x100)](_0x426846[_0xb4f9e2(0xee)]))return void(this[_0xb4f9e2(0x102)]=!0x1);this[_0xb4f9e2(0x102)]=!0x0;}[_0x15ea53(0xf3)](_0x539acd='',_0x1004e9='',_0x5e07e8=_0x15ea53(0xfa)){const _0x57565f=_0x15ea53;this[_0x57565f(0x10e)][_0x57565f(0x111)][_0x57565f(0x114)](_0x34903b)[_0x57565f(0xf2)](_0x539acd,_0x1004e9,_0x5e07e8);}}function _0x1643(){const _0x3ddf10=['document','isEnabled','7704InxAQv','change:_hasContext','getSelectedBlocks','46SOeGZj','isCollapsed','11xeBzjd','ai.aiAssistant.disabledElements','refresh','length','5PRbkCY','isEmpty','editor','config','823231sHGrtX','plugins','requiresContent','15489130wOYPDm','get','5967WvzbYq','4375462qocwwI','from','set','model','145989tzkezn','name','_hasContext','selection','getFirstRange','showUI','execute','4698294KEpnkm','change:isEnabled','add','enabledCommandsIds','getItems','element','custom','hasContent','_commandDefinitions','3109780ClWgMd','getRanges','values','includes'];_0x1643=function(){return _0x3ddf10;};return _0x1643();}function F(_0x4922ce,_0x40f66b){const _0x7740a0=_0x15ea53,_0x2e76a8=new Set();for(const _0x344ba9 of _0x4922ce[_0x7740a0(0xff)]())(_0x40f66b||!0x1===_0x344ba9[_0x7740a0(0x112)])&&_0x2e76a8[_0x7740a0(0xf6)](_0x344ba9['id']);return Array[_0x7740a0(0x117)](_0x2e76a8);}
@@ -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(_0x4bb1d7,_0x280700,_0x46bc38){const t=_0x4bb1d7['t'];switch(_0x280700){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',_0x46bc38);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x46bc38);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'},_0x46bc38);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 _0x280700;}}
@@ -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(_0x412ebc,_0x58295a){const _0x283d74=(0x0,_0x58295a['t'])('Other');return _0x412ebc['length']?'groupId'in _0x412ebc[0x0]?_0x412ebc:[{'groupId':'_ungrouppedCommands','groupLabel':_0x283d74,'order':0x1/0x0,'commands':_0x412ebc}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x283d74,'order':0x1/0x0,'commands':[]}];}
package/theme/ai-form.css CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  @mixin ck-media-phone {
30
30
  /* Allow the for the layout to be fluid in narrow viewports to avoid breaking it due to limited
31
- * horizontal space (https://github.com/cksource/ckeditor5-commercial/issues/5913). */
31
+ * horizontal space (https://github.com/ckeditor/ckeditor5-commercial/issues/5913). */
32
32
  --ck-ai-form-view-width: 100vw;
33
33
  }
34
34
 
@@ -193,7 +193,7 @@
193
193
 
194
194
  /* Squash the textarea horizontally if necessary on narrow layouts
195
195
  * to avoid breaking the layout even at the cost of the placeholder
196
- * being cut off (https://github.com/cksource/ckeditor5-commercial/issues/5913). */
196
+ * being cut off (https://github.com/ckeditor/ckeditor5-commercial/issues/5913). */
197
197
  @mixin ck-media-phone {
198
198
  --ck-input-width: auto;
199
199
  }