@ckeditor/ckeditor5-ai 46.1.0-alpha.0 → 46.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/adapters/aiadapter.js +1 -1
  151. package/src/adapters/aitextadapter.js +1 -1
  152. package/src/adapters/awstextadapter.js +1 -1
  153. package/src/adapters/openaitextadapter.js +1 -1
  154. package/src/aiassistant.js +1 -1
  155. package/src/aiassistantediting.js +1 -1
  156. package/src/aiassistantui.js +1 -1
  157. package/src/index.js +1 -1
  158. package/src/legacyerrors.js +1 -1
  159. package/src/ui/aiassistantcontroller.js +2 -2
  160. package/src/ui/form/aiformcontentarea.js +1 -1
  161. package/src/ui/form/aiformerrorview.js +1 -1
  162. package/src/ui/form/aiformpromptview.js +1 -1
  163. package/src/ui/form/aiformtoolbarview.js +1 -1
  164. package/src/ui/form/aiformview.js +1 -1
  165. package/src/ui/form/aihistorylistitemview.js +1 -1
  166. package/src/ui/form/aihistorylistview.js +1 -1
  167. package/src/ui/form/prompthistory.js +1 -1
  168. package/src/ui/showaiassistantcommand.js +1 -1
  169. package/src/utils/common-translations.js +1 -1
  170. package/src/utils/normalizecommandsconfig.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2482c=_0x3888;function _0x3888(_0x8e0d93,_0x5e83a8){const _0x57f37a=_0x57f3();return _0x3888=function(_0x388838,_0xd633d1){_0x388838=_0x388838-0x97;let _0x2a29c8=_0x57f37a[_0x388838];return _0x2a29c8;},_0x3888(_0x8e0d93,_0x5e83a8);}function _0x57f3(){const _0xc4c27b=['isOn','children','submit','609420yayQyO','ck-ai-form__submit','focusableChildren','rtl','render','fire','minRows','window','_createSubmitButton','focusCycler','element','isEmpty','67189WnVyWL','submitButtonView','execute','showHistoryButtonView','fieldWrapperChildren','locale','2916738myyimV','left','keystrokes','6ljHJvw','enter','ck-ai-form__toggle-history','isEnabled','uiLanguageDirection','fieldView','queryView','requestAnimationFrame','27060uBpDce','value','add','filteredView','focusLast','style','History','focus','target','1619288MqBPJj','isVisible','bind','resultsView','13413ZWAvFb','maxRows','set','1136420QrhAqO','excludeScrollbarsAndBorders','Submit','right','300ETngRb','focusFirst','update','_createShowHistoryButton','width'];_0x57f3=function(){return _0xc4c27b;};return _0x57f3();}(function(_0x125cec,_0x1ebf3f){const _0x105d16=_0x3888,_0x2c3b4c=_0x125cec();while(!![]){try{const _0xd13573=-parseInt(_0x105d16(0x99))/0x1*(-parseInt(_0x105d16(0xa2))/0x2)+-parseInt(_0x105d16(0xb7))/0x3+parseInt(_0x105d16(0xba))/0x4+parseInt(_0x105d16(0xbe))/0x5*(-parseInt(_0x105d16(0xaa))/0x6)+parseInt(_0x105d16(0xc6))/0x7+parseInt(_0x105d16(0xb3))/0x8+-parseInt(_0x105d16(0x9f))/0x9;if(_0xd13573===_0x1ebf3f)break;else _0x2c3b4c['push'](_0x2c3b4c['shift']());}catch(_0x26c812){_0x2c3b4c['push'](_0x2c3b4c['shift']());}}}(_0x57f3,0x2af76));import{Rect as _0x5e8ea1,global as _0x30d82b,isVisible as _0x4b6869}from'ckeditor5/src/utils.js';import{IconHistory as _0x31e187,IconSubmit as _0x28172b}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x3ae2af,ButtonView as _0xdfa0a8}from'ckeditor5/src/ui.js';import{getTranslation as _0x51ca1c}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x3ae2af{[_0x2482c(0x9a)];[_0x2482c(0x9c)];constructor(_0x1ccdd7,_0x16dabb){const _0x3b2e08=_0x2482c;super(_0x1ccdd7,_0x16dabb),this[_0x3b2e08(0xa8)][_0x3b2e08(0xa7)][_0x3b2e08(0xcc)]=0x1,this[_0x3b2e08(0xa8)][_0x3b2e08(0xa7)][_0x3b2e08(0xb8)]=0x3,this[_0x3b2e08(0x9a)]=this[_0x3b2e08(0xce)](),this[_0x3b2e08(0x9c)]=this[_0x3b2e08(0xc1)](),this[_0x3b2e08(0xc8)][_0x3b2e08(0xac)](this[_0x3b2e08(0x9c)],0x1),this[_0x3b2e08(0xc8)][_0x3b2e08(0xac)](this[_0x3b2e08(0x9a)]);}[_0x2482c(0xca)](){const _0x52d5b6=_0x2482c;super[_0x52d5b6(0xca)](),this[_0x52d5b6(0xa8)][_0x52d5b6(0x9d)][_0x52d5b6(0xac)](this[_0x52d5b6(0x9c)]),this[_0x52d5b6(0xc4)][_0x52d5b6(0xac)](this[_0x52d5b6(0x9a)]),this[_0x52d5b6(0xa1)][_0x52d5b6(0xb9)](_0x52d5b6(0xa3),(_0x33ee83,_0x1b1f9f)=>{const _0x1b7fdf=_0x52d5b6;_0x33ee83[_0x1b7fdf(0xb2)]==this[_0x1b7fdf(0xa8)][_0x1b7fdf(0xa7)][_0x1b7fdf(0x97)]&&(this[_0x1b7fdf(0xc5)](),_0x1b1f9f());});}[_0x2482c(0xce)](){const _0x17efbb=_0x2482c,_0x27b3cb=new _0xdfa0a8(this[_0x17efbb(0x9e)]),_0x5af9bc=this[_0x17efbb(0x9e)];return _0x27b3cb[_0x17efbb(0xb9)]({'icon':_0x28172b,'label':_0x51ca1c(_0x5af9bc,_0x17efbb(0xbc)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x17efbb(0xc7)}),_0x27b3cb['on'](_0x17efbb(0x9b),()=>{const _0x1e5809=_0x17efbb;this[_0x1e5809(0xc5)]();}),_0x27b3cb[_0x17efbb(0xb5)](_0x17efbb(0xa5))['to'](this[_0x17efbb(0xa8)][_0x17efbb(0xa7)],_0x17efbb(0x98),this,_0x17efbb(0xa5),(_0x168e9a,_0x1029a8)=>!_0x168e9a&&_0x1029a8),_0x27b3cb;}[_0x2482c(0xc1)](){const _0x26b6da=_0x2482c,_0x53d280=new _0xdfa0a8(this[_0x26b6da(0x9e)]),_0x1dc32c=this[_0x26b6da(0xb6)],_0xcbdbff=this[_0x26b6da(0x9e)];_0x53d280[_0x26b6da(0xb9)]({'label':_0x51ca1c(_0xcbdbff,_0x26b6da(0xb0)),'withText':!0x1,'icon':_0x31e187,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x26b6da(0xa4)}),_0x53d280[_0x26b6da(0xb5)](_0x26b6da(0xc3))['to'](_0x1dc32c,_0x26b6da(0xb4)),_0x53d280[_0x26b6da(0xb5)](_0x26b6da(0xa5))['to'](this,_0x26b6da(0xa5)),_0x53d280['on'](_0x26b6da(0x9b),()=>{const _0x1d27c7=_0x26b6da;_0x1dc32c[_0x1d27c7(0xb4)]=!_0x1dc32c[_0x1d27c7(0xb4)],_0x1dc32c[_0x1d27c7(0xb4)]?this[_0x1d27c7(0xad)][_0x1d27c7(0xb1)]():this[_0x1d27c7(0xb1)]();});const _0x5d15db=()=>{const _0x2a4896=_0x26b6da;_0x30d82b[_0x2a4896(0xcd)][_0x2a4896(0xa9)](()=>{const _0x1f1c78=_0x2a4896;if(_0x4b6869(this[_0x1f1c78(0x97)])){const _0x16eaaf=new _0x5e8ea1(this[_0x1f1c78(0xa8)][_0x1f1c78(0xa7)][_0x1f1c78(0x97)]),_0x7f8e86=_0x16eaaf[_0x1f1c78(0xc2)],_0x2e3f30=_0x1f1c78(0xc9)===_0xcbdbff[_0x1f1c78(0xa6)]?_0x1f1c78(0xa0):_0x1f1c78(0xbd);_0x16eaaf[_0x1f1c78(0xbb)](),_0x53d280[_0x1f1c78(0x97)][_0x1f1c78(0xaf)][_0x2e3f30]=_0x7f8e86-_0x16eaaf[_0x1f1c78(0xc2)]+0x1+'px';}});};return this[_0x26b6da(0xa8)][_0x26b6da(0xa7)]['on'](_0x26b6da(0xc0),_0x5d15db),this['on'](_0x26b6da(0xca),_0x5d15db),_0x53d280;}[_0x2482c(0xc5)](){const _0x565adf=_0x2482c,_0x4c7e05=this[_0x565adf(0xa8)][_0x565adf(0xa7)][_0x565adf(0x97)][_0x565adf(0xab)];this[_0x565adf(0xcb)](_0x565adf(0xc5),_0x4c7e05);}[_0x2482c(0xb1)](_0x5aefd1){const _0x203edd=_0x2482c;-0x1===_0x5aefd1?this[_0x203edd(0xcf)][_0x203edd(0xae)]():this[_0x203edd(0xcf)][_0x203edd(0xbf)]();}}
23
+ function _0x50b9(_0x26db13,_0x9ed4f9){const _0x281a54=_0x281a();return _0x50b9=function(_0x50b9c9,_0x29c393){_0x50b9c9=_0x50b9c9-0x10b;let _0x30d105=_0x281a54[_0x50b9c9];return _0x30d105;},_0x50b9(_0x26db13,_0x9ed4f9);}const _0x1a6ee0=_0x50b9;(function(_0xbfb1b5,_0x36dc2f){const _0xef583c=_0x50b9,_0x5a133a=_0xbfb1b5();while(!![]){try{const _0x43c71d=-parseInt(_0xef583c(0x11a))/0x1+parseInt(_0xef583c(0x115))/0x2+parseInt(_0xef583c(0x140))/0x3*(parseInt(_0xef583c(0x11c))/0x4)+-parseInt(_0xef583c(0x13f))/0x5*(-parseInt(_0xef583c(0x12c))/0x6)+-parseInt(_0xef583c(0x123))/0x7*(-parseInt(_0xef583c(0x142))/0x8)+-parseInt(_0xef583c(0x12d))/0x9*(-parseInt(_0xef583c(0x10d))/0xa)+parseInt(_0xef583c(0x11d))/0xb*(-parseInt(_0xef583c(0x117))/0xc);if(_0x43c71d===_0x36dc2f)break;else _0x5a133a['push'](_0x5a133a['shift']());}catch(_0x52b2d0){_0x5a133a['push'](_0x5a133a['shift']());}}}(_0x281a,0x5e0e4));import{Rect as _0x39061c,global as _0x3f3298,isVisible as _0x2eb86d}from'ckeditor5/src/utils.js';function _0x281a(){const _0x4bf45e=['focusableChildren','2232bDbNsY','ck-ai-form__submit','target','504082KVaaro','filteredView','2307308PGMiLM','72963nPxHjX','add','children','focusFirst','Submit','set','3666845xFGncO','minRows','execute','bind','focusLast','rtl','resultsView','window','_createSubmitButton','32514nbMhyr','4124457gLocNq','fire','requestAnimationFrame','enter','excludeScrollbarsAndBorders','style','width','uiLanguageDirection','locale','isOn','keystrokes','submit','focus','showHistoryButtonView','_createShowHistoryButton','isVisible','isEmpty','focusCycler','85NRgWiz','3lMSnvH','isEnabled','8vUiyND','maxRows','update','ck-ai-form__toggle-history','left','queryView','History','10oKBdlF','value','render','fieldWrapperChildren','element','right','submitButtonView','fieldView','944028vXIhrJ'];_0x281a=function(){return _0x4bf45e;};return _0x281a();}import{IconHistory as _0x439ada,IconSubmit as _0x162166}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x3ba669,ButtonView as _0x206d4e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5d9218}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x3ba669{[_0x1a6ee0(0x113)];[_0x1a6ee0(0x13a)];constructor(_0x198535,_0x2ca2c5){const _0x429045=_0x1a6ee0;super(_0x198535,_0x2ca2c5),this[_0x429045(0x10b)][_0x429045(0x114)][_0x429045(0x124)]=0x1,this[_0x429045(0x10b)][_0x429045(0x114)][_0x429045(0x143)]=0x3,this[_0x429045(0x113)]=this[_0x429045(0x12b)](),this[_0x429045(0x13a)]=this[_0x429045(0x13b)](),this[_0x429045(0x116)][_0x429045(0x11e)](this[_0x429045(0x13a)],0x1),this[_0x429045(0x116)][_0x429045(0x11e)](this[_0x429045(0x113)]);}[_0x1a6ee0(0x10f)](){const _0x5a3633=_0x1a6ee0;super[_0x5a3633(0x10f)](),this[_0x5a3633(0x10b)][_0x5a3633(0x110)][_0x5a3633(0x11e)](this[_0x5a3633(0x13a)]),this[_0x5a3633(0x11f)][_0x5a3633(0x11e)](this[_0x5a3633(0x113)]),this[_0x5a3633(0x137)][_0x5a3633(0x122)](_0x5a3633(0x130),(_0x1c30fa,_0x807303)=>{const _0x553074=_0x5a3633;_0x1c30fa[_0x553074(0x119)]==this[_0x553074(0x10b)][_0x553074(0x114)][_0x553074(0x111)]&&(this[_0x553074(0x138)](),_0x807303());});}[_0x1a6ee0(0x12b)](){const _0x27b433=_0x1a6ee0,_0x54d140=new _0x206d4e(this[_0x27b433(0x135)]),_0x590214=this[_0x27b433(0x135)];return _0x54d140[_0x27b433(0x122)]({'icon':_0x162166,'label':_0x5d9218(_0x590214,_0x27b433(0x121)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x27b433(0x118)}),_0x54d140['on'](_0x27b433(0x125),()=>{const _0x344fe8=_0x27b433;this[_0x344fe8(0x138)]();}),_0x54d140[_0x27b433(0x126)](_0x27b433(0x141))['to'](this[_0x27b433(0x10b)][_0x27b433(0x114)],_0x27b433(0x13d),this,_0x27b433(0x141),(_0x161c73,_0xb999f0)=>!_0x161c73&&_0xb999f0),_0x54d140;}[_0x1a6ee0(0x13b)](){const _0x255871=_0x1a6ee0,_0x1b508e=new _0x206d4e(this[_0x255871(0x135)]),_0x2446ee=this[_0x255871(0x129)],_0x713df2=this[_0x255871(0x135)];_0x1b508e[_0x255871(0x122)]({'label':_0x5d9218(_0x713df2,_0x255871(0x10c)),'withText':!0x1,'icon':_0x439ada,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x255871(0x145)}),_0x1b508e[_0x255871(0x126)](_0x255871(0x136))['to'](_0x2446ee,_0x255871(0x13c)),_0x1b508e[_0x255871(0x126)](_0x255871(0x141))['to'](this,_0x255871(0x141)),_0x1b508e['on'](_0x255871(0x125),()=>{const _0x20c640=_0x255871;_0x2446ee[_0x20c640(0x13c)]=!_0x2446ee[_0x20c640(0x13c)],_0x2446ee[_0x20c640(0x13c)]?this[_0x20c640(0x11b)][_0x20c640(0x139)]():this[_0x20c640(0x139)]();});const _0x42a8a1=()=>{const _0x4ac235=_0x255871;_0x3f3298[_0x4ac235(0x12a)][_0x4ac235(0x12f)](()=>{const _0x27d290=_0x4ac235;if(_0x2eb86d(this[_0x27d290(0x111)])){const _0x187fe9=new _0x39061c(this[_0x27d290(0x10b)][_0x27d290(0x114)][_0x27d290(0x111)]),_0x122f66=_0x187fe9[_0x27d290(0x133)],_0x3475ab=_0x27d290(0x128)===_0x713df2[_0x27d290(0x134)]?_0x27d290(0x146):_0x27d290(0x112);_0x187fe9[_0x27d290(0x131)](),_0x1b508e[_0x27d290(0x111)][_0x27d290(0x132)][_0x3475ab]=_0x122f66-_0x187fe9[_0x27d290(0x133)]+0x1+'px';}});};return this[_0x255871(0x10b)][_0x255871(0x114)]['on'](_0x255871(0x144),_0x42a8a1),this['on'](_0x255871(0x10f),_0x42a8a1),_0x1b508e;}[_0x1a6ee0(0x138)](){const _0x1f7334=_0x1a6ee0,_0x2e6da5=this[_0x1f7334(0x10b)][_0x1f7334(0x114)][_0x1f7334(0x111)][_0x1f7334(0x10e)];this[_0x1f7334(0x12e)](_0x1f7334(0x138),_0x2e6da5);}[_0x1a6ee0(0x139)](_0x2b5e16){const _0x1ae3d4=_0x1a6ee0;-0x1===_0x2b5e16?this[_0x1ae3d4(0x13e)][_0x1ae3d4(0x127)]():this[_0x1ae3d4(0x13e)][_0x1ae3d4(0x120)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2263a3=_0x51d0;(function(_0x4de387,_0x2d4c06){const _0x57b5fc=_0x51d0,_0x238211=_0x4de387();while(!![]){try{const _0x2ab316=-parseInt(_0x57b5fc(0x75))/0x1+-parseInt(_0x57b5fc(0x73))/0x2*(parseInt(_0x57b5fc(0x83))/0x3)+-parseInt(_0x57b5fc(0x81))/0x4*(-parseInt(_0x57b5fc(0x87))/0x5)+parseInt(_0x57b5fc(0x74))/0x6+-parseInt(_0x57b5fc(0x92))/0x7+parseInt(_0x57b5fc(0x93))/0x8*(parseInt(_0x57b5fc(0x78))/0x9)+parseInt(_0x57b5fc(0x79))/0xa;if(_0x2ab316===_0x2d4c06)break;else _0x238211['push'](_0x238211['shift']());}catch(_0x102da9){_0x238211['push'](_0x238211['shift']());}}}(_0x148e,0x58b6f));import{ToolbarView as _0x278378,ButtonView as _0x3afc30}from'ckeditor5/src/ui.js';import{getTranslation as _0x27eb65}from'../../utils/common-translations.js';function _0x148e(){const _0x54cdd7=['_CONTENT','ck-hidden','extendTemplate','isVisible','set','ck-ai-form__toolbar','stopButton','_createButton','1859074PCupma','65768EQkARG','locale','AI_','mainAction','label','2hYwsQW','3432378QWLygC','102717VghwaA','addMany','replaceButton','234xFCSWq','542890ZmSJcw','toUpperCase','insert','Stop','items','tryAgainButton','bind','REPLACE','1457684AswvAj','replace','1418535WPjiYC','Try\x20again','ck-button-action','insertButton','5BElOha','Insert\x20below','bindTemplate'];_0x148e=function(){return _0x54cdd7;};return _0x148e();}function _0x51d0(_0xe132b6,_0x2fa2be){const _0x148e2d=_0x148e();return _0x51d0=function(_0x51d00b,_0x2ab6bc){_0x51d00b=_0x51d00b-0x71;let _0x516820=_0x148e2d[_0x51d00b];return _0x516820;},_0x51d0(_0xe132b6,_0x2fa2be);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2263a3(0x82),'INSERT':_0x2263a3(0x7b)};export class AIFormToolbarView extends _0x278378{constructor(_0x2fccaf){const _0x559451=_0x2263a3;super(_0x2fccaf),this[_0x559451(0x8e)](_0x559451(0x8d),!0x1),this[_0x559451(0x8e)](_0x559451(0x71),AIFormToolbarViewMainActionLabel[_0x559451(0x80)]),this[_0x559451(0x77)]=this[_0x559451(0x91)]('',_0x559451(0x85)),this[_0x559451(0x77)][_0x559451(0x7f)](_0x559451(0x72))['to'](this,_0x559451(0x71),_0x326a6b=>_0x27eb65(_0x2fccaf,_0x559451(0x95)+_0x326a6b[_0x559451(0x7a)]()+_0x559451(0x8a))),this[_0x559451(0x86)]=this[_0x559451(0x91)](_0x27eb65(_0x2fccaf,_0x559451(0x88))),this[_0x559451(0x7e)]=this[_0x559451(0x91)](_0x27eb65(_0x2fccaf,_0x559451(0x84))),this[_0x559451(0x90)]=this[_0x559451(0x91)](_0x27eb65(_0x2fccaf,_0x559451(0x7c)));const _0x2f60b9=this[_0x559451(0x89)];this[_0x559451(0x8c)]({'attributes':{'class':[_0x559451(0x8f),_0x2f60b9['if'](_0x559451(0x8d),_0x559451(0x8b),_0x4118d9=>!_0x4118d9)]}}),this[_0x559451(0x7d)][_0x559451(0x76)]([this[_0x559451(0x77)],this[_0x559451(0x86)],this[_0x559451(0x7e)],this[_0x559451(0x90)]]);}[_0x2263a3(0x91)](_0x1e63c4,_0x51cbcd){const _0x4a8a35=_0x2263a3,_0x132cfd=new _0x3afc30(this[_0x4a8a35(0x94)]);return _0x132cfd[_0x4a8a35(0x8e)]({'label':_0x1e63c4,'class':_0x51cbcd||'','isVisible':!0x0,'withText':!0x0}),_0x132cfd;}}
23
+ const _0x5c554d=_0x197a;(function(_0x16515f,_0x3adc96){const _0x2746af=_0x197a,_0x1fa871=_0x16515f();while(!![]){try{const _0x3deb7b=-parseInt(_0x2746af(0xa9))/0x1+-parseInt(_0x2746af(0xbd))/0x2+-parseInt(_0x2746af(0xb3))/0x3+parseInt(_0x2746af(0xb9))/0x4*(-parseInt(_0x2746af(0xa6))/0x5)+-parseInt(_0x2746af(0xbb))/0x6+-parseInt(_0x2746af(0xb2))/0x7*(parseInt(_0x2746af(0x9e))/0x8)+-parseInt(_0x2746af(0x9b))/0x9*(-parseInt(_0x2746af(0x9c))/0xa);if(_0x3deb7b===_0x3adc96)break;else _0x1fa871['push'](_0x1fa871['shift']());}catch(_0x138237){_0x1fa871['push'](_0x1fa871['shift']());}}}(_0x4192,0x90905));import{ToolbarView as _0x277634,ButtonView as _0x31d6b4}from'ckeditor5/src/ui.js';function _0x4192(){const _0x6a8b5c=['ck-hidden','Stop','9875QGMEgZ','tryAgainButton','AI_','117187gcNSXS','extendTemplate','Try\x20again','replace','insertButton','bind','ck-ai-form__toolbar','replaceButton','mainAction','3715187ODypvM','930186CxtOVW','locale','bindTemplate','isVisible','insert','_CONTENT','680ZNLCYa','items','4681722ZEwoWX','Insert\x20below','1204880aekuuz','addMany','ck-button-action','4884867VLFGZr','70fPLTfK','toUpperCase','16nQdYUD','label','set','stopButton','_createButton','REPLACE'];_0x4192=function(){return _0x6a8b5c;};return _0x4192();}import{getTranslation as _0x26cf48}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5c554d(0xac),'INSERT':_0x5c554d(0xb7)};function _0x197a(_0x1d6637,_0x4f2366){const _0x41922f=_0x4192();return _0x197a=function(_0x197a2e,_0x40b688){_0x197a2e=_0x197a2e-0x9b;let _0x538eaa=_0x41922f[_0x197a2e];return _0x538eaa;},_0x197a(_0x1d6637,_0x4f2366);}export class AIFormToolbarView extends _0x277634{constructor(_0x1aaec6){const _0x3e499c=_0x5c554d;super(_0x1aaec6),this[_0x3e499c(0xa0)](_0x3e499c(0xb6),!0x1),this[_0x3e499c(0xa0)](_0x3e499c(0xb1),AIFormToolbarViewMainActionLabel[_0x3e499c(0xa3)]),this[_0x3e499c(0xb0)]=this[_0x3e499c(0xa2)]('',_0x3e499c(0xbf)),this[_0x3e499c(0xb0)][_0x3e499c(0xae)](_0x3e499c(0x9f))['to'](this,_0x3e499c(0xb1),_0x2cc057=>_0x26cf48(_0x1aaec6,_0x3e499c(0xa8)+_0x2cc057[_0x3e499c(0x9d)]()+_0x3e499c(0xb8))),this[_0x3e499c(0xad)]=this[_0x3e499c(0xa2)](_0x26cf48(_0x1aaec6,_0x3e499c(0xbc))),this[_0x3e499c(0xa7)]=this[_0x3e499c(0xa2)](_0x26cf48(_0x1aaec6,_0x3e499c(0xab))),this[_0x3e499c(0xa1)]=this[_0x3e499c(0xa2)](_0x26cf48(_0x1aaec6,_0x3e499c(0xa5)));const _0x10457f=this[_0x3e499c(0xb5)];this[_0x3e499c(0xaa)]({'attributes':{'class':[_0x3e499c(0xaf),_0x10457f['if'](_0x3e499c(0xb6),_0x3e499c(0xa4),_0x1eb997=>!_0x1eb997)]}}),this[_0x3e499c(0xba)][_0x3e499c(0xbe)]([this[_0x3e499c(0xb0)],this[_0x3e499c(0xad)],this[_0x3e499c(0xa7)],this[_0x3e499c(0xa1)]]);}[_0x5c554d(0xa2)](_0x549995,_0x4518eb){const _0xae74b7=_0x5c554d,_0x204ff2=new _0x31d6b4(this[_0xae74b7(0xb4)]);return _0x204ff2[_0xae74b7(0xa0)]({'label':_0x549995,'class':_0x4518eb||'','isVisible':!0x0,'withText':!0x0}),_0x204ff2;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16436c=_0x3fd3;(function(_0x3cd5b1,_0x1e29c3){const _0x7920f0=_0x3fd3,_0x38310c=_0x3cd5b1();while(!![]){try{const _0x1fc725=parseInt(_0x7920f0(0x153))/0x1+-parseInt(_0x7920f0(0x147))/0x2+parseInt(_0x7920f0(0x145))/0x3+parseInt(_0x7920f0(0x16a))/0x4+-parseInt(_0x7920f0(0x14a))/0x5*(-parseInt(_0x7920f0(0x167))/0x6)+-parseInt(_0x7920f0(0x148))/0x7*(parseInt(_0x7920f0(0x15f))/0x8)+-parseInt(_0x7920f0(0x16e))/0x9*(parseInt(_0x7920f0(0x175))/0xa);if(_0x1fc725===_0x1e29c3)break;else _0x38310c['push'](_0x38310c['shift']());}catch(_0x5d547c){_0x38310c['push'](_0x38310c['shift']());}}}(_0x4fa7,0xedaff));import{FocusTracker as _0x1f9024,KeystrokeHandler as _0x2edfb2}from'ckeditor5/src/utils.js';import{View as _0x1f589b,FocusCycler as _0x1a717d,createLabeledTextarea as _0x4612b4}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x589c1a,AIFormToolbarViewMainActionLabel as _0x1f089b}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x417658}from'./aiformcontentarea.js';import{AIFormErrorView as _0x59af7b}from'./aiformerrorview.js';import{AIFormPromptView as _0x2e92ee}from'./aiformpromptview.js';import{AIHistoryListView as _0x5b9820}from'./aihistorylistview.js';function _0x4fa7(){const _0x57299a=['ck-hidden','prompt','isEnabled','clearHistory','fieldView','reset','clear','isVisible','Ask\x20AI\x20to\x20improve\x20generated\x20text','12478304UuCSZq','execute','listenTo','items','tryAgainButton','insertContentBelow','value','_createToolbar','6cyRXJB','add','ck-ai-form-content','7269344yDvevh','element','stopButton','set','118296RTOAOc','toolbar','tab','insertButton','div','focusCycler','text','950bjegVE','bindTemplate','focusFirst','render','createCollection','startProcessing','bindTo','stopProcessing','queryView','shift\x20+\x20tab','focus','AI_ERROR_FAILED','replaceContent','submitPrompt','isError','Empty\x20history','promptView','search','_createHistoryView','errorView','focusTracker','tryAgainEvent','keystrokes','label','focusLast','handleError','_promptHistory','copyButtonView','fire','delegate','contentArea','REPLACE','trim','isProcessing','bind','submit','mainAction','4888599kqfWWU','replaceButton','1832896vyFIss','7HPpHKo','high','5326190pnOOiL','historyGroupView','Ask\x20AI\x20to\x20edit\x20or\x20generate','finishProcessing','setTemplate','locale','_createPromptView','_focusables','chain','186376MhyvEt','ck-ai-form','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.'];_0x4fa7=function(){return _0x57299a;};return _0x4fa7();}import{AIHistoryListItemView as _0x1d1411}from'./aihistorylistitemview.js';import{PromptHistory as _0x98d8f8}from'./prompthistory.js';function _0x3fd3(_0x216516,_0x1fc764){const _0x4fa788=_0x4fa7();return _0x3fd3=function(_0x3fd369,_0x4a2965){_0x3fd369=_0x3fd369-0x130;let _0x526534=_0x4fa788[_0x3fd369];return _0x526534;},_0x3fd3(_0x216516,_0x1fc764);}import{getTranslation as _0x42e560}from'../../utils/common-translations.js';import{escape as _0x2f893d}from'es-toolkit/compat';export class AIFormView extends _0x1f589b{[_0x16436c(0x134)];[_0x16436c(0x136)];[_0x16436c(0x13e)];[_0x16436c(0x16f)];[_0x16436c(0x130)];[_0x16436c(0x133)];[_0x16436c(0x151)];[_0x16436c(0x173)];[_0x16436c(0x13a)];constructor(_0x38b8d1,_0x93f1d1,_0x77284b=''){const _0x5a95ff=_0x16436c;super(_0x38b8d1),this[_0x5a95ff(0x16d)](_0x5a95ff(0x158),!0x0),this[_0x5a95ff(0x16d)](_0x5a95ff(0x141),!0x1),this[_0x5a95ff(0x16d)](_0x5a95ff(0x157),''),this[_0x5a95ff(0x16d)](_0x5a95ff(0x165),''),this[_0x5a95ff(0x16d)](_0x5a95ff(0x183),!0x1),this[_0x5a95ff(0x16d)](_0x5a95ff(0x144),_0x1f089b[_0x5a95ff(0x13f)]),this[_0x5a95ff(0x13a)]=new _0x98d8f8(),this[_0x5a95ff(0x133)]=new _0x59af7b(_0x38b8d1),this[_0x5a95ff(0x13e)]=new _0x417658(_0x38b8d1,_0x77284b),this[_0x5a95ff(0x13e)][_0x5a95ff(0x142)](_0x5a95ff(0x141))['to'](this),this[_0x5a95ff(0x13e)][_0x5a95ff(0x142)](_0x5a95ff(0x165))['to'](this),this[_0x5a95ff(0x16f)]=this[_0x5a95ff(0x166)](),this[_0x5a95ff(0x16f)][_0x5a95ff(0x142)](_0x5a95ff(0x144))['to'](this),this[_0x5a95ff(0x130)]=this[_0x5a95ff(0x150)](),this[_0x5a95ff(0x134)]=new _0x1f9024(),this[_0x5a95ff(0x136)]=new _0x2edfb2(),this[_0x5a95ff(0x151)]=this[_0x5a95ff(0x179)]([this[_0x5a95ff(0x13e)],this[_0x5a95ff(0x13e)][_0x5a95ff(0x13b)],this[_0x5a95ff(0x16f)],this[_0x5a95ff(0x130)]]),this[_0x5a95ff(0x173)]=new _0x1a717d({'focusables':this[_0x5a95ff(0x151)],'focusTracker':this[_0x5a95ff(0x134)],'keystrokeHandler':this[_0x5a95ff(0x136)],'actions':{'focusPrevious':_0x5a95ff(0x17e),'focusNext':_0x5a95ff(0x170)}}),this[_0x5a95ff(0x173)][_0x5a95ff(0x152)](this[_0x5a95ff(0x130)][_0x5a95ff(0x173)]),this[_0x5a95ff(0x130)][_0x5a95ff(0x17d)][_0x5a95ff(0x15a)][_0x5a95ff(0x142)](_0x5a95ff(0x165))['to'](this,_0x5a95ff(0x157));const _0x193b64=this[_0x5a95ff(0x176)];this[_0x5a95ff(0x14e)]({'tag':_0x5a95ff(0x172),'attributes':{'class':['ck',_0x5a95ff(0x154),_0x93f1d1],'tabindex':'-1'},'children':[{'tag':_0x5a95ff(0x172),'attributes':{'class':['ck',_0x5a95ff(0x169)]},'children':[{'tag':_0x5a95ff(0x172),'attributes':{'class':[_0x193b64['if'](_0x5a95ff(0x183),_0x5a95ff(0x156),_0x5ae5f1=>!_0x5ae5f1)]},'children':[this[_0x5a95ff(0x133)]]},this[_0x5a95ff(0x13e)],this[_0x5a95ff(0x16f)],this[_0x5a95ff(0x130)]]}]});}[_0x16436c(0x178)](){const _0xebeea2=_0x16436c;super[_0xebeea2(0x178)](),this[_0xebeea2(0x134)][_0xebeea2(0x168)](this[_0xebeea2(0x13e)][_0xebeea2(0x16b)]),this[_0xebeea2(0x134)][_0xebeea2(0x168)](this[_0xebeea2(0x13e)][_0xebeea2(0x13b)][_0xebeea2(0x16b)]),this[_0xebeea2(0x134)][_0xebeea2(0x168)](this[_0xebeea2(0x16f)][_0xebeea2(0x16b)]),this[_0xebeea2(0x134)][_0xebeea2(0x168)](this[_0xebeea2(0x130)][_0xebeea2(0x16b)]),this[_0xebeea2(0x136)][_0xebeea2(0x161)](this[_0xebeea2(0x16b)]);}[_0x16436c(0x17f)](_0x29c0e7=0x1){const _0x5ed722=_0x16436c;-0x1===_0x29c0e7?this[_0x5ed722(0x173)][_0x5ed722(0x138)]():this[_0x5ed722(0x173)][_0x5ed722(0x177)]();}[_0x16436c(0x15b)](){const _0x11d31c=_0x16436c;this[_0x11d31c(0x157)]='',this[_0x11d31c(0x165)]='',this[_0x11d31c(0x183)]=!0x1,this[_0x11d31c(0x130)][_0x11d31c(0x15b)](),this[_0x11d31c(0x13e)][_0x11d31c(0x15d)]=!0x1,this[_0x11d31c(0x16f)][_0x11d31c(0x15d)]=!0x1;}[_0x16436c(0x150)](){const _0x98ffe8=_0x16436c,_0x248148=this[_0x98ffe8(0x14f)],_0x53061b=new _0x2e92ee(_0x248148,{'queryView':{'label':_0x42e560(_0x248148,_0x98ffe8(0x14c)),'creator':_0x4612b4,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x42e560(_0x248148,_0x98ffe8(0x184)),'secondary':_0x42e560(_0x248148,_0x98ffe8(0x155))}}},'filteredView':this[_0x98ffe8(0x132)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x53061b[_0x98ffe8(0x142)](_0x98ffe8(0x158))['to'](this,_0x98ffe8(0x158),this,_0x98ffe8(0x141),(_0x170462,_0x2c1a00)=>_0x170462&&!_0x2c1a00),this[_0x98ffe8(0x161)](_0x53061b,_0x98ffe8(0x143),(_0x55856d,_0x11ea62)=>{const _0x3d25d2=_0x98ffe8;this[_0x3d25d2(0x157)]=_0x11ea62;const _0x2aa347=_0x2f893d(_0x11ea62);this[_0x3d25d2(0x13c)](_0x3d25d2(0x182),_0x2aa347),_0x11ea62[_0x3d25d2(0x140)]()&&this[_0x3d25d2(0x13a)][_0x3d25d2(0x168)]({'prompt':_0x2aa347},0x0);},{'priority':_0x98ffe8(0x149)}),_0x53061b;}[_0x16436c(0x132)](){const _0x20ab08=_0x16436c,_0x375130=new _0x5b9820(this[_0x20ab08(0x14f)]);return _0x375130[_0x20ab08(0x14b)][_0x20ab08(0x162)][_0x20ab08(0x17b)](this[_0x20ab08(0x13a)])['as'](_0x1d1411),_0x375130['on'](_0x20ab08(0x159),()=>{const _0x31600d=_0x20ab08;this[_0x31600d(0x13a)][_0x31600d(0x15c)](),this[_0x31600d(0x130)][_0x31600d(0x131)](''),this[_0x31600d(0x130)][_0x31600d(0x17f)]();}),_0x375130;}[_0x16436c(0x166)](){const _0xbc7908=_0x16436c,_0x5a19a2=new _0x589c1a(this[_0xbc7908(0x14f)]);return _0x5a19a2[_0xbc7908(0x146)][_0xbc7908(0x142)](_0xbc7908(0x158))['to'](this,_0xbc7908(0x158),this,_0xbc7908(0x141),this,_0xbc7908(0x165),(_0x7e8931,_0xe175a6,_0x23a48f)=>_0x7e8931&&!_0xe175a6&&!!_0x23a48f),_0x5a19a2[_0xbc7908(0x146)][_0xbc7908(0x13d)](_0xbc7908(0x160))['to'](this,_0xbc7908(0x181)),_0x5a19a2[_0xbc7908(0x171)][_0xbc7908(0x142)](_0xbc7908(0x158))['to'](this,_0xbc7908(0x158),this,_0xbc7908(0x141),this,_0xbc7908(0x165),(_0x1d8cf1,_0x142208,_0x20d651)=>_0x1d8cf1&&!_0x142208&&!!_0x20d651),_0x5a19a2[_0xbc7908(0x171)][_0xbc7908(0x13d)](_0xbc7908(0x160))['to'](this,_0xbc7908(0x164)),_0x5a19a2[_0xbc7908(0x163)][_0xbc7908(0x142)](_0xbc7908(0x158))['to'](this,_0xbc7908(0x158),this,_0xbc7908(0x141),(_0xdad58b,_0x352c95)=>_0xdad58b&&!_0x352c95),_0x5a19a2[_0xbc7908(0x163)][_0xbc7908(0x13d)](_0xbc7908(0x160))['to'](this,_0xbc7908(0x135)),_0x5a19a2[_0xbc7908(0x16c)][_0xbc7908(0x142)](_0xbc7908(0x158))['to'](this,_0xbc7908(0x141)),_0x5a19a2[_0xbc7908(0x16c)][_0xbc7908(0x13d)](_0xbc7908(0x160))['to'](this,_0xbc7908(0x17c)),_0x5a19a2;}[_0x16436c(0x17a)](){const _0xbe6109=_0x16436c;this[_0xbe6109(0x165)]='',this[_0xbe6109(0x183)]=!0x1,this[_0xbe6109(0x141)]=!0x0,this[_0xbe6109(0x13e)][_0xbe6109(0x15d)]=!0x0,this[_0xbe6109(0x16f)][_0xbe6109(0x15d)]=!0x0,this[_0xbe6109(0x13e)][_0xbe6109(0x17f)]();}[_0x16436c(0x14d)](){const _0x53e378=_0x16436c,_0x516e9d=this[_0x53e378(0x14f)];this[_0x53e378(0x141)]=!0x1,this[_0x53e378(0x157)]='',this[_0x53e378(0x130)][_0x53e378(0x15b)](),this[_0x53e378(0x165)]&&(this[_0x53e378(0x130)][_0x53e378(0x17d)][_0x53e378(0x137)]=_0x42e560(_0x516e9d,_0x53e378(0x15e)));}[_0x16436c(0x139)](_0x1de952){const _0x5b8e7f=_0x16436c,_0x339186=this[_0x5b8e7f(0x14f)];this[_0x5b8e7f(0x14d)](),this[_0x5b8e7f(0x183)]=!0x0,this[_0x5b8e7f(0x133)][_0x5b8e7f(0x174)]=_0x1de952||_0x42e560(_0x339186,_0x5b8e7f(0x180)),this[_0x5b8e7f(0x165)]||(this[_0x5b8e7f(0x13e)][_0x5b8e7f(0x15d)]=!0x1);}}
23
+ const _0x39495f=_0x290b;(function(_0x47cc1d,_0x460e63){const _0x408898=_0x290b,_0x46b636=_0x47cc1d();while(!![]){try{const _0xddedd1=parseInt(_0x408898(0xc0))/0x1+-parseInt(_0x408898(0xae))/0x2*(parseInt(_0x408898(0xa7))/0x3)+-parseInt(_0x408898(0xb1))/0x4*(-parseInt(_0x408898(0xc5))/0x5)+parseInt(_0x408898(0xe2))/0x6+-parseInt(_0x408898(0xcd))/0x7+-parseInt(_0x408898(0xbb))/0x8+parseInt(_0x408898(0xb2))/0x9*(parseInt(_0x408898(0xd6))/0xa);if(_0xddedd1===_0x460e63)break;else _0x46b636['push'](_0x46b636['shift']());}catch(_0x1ce93e){_0x46b636['push'](_0x46b636['shift']());}}}(_0x1e15,0xf01ed));import{FocusTracker as _0x16939c,KeystrokeHandler as _0x3195d7}from'ckeditor5/src/utils.js';import{View as _0xaa816d,FocusCycler as _0x165dc8,createLabeledTextarea as _0x1bd2c5}from'ckeditor5/src/ui.js';function _0x1e15(){const _0x3e94e3=['setTemplate','prompt','stopProcessing','reset','insertContentBelow','mainAction','shift\x20+\x20tab','7657430txyeFO','isEnabled','tab','chain','replaceButton','copyButtonView','_promptHistory','replaceContent','high','keystrokes','AI_ERROR_FAILED','ck-hidden','2846058nvKOnY','bindTo','delegate','isVisible','toolbar','submit','fieldView','text','focusLast','_createToolbar','REPLACE','_createHistoryView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusCycler','_createPromptView','set','add','queryView','historyGroupView','div','startProcessing','element','execute','errorView','ck-ai-form','search','23973eRzFdk','stopButton','isProcessing','Ask\x20AI\x20to\x20improve\x20generated\x20text','focusFirst','tryAgainButton','listenTo','390KdPNrn','value','promptView','1972srYnat','9VYdxtg','label','submitPrompt','isError','focus','tryAgainEvent','Ask\x20AI\x20to\x20edit\x20or\x20generate','clearHistory','locale','8514280WuoGtD','bind','fire','handleError','Empty\x20history','1869746ijzOGU','_focusables','ck-ai-form-content','finishProcessing','bindTemplate','11350ZMxloS','contentArea','insertButton','createCollection','render','items','trim','clear','4360153kOggMP','focusTracker'];_0x1e15=function(){return _0x3e94e3;};return _0x1e15();}import{AIFormToolbarView as _0x46c799,AIFormToolbarViewMainActionLabel as _0x1806c7}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x29629a}from'./aiformcontentarea.js';import{AIFormErrorView as _0x2c4d5a}from'./aiformerrorview.js';import{AIFormPromptView as _0x1653c5}from'./aiformpromptview.js';import{AIHistoryListView as _0x3eb128}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x4a7d6f}from'./aihistorylistitemview.js';import{PromptHistory as _0x16410d}from'./prompthistory.js';import{getTranslation as _0x474469}from'../../utils/common-translations.js';function _0x290b(_0x2c1cc9,_0x150f07){const _0x1e1574=_0x1e15();return _0x290b=function(_0x290b8e,_0x4ecf67){_0x290b8e=_0x290b8e-0x99;let _0x105866=_0x1e1574[_0x290b8e];return _0x105866;},_0x290b(_0x2c1cc9,_0x150f07);}import{escape as _0x24cff3}from'es-toolkit/compat';export class AIFormView extends _0xaa816d{[_0x39495f(0xce)];[_0x39495f(0xdf)];[_0x39495f(0xc6)];[_0x39495f(0xe6)];[_0x39495f(0xb0)];[_0x39495f(0xa4)];[_0x39495f(0xc1)];[_0x39495f(0x9a)];[_0x39495f(0xdc)];constructor(_0x8af1a1,_0x51c795,_0x9c117d=''){const _0x5d547b=_0x39495f;super(_0x8af1a1),this[_0x5d547b(0x9c)](_0x5d547b(0xd7),!0x0),this[_0x5d547b(0x9c)](_0x5d547b(0xa9),!0x1),this[_0x5d547b(0x9c)](_0x5d547b(0xd0),''),this[_0x5d547b(0x9c)](_0x5d547b(0xaf),''),this[_0x5d547b(0x9c)](_0x5d547b(0xb5),!0x1),this[_0x5d547b(0x9c)](_0x5d547b(0xd4),_0x1806c7[_0x5d547b(0xec)]),this[_0x5d547b(0xdc)]=new _0x16410d(),this[_0x5d547b(0xa4)]=new _0x2c4d5a(_0x8af1a1),this[_0x5d547b(0xc6)]=new _0x29629a(_0x8af1a1,_0x9c117d),this[_0x5d547b(0xc6)][_0x5d547b(0xbc)](_0x5d547b(0xa9))['to'](this),this[_0x5d547b(0xc6)][_0x5d547b(0xbc)](_0x5d547b(0xaf))['to'](this),this[_0x5d547b(0xe6)]=this[_0x5d547b(0xeb)](),this[_0x5d547b(0xe6)][_0x5d547b(0xbc)](_0x5d547b(0xd4))['to'](this),this[_0x5d547b(0xb0)]=this[_0x5d547b(0x9b)](),this[_0x5d547b(0xce)]=new _0x16939c(),this[_0x5d547b(0xdf)]=new _0x3195d7(),this[_0x5d547b(0xc1)]=this[_0x5d547b(0xc8)]([this[_0x5d547b(0xc6)],this[_0x5d547b(0xc6)][_0x5d547b(0xdb)],this[_0x5d547b(0xe6)],this[_0x5d547b(0xb0)]]),this[_0x5d547b(0x9a)]=new _0x165dc8({'focusables':this[_0x5d547b(0xc1)],'focusTracker':this[_0x5d547b(0xce)],'keystrokeHandler':this[_0x5d547b(0xdf)],'actions':{'focusPrevious':_0x5d547b(0xd5),'focusNext':_0x5d547b(0xd8)}}),this[_0x5d547b(0x9a)][_0x5d547b(0xd9)](this[_0x5d547b(0xb0)][_0x5d547b(0x9a)]),this[_0x5d547b(0xb0)][_0x5d547b(0x9e)][_0x5d547b(0xe8)][_0x5d547b(0xbc)](_0x5d547b(0xaf))['to'](this,_0x5d547b(0xd0));const _0x598138=this[_0x5d547b(0xc4)];this[_0x5d547b(0xcf)]({'tag':_0x5d547b(0xa0),'attributes':{'class':['ck',_0x5d547b(0xa5),_0x51c795],'tabindex':'-1'},'children':[{'tag':_0x5d547b(0xa0),'attributes':{'class':['ck',_0x5d547b(0xc2)]},'children':[{'tag':_0x5d547b(0xa0),'attributes':{'class':[_0x598138['if'](_0x5d547b(0xb5),_0x5d547b(0xe1),_0x553c0e=>!_0x553c0e)]},'children':[this[_0x5d547b(0xa4)]]},this[_0x5d547b(0xc6)],this[_0x5d547b(0xe6)],this[_0x5d547b(0xb0)]]}]});}[_0x39495f(0xc9)](){const _0x4d24d2=_0x39495f;super[_0x4d24d2(0xc9)](),this[_0x4d24d2(0xce)][_0x4d24d2(0x9d)](this[_0x4d24d2(0xc6)][_0x4d24d2(0xa2)]),this[_0x4d24d2(0xce)][_0x4d24d2(0x9d)](this[_0x4d24d2(0xc6)][_0x4d24d2(0xdb)][_0x4d24d2(0xa2)]),this[_0x4d24d2(0xce)][_0x4d24d2(0x9d)](this[_0x4d24d2(0xe6)][_0x4d24d2(0xa2)]),this[_0x4d24d2(0xce)][_0x4d24d2(0x9d)](this[_0x4d24d2(0xb0)][_0x4d24d2(0xa2)]),this[_0x4d24d2(0xdf)][_0x4d24d2(0xad)](this[_0x4d24d2(0xa2)]);}[_0x39495f(0xb6)](_0x29a3b5=0x1){const _0x15ec2=_0x39495f;-0x1===_0x29a3b5?this[_0x15ec2(0x9a)][_0x15ec2(0xea)]():this[_0x15ec2(0x9a)][_0x15ec2(0xab)]();}[_0x39495f(0xd2)](){const _0x1d22f5=_0x39495f;this[_0x1d22f5(0xd0)]='',this[_0x1d22f5(0xaf)]='',this[_0x1d22f5(0xb5)]=!0x1,this[_0x1d22f5(0xb0)][_0x1d22f5(0xd2)](),this[_0x1d22f5(0xc6)][_0x1d22f5(0xe5)]=!0x1,this[_0x1d22f5(0xe6)][_0x1d22f5(0xe5)]=!0x1;}[_0x39495f(0x9b)](){const _0x1e1ee0=_0x39495f,_0x372b37=this[_0x1e1ee0(0xba)],_0x15cf34=new _0x1653c5(_0x372b37,{'queryView':{'label':_0x474469(_0x372b37,_0x1e1ee0(0xb8)),'creator':_0x1bd2c5,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x474469(_0x372b37,_0x1e1ee0(0xbf)),'secondary':_0x474469(_0x372b37,_0x1e1ee0(0x99))}}},'filteredView':this[_0x1e1ee0(0xed)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x15cf34[_0x1e1ee0(0xbc)](_0x1e1ee0(0xd7))['to'](this,_0x1e1ee0(0xd7),this,_0x1e1ee0(0xa9),(_0x27f000,_0xcd1ba7)=>_0x27f000&&!_0xcd1ba7),this[_0x1e1ee0(0xad)](_0x15cf34,_0x1e1ee0(0xe7),(_0x3c7e15,_0x50fe4d)=>{const _0x19cdd6=_0x1e1ee0;this[_0x19cdd6(0xd0)]=_0x50fe4d;const _0x4b3734=_0x24cff3(_0x50fe4d);this[_0x19cdd6(0xbd)](_0x19cdd6(0xb4),_0x4b3734),_0x50fe4d[_0x19cdd6(0xcb)]()&&this[_0x19cdd6(0xdc)][_0x19cdd6(0x9d)]({'prompt':_0x4b3734},0x0);},{'priority':_0x1e1ee0(0xde)}),_0x15cf34;}[_0x39495f(0xed)](){const _0x392040=_0x39495f,_0x3b2403=new _0x3eb128(this[_0x392040(0xba)]);return _0x3b2403[_0x392040(0x9f)][_0x392040(0xca)][_0x392040(0xe3)](this[_0x392040(0xdc)])['as'](_0x4a7d6f),_0x3b2403['on'](_0x392040(0xb9),()=>{const _0xbdecea=_0x392040;this[_0xbdecea(0xdc)][_0xbdecea(0xcc)](),this[_0xbdecea(0xb0)][_0xbdecea(0xa6)](''),this[_0xbdecea(0xb0)][_0xbdecea(0xb6)]();}),_0x3b2403;}[_0x39495f(0xeb)](){const _0x23b820=_0x39495f,_0x590c24=new _0x46c799(this[_0x23b820(0xba)]);return _0x590c24[_0x23b820(0xda)][_0x23b820(0xbc)](_0x23b820(0xd7))['to'](this,_0x23b820(0xd7),this,_0x23b820(0xa9),this,_0x23b820(0xaf),(_0x268e51,_0x2d39fa,_0x46a0eb)=>_0x268e51&&!_0x2d39fa&&!!_0x46a0eb),_0x590c24[_0x23b820(0xda)][_0x23b820(0xe4)](_0x23b820(0xa3))['to'](this,_0x23b820(0xdd)),_0x590c24[_0x23b820(0xc7)][_0x23b820(0xbc)](_0x23b820(0xd7))['to'](this,_0x23b820(0xd7),this,_0x23b820(0xa9),this,_0x23b820(0xaf),(_0x1c57ac,_0x344a6e,_0x50c78b)=>_0x1c57ac&&!_0x344a6e&&!!_0x50c78b),_0x590c24[_0x23b820(0xc7)][_0x23b820(0xe4)](_0x23b820(0xa3))['to'](this,_0x23b820(0xd3)),_0x590c24[_0x23b820(0xac)][_0x23b820(0xbc)](_0x23b820(0xd7))['to'](this,_0x23b820(0xd7),this,_0x23b820(0xa9),(_0x505881,_0x82dea5)=>_0x505881&&!_0x82dea5),_0x590c24[_0x23b820(0xac)][_0x23b820(0xe4)](_0x23b820(0xa3))['to'](this,_0x23b820(0xb7)),_0x590c24[_0x23b820(0xa8)][_0x23b820(0xbc)](_0x23b820(0xd7))['to'](this,_0x23b820(0xa9)),_0x590c24[_0x23b820(0xa8)][_0x23b820(0xe4)](_0x23b820(0xa3))['to'](this,_0x23b820(0xd1)),_0x590c24;}[_0x39495f(0xa1)](){const _0x418c97=_0x39495f;this[_0x418c97(0xaf)]='',this[_0x418c97(0xb5)]=!0x1,this[_0x418c97(0xa9)]=!0x0,this[_0x418c97(0xc6)][_0x418c97(0xe5)]=!0x0,this[_0x418c97(0xe6)][_0x418c97(0xe5)]=!0x0,this[_0x418c97(0xc6)][_0x418c97(0xb6)]();}[_0x39495f(0xc3)](){const _0x218397=_0x39495f,_0x170d9d=this[_0x218397(0xba)];this[_0x218397(0xa9)]=!0x1,this[_0x218397(0xd0)]='',this[_0x218397(0xb0)][_0x218397(0xd2)](),this[_0x218397(0xaf)]&&(this[_0x218397(0xb0)][_0x218397(0x9e)][_0x218397(0xb3)]=_0x474469(_0x170d9d,_0x218397(0xaa)));}[_0x39495f(0xbe)](_0x2a3c68){const _0x3ef3df=_0x39495f,_0x570663=this[_0x3ef3df(0xba)];this[_0x3ef3df(0xc3)](),this[_0x3ef3df(0xb5)]=!0x0,this[_0x3ef3df(0xa4)][_0x3ef3df(0xe9)]=_0x2a3c68||_0x474469(_0x570663,_0x3ef3df(0xe0)),this[_0x3ef3df(0xaf)]||(this[_0x3ef3df(0xc6)][_0x3ef3df(0xe5)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x17a7ec,_0xa9a2e3){const _0x987f2b=_0x5787,_0x8247a5=_0x17a7ec();while(!![]){try{const _0xeef550=-parseInt(_0x987f2b(0x134))/0x1*(parseInt(_0x987f2b(0x12e))/0x2)+-parseInt(_0x987f2b(0x130))/0x3+parseInt(_0x987f2b(0x12a))/0x4+parseInt(_0x987f2b(0x132))/0x5+-parseInt(_0x987f2b(0x12f))/0x6*(parseInt(_0x987f2b(0x131))/0x7)+parseInt(_0x987f2b(0x135))/0x8*(parseInt(_0x987f2b(0x12c))/0x9)+parseInt(_0x987f2b(0x136))/0xa;if(_0xeef550===_0xa9a2e3)break;else _0x8247a5['push'](_0x8247a5['shift']());}catch(_0x3b463c){_0x8247a5['push'](_0x8247a5['shift']());}}}(_0x3660,0xe4076));function _0x5787(_0x52999a,_0x15eff1){const _0x3660df=_0x3660();return _0x5787=function(_0x578791,_0x46bc69){_0x578791=_0x578791-0x126;let _0x4b6996=_0x3660df[_0x578791];return _0x4b6996;},_0x5787(_0x52999a,_0x15eff1);}import{ListItemView as _0x19cb37,ButtonView as _0x902611,ButtonLabelView as _0x3df6c1}from'ckeditor5/src/ui.js';function _0x3660(){const _0x2c717e=['children','229cYAQaA','7233608wpTIfl','13458960lGkCqp','fire','set','add','execute','367056tepite','prompt','9mnVpfz','locale','374dQLyhA','6hodclr','3896496tiltYt','9464700jluDMv','6429500TitENQ'];_0x3660=function(){return _0x2c717e;};return _0x3660();}import{unescape as _0x44ae19}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x19cb37{constructor(_0x2a6c44){const _0x3636d3=_0x5787;super();const _0x1e8d20=new _0x3df6c1(),_0x4477f5=new _0x902611(this[_0x3636d3(0x12d)],_0x1e8d20);this[_0x3636d3(0x133)][_0x3636d3(0x128)](_0x4477f5),_0x4477f5[_0x3636d3(0x127)]({'label':_0x2a6c44[_0x3636d3(0x12b)],'withText':!0x0}),_0x4477f5['on'](_0x3636d3(0x129),()=>{const _0x19a66f=_0x3636d3;this[_0x19a66f(0x126)](_0x19a66f(0x129),{'value':_0x44ae19(_0x2a6c44[_0x19a66f(0x12b)])});});}}
23
+ function _0x1786(_0x308084,_0x4e9ef4){const _0x3e26e1=_0x3e26();return _0x1786=function(_0x178613,_0x43c1c2){_0x178613=_0x178613-0x131;let _0x14e03c=_0x3e26e1[_0x178613];return _0x14e03c;},_0x1786(_0x308084,_0x4e9ef4);}function _0x3e26(){const _0x3ce232=['set','execute','children','add','1288070bfMxNv','560599xrtnXs','1989747LrDsKz','locale','1032bQglif','7237384WRWibS','38556fvDCFA','29931AZqUgT','prompt','fire','40jSBxWe','134GIRMgd','6BxwIHZ','2680564uzQkuC'];_0x3e26=function(){return _0x3ce232;};return _0x3e26();}(function(_0x3b0d0f,_0x69dc81){const _0x3e2d72=_0x1786,_0x306356=_0x3b0d0f();while(!![]){try{const _0x59182a=parseInt(_0x3e2d72(0x135))/0x1+-parseInt(_0x3e2d72(0x13f))/0x2*(-parseInt(_0x3e2d72(0x13b))/0x3)+parseInt(_0x3e2d72(0x141))/0x4+parseInt(_0x3e2d72(0x134))/0x5*(parseInt(_0x3e2d72(0x140))/0x6)+-parseInt(_0x3e2d72(0x13a))/0x7*(-parseInt(_0x3e2d72(0x138))/0x8)+parseInt(_0x3e2d72(0x136))/0x9+parseInt(_0x3e2d72(0x13e))/0xa*(-parseInt(_0x3e2d72(0x139))/0xb);if(_0x59182a===_0x69dc81)break;else _0x306356['push'](_0x306356['shift']());}catch(_0xf71eac){_0x306356['push'](_0x306356['shift']());}}}(_0x3e26,0x6f7cc));import{ListItemView as _0x1ca1b5,ButtonView as _0xa7729f,ButtonLabelView as _0x496d5}from'ckeditor5/src/ui.js';import{unescape as _0x4332e1}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x1ca1b5{constructor(_0x5c1daf){const _0x3bb190=_0x1786;super();const _0x1c5123=new _0x496d5(),_0x377ff3=new _0xa7729f(this[_0x3bb190(0x137)],_0x1c5123);this[_0x3bb190(0x132)][_0x3bb190(0x133)](_0x377ff3),_0x377ff3[_0x3bb190(0x142)]({'label':_0x5c1daf[_0x3bb190(0x13c)],'withText':!0x0}),_0x377ff3['on'](_0x3bb190(0x131),()=>{const _0x3dddbb=_0x3bb190;this[_0x3dddbb(0x13d)](_0x3dddbb(0x131),{'value':_0x4332e1(_0x5c1daf[_0x3dddbb(0x13c)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bab7f=_0x288d;(function(_0x400a50,_0x1b0cbf){const _0x348010=_0x288d,_0x53d171=_0x400a50();while(!![]){try{const _0x3ee730=parseInt(_0x348010(0x1d4))/0x1+-parseInt(_0x348010(0x1d1))/0x2*(-parseInt(_0x348010(0x1cd))/0x3)+-parseInt(_0x348010(0x1d2))/0x4*(-parseInt(_0x348010(0x1ca))/0x5)+parseInt(_0x348010(0x1bf))/0x6+-parseInt(_0x348010(0x1cb))/0x7+-parseInt(_0x348010(0x1c7))/0x8*(-parseInt(_0x348010(0x1c6))/0x9)+parseInt(_0x348010(0x1d3))/0xa*(-parseInt(_0x348010(0x1c1))/0xb);if(_0x3ee730===_0x1b0cbf)break;else _0x53d171['push'](_0x53d171['shift']());}catch(_0x53f3d5){_0x53d171['push'](_0x53d171['shift']());}}}(_0x3430,0x4f849));import{ListView as _0x3d5907,ListItemGroupView as _0x1fb72c,ButtonView as _0x4a2994}from'ckeditor5/src/ui.js';function _0x288d(_0x45dad8,_0x23c6a5){const _0x343085=_0x3430();return _0x288d=function(_0x288d61,_0x415d15){_0x288d61=_0x288d61-0x1ba;let _0x616f0c=_0x343085[_0x288d61];return _0x616f0c;},_0x288d(_0x45dad8,_0x23c6a5);}import{getTranslation as _0x2b9213}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x3d5907{[_0x4bab7f(0x1c9)];[_0x4bab7f(0x1bd)];constructor(_0x28c210){const _0x37131c=_0x4bab7f;super(_0x28c210),this[_0x37131c(0x1bd)]=this[_0x37131c(0x1ce)](),this[_0x37131c(0x1c9)]=new _0x1fb72c(),this[_0x37131c(0x1c9)][_0x37131c(0x1c4)][_0x37131c(0x1be)](this[_0x37131c(0x1bd)],0x1),this[_0x37131c(0x1c9)][_0x37131c(0x1d0)]=_0x2b9213(_0x28c210,_0x37131c(0x1bb)),this[_0x37131c(0x1c9)][_0x37131c(0x1c2)][_0x37131c(0x1bc)](_0x37131c(0x1cf))['to'](this),this[_0x37131c(0x1c2)][_0x37131c(0x1be)](this[_0x37131c(0x1c9)]);}[_0x4bab7f(0x1c3)](){const _0x157485=_0x4bab7f;let _0x40d616=0x0;for(const _0x42f722 of this[_0x157485(0x1c2)])_0x40d616+=_0x42f722[_0x157485(0x1c2)][_0x157485(0x1c5)];return{'resultsCount':_0x40d616,'totalItemsCount':_0x40d616};}[_0x4bab7f(0x1ce)](){const _0x23bd05=_0x4bab7f,_0x3469fb=this[_0x23bd05(0x1ba)],_0x1cf42b=new _0x4a2994(this[_0x23bd05(0x1ba)]);return _0x1cf42b[_0x23bd05(0x1c0)]({'label':'('+_0x2b9213(_0x3469fb,_0x23bd05(0x1cc))+')','withText':!0x0}),_0x1cf42b['on'](_0x23bd05(0x1cf),()=>this[_0x23bd05(0x1d5)](_0x23bd05(0x1c8))),_0x1cf42b;}}function _0x3430(){const _0x4227b2=['22XveWol','items','filter','children','length','36NvDHbo','77432mmPLZh','clearHistory','historyGroupView','2150665iYsOso','3253369jxTDoT','Clear','745407TRukMC','_createClearHistoryButton','execute','label','2nvqbYM','4cFfBjz','3737050gXuUaY','312698lwlUEp','fire','locale','Prompt\x20history','delegate','clearHistoryButton','add','3047196lrjgFO','set'];_0x3430=function(){return _0x4227b2;};return _0x3430();}
23
+ const _0x5b3bee=_0x126c;function _0x3359(){const _0x4a0668=['8490XtBJyx','historyGroupView','length','execute','1299307UFYCZr','add','filter','639206tAFIrn','Clear','1862667IcyAax','locale','clearHistoryButton','items','set','label','delegate','6808146kcLgGr','Prompt\x20history','children','709472BoDhJs','812PgertW','21TqVxun','1741134ZjcLxN','clearHistory','_createClearHistoryButton','fire'];_0x3359=function(){return _0x4a0668;};return _0x3359();}(function(_0xb20a7c,_0x315ee9){const _0x30159d=_0x126c,_0x1fc057=_0xb20a7c();while(!![]){try{const _0x6f03b=parseInt(_0x30159d(0x198))/0x1+-parseInt(_0x30159d(0x181))/0x2+parseInt(_0x30159d(0x190))/0x3+parseInt(_0x30159d(0x18e))/0x4*(parseInt(_0x30159d(0x194))/0x5)+-parseInt(_0x30159d(0x18a))/0x6+-parseInt(_0x30159d(0x18f))/0x7*(parseInt(_0x30159d(0x18d))/0x8)+parseInt(_0x30159d(0x183))/0x9;if(_0x6f03b===_0x315ee9)break;else _0x1fc057['push'](_0x1fc057['shift']());}catch(_0x5a4700){_0x1fc057['push'](_0x1fc057['shift']());}}}(_0x3359,0xad954));function _0x126c(_0x56453b,_0x38d84c){const _0x335911=_0x3359();return _0x126c=function(_0x126c4f,_0x2181a3){_0x126c4f=_0x126c4f-0x181;let _0x5f042e=_0x335911[_0x126c4f];return _0x5f042e;},_0x126c(_0x56453b,_0x38d84c);}import{ListView as _0x557927,ListItemGroupView as _0x3c498a,ButtonView as _0x232fac}from'ckeditor5/src/ui.js';import{getTranslation as _0x4aa3ca}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x557927{[_0x5b3bee(0x195)];[_0x5b3bee(0x185)];constructor(_0xd17448){const _0x491383=_0x5b3bee;super(_0xd17448),this[_0x491383(0x185)]=this[_0x491383(0x192)](),this[_0x491383(0x195)]=new _0x3c498a(),this[_0x491383(0x195)][_0x491383(0x18c)][_0x491383(0x199)](this[_0x491383(0x185)],0x1),this[_0x491383(0x195)][_0x491383(0x188)]=_0x4aa3ca(_0xd17448,_0x491383(0x18b)),this[_0x491383(0x195)][_0x491383(0x186)][_0x491383(0x189)](_0x491383(0x197))['to'](this),this[_0x491383(0x186)][_0x491383(0x199)](this[_0x491383(0x195)]);}[_0x5b3bee(0x19a)](){const _0x13a35c=_0x5b3bee;let _0x20e9e3=0x0;for(const _0x2c80bb of this[_0x13a35c(0x186)])_0x20e9e3+=_0x2c80bb[_0x13a35c(0x186)][_0x13a35c(0x196)];return{'resultsCount':_0x20e9e3,'totalItemsCount':_0x20e9e3};}[_0x5b3bee(0x192)](){const _0x395884=_0x5b3bee,_0x16cc4b=this[_0x395884(0x184)],_0x1bfba1=new _0x232fac(this[_0x395884(0x184)]);return _0x1bfba1[_0x395884(0x187)]({'label':'('+_0x4aa3ca(_0x16cc4b,_0x395884(0x182))+')','withText':!0x0}),_0x1bfba1['on'](_0x395884(0x197),()=>this[_0x395884(0x193)](_0x395884(0x191))),_0x1bfba1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d6c9c=_0x18c4;(function(_0x56a1f8,_0x1250ea){const _0x5586f6=_0x18c4,_0x3e3e17=_0x56a1f8();while(!![]){try{const _0x134eb0=-parseInt(_0x5586f6(0x15d))/0x1+-parseInt(_0x5586f6(0x172))/0x2*(parseInt(_0x5586f6(0x166))/0x3)+parseInt(_0x5586f6(0x16f))/0x4+-parseInt(_0x5586f6(0x169))/0x5+parseInt(_0x5586f6(0x165))/0x6+-parseInt(_0x5586f6(0x167))/0x7+parseInt(_0x5586f6(0x16e))/0x8;if(_0x134eb0===_0x1250ea)break;else _0x3e3e17['push'](_0x3e3e17['shift']());}catch(_0x393d40){_0x3e3e17['push'](_0x3e3e17['shift']());}}}(_0x92e8,0x5c1b3));import{Collection as _0x271ed5}from'ckeditor5/src/utils.js';const ts=_0x3d6c9c(0x15c);function _0x92e8(){const _0x2878ed=['prompt','parse','getItem','_loadFromSessionStorage','trim','492054ueLwwU','39aUgOXj','3502058lLzhKC','add','191290UxRDEc','_saveToSessionStorage','setItem','stringify','map','11279160nrMPEG','2482556MCfpIt','last','remove','101240VfGXYz','length','CKEditor/AIFormView/PromptHistory','538664sjouBQ','toLowerCase','addMany'];_0x92e8=function(){return _0x2878ed;};return _0x92e8();}export class PromptHistory extends _0x271ed5{constructor(){const _0x2fd5bd=_0x3d6c9c;super(),this[_0x2fd5bd(0x163)](),this['on'](_0x2fd5bd(0x168),(_0x518bd7,_0x43fc85)=>{const _0x4c9e6d=_0x2fd5bd,_0x2d4b3b=os(_0x43fc85[_0x4c9e6d(0x160)]);for(const _0x5b2ac8 of this)if(_0x5b2ac8!=_0x43fc85&&os(_0x5b2ac8[_0x4c9e6d(0x160)])===_0x2d4b3b){this[_0x4c9e6d(0x171)](_0x5b2ac8);break;}this[_0x4c9e6d(0x173)]>0x14&&this[_0x4c9e6d(0x171)](this[_0x4c9e6d(0x170)]),this[_0x4c9e6d(0x16a)]();}),this['on'](_0x2fd5bd(0x171),()=>{const _0x4de54c=_0x2fd5bd;this[_0x4de54c(0x16a)]();});}[_0x3d6c9c(0x163)](){const _0x55d27c=_0x3d6c9c,_0x235e32=sessionStorage[_0x55d27c(0x162)](ts)||'[]';this[_0x55d27c(0x15f)](JSON[_0x55d27c(0x161)](_0x235e32));}[_0x3d6c9c(0x16a)](){const _0xca80b8=_0x3d6c9c;sessionStorage[_0xca80b8(0x16b)](ts,JSON[_0xca80b8(0x16c)](this[_0xca80b8(0x16d)](_0x19c07e=>_0x19c07e)));}}function _0x18c4(_0x131081,_0x17bbad){const _0x92e86a=_0x92e8();return _0x18c4=function(_0x18c4de,_0x2e8ce0){_0x18c4de=_0x18c4de-0x15c;let _0x43e91c=_0x92e86a[_0x18c4de];return _0x43e91c;},_0x18c4(_0x131081,_0x17bbad);}function os(_0x4a9e5d){const _0x368854=_0x3d6c9c;return _0x4a9e5d[_0x368854(0x15e)]()[_0x368854(0x164)]();}
23
+ const _0x5e7ada=_0x28e7;(function(_0x4a15b8,_0x259246){const _0x9b44d9=_0x28e7,_0x6db059=_0x4a15b8();while(!![]){try{const _0xb569dc=-parseInt(_0x9b44d9(0x1d2))/0x1+parseInt(_0x9b44d9(0x1c8))/0x2*(-parseInt(_0x9b44d9(0x1ca))/0x3)+-parseInt(_0x9b44d9(0x1cf))/0x4+parseInt(_0x9b44d9(0x1c2))/0x5*(parseInt(_0x9b44d9(0x1c5))/0x6)+parseInt(_0x9b44d9(0x1be))/0x7+-parseInt(_0x9b44d9(0x1cd))/0x8*(parseInt(_0x9b44d9(0x1bb))/0x9)+parseInt(_0x9b44d9(0x1c1))/0xa;if(_0xb569dc===_0x259246)break;else _0x6db059['push'](_0x6db059['shift']());}catch(_0x827f1){_0x6db059['push'](_0x6db059['shift']());}}}(_0x71e2,0xc972d));function _0x28e7(_0x3e1786,_0x2049ad){const _0x71e2fc=_0x71e2();return _0x28e7=function(_0x28e7d5,_0x2c5952){_0x28e7d5=_0x28e7d5-0x1ba;let _0x5b2c59=_0x71e2fc[_0x28e7d5];return _0x5b2c59;},_0x28e7(_0x3e1786,_0x2049ad);}import{Collection as _0x206a16}from'ckeditor5/src/utils.js';const ts=_0x5e7ada(0x1c7);export class PromptHistory extends _0x206a16{constructor(){const _0x5672a2=_0x5e7ada;super(),this[_0x5672a2(0x1d1)](),this['on'](_0x5672a2(0x1bd),(_0x4b8a66,_0x4e8e3c)=>{const _0x1c542c=_0x5672a2,_0xffe687=os(_0x4e8e3c[_0x1c542c(0x1d0)]);for(const _0x1ab38c of this)if(_0x1ab38c!=_0x4e8e3c&&os(_0x1ab38c[_0x1c542c(0x1d0)])===_0xffe687){this[_0x1c542c(0x1c4)](_0x1ab38c);break;}this[_0x1c542c(0x1c0)]>0x14&&this[_0x1c542c(0x1c4)](this[_0x1c542c(0x1ba)]),this[_0x1c542c(0x1bc)]();}),this['on'](_0x5672a2(0x1c4),()=>{const _0x42990a=_0x5672a2;this[_0x42990a(0x1bc)]();});}[_0x5e7ada(0x1d1)](){const _0x3c0d90=_0x5e7ada,_0x4f32a8=sessionStorage[_0x3c0d90(0x1cb)](ts)||'[]';this[_0x3c0d90(0x1bf)](JSON[_0x3c0d90(0x1ce)](_0x4f32a8));}[_0x5e7ada(0x1bc)](){const _0x3bd7d8=_0x5e7ada;sessionStorage[_0x3bd7d8(0x1c6)](ts,JSON[_0x3bd7d8(0x1c3)](this[_0x3bd7d8(0x1cc)](_0x4cc468=>_0x4cc468)));}}function _0x71e2(){const _0x4b6da9=['stringify','remove','24xJwCsV','setItem','CKEditor/AIFormView/PromptHistory','1356598lOISkh','toLowerCase','6MzZNGJ','getItem','map','2807776oFnHFv','parse','1978188dRLUVs','prompt','_loadFromSessionStorage','47271jYUMbW','trim','last','27kfjzOE','_saveToSessionStorage','add','6962886WIMGIr','addMany','length','12776950xozyFe','1880090mzWxmZ'];_0x71e2=function(){return _0x4b6da9;};return _0x71e2();}function os(_0x339f03){const _0x1af55b=_0x5e7ada;return _0x339f03[_0x1af55b(0x1c9)]()[_0x1af55b(0x1d3)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4723e8=_0x2faa;(function(_0x39bbdb,_0x252d18){const _0x21b298=_0x2faa,_0x35edfb=_0x39bbdb();while(!![]){try{const _0x205cae=parseInt(_0x21b298(0x83))/0x1+parseInt(_0x21b298(0xae))/0x2*(-parseInt(_0x21b298(0xa7))/0x3)+parseInt(_0x21b298(0xa9))/0x4*(parseInt(_0x21b298(0x84))/0x5)+parseInt(_0x21b298(0x8e))/0x6+-parseInt(_0x21b298(0x8f))/0x7*(-parseInt(_0x21b298(0x96))/0x8)+parseInt(_0x21b298(0x86))/0x9*(parseInt(_0x21b298(0x82))/0xa)+-parseInt(_0x21b298(0x91))/0xb*(parseInt(_0x21b298(0x95))/0xc);if(_0x205cae===_0x252d18)break;else _0x35edfb['push'](_0x35edfb['shift']());}catch(_0x5f4ed1){_0x35edfb['push'](_0x35edfb['shift']());}}}(_0x2c5f,0x9d3fd));import{Command as _0x582622}from'ckeditor5/src/core.js';function _0x2faa(_0x2487f1,_0x5b6b4d){const _0x2c5f5f=_0x2c5f();return _0x2faa=function(_0x2faae1,_0x4c34a8){_0x2faae1=_0x2faae1-0x81;let _0x4573be=_0x2c5f5f[_0x2faae1];return _0x4573be;},_0x2faa(_0x2487f1,_0x5b6b4d);}import{AIAssistantUI as _0x2c1440}from'../aiassistantui.js';function _0x2c5f(){const _0x39b51e=['length','getSelectedBlocks','8133QuZbzR','getFirstRange','263512yFpfjn','model','change:isEnabled','_hasContext','plugins','560TSFkGV','hasContent','16800IVxoHP','3644sxoJEY','5tipyda','set','4509yhYUUY','add','name','values','getRanges','custom','_commandDefinitions','from','569724HrwcbK','3947461hyOSvP','includes','917983JlZzco','isCollapsed','refresh','getItems','24KVIUaK','8LvYrbQ','element','config','change:_hasContext','editor','document','ai.aiAssistant.disabledElements','execute','enabledCommandsIds','isEmpty','showUI','requiresContent','selection','get','isEnabled'];_0x2c5f=function(){return _0x39b51e;};return _0x2c5f();}export class ShowAIAssistantCommand extends _0x582622{[_0x4723e8(0x8c)];constructor(_0x53256b,_0x108257){const _0x446fdf=_0x4723e8;super(_0x53256b),this[_0x446fdf(0x8c)]=_0x108257,this[_0x446fdf(0x85)](_0x446fdf(0x9e),[]),this['on'](_0x446fdf(0x99),(_0x23acb6,_0x41b66,_0x1079fe)=>{const _0x55e578=_0x446fdf;this[_0x55e578(0xa4)]&&(this[_0x55e578(0x9e)]=F(this[_0x55e578(0x8c)],_0x1079fe));}),this[_0x446fdf(0x85)](_0x446fdf(0xac),!0x1),this['on'](_0x446fdf(0xab),(_0x6dc7ad,_0x271f85,_0x452ecb)=>{const _0x5b6681=_0x446fdf;this[_0x5b6681(0x9e)]=_0x452ecb?F(this[_0x5b6681(0x8c)],this[_0x5b6681(0xac)]):[];});}[_0x4723e8(0x93)](){const _0x53a50f=_0x4723e8,_0x319c21=this[_0x53a50f(0x9a)][_0x53a50f(0xaa)];this[_0x53a50f(0xac)]=function(_0x9fde32){const _0x3c3961=_0x53a50f,_0x24dbff=_0x9fde32[_0x3c3961(0x9b)][_0x3c3961(0xa2)];return _0x24dbff[_0x3c3961(0x92)]?0x0!==[..._0x24dbff[_0x3c3961(0xa6)]()][_0x3c3961(0xa5)]&&![..._0x24dbff[_0x3c3961(0xa6)]()][0x0][_0x3c3961(0x9f)]:!!_0x9fde32[_0x3c3961(0x81)](_0x24dbff[_0x3c3961(0xa8)]());}(_0x319c21);const _0x1a6919=_0x319c21[_0x53a50f(0x9b)][_0x53a50f(0xa2)],_0x4a259e=this[_0x53a50f(0x9a)][_0x53a50f(0x98)][_0x53a50f(0xa3)](_0x53a50f(0x9c));for(const _0x5cd37a of _0x1a6919[_0x53a50f(0x8a)]())for(const _0x11a9e8 of _0x5cd37a[_0x53a50f(0x94)]())if(_0x11a9e8['is'](_0x53a50f(0x97))&&_0x4a259e[_0x53a50f(0x90)](_0x11a9e8[_0x53a50f(0x88)]))return void(this[_0x53a50f(0xa4)]=!0x1);this[_0x53a50f(0xa4)]=!0x0;}[_0x4723e8(0x9d)](_0x493a4c='',_0x15282c='',_0x3cf247=_0x4723e8(0x8b)){const _0x336b5c=_0x4723e8;this[_0x336b5c(0x9a)][_0x336b5c(0xad)][_0x336b5c(0xa3)](_0x2c1440)[_0x336b5c(0xa0)](_0x493a4c,_0x15282c,_0x3cf247);}}function F(_0x1484e7,_0x2ef4f9){const _0x26c77d=_0x4723e8,_0x1eb0b3=new Set();for(const _0x2b2f7d of _0x1484e7[_0x26c77d(0x89)]())(_0x2ef4f9||!0x1===_0x2b2f7d[_0x26c77d(0xa1)])&&_0x1eb0b3[_0x26c77d(0x87)](_0x2b2f7d['id']);return Array[_0x26c77d(0x8d)](_0x1eb0b3);}
23
+ const _0x29daa9=_0x2168;(function(_0x2d7a59,_0x124e8e){const _0x5cfef4=_0x2168,_0x490fd4=_0x2d7a59();while(!![]){try{const _0x5a280a=parseInt(_0x5cfef4(0x1d6))/0x1*(-parseInt(_0x5cfef4(0x1c4))/0x2)+parseInt(_0x5cfef4(0x1e8))/0x3*(-parseInt(_0x5cfef4(0x1c6))/0x4)+parseInt(_0x5cfef4(0x1e7))/0x5+parseInt(_0x5cfef4(0x1d4))/0x6+parseInt(_0x5cfef4(0x1dd))/0x7*(parseInt(_0x5cfef4(0x1d0))/0x8)+parseInt(_0x5cfef4(0x1e9))/0x9*(parseInt(_0x5cfef4(0x1ce))/0xa)+-parseInt(_0x5cfef4(0x1da))/0xb*(-parseInt(_0x5cfef4(0x1d2))/0xc);if(_0x5a280a===_0x124e8e)break;else _0x490fd4['push'](_0x490fd4['shift']());}catch(_0x1fc63b){_0x490fd4['push'](_0x490fd4['shift']());}}}(_0x3f68,0x42283));import{Command as _0x24af29}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5e1c3a}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x24af29{[_0x29daa9(0x1d5)];constructor(_0x2df086,_0x3cc59d){const _0x49b3c1=_0x29daa9;super(_0x2df086),this[_0x49b3c1(0x1d5)]=_0x3cc59d,this[_0x49b3c1(0x1d3)](_0x49b3c1(0x1d8),[]),this['on'](_0x49b3c1(0x1ee),(_0x3acae0,_0x2ca34d,_0xaddf38)=>{const _0x955975=_0x49b3c1;this[_0x955975(0x1dc)]&&(this[_0x955975(0x1d8)]=F(this[_0x955975(0x1d5)],_0xaddf38));}),this[_0x49b3c1(0x1d3)](_0x49b3c1(0x1c9),!0x1),this['on'](_0x49b3c1(0x1eb),(_0xc2be0a,_0x229f8b,_0x5bbb8e)=>{const _0x53dbc4=_0x49b3c1;this[_0x53dbc4(0x1d8)]=_0x5bbb8e?F(this[_0x53dbc4(0x1d5)],this[_0x53dbc4(0x1c9)]):[];});}[_0x29daa9(0x1ef)](){const _0x38cd36=_0x29daa9,_0x1c970d=this[_0x38cd36(0x1e1)][_0x38cd36(0x1e5)];this[_0x38cd36(0x1c9)]=function(_0x193fa1){const _0xa9c81f=_0x38cd36,_0x5a17a6=_0x193fa1[_0xa9c81f(0x1ca)][_0xa9c81f(0x1ea)];return _0x5a17a6[_0xa9c81f(0x1d9)]?0x0!==[..._0x5a17a6[_0xa9c81f(0x1d1)]()][_0xa9c81f(0x1e0)]&&![..._0x5a17a6[_0xa9c81f(0x1d1)]()][0x0][_0xa9c81f(0x1db)]:!!_0x193fa1[_0xa9c81f(0x1f0)](_0x5a17a6[_0xa9c81f(0x1ed)]());}(_0x1c970d);const _0x506a95=_0x1c970d[_0x38cd36(0x1ca)][_0x38cd36(0x1ea)],_0x3df816=this[_0x38cd36(0x1e1)][_0x38cd36(0x1c8)][_0x38cd36(0x1f1)](_0x38cd36(0x1de));for(const _0x1fd657 of _0x506a95[_0x38cd36(0x1cb)]())for(const _0x536cc5 of _0x1fd657[_0x38cd36(0x1e2)]())if(_0x536cc5['is'](_0x38cd36(0x1cd))&&_0x3df816[_0x38cd36(0x1c7)](_0x536cc5[_0x38cd36(0x1e6)]))return void(this[_0x38cd36(0x1dc)]=!0x1);this[_0x38cd36(0x1dc)]=!0x0;}[_0x29daa9(0x1df)](_0x50dfcb='',_0x3dda5b='',_0xb637f0=_0x29daa9(0x1ec)){const _0x2457e1=_0x29daa9;this[_0x2457e1(0x1e1)][_0x2457e1(0x1cc)][_0x2457e1(0x1f1)](_0x5e1c3a)[_0x2457e1(0x1e4)](_0x50dfcb,_0x3dda5b,_0xb637f0);}}function _0x2168(_0xc38785,_0x580808){const _0x3f6847=_0x3f68();return _0x2168=function(_0x216899,_0x539121){_0x216899=_0x216899-0x1c4;let _0x3117e6=_0x3f6847[_0x216899];return _0x3117e6;},_0x2168(_0xc38785,_0x580808);}function _0x3f68(){const _0x2c9152=['config','_hasContext','document','getRanges','plugins','element','426180XSRCfQ','add','8VYzIZa','getSelectedBlocks','12jWsjLt','set','565296gYUsom','_commandDefinitions','587oaEWdr','from','enabledCommandsIds','isCollapsed','10615xIULog','isEmpty','isEnabled','3366013Xcnexy','ai.aiAssistant.disabledElements','execute','length','editor','getItems','requiresContent','showUI','model','name','50410bzMnux','1193394SxozpM','27sfUTeA','selection','change:isEnabled','custom','getFirstRange','change:_hasContext','refresh','hasContent','get','154eOKOZD','values','4BzGQkP','includes'];_0x3f68=function(){return _0x2c9152;};return _0x3f68();}function F(_0x202f89,_0x216ed8){const _0x20b135=_0x29daa9,_0x1f1776=new Set();for(const _0xd3314d of _0x202f89[_0x20b135(0x1c5)]())(_0x216ed8||!0x1===_0xd3314d[_0x20b135(0x1e3)])&&_0x1f1776[_0x20b135(0x1cf)](_0xd3314d['id']);return Array[_0x20b135(0x1d7)](_0x1f1776);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x38a129,_0x406d53,_0x127916){const t=_0x38a129['t'];switch(_0x406d53){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',_0x127916);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x127916);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'},_0x127916);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 _0x406d53;}}
23
+ export function getTranslation(_0x594238,_0x2342b3,_0x15e396){const t=_0x594238['t'];switch(_0x2342b3){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',_0x15e396);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x15e396);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'},_0x15e396);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 _0x2342b3;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x4779a3,_0x1b408d){const _0x2d62b4=(0x0,_0x1b408d['t'])('Other');return _0x4779a3['length']?'groupId'in _0x4779a3[0x0]?_0x4779a3:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d62b4,'order':0x1/0x0,'commands':_0x4779a3}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d62b4,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x120653,_0x1a0437){const _0x3cbf7c=(0x0,_0x1a0437['t'])('Other');return _0x120653['length']?'groupId'in _0x120653[0x0]?_0x120653:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3cbf7c,'order':0x1/0x0,'commands':_0x120653}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3cbf7c,'order':0x1/0x0,'commands':[]}];}