@ckeditor/ckeditor5-ai 46.1.1-alpha.2 → 46.1.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
- function _0x4e3b(_0x4e5208,_0x35e54d){const _0x369778=_0x3697();return _0x4e3b=function(_0x4e3b17,_0x12d87d){_0x4e3b17=_0x4e3b17-0x187;let _0x1b8aef=_0x369778[_0x4e3b17];return _0x1b8aef;},_0x4e3b(_0x4e5208,_0x35e54d);}const _0x2ba575=_0x4e3b;function _0x3697(){const _0x1dc581=['History','locale','852888mjbClI','width','maxRows','left','resultsView','focus','set','ck-ai-form__toggle-history','Submit','fieldView','rtl','fieldWrapperChildren','execute','focusableChildren','update','queryView','window','fire','value','enter','submitButtonView','element','4402836ysUvaw','add','222916eMmXAn','uiLanguageDirection','showHistoryButtonView','children','isEnabled','2489730JXcpJk','isVisible','isEmpty','ck-ai-form__submit','focusLast','_createSubmitButton','_createShowHistoryButton','filteredView','render','submit','focusCycler','394762gWURQE','focusFirst','requestAnimationFrame','right','isOn','55wCqGPZ','7xtysKg','excludeScrollbarsAndBorders','6487542LoGBMC','keystrokes','target','minRows','style','1040042DRmKdN','bind'];_0x3697=function(){return _0x1dc581;};return _0x3697();}(function(_0x48db87,_0x407342){const _0x827981=_0x4e3b,_0x4ddc68=_0x48db87();while(!![]){try{const _0x2b6e77=parseInt(_0x827981(0x18d))/0x1+-parseInt(_0x827981(0x1b9))/0x2+parseInt(_0x827981(0x1ae))/0x3+-parseInt(_0x827981(0x1a9))/0x4*(-parseInt(_0x827981(0x1be))/0x5)+parseInt(_0x827981(0x1a7))/0x6*(-parseInt(_0x827981(0x1bf))/0x7)+-parseInt(_0x827981(0x191))/0x8+-parseInt(_0x827981(0x188))/0x9;if(_0x2b6e77===_0x407342)break;else _0x4ddc68['push'](_0x4ddc68['shift']());}catch(_0x581b24){_0x4ddc68['push'](_0x4ddc68['shift']());}}}(_0x3697,0xb0d6f));import{Rect as _0x3908f6,global as _0x1639dd,isVisible as _0x4e6eb8}from'ckeditor5/src/utils.js';import{IconHistory as _0x4237ea,IconSubmit as _0x27fed9}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x1a1783,ButtonView as _0x556147}from'ckeditor5/src/ui.js';import{getTranslation as _0x3e00ab}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x1a1783{[_0x2ba575(0x1a5)];[_0x2ba575(0x1ab)];constructor(_0x55b767,_0x25c521){const _0x4ebbf8=_0x2ba575;super(_0x55b767,_0x25c521),this[_0x4ebbf8(0x1a0)][_0x4ebbf8(0x19a)][_0x4ebbf8(0x18b)]=0x1,this[_0x4ebbf8(0x1a0)][_0x4ebbf8(0x19a)][_0x4ebbf8(0x193)]=0x3,this[_0x4ebbf8(0x1a5)]=this[_0x4ebbf8(0x1b3)](),this[_0x4ebbf8(0x1ab)]=this[_0x4ebbf8(0x1b4)](),this[_0x4ebbf8(0x19e)][_0x4ebbf8(0x1a8)](this[_0x4ebbf8(0x1ab)],0x1),this[_0x4ebbf8(0x19e)][_0x4ebbf8(0x1a8)](this[_0x4ebbf8(0x1a5)]);}[_0x2ba575(0x1b6)](){const _0x24795c=_0x2ba575;super[_0x24795c(0x1b6)](),this[_0x24795c(0x1a0)][_0x24795c(0x19c)][_0x24795c(0x1a8)](this[_0x24795c(0x1ab)]),this[_0x24795c(0x1ac)][_0x24795c(0x1a8)](this[_0x24795c(0x1a5)]),this[_0x24795c(0x189)][_0x24795c(0x197)](_0x24795c(0x1a4),(_0x20d380,_0x463d1a)=>{const _0x341b61=_0x24795c;_0x20d380[_0x341b61(0x18a)]==this[_0x341b61(0x1a0)][_0x341b61(0x19a)][_0x341b61(0x1a6)]&&(this[_0x341b61(0x1b7)](),_0x463d1a());});}[_0x2ba575(0x1b3)](){const _0x51d0d2=_0x2ba575,_0x58fd40=new _0x556147(this[_0x51d0d2(0x190)]),_0xd86739=this[_0x51d0d2(0x190)];return _0x58fd40[_0x51d0d2(0x197)]({'icon':_0x27fed9,'label':_0x3e00ab(_0xd86739,_0x51d0d2(0x199)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x51d0d2(0x1b1)}),_0x58fd40['on'](_0x51d0d2(0x19d),()=>{const _0x5c1691=_0x51d0d2;this[_0x5c1691(0x1b7)]();}),_0x58fd40[_0x51d0d2(0x18e)](_0x51d0d2(0x1ad))['to'](this[_0x51d0d2(0x1a0)][_0x51d0d2(0x19a)],_0x51d0d2(0x1b0),this,_0x51d0d2(0x1ad),(_0x453a01,_0x49541c)=>!_0x453a01&&_0x49541c),_0x58fd40;}[_0x2ba575(0x1b4)](){const _0x1554ed=_0x2ba575,_0x1a7a6d=new _0x556147(this[_0x1554ed(0x190)]),_0x433c17=this[_0x1554ed(0x195)],_0x4d556a=this[_0x1554ed(0x190)];_0x1a7a6d[_0x1554ed(0x197)]({'label':_0x3e00ab(_0x4d556a,_0x1554ed(0x18f)),'withText':!0x1,'icon':_0x4237ea,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1554ed(0x198)}),_0x1a7a6d[_0x1554ed(0x18e)](_0x1554ed(0x1bd))['to'](_0x433c17,_0x1554ed(0x1af)),_0x1a7a6d[_0x1554ed(0x18e)](_0x1554ed(0x1ad))['to'](this,_0x1554ed(0x1ad)),_0x1a7a6d['on'](_0x1554ed(0x19d),()=>{const _0x265b50=_0x1554ed;_0x433c17[_0x265b50(0x1af)]=!_0x433c17[_0x265b50(0x1af)],_0x433c17[_0x265b50(0x1af)]?this[_0x265b50(0x1b5)][_0x265b50(0x196)]():this[_0x265b50(0x196)]();});const _0x253c65=()=>{const _0x1af14a=_0x1554ed;_0x1639dd[_0x1af14a(0x1a1)][_0x1af14a(0x1bb)](()=>{const _0x40b048=_0x1af14a;if(_0x4e6eb8(this[_0x40b048(0x1a6)])){const _0x38467f=new _0x3908f6(this[_0x40b048(0x1a0)][_0x40b048(0x19a)][_0x40b048(0x1a6)]),_0x4751e9=_0x38467f[_0x40b048(0x192)],_0x23f0d3=_0x40b048(0x19b)===_0x4d556a[_0x40b048(0x1aa)]?_0x40b048(0x194):_0x40b048(0x1bc);_0x38467f[_0x40b048(0x187)](),_0x1a7a6d[_0x40b048(0x1a6)][_0x40b048(0x18c)][_0x23f0d3]=_0x4751e9-_0x38467f[_0x40b048(0x192)]+0x1+'px';}});};return this[_0x1554ed(0x1a0)][_0x1554ed(0x19a)]['on'](_0x1554ed(0x19f),_0x253c65),this['on'](_0x1554ed(0x1b6),_0x253c65),_0x1a7a6d;}[_0x2ba575(0x1b7)](){const _0x2c2f87=_0x2ba575,_0x16a394=this[_0x2c2f87(0x1a0)][_0x2c2f87(0x19a)][_0x2c2f87(0x1a6)][_0x2c2f87(0x1a3)];this[_0x2c2f87(0x1a2)](_0x2c2f87(0x1b7),_0x16a394);}[_0x2ba575(0x196)](_0xdb6e08){const _0x24fa5e=_0x2ba575;-0x1===_0xdb6e08?this[_0x24fa5e(0x1b8)][_0x24fa5e(0x1b2)]():this[_0x24fa5e(0x1b8)][_0x24fa5e(0x1ba)]();}}
23
+ const _0x325f1f=_0x10f1;(function(_0x5f34dd,_0x5dd53){const _0x1668ef=_0x10f1,_0x4d27d8=_0x5f34dd();while(!![]){try{const _0x15335c=parseInt(_0x1668ef(0xdc))/0x1+parseInt(_0x1668ef(0xbd))/0x2*(parseInt(_0x1668ef(0xb5))/0x3)+parseInt(_0x1668ef(0xaa))/0x4+parseInt(_0x1668ef(0xda))/0x5*(parseInt(_0x1668ef(0xae))/0x6)+parseInt(_0x1668ef(0xe3))/0x7*(-parseInt(_0x1668ef(0xdd))/0x8)+-parseInt(_0x1668ef(0xd6))/0x9*(-parseInt(_0x1668ef(0xbc))/0xa)+-parseInt(_0x1668ef(0xe4))/0xb*(parseInt(_0x1668ef(0xc6))/0xc);if(_0x15335c===_0x5dd53)break;else _0x4d27d8['push'](_0x4d27d8['shift']());}catch(_0x14bae9){_0x4d27d8['push'](_0x4d27d8['shift']());}}}(_0xb44b,0x95b46));import{Rect as _0x4f59aa,global as _0x5d1c93,isVisible as _0x1110e1}from'ckeditor5/src/utils.js';function _0xb44b(){const _0x16fe53=['_createShowHistoryButton','ck-ai-form__submit','right','30fMmIRB','bind','908782AZqCvl','584owDfCA','width','fieldView','focusLast','focusFirst','isOn','89495AkKhNd','21714319XBKQqo','submit','92396LRSEQu','maxRows','locale','filteredView','407532chBaao','update','target','element','set','value','render','204uNyWJu','fire','uiLanguageDirection','excludeScrollbarsAndBorders','minRows','focusCycler','isEmpty','10KKSUCL','35804jPLNgQ','fieldWrapperChildren','focus','queryView','left','style','add','submitButtonView','focusableChildren','12XsGGfr','execute','requestAnimationFrame','showHistoryButtonView','isEnabled','ck-ai-form__toggle-history','keystrokes','isVisible','enter','window','_createSubmitButton','History','resultsView','children','rtl','Submit','8673975ohoZbh'];_0xb44b=function(){return _0x16fe53;};return _0xb44b();}import{IconHistory as _0x597fb9,IconSubmit as _0xe28e90}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x561711,ButtonView as _0x3aa53e}from'ckeditor5/src/ui.js';function _0x10f1(_0x137b20,_0x296867){const _0xb44b4b=_0xb44b();return _0x10f1=function(_0x10f16d,_0x4902c0){_0x10f16d=_0x10f16d-0xa9;let _0x4139db=_0xb44b4b[_0x10f16d];return _0x4139db;},_0x10f1(_0x137b20,_0x296867);}import{getTranslation as _0xd9e8db}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x561711{[_0x325f1f(0xc4)];[_0x325f1f(0xc9)];constructor(_0xc1db84,_0x5d24aa){const _0x553390=_0x325f1f;super(_0xc1db84,_0x5d24aa),this[_0x553390(0xc0)][_0x553390(0xdf)][_0x553390(0xb9)]=0x1,this[_0x553390(0xc0)][_0x553390(0xdf)][_0x553390(0xab)]=0x3,this[_0x553390(0xc4)]=this[_0x553390(0xd0)](),this[_0x553390(0xc9)]=this[_0x553390(0xd7)](),this[_0x553390(0xc5)][_0x553390(0xc3)](this[_0x553390(0xc9)],0x1),this[_0x553390(0xc5)][_0x553390(0xc3)](this[_0x553390(0xc4)]);}[_0x325f1f(0xb4)](){const _0x193804=_0x325f1f;super[_0x193804(0xb4)](),this[_0x193804(0xc0)][_0x193804(0xbe)][_0x193804(0xc3)](this[_0x193804(0xc9)]),this[_0x193804(0xd3)][_0x193804(0xc3)](this[_0x193804(0xc4)]),this[_0x193804(0xcc)][_0x193804(0xb2)](_0x193804(0xce),(_0x29b091,_0x4d0dda)=>{const _0x28ce9b=_0x193804;_0x29b091[_0x28ce9b(0xb0)]==this[_0x28ce9b(0xc0)][_0x28ce9b(0xdf)][_0x28ce9b(0xb1)]&&(this[_0x28ce9b(0xa9)](),_0x4d0dda());});}[_0x325f1f(0xd0)](){const _0x2662ca=_0x325f1f,_0xc5b61d=new _0x3aa53e(this[_0x2662ca(0xac)]),_0x2fb088=this[_0x2662ca(0xac)];return _0xc5b61d[_0x2662ca(0xb2)]({'icon':_0xe28e90,'label':_0xd9e8db(_0x2fb088,_0x2662ca(0xd5)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2662ca(0xd8)}),_0xc5b61d['on'](_0x2662ca(0xc7),()=>{const _0x1b24d3=_0x2662ca;this[_0x1b24d3(0xa9)]();}),_0xc5b61d[_0x2662ca(0xdb)](_0x2662ca(0xca))['to'](this[_0x2662ca(0xc0)][_0x2662ca(0xdf)],_0x2662ca(0xbb),this,_0x2662ca(0xca),(_0x146eb1,_0x314470)=>!_0x146eb1&&_0x314470),_0xc5b61d;}[_0x325f1f(0xd7)](){const _0x2e0dea=_0x325f1f,_0x2c3114=new _0x3aa53e(this[_0x2e0dea(0xac)]),_0x19d3ab=this[_0x2e0dea(0xd2)],_0x54c9b4=this[_0x2e0dea(0xac)];_0x2c3114[_0x2e0dea(0xb2)]({'label':_0xd9e8db(_0x54c9b4,_0x2e0dea(0xd1)),'withText':!0x1,'icon':_0x597fb9,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2e0dea(0xcb)}),_0x2c3114[_0x2e0dea(0xdb)](_0x2e0dea(0xe2))['to'](_0x19d3ab,_0x2e0dea(0xcd)),_0x2c3114[_0x2e0dea(0xdb)](_0x2e0dea(0xca))['to'](this,_0x2e0dea(0xca)),_0x2c3114['on'](_0x2e0dea(0xc7),()=>{const _0x15849d=_0x2e0dea;_0x19d3ab[_0x15849d(0xcd)]=!_0x19d3ab[_0x15849d(0xcd)],_0x19d3ab[_0x15849d(0xcd)]?this[_0x15849d(0xad)][_0x15849d(0xbf)]():this[_0x15849d(0xbf)]();});const _0x21a2ae=()=>{const _0x4ae9ea=_0x2e0dea;_0x5d1c93[_0x4ae9ea(0xcf)][_0x4ae9ea(0xc8)](()=>{const _0x58f118=_0x4ae9ea;if(_0x1110e1(this[_0x58f118(0xb1)])){const _0x1011ee=new _0x4f59aa(this[_0x58f118(0xc0)][_0x58f118(0xdf)][_0x58f118(0xb1)]),_0x5b5718=_0x1011ee[_0x58f118(0xde)],_0x597dc5=_0x58f118(0xd4)===_0x54c9b4[_0x58f118(0xb7)]?_0x58f118(0xc1):_0x58f118(0xd9);_0x1011ee[_0x58f118(0xb8)](),_0x2c3114[_0x58f118(0xb1)][_0x58f118(0xc2)][_0x597dc5]=_0x5b5718-_0x1011ee[_0x58f118(0xde)]+0x1+'px';}});};return this[_0x2e0dea(0xc0)][_0x2e0dea(0xdf)]['on'](_0x2e0dea(0xaf),_0x21a2ae),this['on'](_0x2e0dea(0xb4),_0x21a2ae),_0x2c3114;}[_0x325f1f(0xa9)](){const _0x38bf1c=_0x325f1f,_0x5bbac4=this[_0x38bf1c(0xc0)][_0x38bf1c(0xdf)][_0x38bf1c(0xb1)][_0x38bf1c(0xb3)];this[_0x38bf1c(0xb6)](_0x38bf1c(0xa9),_0x5bbac4);}[_0x325f1f(0xbf)](_0x3b53e9){const _0x6814f0=_0x325f1f;-0x1===_0x3b53e9?this[_0x6814f0(0xba)][_0x6814f0(0xe0)]():this[_0x6814f0(0xba)][_0x6814f0(0xe1)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14be3c=_0x7acd;(function(_0x14b0d8,_0x2e8b61){const _0x2fcd8b=_0x7acd,_0x5ea1c9=_0x14b0d8();while(!![]){try{const _0x8b818f=-parseInt(_0x2fcd8b(0x9e))/0x1*(-parseInt(_0x2fcd8b(0xaa))/0x2)+-parseInt(_0x2fcd8b(0x96))/0x3*(-parseInt(_0x2fcd8b(0x98))/0x4)+-parseInt(_0x2fcd8b(0x91))/0x5*(parseInt(_0x2fcd8b(0xac))/0x6)+parseInt(_0x2fcd8b(0x9f))/0x7+-parseInt(_0x2fcd8b(0xad))/0x8+-parseInt(_0x2fcd8b(0x95))/0x9+-parseInt(_0x2fcd8b(0x92))/0xa*(-parseInt(_0x2fcd8b(0x9a))/0xb);if(_0x8b818f===_0x2e8b61)break;else _0x5ea1c9['push'](_0x5ea1c9['shift']());}catch(_0x575602){_0x5ea1c9['push'](_0x5ea1c9['shift']());}}}(_0x2851,0x8013b));function _0x7acd(_0x385d33,_0x982f85){const _0x285108=_0x2851();return _0x7acd=function(_0x7acd20,_0x4d6cb6){_0x7acd20=_0x7acd20-0x8c;let _0x1c975d=_0x285108[_0x7acd20];return _0x1c975d;},_0x7acd(_0x385d33,_0x982f85);}import{ToolbarView as _0x139bf0,ButtonView as _0x1cdbf9}from'ckeditor5/src/ui.js';import{getTranslation as _0x40d2dd}from'../../utils/common-translations.js';function _0x2851(){const _0x3b90aa=['label','861210noQtIC','2922360pUUeJL','_CONTENT','ck-ai-form__toolbar','extendTemplate','REPLACE','addMany','set','bind','replaceButton','locale','items','2UZjjAH','mainAction','6XLxbAJ','8055456vdXvBE','bindTemplate','toUpperCase','tryAgainButton','replace','Try\x20again','_createButton','ck-button-action','isVisible','stopButton','1768015ZmHXsK','60tJbxqj','Insert\x20below','Stop','8602965hOGGaQ','3GMJLOx','ck-hidden','3146588JrDzRO','AI_','1422091rfLsYG','insert','insertButton'];_0x2851=function(){return _0x3b90aa;};return _0x2851();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x14be3c(0xb1),'INSERT':_0x14be3c(0x9b)};export class AIFormToolbarView extends _0x139bf0{constructor(_0x3729e8){const _0x30f7da=_0x14be3c;super(_0x3729e8),this[_0x30f7da(0xa5)](_0x30f7da(0x8f),!0x1),this[_0x30f7da(0xa5)](_0x30f7da(0xab),AIFormToolbarViewMainActionLabel[_0x30f7da(0xa3)]),this[_0x30f7da(0xa7)]=this[_0x30f7da(0x8d)]('',_0x30f7da(0x8e)),this[_0x30f7da(0xa7)][_0x30f7da(0xa6)](_0x30f7da(0x9d))['to'](this,_0x30f7da(0xab),_0x267301=>_0x40d2dd(_0x3729e8,_0x30f7da(0x99)+_0x267301[_0x30f7da(0xaf)]()+_0x30f7da(0xa0))),this[_0x30f7da(0x9c)]=this[_0x30f7da(0x8d)](_0x40d2dd(_0x3729e8,_0x30f7da(0x93))),this[_0x30f7da(0xb0)]=this[_0x30f7da(0x8d)](_0x40d2dd(_0x3729e8,_0x30f7da(0x8c))),this[_0x30f7da(0x90)]=this[_0x30f7da(0x8d)](_0x40d2dd(_0x3729e8,_0x30f7da(0x94)));const _0x4057d7=this[_0x30f7da(0xae)];this[_0x30f7da(0xa2)]({'attributes':{'class':[_0x30f7da(0xa1),_0x4057d7['if'](_0x30f7da(0x8f),_0x30f7da(0x97),_0x306757=>!_0x306757)]}}),this[_0x30f7da(0xa9)][_0x30f7da(0xa4)]([this[_0x30f7da(0xa7)],this[_0x30f7da(0x9c)],this[_0x30f7da(0xb0)],this[_0x30f7da(0x90)]]);}[_0x14be3c(0x8d)](_0x23c90a,_0x1f3277){const _0x5556ca=_0x14be3c,_0x3c8583=new _0x1cdbf9(this[_0x5556ca(0xa8)]);return _0x3c8583[_0x5556ca(0xa5)]({'label':_0x23c90a,'class':_0x1f3277||'','isVisible':!0x0,'withText':!0x0}),_0x3c8583;}}
23
+ function _0x14de(_0x590561,_0x2cc677){const _0x575222=_0x5752();return _0x14de=function(_0x14de57,_0x42e1b5){_0x14de57=_0x14de57-0x116;let _0xe2b78b=_0x575222[_0x14de57];return _0xe2b78b;},_0x14de(_0x590561,_0x2cc677);}const _0x52999f=_0x14de;(function(_0x21ae28,_0x3e9f34){const _0x4d1e65=_0x14de,_0x943cfc=_0x21ae28();while(!![]){try{const _0x40f7b6=-parseInt(_0x4d1e65(0x127))/0x1+-parseInt(_0x4d1e65(0x132))/0x2*(parseInt(_0x4d1e65(0x118))/0x3)+parseInt(_0x4d1e65(0x126))/0x4+parseInt(_0x4d1e65(0x131))/0x5*(parseInt(_0x4d1e65(0x11d))/0x6)+-parseInt(_0x4d1e65(0x12d))/0x7+parseInt(_0x4d1e65(0x11b))/0x8+parseInt(_0x4d1e65(0x12b))/0x9;if(_0x40f7b6===_0x3e9f34)break;else _0x943cfc['push'](_0x943cfc['shift']());}catch(_0x3ecc21){_0x943cfc['push'](_0x943cfc['shift']());}}}(_0x5752,0x7d1a8));import{ToolbarView as _0x2f4471,ButtonView as _0x1dae04}from'ckeditor5/src/ui.js';import{getTranslation as _0x4d18cb}from'../../utils/common-translations.js';function _0x5752(){const _0x5e9ec7=['2720907rmcGGW','replace','6381053lgWMey','extendTemplate','tryAgainButton','Insert\x20below','5busSUs','142xLyLKC','_createButton','toUpperCase','mainAction','addMany','stopButton','_CONTENT','ck-button-action','REPLACE','items','6780juKYDm','insert','ck-ai-form__toolbar','2779920QVbFyH','set','45162vSifxO','AI_','isVisible','ck-hidden','Try\x20again','Stop','replaceButton','locale','bindTemplate','3858220vvZhJE','37432yWjkBY','label','insertButton','bind'];_0x5752=function(){return _0x5e9ec7;};return _0x5752();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x52999f(0x12c),'INSERT':_0x52999f(0x119)};export class AIFormToolbarView extends _0x2f4471{constructor(_0x53aa10){const _0x298e70=_0x52999f;super(_0x53aa10),this[_0x298e70(0x11c)](_0x298e70(0x11f),!0x1),this[_0x298e70(0x11c)](_0x298e70(0x135),AIFormToolbarViewMainActionLabel[_0x298e70(0x116)]),this[_0x298e70(0x123)]=this[_0x298e70(0x133)]('',_0x298e70(0x139)),this[_0x298e70(0x123)][_0x298e70(0x12a)](_0x298e70(0x128))['to'](this,_0x298e70(0x135),_0x4d24ad=>_0x4d18cb(_0x53aa10,_0x298e70(0x11e)+_0x4d24ad[_0x298e70(0x134)]()+_0x298e70(0x138))),this[_0x298e70(0x129)]=this[_0x298e70(0x133)](_0x4d18cb(_0x53aa10,_0x298e70(0x130))),this[_0x298e70(0x12f)]=this[_0x298e70(0x133)](_0x4d18cb(_0x53aa10,_0x298e70(0x121))),this[_0x298e70(0x137)]=this[_0x298e70(0x133)](_0x4d18cb(_0x53aa10,_0x298e70(0x122)));const _0x428fc3=this[_0x298e70(0x125)];this[_0x298e70(0x12e)]({'attributes':{'class':[_0x298e70(0x11a),_0x428fc3['if'](_0x298e70(0x11f),_0x298e70(0x120),_0x1cb75b=>!_0x1cb75b)]}}),this[_0x298e70(0x117)][_0x298e70(0x136)]([this[_0x298e70(0x123)],this[_0x298e70(0x129)],this[_0x298e70(0x12f)],this[_0x298e70(0x137)]]);}[_0x52999f(0x133)](_0x5324a8,_0x10352f){const _0x309f66=_0x52999f,_0x35c87d=new _0x1dae04(this[_0x309f66(0x124)]);return _0x35c87d[_0x309f66(0x11c)]({'label':_0x5324a8,'class':_0x10352f||'','isVisible':!0x0,'withText':!0x0}),_0x35c87d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2936db=_0x5f48;(function(_0x436e3f,_0x154981){const _0x5aeb12=_0x5f48,_0x2763ff=_0x436e3f();while(!![]){try{const _0x11803c=-parseInt(_0x5aeb12(0x14b))/0x1+parseInt(_0x5aeb12(0x16c))/0x2*(parseInt(_0x5aeb12(0x125))/0x3)+-parseInt(_0x5aeb12(0x12b))/0x4*(-parseInt(_0x5aeb12(0x134))/0x5)+parseInt(_0x5aeb12(0x153))/0x6+parseInt(_0x5aeb12(0x159))/0x7*(parseInt(_0x5aeb12(0x148))/0x8)+-parseInt(_0x5aeb12(0x127))/0x9*(parseInt(_0x5aeb12(0x146))/0xa)+parseInt(_0x5aeb12(0x164))/0xb;if(_0x11803c===_0x154981)break;else _0x2763ff['push'](_0x2763ff['shift']());}catch(_0x1db915){_0x2763ff['push'](_0x2763ff['shift']());}}}(_0x5647,0xb0840));import{FocusTracker as _0x24b390,KeystrokeHandler as _0x20aa83}from'ckeditor5/src/utils.js';import{View as _0x41342e,FocusCycler as _0x2cbab2,createLabeledTextarea as _0x39ac6f}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x493855,AIFormToolbarViewMainActionLabel as _0x337756}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x1ffd02}from'./aiformcontentarea.js';import{AIFormErrorView as _0x3691ac}from'./aiformerrorview.js';import{AIFormPromptView as _0x2e8a51}from'./aiformpromptview.js';function _0x5f48(_0x367de9,_0x4687b4){const _0x564719=_0x5647();return _0x5f48=function(_0x5f4882,_0x5d0123){_0x5f4882=_0x5f4882-0x118;let _0x199908=_0x564719[_0x5f4882];return _0x199908;},_0x5f48(_0x367de9,_0x4687b4);}import{AIHistoryListView as _0x2311a8}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x52ce41}from'./aihistorylistitemview.js';import{PromptHistory as _0x1432f8}from'./prompthistory.js';function _0x5647(){const _0x214eec=['handleError','focusFirst','isError','toolbar','Ask\x20AI\x20to\x20edit\x20or\x20generate','startProcessing','historyGroupView','tryAgainEvent','queryView','AI_ERROR_FAILED','reset','3VzPAcG','fire','6136812pzECQI','focusTracker','focusCycler','promptView','215264EybDzr','submitPrompt','items','fieldView','delegate','clear','trim','stopProcessing','_promptHistory','10DYgVJo','set','REPLACE','focus','label','high','mainAction','chain','prompt','replaceButton','_focusables','bindTo','locale','errorView','isProcessing','setTemplate','_createToolbar','focusLast','20TIaOMi','execute','16zuVjrw','shift\x20+\x20tab','_createHistoryView','971457wiHmNo','element','div','insertButton','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','clearHistory','isEnabled','bind','8493126OWDUGz','render','ck-ai-form-content','insertContentBelow','text','finishProcessing','266301HjkPjE','stopButton','value','ck-hidden','replaceContent','_createPromptView','Ask\x20AI\x20to\x20improve\x20generated\x20text','tryAgainButton','contentArea','isVisible','listenTo','13613369lIAMRf','copyButtonView','createCollection','add','search','Empty\x20history','ck-ai-form','tab','442766yilCcb','submit','bindTemplate','keystrokes'];_0x5647=function(){return _0x214eec;};return _0x5647();}import{getTranslation as _0x152992}from'../../utils/common-translations.js';import{escape as _0x242199}from'es-toolkit/compat';export class AIFormView extends _0x41342e{[_0x2936db(0x128)];[_0x2936db(0x119)];[_0x2936db(0x161)];[_0x2936db(0x11d)];[_0x2936db(0x12a)];[_0x2936db(0x141)];[_0x2936db(0x13e)];[_0x2936db(0x129)];[_0x2936db(0x133)];constructor(_0x57f9ee,_0x4d956d,_0x17e600=''){const _0x516b44=_0x2936db;super(_0x57f9ee),this[_0x516b44(0x135)](_0x516b44(0x151),!0x0),this[_0x516b44(0x135)](_0x516b44(0x142),!0x1),this[_0x516b44(0x135)](_0x516b44(0x13c),''),this[_0x516b44(0x135)](_0x516b44(0x15b),''),this[_0x516b44(0x135)](_0x516b44(0x11c),!0x1),this[_0x516b44(0x135)](_0x516b44(0x13a),_0x337756[_0x516b44(0x136)]),this[_0x516b44(0x133)]=new _0x1432f8(),this[_0x516b44(0x141)]=new _0x3691ac(_0x57f9ee),this[_0x516b44(0x161)]=new _0x1ffd02(_0x57f9ee,_0x17e600),this[_0x516b44(0x161)][_0x516b44(0x152)](_0x516b44(0x142))['to'](this),this[_0x516b44(0x161)][_0x516b44(0x152)](_0x516b44(0x15b))['to'](this),this[_0x516b44(0x11d)]=this[_0x516b44(0x144)](),this[_0x516b44(0x11d)][_0x516b44(0x152)](_0x516b44(0x13a))['to'](this),this[_0x516b44(0x12a)]=this[_0x516b44(0x15e)](),this[_0x516b44(0x128)]=new _0x24b390(),this[_0x516b44(0x119)]=new _0x20aa83(),this[_0x516b44(0x13e)]=this[_0x516b44(0x166)]([this[_0x516b44(0x161)],this[_0x516b44(0x161)][_0x516b44(0x165)],this[_0x516b44(0x11d)],this[_0x516b44(0x12a)]]),this[_0x516b44(0x129)]=new _0x2cbab2({'focusables':this[_0x516b44(0x13e)],'focusTracker':this[_0x516b44(0x128)],'keystrokeHandler':this[_0x516b44(0x119)],'actions':{'focusPrevious':_0x516b44(0x149),'focusNext':_0x516b44(0x16b)}}),this[_0x516b44(0x129)][_0x516b44(0x13b)](this[_0x516b44(0x12a)][_0x516b44(0x129)]),this[_0x516b44(0x12a)][_0x516b44(0x122)][_0x516b44(0x12e)][_0x516b44(0x152)](_0x516b44(0x15b))['to'](this,_0x516b44(0x13c));const _0x1e797d=this[_0x516b44(0x118)];this[_0x516b44(0x143)]({'tag':_0x516b44(0x14d),'attributes':{'class':['ck',_0x516b44(0x16a),_0x4d956d],'tabindex':'-1'},'children':[{'tag':_0x516b44(0x14d),'attributes':{'class':['ck',_0x516b44(0x155)]},'children':[{'tag':_0x516b44(0x14d),'attributes':{'class':[_0x1e797d['if'](_0x516b44(0x11c),_0x516b44(0x15c),_0x4b6f5c=>!_0x4b6f5c)]},'children':[this[_0x516b44(0x141)]]},this[_0x516b44(0x161)],this[_0x516b44(0x11d)],this[_0x516b44(0x12a)]]}]});}[_0x2936db(0x154)](){const _0x32b7bc=_0x2936db;super[_0x32b7bc(0x154)](),this[_0x32b7bc(0x128)][_0x32b7bc(0x167)](this[_0x32b7bc(0x161)][_0x32b7bc(0x14c)]),this[_0x32b7bc(0x128)][_0x32b7bc(0x167)](this[_0x32b7bc(0x161)][_0x32b7bc(0x165)][_0x32b7bc(0x14c)]),this[_0x32b7bc(0x128)][_0x32b7bc(0x167)](this[_0x32b7bc(0x11d)][_0x32b7bc(0x14c)]),this[_0x32b7bc(0x128)][_0x32b7bc(0x167)](this[_0x32b7bc(0x12a)][_0x32b7bc(0x14c)]),this[_0x32b7bc(0x119)][_0x32b7bc(0x163)](this[_0x32b7bc(0x14c)]);}[_0x2936db(0x137)](_0x15bec8=0x1){const _0x128089=_0x2936db;-0x1===_0x15bec8?this[_0x128089(0x129)][_0x128089(0x145)]():this[_0x128089(0x129)][_0x128089(0x11b)]();}[_0x2936db(0x124)](){const _0x1ea995=_0x2936db;this[_0x1ea995(0x13c)]='',this[_0x1ea995(0x15b)]='',this[_0x1ea995(0x11c)]=!0x1,this[_0x1ea995(0x12a)][_0x1ea995(0x124)](),this[_0x1ea995(0x161)][_0x1ea995(0x162)]=!0x1,this[_0x1ea995(0x11d)][_0x1ea995(0x162)]=!0x1;}[_0x2936db(0x15e)](){const _0x38f153=_0x2936db,_0x11e2f1=this[_0x38f153(0x140)],_0x4eeb89=new _0x2e8a51(_0x11e2f1,{'queryView':{'label':_0x152992(_0x11e2f1,_0x38f153(0x11e)),'creator':_0x39ac6f,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x152992(_0x11e2f1,_0x38f153(0x169)),'secondary':_0x152992(_0x11e2f1,_0x38f153(0x14f))}}},'filteredView':this[_0x38f153(0x14a)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4eeb89[_0x38f153(0x152)](_0x38f153(0x151))['to'](this,_0x38f153(0x151),this,_0x38f153(0x142),(_0x13ddbd,_0x261f2b)=>_0x13ddbd&&!_0x261f2b),this[_0x38f153(0x163)](_0x4eeb89,_0x38f153(0x16d),(_0x86d361,_0x5301dc)=>{const _0x9c3143=_0x38f153;this[_0x9c3143(0x13c)]=_0x5301dc;const _0x3c4c23=_0x242199(_0x5301dc);this[_0x9c3143(0x126)](_0x9c3143(0x12c),_0x3c4c23),_0x5301dc[_0x9c3143(0x131)]()&&this[_0x9c3143(0x133)][_0x9c3143(0x167)]({'prompt':_0x3c4c23},0x0);},{'priority':_0x38f153(0x139)}),_0x4eeb89;}[_0x2936db(0x14a)](){const _0x29cf8c=_0x2936db,_0x44dcde=new _0x2311a8(this[_0x29cf8c(0x140)]);return _0x44dcde[_0x29cf8c(0x120)][_0x29cf8c(0x12d)][_0x29cf8c(0x13f)](this[_0x29cf8c(0x133)])['as'](_0x52ce41),_0x44dcde['on'](_0x29cf8c(0x150),()=>{const _0xbceba5=_0x29cf8c;this[_0xbceba5(0x133)][_0xbceba5(0x130)](),this[_0xbceba5(0x12a)][_0xbceba5(0x168)](''),this[_0xbceba5(0x12a)][_0xbceba5(0x137)]();}),_0x44dcde;}[_0x2936db(0x144)](){const _0x4d0ef4=_0x2936db,_0x5c83e1=new _0x493855(this[_0x4d0ef4(0x140)]);return _0x5c83e1[_0x4d0ef4(0x13d)][_0x4d0ef4(0x152)](_0x4d0ef4(0x151))['to'](this,_0x4d0ef4(0x151),this,_0x4d0ef4(0x142),this,_0x4d0ef4(0x15b),(_0x3e6dc3,_0x33b06b,_0x13fac3)=>_0x3e6dc3&&!_0x33b06b&&!!_0x13fac3),_0x5c83e1[_0x4d0ef4(0x13d)][_0x4d0ef4(0x12f)](_0x4d0ef4(0x147))['to'](this,_0x4d0ef4(0x15d)),_0x5c83e1[_0x4d0ef4(0x14e)][_0x4d0ef4(0x152)](_0x4d0ef4(0x151))['to'](this,_0x4d0ef4(0x151),this,_0x4d0ef4(0x142),this,_0x4d0ef4(0x15b),(_0x50f6c8,_0x29a538,_0x4122a4)=>_0x50f6c8&&!_0x29a538&&!!_0x4122a4),_0x5c83e1[_0x4d0ef4(0x14e)][_0x4d0ef4(0x12f)](_0x4d0ef4(0x147))['to'](this,_0x4d0ef4(0x156)),_0x5c83e1[_0x4d0ef4(0x160)][_0x4d0ef4(0x152)](_0x4d0ef4(0x151))['to'](this,_0x4d0ef4(0x151),this,_0x4d0ef4(0x142),(_0x1a6114,_0x11a2be)=>_0x1a6114&&!_0x11a2be),_0x5c83e1[_0x4d0ef4(0x160)][_0x4d0ef4(0x12f)](_0x4d0ef4(0x147))['to'](this,_0x4d0ef4(0x121)),_0x5c83e1[_0x4d0ef4(0x15a)][_0x4d0ef4(0x152)](_0x4d0ef4(0x151))['to'](this,_0x4d0ef4(0x142)),_0x5c83e1[_0x4d0ef4(0x15a)][_0x4d0ef4(0x12f)](_0x4d0ef4(0x147))['to'](this,_0x4d0ef4(0x132)),_0x5c83e1;}[_0x2936db(0x11f)](){const _0x4ed212=_0x2936db;this[_0x4ed212(0x15b)]='',this[_0x4ed212(0x11c)]=!0x1,this[_0x4ed212(0x142)]=!0x0,this[_0x4ed212(0x161)][_0x4ed212(0x162)]=!0x0,this[_0x4ed212(0x11d)][_0x4ed212(0x162)]=!0x0,this[_0x4ed212(0x161)][_0x4ed212(0x137)]();}[_0x2936db(0x158)](){const _0x5353c7=_0x2936db,_0xb1bed0=this[_0x5353c7(0x140)];this[_0x5353c7(0x142)]=!0x1,this[_0x5353c7(0x13c)]='',this[_0x5353c7(0x12a)][_0x5353c7(0x124)](),this[_0x5353c7(0x15b)]&&(this[_0x5353c7(0x12a)][_0x5353c7(0x122)][_0x5353c7(0x138)]=_0x152992(_0xb1bed0,_0x5353c7(0x15f)));}[_0x2936db(0x11a)](_0x3b9cab){const _0x33f000=_0x2936db,_0x456a89=this[_0x33f000(0x140)];this[_0x33f000(0x158)](),this[_0x33f000(0x11c)]=!0x0,this[_0x33f000(0x141)][_0x33f000(0x157)]=_0x3b9cab||_0x152992(_0x456a89,_0x33f000(0x123)),this[_0x33f000(0x15b)]||(this[_0x33f000(0x161)][_0x33f000(0x162)]=!0x1);}}
23
+ const _0x29d06f=_0x19d7;(function(_0x454914,_0x587dc8){const _0x23998e=_0x19d7,_0x209d3c=_0x454914();while(!![]){try{const _0x480f4a=parseInt(_0x23998e(0x8d))/0x1+parseInt(_0x23998e(0xc7))/0x2*(-parseInt(_0x23998e(0xc9))/0x3)+parseInt(_0x23998e(0x9b))/0x4+-parseInt(_0x23998e(0xc8))/0x5+-parseInt(_0x23998e(0x81))/0x6*(-parseInt(_0x23998e(0xc1))/0x7)+-parseInt(_0x23998e(0xb4))/0x8*(-parseInt(_0x23998e(0x98))/0x9)+-parseInt(_0x23998e(0xb3))/0xa*(parseInt(_0x23998e(0x77))/0xb);if(_0x480f4a===_0x587dc8)break;else _0x209d3c['push'](_0x209d3c['shift']());}catch(_0x32c55c){_0x209d3c['push'](_0x209d3c['shift']());}}}(_0x548a,0x4672d));import{FocusTracker as _0x6ceadd,KeystrokeHandler as _0x433e04}from'ckeditor5/src/utils.js';import{View as _0x78ad48,FocusCycler as _0x59952f,createLabeledTextarea as _0x384f55}from'ckeditor5/src/ui.js';function _0x19d7(_0x5f4a66,_0x6eb5bf){const _0x548a0f=_0x548a();return _0x19d7=function(_0x19d7ef,_0x3c3758){_0x19d7ef=_0x19d7ef-0x77;let _0x4a5708=_0x548a0f[_0x19d7ef];return _0x4a5708;},_0x19d7(_0x5f4a66,_0x6eb5bf);}import{AIFormToolbarView as _0x129b16,AIFormToolbarViewMainActionLabel as _0x9e4166}from'./aiformtoolbarview.js';function _0x548a(){const _0x557e61=['set','search','isVisible','execute','696534afQfrb','locale','_focusables','clearHistory','prompt','focusFirst','div','render','mainAction','ck-hidden','replaceContent','queryView','558000atlpzD','_createToolbar','fire','tryAgainButton','focus','add','promptView','insertContentBelow','stopButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','startProcessing','9bTjilH','bindTemplate','delegate','2135852vNWnEK','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','keystrokes','isEnabled','_createHistoryView','toolbar','_promptHistory','REPLACE','finishProcessing','historyGroupView','value','ck-ai-form','focusCycler','stopProcessing','chain','Empty\x20history','replaceButton','bindTo','contentArea','tab','handleError','Ask\x20AI\x20to\x20edit\x20or\x20generate','isError','listenTo','290ZmgoeE','2745240VxhUpp','high','trim','fieldView','focusLast','errorView','clear','text','submit','shift\x20+\x20tab','bind','ck-ai-form-content','focusTracker','28mIQFjK','insertButton','submitPrompt','label','isProcessing','reset','1966tZntfQ','705750rfQvSR','417WdEjTZ','AI_ERROR_FAILED','copyButtonView','createCollection','505670Gstyzs','setTemplate','tryAgainEvent','element','_createPromptView','items'];_0x548a=function(){return _0x557e61;};return _0x548a();}import{AIFormContentArea as _0x58135d}from'./aiformcontentarea.js';import{AIFormErrorView as _0x505c41}from'./aiformerrorview.js';import{AIFormPromptView as _0xf2f3f6}from'./aiformpromptview.js';import{AIHistoryListView as _0x49ca83}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x1e7761}from'./aihistorylistitemview.js';import{PromptHistory as _0x523b2c}from'./prompthistory.js';import{getTranslation as _0x5c6a28}from'../../utils/common-translations.js';import{escape as _0x30afc7}from'es-toolkit/compat';export class AIFormView extends _0x78ad48{[_0x29d06f(0xc0)];[_0x29d06f(0x9d)];[_0x29d06f(0xad)];[_0x29d06f(0xa0)];[_0x29d06f(0x93)];[_0x29d06f(0xb9)];[_0x29d06f(0x83)];[_0x29d06f(0xa7)];[_0x29d06f(0xa1)];constructor(_0x1e8c23,_0x327c90,_0x2eb7a9=''){const _0x3a8e26=_0x29d06f;super(_0x1e8c23),this[_0x3a8e26(0x7d)](_0x3a8e26(0x9e),!0x0),this[_0x3a8e26(0x7d)](_0x3a8e26(0xc5),!0x1),this[_0x3a8e26(0x7d)](_0x3a8e26(0x85),''),this[_0x3a8e26(0x7d)](_0x3a8e26(0xa5),''),this[_0x3a8e26(0x7d)](_0x3a8e26(0xb1),!0x1),this[_0x3a8e26(0x7d)](_0x3a8e26(0x89),_0x9e4166[_0x3a8e26(0xa2)]),this[_0x3a8e26(0xa1)]=new _0x523b2c(),this[_0x3a8e26(0xb9)]=new _0x505c41(_0x1e8c23),this[_0x3a8e26(0xad)]=new _0x58135d(_0x1e8c23,_0x2eb7a9),this[_0x3a8e26(0xad)][_0x3a8e26(0xbe)](_0x3a8e26(0xc5))['to'](this),this[_0x3a8e26(0xad)][_0x3a8e26(0xbe)](_0x3a8e26(0xa5))['to'](this),this[_0x3a8e26(0xa0)]=this[_0x3a8e26(0x8e)](),this[_0x3a8e26(0xa0)][_0x3a8e26(0xbe)](_0x3a8e26(0x89))['to'](this),this[_0x3a8e26(0x93)]=this[_0x3a8e26(0x7b)](),this[_0x3a8e26(0xc0)]=new _0x6ceadd(),this[_0x3a8e26(0x9d)]=new _0x433e04(),this[_0x3a8e26(0x83)]=this[_0x3a8e26(0xcc)]([this[_0x3a8e26(0xad)],this[_0x3a8e26(0xad)][_0x3a8e26(0xcb)],this[_0x3a8e26(0xa0)],this[_0x3a8e26(0x93)]]),this[_0x3a8e26(0xa7)]=new _0x59952f({'focusables':this[_0x3a8e26(0x83)],'focusTracker':this[_0x3a8e26(0xc0)],'keystrokeHandler':this[_0x3a8e26(0x9d)],'actions':{'focusPrevious':_0x3a8e26(0xbd),'focusNext':_0x3a8e26(0xae)}}),this[_0x3a8e26(0xa7)][_0x3a8e26(0xa9)](this[_0x3a8e26(0x93)][_0x3a8e26(0xa7)]),this[_0x3a8e26(0x93)][_0x3a8e26(0x8c)][_0x3a8e26(0xb7)][_0x3a8e26(0xbe)](_0x3a8e26(0xa5))['to'](this,_0x3a8e26(0x85));const _0x7d131a=this[_0x3a8e26(0x99)];this[_0x3a8e26(0x78)]({'tag':_0x3a8e26(0x87),'attributes':{'class':['ck',_0x3a8e26(0xa6),_0x327c90],'tabindex':'-1'},'children':[{'tag':_0x3a8e26(0x87),'attributes':{'class':['ck',_0x3a8e26(0xbf)]},'children':[{'tag':_0x3a8e26(0x87),'attributes':{'class':[_0x7d131a['if'](_0x3a8e26(0xb1),_0x3a8e26(0x8a),_0x506b65=>!_0x506b65)]},'children':[this[_0x3a8e26(0xb9)]]},this[_0x3a8e26(0xad)],this[_0x3a8e26(0xa0)],this[_0x3a8e26(0x93)]]}]});}[_0x29d06f(0x88)](){const _0x1ca149=_0x29d06f;super[_0x1ca149(0x88)](),this[_0x1ca149(0xc0)][_0x1ca149(0x92)](this[_0x1ca149(0xad)][_0x1ca149(0x7a)]),this[_0x1ca149(0xc0)][_0x1ca149(0x92)](this[_0x1ca149(0xad)][_0x1ca149(0xcb)][_0x1ca149(0x7a)]),this[_0x1ca149(0xc0)][_0x1ca149(0x92)](this[_0x1ca149(0xa0)][_0x1ca149(0x7a)]),this[_0x1ca149(0xc0)][_0x1ca149(0x92)](this[_0x1ca149(0x93)][_0x1ca149(0x7a)]),this[_0x1ca149(0x9d)][_0x1ca149(0xb2)](this[_0x1ca149(0x7a)]);}[_0x29d06f(0x91)](_0x306519=0x1){const _0x2898fd=_0x29d06f;-0x1===_0x306519?this[_0x2898fd(0xa7)][_0x2898fd(0xb8)]():this[_0x2898fd(0xa7)][_0x2898fd(0x86)]();}[_0x29d06f(0xc6)](){const _0x1ac1e6=_0x29d06f;this[_0x1ac1e6(0x85)]='',this[_0x1ac1e6(0xa5)]='',this[_0x1ac1e6(0xb1)]=!0x1,this[_0x1ac1e6(0x93)][_0x1ac1e6(0xc6)](),this[_0x1ac1e6(0xad)][_0x1ac1e6(0x7f)]=!0x1,this[_0x1ac1e6(0xa0)][_0x1ac1e6(0x7f)]=!0x1;}[_0x29d06f(0x7b)](){const _0x35e73c=_0x29d06f,_0x240e52=this[_0x35e73c(0x82)],_0x8ffbd8=new _0xf2f3f6(_0x240e52,{'queryView':{'label':_0x5c6a28(_0x240e52,_0x35e73c(0xb0)),'creator':_0x384f55,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5c6a28(_0x240e52,_0x35e73c(0xaa)),'secondary':_0x5c6a28(_0x240e52,_0x35e73c(0x9c))}}},'filteredView':this[_0x35e73c(0x9f)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x8ffbd8[_0x35e73c(0xbe)](_0x35e73c(0x9e))['to'](this,_0x35e73c(0x9e),this,_0x35e73c(0xc5),(_0x2dfb31,_0x4b44fd)=>_0x2dfb31&&!_0x4b44fd),this[_0x35e73c(0xb2)](_0x8ffbd8,_0x35e73c(0xbc),(_0x49347a,_0x208071)=>{const _0x6a7ea2=_0x35e73c;this[_0x6a7ea2(0x85)]=_0x208071;const _0x2e0f8b=_0x30afc7(_0x208071);this[_0x6a7ea2(0x8f)](_0x6a7ea2(0xc3),_0x2e0f8b),_0x208071[_0x6a7ea2(0xb6)]()&&this[_0x6a7ea2(0xa1)][_0x6a7ea2(0x92)]({'prompt':_0x2e0f8b},0x0);},{'priority':_0x35e73c(0xb5)}),_0x8ffbd8;}[_0x29d06f(0x9f)](){const _0x13c9b0=_0x29d06f,_0x466ab1=new _0x49ca83(this[_0x13c9b0(0x82)]);return _0x466ab1[_0x13c9b0(0xa4)][_0x13c9b0(0x7c)][_0x13c9b0(0xac)](this[_0x13c9b0(0xa1)])['as'](_0x1e7761),_0x466ab1['on'](_0x13c9b0(0x84),()=>{const _0x4621f7=_0x13c9b0;this[_0x4621f7(0xa1)][_0x4621f7(0xba)](),this[_0x4621f7(0x93)][_0x4621f7(0x7e)](''),this[_0x4621f7(0x93)][_0x4621f7(0x91)]();}),_0x466ab1;}[_0x29d06f(0x8e)](){const _0x48c4f9=_0x29d06f,_0x49dbbb=new _0x129b16(this[_0x48c4f9(0x82)]);return _0x49dbbb[_0x48c4f9(0xab)][_0x48c4f9(0xbe)](_0x48c4f9(0x9e))['to'](this,_0x48c4f9(0x9e),this,_0x48c4f9(0xc5),this,_0x48c4f9(0xa5),(_0x5cf227,_0x180d49,_0x159e7d)=>_0x5cf227&&!_0x180d49&&!!_0x159e7d),_0x49dbbb[_0x48c4f9(0xab)][_0x48c4f9(0x9a)](_0x48c4f9(0x80))['to'](this,_0x48c4f9(0x8b)),_0x49dbbb[_0x48c4f9(0xc2)][_0x48c4f9(0xbe)](_0x48c4f9(0x9e))['to'](this,_0x48c4f9(0x9e),this,_0x48c4f9(0xc5),this,_0x48c4f9(0xa5),(_0x2c01c9,_0x10efd1,_0x569cea)=>_0x2c01c9&&!_0x10efd1&&!!_0x569cea),_0x49dbbb[_0x48c4f9(0xc2)][_0x48c4f9(0x9a)](_0x48c4f9(0x80))['to'](this,_0x48c4f9(0x94)),_0x49dbbb[_0x48c4f9(0x90)][_0x48c4f9(0xbe)](_0x48c4f9(0x9e))['to'](this,_0x48c4f9(0x9e),this,_0x48c4f9(0xc5),(_0x45d569,_0x25a8a4)=>_0x45d569&&!_0x25a8a4),_0x49dbbb[_0x48c4f9(0x90)][_0x48c4f9(0x9a)](_0x48c4f9(0x80))['to'](this,_0x48c4f9(0x79)),_0x49dbbb[_0x48c4f9(0x95)][_0x48c4f9(0xbe)](_0x48c4f9(0x9e))['to'](this,_0x48c4f9(0xc5)),_0x49dbbb[_0x48c4f9(0x95)][_0x48c4f9(0x9a)](_0x48c4f9(0x80))['to'](this,_0x48c4f9(0xa8)),_0x49dbbb;}[_0x29d06f(0x97)](){const _0x140084=_0x29d06f;this[_0x140084(0xa5)]='',this[_0x140084(0xb1)]=!0x1,this[_0x140084(0xc5)]=!0x0,this[_0x140084(0xad)][_0x140084(0x7f)]=!0x0,this[_0x140084(0xa0)][_0x140084(0x7f)]=!0x0,this[_0x140084(0xad)][_0x140084(0x91)]();}[_0x29d06f(0xa3)](){const _0x28a635=_0x29d06f,_0x4f355f=this[_0x28a635(0x82)];this[_0x28a635(0xc5)]=!0x1,this[_0x28a635(0x85)]='',this[_0x28a635(0x93)][_0x28a635(0xc6)](),this[_0x28a635(0xa5)]&&(this[_0x28a635(0x93)][_0x28a635(0x8c)][_0x28a635(0xc4)]=_0x5c6a28(_0x4f355f,_0x28a635(0x96)));}[_0x29d06f(0xaf)](_0x1d0356){const _0x1c4d19=_0x29d06f,_0x389110=this[_0x1c4d19(0x82)];this[_0x1c4d19(0xa3)](),this[_0x1c4d19(0xb1)]=!0x0,this[_0x1c4d19(0xb9)][_0x1c4d19(0xbb)]=_0x1d0356||_0x5c6a28(_0x389110,_0x1c4d19(0xca)),this[_0x1c4d19(0xa5)]||(this[_0x1c4d19(0xad)][_0x1c4d19(0x7f)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x50cf(_0x5e381f,_0x52dfb2){const _0x34e69f=_0x34e6();return _0x50cf=function(_0x50cf2d,_0x2880d3){_0x50cf2d=_0x50cf2d-0xcb;let _0x461c30=_0x34e69f[_0x50cf2d];return _0x461c30;},_0x50cf(_0x5e381f,_0x52dfb2);}(function(_0x306207,_0x2a5208){const _0x21c7a0=_0x50cf,_0xc69b51=_0x306207();while(!![]){try{const _0x2de7e6=parseInt(_0x21c7a0(0xd8))/0x1+-parseInt(_0x21c7a0(0xce))/0x2+-parseInt(_0x21c7a0(0xcc))/0x3*(-parseInt(_0x21c7a0(0xd0))/0x4)+parseInt(_0x21c7a0(0xcb))/0x5+-parseInt(_0x21c7a0(0xd2))/0x6+parseInt(_0x21c7a0(0xd6))/0x7*(-parseInt(_0x21c7a0(0xcd))/0x8)+-parseInt(_0x21c7a0(0xd3))/0x9;if(_0x2de7e6===_0x2a5208)break;else _0xc69b51['push'](_0xc69b51['shift']());}catch(_0x26d0a7){_0xc69b51['push'](_0xc69b51['shift']());}}}(_0x34e6,0xf3036));function _0x34e6(){const _0x52b326=['execute','2258730rLFjar','15RKNdfv','104mwoknT','2608636ZmopOP','children','1475652DgJIsM','fire','1907148Fgevsz','7645680oLyint','locale','prompt','104433JVVxey','set','1364714hFgFrS','add'];_0x34e6=function(){return _0x52b326;};return _0x34e6();}import{ListItemView as _0x238126,ButtonView as _0x1b9838,ButtonLabelView as _0x46c509}from'ckeditor5/src/ui.js';import{unescape as _0x457e51}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x238126{constructor(_0x3cb5e1){const _0x5e2c4e=_0x50cf;super();const _0x3f6fb1=new _0x46c509(),_0x287423=new _0x1b9838(this[_0x5e2c4e(0xd4)],_0x3f6fb1);this[_0x5e2c4e(0xcf)][_0x5e2c4e(0xd9)](_0x287423),_0x287423[_0x5e2c4e(0xd7)]({'label':_0x3cb5e1[_0x5e2c4e(0xd5)],'withText':!0x0}),_0x287423['on'](_0x5e2c4e(0xda),()=>{const _0x4e208c=_0x5e2c4e;this[_0x4e208c(0xd1)](_0x4e208c(0xda),{'value':_0x457e51(_0x3cb5e1[_0x4e208c(0xd5)])});});}}
23
+ (function(_0xad6201,_0x50f5df){const _0x1c848f=_0x17c6,_0x227964=_0xad6201();while(!![]){try{const _0x49979e=parseInt(_0x1c848f(0x1cb))/0x1*(-parseInt(_0x1c848f(0x1c0))/0x2)+-parseInt(_0x1c848f(0x1c2))/0x3*(parseInt(_0x1c848f(0x1c8))/0x4)+-parseInt(_0x1c848f(0x1c4))/0x5*(-parseInt(_0x1c848f(0x1ce))/0x6)+parseInt(_0x1c848f(0x1cd))/0x7*(parseInt(_0x1c848f(0x1ca))/0x8)+parseInt(_0x1c848f(0x1c1))/0x9+parseInt(_0x1c848f(0x1bf))/0xa*(parseInt(_0x1c848f(0x1c5))/0xb)+-parseInt(_0x1c848f(0x1be))/0xc;if(_0x49979e===_0x50f5df)break;else _0x227964['push'](_0x227964['shift']());}catch(_0x579415){_0x227964['push'](_0x227964['shift']());}}}(_0x25a2,0xc9135));function _0x25a2(){const _0x1ac0ab=['prompt','add','4rStcxu','children','524808sjydOb','21853DdbYny','locale','91DQttdF','18XftIpz','set','execute','16004616HnLHUL','1860EfUvfU','120vyQmHR','2916765ElVrWC','2268483BSzeLB','fire','2736630ygbFWq','83138ZmAlLk'];_0x25a2=function(){return _0x1ac0ab;};return _0x25a2();}function _0x17c6(_0x3d6e63,_0x35c879){const _0x25a207=_0x25a2();return _0x17c6=function(_0x17c699,_0x13a821){_0x17c699=_0x17c699-0x1bd;let _0x116d90=_0x25a207[_0x17c699];return _0x116d90;},_0x17c6(_0x3d6e63,_0x35c879);}import{ListItemView as _0x2927f2,ButtonView as _0x684237,ButtonLabelView as _0x554d18}from'ckeditor5/src/ui.js';import{unescape as _0x1038f3}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x2927f2{constructor(_0x2e1812){const _0x22d0fd=_0x17c6;super();const _0x8dceaf=new _0x554d18(),_0x29919e=new _0x684237(this[_0x22d0fd(0x1cc)],_0x8dceaf);this[_0x22d0fd(0x1c9)][_0x22d0fd(0x1c7)](_0x29919e),_0x29919e[_0x22d0fd(0x1cf)]({'label':_0x2e1812[_0x22d0fd(0x1c6)],'withText':!0x0}),_0x29919e['on'](_0x22d0fd(0x1bd),()=>{const _0x803932=_0x22d0fd;this[_0x803932(0x1c3)](_0x803932(0x1bd),{'value':_0x1038f3(_0x2e1812[_0x803932(0x1c6)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ed180=_0x59d1;function _0x1210(){const _0xdff46=['add','items','263778lEoWxa','filter','set','execute','delegate','3520040sMNTPk','Prompt\x20history','5hSSTEl','4477921GAcMbZ','historyGroupView','1OcPCsr','_createClearHistoryButton','20232630WIVDFA','clearHistoryButton','fire','1603638bvcQVQ','children','length','723osWhzo','14636tuelkH','label','clearHistory','Clear','1490888wbNZCu','locale'];_0x1210=function(){return _0xdff46;};return _0x1210();}(function(_0x21e669,_0x4881cb){const _0x5859b3=_0x59d1,_0x2ee770=_0x21e669();while(!![]){try{const _0x23e8a8=-parseInt(_0x5859b3(0x80))/0x1*(-parseInt(_0x5859b3(0x72))/0x2)+parseInt(_0x5859b3(0x6d))/0x3*(parseInt(_0x5859b3(0x6e))/0x4)+-parseInt(_0x5859b3(0x7d))/0x5*(-parseInt(_0x5859b3(0x76))/0x6)+parseInt(_0x5859b3(0x7e))/0x7+parseInt(_0x5859b3(0x7b))/0x8+-parseInt(_0x5859b3(0x6a))/0x9+-parseInt(_0x5859b3(0x67))/0xa;if(_0x23e8a8===_0x4881cb)break;else _0x2ee770['push'](_0x2ee770['shift']());}catch(_0x20c215){_0x2ee770['push'](_0x2ee770['shift']());}}}(_0x1210,0x86271));import{ListView as _0x5b0783,ListItemGroupView as _0xe5044f,ButtonView as _0x189380}from'ckeditor5/src/ui.js';function _0x59d1(_0x5550d7,_0x43b796){const _0x1210ec=_0x1210();return _0x59d1=function(_0x59d1fc,_0x58c0ea){_0x59d1fc=_0x59d1fc-0x67;let _0x1cba1f=_0x1210ec[_0x59d1fc];return _0x1cba1f;},_0x59d1(_0x5550d7,_0x43b796);}import{getTranslation as _0x435dc2}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x5b0783{[_0x2ed180(0x7f)];[_0x2ed180(0x68)];constructor(_0x1837d5){const _0x1e7e7f=_0x2ed180;super(_0x1837d5),this[_0x1e7e7f(0x68)]=this[_0x1e7e7f(0x81)](),this[_0x1e7e7f(0x7f)]=new _0xe5044f(),this[_0x1e7e7f(0x7f)][_0x1e7e7f(0x6b)][_0x1e7e7f(0x74)](this[_0x1e7e7f(0x68)],0x1),this[_0x1e7e7f(0x7f)][_0x1e7e7f(0x6f)]=_0x435dc2(_0x1837d5,_0x1e7e7f(0x7c)),this[_0x1e7e7f(0x7f)][_0x1e7e7f(0x75)][_0x1e7e7f(0x7a)](_0x1e7e7f(0x79))['to'](this),this[_0x1e7e7f(0x75)][_0x1e7e7f(0x74)](this[_0x1e7e7f(0x7f)]);}[_0x2ed180(0x77)](){const _0x357674=_0x2ed180;let _0x5d66a6=0x0;for(const _0x306875 of this[_0x357674(0x75)])_0x5d66a6+=_0x306875[_0x357674(0x75)][_0x357674(0x6c)];return{'resultsCount':_0x5d66a6,'totalItemsCount':_0x5d66a6};}[_0x2ed180(0x81)](){const _0x54db02=_0x2ed180,_0x3b0783=this[_0x54db02(0x73)],_0x4a9f82=new _0x189380(this[_0x54db02(0x73)]);return _0x4a9f82[_0x54db02(0x78)]({'label':'('+_0x435dc2(_0x3b0783,_0x54db02(0x71))+')','withText':!0x0}),_0x4a9f82['on'](_0x54db02(0x79),()=>this[_0x54db02(0x69)](_0x54db02(0x70))),_0x4a9f82;}}
23
+ function _0x39a0(_0x1345f8,_0x49e5dc){const _0x44eb26=_0x44eb();return _0x39a0=function(_0x39a0dc,_0x339c84){_0x39a0dc=_0x39a0dc-0xb7;let _0x48422f=_0x44eb26[_0x39a0dc];return _0x48422f;},_0x39a0(_0x1345f8,_0x49e5dc);}const _0x3dfc23=_0x39a0;(function(_0xc70a60,_0x2a1e94){const _0x31bae1=_0x39a0,_0x390829=_0xc70a60();while(!![]){try{const _0x595a30=-parseInt(_0x31bae1(0xb7))/0x1*(parseInt(_0x31bae1(0xc8))/0x2)+parseInt(_0x31bae1(0xc4))/0x3+parseInt(_0x31bae1(0xba))/0x4+-parseInt(_0x31bae1(0xbf))/0x5*(-parseInt(_0x31bae1(0xb8))/0x6)+parseInt(_0x31bae1(0xbc))/0x7+-parseInt(_0x31bae1(0xbb))/0x8*(parseInt(_0x31bae1(0xc0))/0x9)+-parseInt(_0x31bae1(0xbd))/0xa;if(_0x595a30===_0x2a1e94)break;else _0x390829['push'](_0x390829['shift']());}catch(_0x55365b){_0x390829['push'](_0x390829['shift']());}}}(_0x44eb,0x7a41e));import{ListView as _0x4b9d42,ListItemGroupView as _0x107551,ButtonView as _0x42ed14}from'ckeditor5/src/ui.js';function _0x44eb(){const _0x189bda=['label','length','execute','1739265aNXXMv','Prompt\x20history','add','set','865090MqEUHo','_createClearHistoryButton','clearHistoryButton','children','Clear','filter','clearHistory','fire','items','historyGroupView','1vPcRJF','132VwOXeI','locale','2708892weYSHd','153184GXYjRJ','4874751bncRiI','2042660pocSKp','delegate','36535vYRXiV','459tLelQM'];_0x44eb=function(){return _0x189bda;};return _0x44eb();}import{getTranslation as _0x2dace0}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x4b9d42{[_0x3dfc23(0xd1)];[_0x3dfc23(0xca)];constructor(_0x38b8b7){const _0xe84ca0=_0x3dfc23;super(_0x38b8b7),this[_0xe84ca0(0xca)]=this[_0xe84ca0(0xc9)](),this[_0xe84ca0(0xd1)]=new _0x107551(),this[_0xe84ca0(0xd1)][_0xe84ca0(0xcb)][_0xe84ca0(0xc6)](this[_0xe84ca0(0xca)],0x1),this[_0xe84ca0(0xd1)][_0xe84ca0(0xc1)]=_0x2dace0(_0x38b8b7,_0xe84ca0(0xc5)),this[_0xe84ca0(0xd1)][_0xe84ca0(0xd0)][_0xe84ca0(0xbe)](_0xe84ca0(0xc3))['to'](this),this[_0xe84ca0(0xd0)][_0xe84ca0(0xc6)](this[_0xe84ca0(0xd1)]);}[_0x3dfc23(0xcd)](){const _0x35248d=_0x3dfc23;let _0xc0b364=0x0;for(const _0x1edffc of this[_0x35248d(0xd0)])_0xc0b364+=_0x1edffc[_0x35248d(0xd0)][_0x35248d(0xc2)];return{'resultsCount':_0xc0b364,'totalItemsCount':_0xc0b364};}[_0x3dfc23(0xc9)](){const _0x3897bd=_0x3dfc23,_0x13bcd9=this[_0x3897bd(0xb9)],_0xdaf31=new _0x42ed14(this[_0x3897bd(0xb9)]);return _0xdaf31[_0x3897bd(0xc7)]({'label':'('+_0x2dace0(_0x13bcd9,_0x3897bd(0xcc))+')','withText':!0x0}),_0xdaf31['on'](_0x3897bd(0xc3),()=>this[_0x3897bd(0xcf)](_0x3897bd(0xce))),_0xdaf31;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f115d=_0x376e;function _0x376e(_0x460875,_0x313da4){const _0x557c1c=_0x557c();return _0x376e=function(_0x376e10,_0x2bd89c){_0x376e10=_0x376e10-0x10d;let _0x37e12b=_0x557c1c[_0x376e10];return _0x37e12b;},_0x376e(_0x460875,_0x313da4);}(function(_0x152843,_0x5ef730){const _0x1a711e=_0x376e,_0x198f59=_0x152843();while(!![]){try{const _0x30becb=parseInt(_0x1a711e(0x110))/0x1+-parseInt(_0x1a711e(0x117))/0x2*(parseInt(_0x1a711e(0x114))/0x3)+parseInt(_0x1a711e(0x11b))/0x4*(parseInt(_0x1a711e(0x120))/0x5)+-parseInt(_0x1a711e(0x10e))/0x6+-parseInt(_0x1a711e(0x11d))/0x7+-parseInt(_0x1a711e(0x125))/0x8+-parseInt(_0x1a711e(0x119))/0x9*(-parseInt(_0x1a711e(0x11c))/0xa);if(_0x30becb===_0x5ef730)break;else _0x198f59['push'](_0x198f59['shift']());}catch(_0x31ccc5){_0x198f59['push'](_0x198f59['shift']());}}}(_0x557c,0x7c808));function _0x557c(){const _0x3cf9d1=['getItem','_saveToSessionStorage','5989128IXpJyh','stringify','220048JjJeuu','setItem','toLowerCase','trim','641253VPQLUE','add','map','8vPxrQQ','addMany','1422FAPIKX','prompt','5468wFNVgt','170420xZDyIN','4265513vsWYQl','last','parse','310nbQTgN','CKEditor/AIFormView/PromptHistory','_loadFromSessionStorage','length','remove','199416tOjmFH'];_0x557c=function(){return _0x3cf9d1;};return _0x557c();}import{Collection as _0x5d06ef}from'ckeditor5/src/utils.js';const ts=_0x3f115d(0x121);export class PromptHistory extends _0x5d06ef{constructor(){const _0x103b20=_0x3f115d;super(),this[_0x103b20(0x122)](),this['on'](_0x103b20(0x115),(_0x156eb5,_0x5bb7a2)=>{const _0xc1b3c5=_0x103b20,_0x1933fc=os(_0x5bb7a2[_0xc1b3c5(0x11a)]);for(const _0x5837f3 of this)if(_0x5837f3!=_0x5bb7a2&&os(_0x5837f3[_0xc1b3c5(0x11a)])===_0x1933fc){this[_0xc1b3c5(0x124)](_0x5837f3);break;}this[_0xc1b3c5(0x123)]>0x14&&this[_0xc1b3c5(0x124)](this[_0xc1b3c5(0x11e)]),this[_0xc1b3c5(0x10d)]();}),this['on'](_0x103b20(0x124),()=>{const _0x3c96c7=_0x103b20;this[_0x3c96c7(0x10d)]();});}[_0x3f115d(0x122)](){const _0xda5d8e=_0x3f115d,_0x4ec478=sessionStorage[_0xda5d8e(0x126)](ts)||'[]';this[_0xda5d8e(0x118)](JSON[_0xda5d8e(0x11f)](_0x4ec478));}[_0x3f115d(0x10d)](){const _0xe2d765=_0x3f115d;sessionStorage[_0xe2d765(0x111)](ts,JSON[_0xe2d765(0x10f)](this[_0xe2d765(0x116)](_0x13367c=>_0x13367c)));}}function os(_0x27e0ae){const _0x41184b=_0x3f115d;return _0x27e0ae[_0x41184b(0x112)]()[_0x41184b(0x113)]();}
23
+ const _0x3d92e7=_0x5efb;function _0x5efb(_0x5f05d1,_0x222caf){const _0x679163=_0x6791();return _0x5efb=function(_0x5efb97,_0x417b96){_0x5efb97=_0x5efb97-0x1de;let _0x13238b=_0x679163[_0x5efb97];return _0x13238b;},_0x5efb(_0x5f05d1,_0x222caf);}(function(_0x246a18,_0x11b052){const _0x2edf2f=_0x5efb,_0x3803d9=_0x246a18();while(!![]){try{const _0x216796=-parseInt(_0x2edf2f(0x1e4))/0x1*(-parseInt(_0x2edf2f(0x1f8))/0x2)+-parseInt(_0x2edf2f(0x1eb))/0x3*(-parseInt(_0x2edf2f(0x1f6))/0x4)+parseInt(_0x2edf2f(0x1f5))/0x5*(-parseInt(_0x2edf2f(0x1df))/0x6)+parseInt(_0x2edf2f(0x1ee))/0x7+parseInt(_0x2edf2f(0x1ef))/0x8*(parseInt(_0x2edf2f(0x1f2))/0x9)+-parseInt(_0x2edf2f(0x1f7))/0xa*(parseInt(_0x2edf2f(0x1e5))/0xb)+parseInt(_0x2edf2f(0x1f4))/0xc;if(_0x216796===_0x11b052)break;else _0x3803d9['push'](_0x3803d9['shift']());}catch(_0x4812b9){_0x3803d9['push'](_0x3803d9['shift']());}}}(_0x6791,0x74674));import{Collection as _0x219846}from'ckeditor5/src/utils.js';const ts=_0x3d92e7(0x1e1);function _0x6791(){const _0x16b3f6=['1442676vwLNrq','5erPhXM','3128UYBuOG','2420pGeGLq','699162ReTEWY','parse','_saveToSessionStorage','3045846oRqhnT','trim','CKEditor/AIFormView/PromptHistory','setItem','remove','1hseQPc','35552HjmLCy','add','toLowerCase','getItem','addMany','prompt','2529FTrqbX','length','last','1188103vcwlgn','1247504VilymW','map','_loadFromSessionStorage','27EPmXIw','stringify'];_0x6791=function(){return _0x16b3f6;};return _0x6791();}export class PromptHistory extends _0x219846{constructor(){const _0x5a7388=_0x3d92e7;super(),this[_0x5a7388(0x1f1)](),this['on'](_0x5a7388(0x1e6),(_0x4453d8,_0x86b53a)=>{const _0x38cf9d=_0x5a7388,_0xbfaff5=os(_0x86b53a[_0x38cf9d(0x1ea)]);for(const _0x309849 of this)if(_0x309849!=_0x86b53a&&os(_0x309849[_0x38cf9d(0x1ea)])===_0xbfaff5){this[_0x38cf9d(0x1e3)](_0x309849);break;}this[_0x38cf9d(0x1ec)]>0x14&&this[_0x38cf9d(0x1e3)](this[_0x38cf9d(0x1ed)]),this[_0x38cf9d(0x1de)]();}),this['on'](_0x5a7388(0x1e3),()=>{const _0x468ae6=_0x5a7388;this[_0x468ae6(0x1de)]();});}[_0x3d92e7(0x1f1)](){const _0x33acb5=_0x3d92e7,_0x1cfba8=sessionStorage[_0x33acb5(0x1e8)](ts)||'[]';this[_0x33acb5(0x1e9)](JSON[_0x33acb5(0x1f9)](_0x1cfba8));}[_0x3d92e7(0x1de)](){const _0x167d4b=_0x3d92e7;sessionStorage[_0x167d4b(0x1e2)](ts,JSON[_0x167d4b(0x1f3)](this[_0x167d4b(0x1f0)](_0x5eab8b=>_0x5eab8b)));}}function os(_0x384092){const _0x580e22=_0x3d92e7;return _0x384092[_0x580e22(0x1e7)]()[_0x580e22(0x1e0)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1759(_0x441012,_0x79564a){const _0x4e47ff=_0x4e47();return _0x1759=function(_0x17592b,_0x3c0a83){_0x17592b=_0x17592b-0x163;let _0x20f8e5=_0x4e47ff[_0x17592b];return _0x20f8e5;},_0x1759(_0x441012,_0x79564a);}function _0x4e47(){const _0x579aa3=['refresh','13433arfjSD','name','plugins','custom','model','enabledCommandsIds','add','getFirstRange','_commandDefinitions','change:isEnabled','hasContent','getRanges','getItems','values','isEnabled','from','config','502vqUswy','length','isEmpty','808uckGny','set','document','requiresContent','execute','223083syTELD','includes','ai.aiAssistant.disabledElements','isCollapsed','change:_hasContext','editor','element','1585686rOdkyI','get','_hasContext','selection','372624LwUrJm','showUI','967074oajJqp','15wXBjWa','8570120dHwALO','53KFUrRI','getSelectedBlocks'];_0x4e47=function(){return _0x579aa3;};return _0x4e47();}const _0x50807f=_0x1759;(function(_0x3bed22,_0x3eef4b){const _0x321931=_0x1759,_0x1eebb1=_0x3bed22();while(!![]){try{const _0x1230f4=-parseInt(_0x321931(0x166))/0x1*(parseInt(_0x321931(0x17a))/0x2)+parseInt(_0x321931(0x163))/0x3+-parseInt(_0x321931(0x18d))/0x4*(-parseInt(_0x321931(0x164))/0x5)+parseInt(_0x321931(0x189))/0x6+-parseInt(_0x321931(0x169))/0x7*(-parseInt(_0x321931(0x17d))/0x8)+-parseInt(_0x321931(0x182))/0x9+-parseInt(_0x321931(0x165))/0xa;if(_0x1230f4===_0x3eef4b)break;else _0x1eebb1['push'](_0x1eebb1['shift']());}catch(_0x214c13){_0x1eebb1['push'](_0x1eebb1['shift']());}}}(_0x4e47,0x283d8));import{Command as _0xdc6fd6}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1178c5}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0xdc6fd6{[_0x50807f(0x171)];constructor(_0x49e674,_0x3363e3){const _0x5bb91e=_0x50807f;super(_0x49e674),this[_0x5bb91e(0x171)]=_0x3363e3,this[_0x5bb91e(0x17e)](_0x5bb91e(0x16e),[]),this['on'](_0x5bb91e(0x186),(_0x491f08,_0x2f811d,_0x489dc9)=>{const _0x3261d9=_0x5bb91e;this[_0x3261d9(0x177)]&&(this[_0x3261d9(0x16e)]=F(this[_0x3261d9(0x171)],_0x489dc9));}),this[_0x5bb91e(0x17e)](_0x5bb91e(0x18b),!0x1),this['on'](_0x5bb91e(0x172),(_0x38f2a8,_0x1f2e91,_0xf6386b)=>{const _0x3f9cb2=_0x5bb91e;this[_0x3f9cb2(0x16e)]=_0xf6386b?F(this[_0x3f9cb2(0x171)],this[_0x3f9cb2(0x18b)]):[];});}[_0x50807f(0x168)](){const _0x58d699=_0x50807f,_0x290a93=this[_0x58d699(0x187)][_0x58d699(0x16d)];this[_0x58d699(0x18b)]=function(_0x50434f){const _0x911af7=_0x58d699,_0x2aab8f=_0x50434f[_0x911af7(0x17f)][_0x911af7(0x18c)];return _0x2aab8f[_0x911af7(0x185)]?0x0!==[..._0x2aab8f[_0x911af7(0x167)]()][_0x911af7(0x17b)]&&![..._0x2aab8f[_0x911af7(0x167)]()][0x0][_0x911af7(0x17c)]:!!_0x50434f[_0x911af7(0x173)](_0x2aab8f[_0x911af7(0x170)]());}(_0x290a93);const _0x549533=_0x290a93[_0x58d699(0x17f)][_0x58d699(0x18c)],_0x388dc4=this[_0x58d699(0x187)][_0x58d699(0x179)][_0x58d699(0x18a)](_0x58d699(0x184));for(const _0x523300 of _0x549533[_0x58d699(0x174)]())for(const _0x204236 of _0x523300[_0x58d699(0x175)]())if(_0x204236['is'](_0x58d699(0x188))&&_0x388dc4[_0x58d699(0x183)](_0x204236[_0x58d699(0x16a)]))return void(this[_0x58d699(0x177)]=!0x1);this[_0x58d699(0x177)]=!0x0;}[_0x50807f(0x181)](_0x582926='',_0x36ec21='',_0x4b964c=_0x50807f(0x16c)){const _0x25597c=_0x50807f;this[_0x25597c(0x187)][_0x25597c(0x16b)][_0x25597c(0x18a)](_0x1178c5)[_0x25597c(0x18e)](_0x582926,_0x36ec21,_0x4b964c);}}function F(_0x85fa82,_0x4f50a6){const _0x3dbdfa=_0x50807f,_0x494399=new Set();for(const _0x2b2f7d of _0x85fa82[_0x3dbdfa(0x176)]())(_0x4f50a6||!0x1===_0x2b2f7d[_0x3dbdfa(0x180)])&&_0x494399[_0x3dbdfa(0x16f)](_0x2b2f7d['id']);return Array[_0x3dbdfa(0x178)](_0x494399);}
23
+ const _0x1c0f34=_0x152d;function _0x152d(_0x28aeb4,_0x2244c1){const _0x4ca83b=_0x4ca8();return _0x152d=function(_0x152dc7,_0x86db74){_0x152dc7=_0x152dc7-0x90;let _0x5b9c38=_0x4ca83b[_0x152dc7];return _0x5b9c38;},_0x152d(_0x28aeb4,_0x2244c1);}(function(_0x5d9b98,_0x36a02b){const _0x845621=_0x152d,_0x21954b=_0x5d9b98();while(!![]){try{const _0x28670b=-parseInt(_0x845621(0xa3))/0x1*(-parseInt(_0x845621(0xae))/0x2)+-parseInt(_0x845621(0x96))/0x3+parseInt(_0x845621(0xad))/0x4*(parseInt(_0x845621(0xa4))/0x5)+-parseInt(_0x845621(0x90))/0x6+-parseInt(_0x845621(0x91))/0x7*(parseInt(_0x845621(0xaa))/0x8)+-parseInt(_0x845621(0xac))/0x9+parseInt(_0x845621(0xab))/0xa;if(_0x28670b===_0x36a02b)break;else _0x21954b['push'](_0x21954b['shift']());}catch(_0xdf38ea){_0x21954b['push'](_0x21954b['shift']());}}}(_0x4ca8,0xd8b7e));import{Command as _0x3f88e8}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5026a4}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x3f88e8{[_0x1c0f34(0x93)];constructor(_0x4bb33a,_0x3dc4d7){const _0x58c54a=_0x1c0f34;super(_0x4bb33a),this[_0x58c54a(0x93)]=_0x3dc4d7,this[_0x58c54a(0x9a)](_0x58c54a(0xb1),[]),this['on'](_0x58c54a(0xa6),(_0x723963,_0xc11c64,_0x161019)=>{const _0x15a440=_0x58c54a;this[_0x15a440(0xb7)]&&(this[_0x15a440(0xb1)]=F(this[_0x15a440(0x93)],_0x161019));}),this[_0x58c54a(0x9a)](_0x58c54a(0x98),!0x1),this['on'](_0x58c54a(0x9c),(_0x3e70b1,_0x59d406,_0x437f8c)=>{const _0x334173=_0x58c54a;this[_0x334173(0xb1)]=_0x437f8c?F(this[_0x334173(0x93)],this[_0x334173(0x98)]):[];});}[_0x1c0f34(0x94)](){const _0xf2a91a=_0x1c0f34,_0x50fa49=this[_0xf2a91a(0x9e)][_0xf2a91a(0xa5)];this[_0xf2a91a(0x98)]=function(_0x5db86d){const _0x31d951=_0xf2a91a,_0x2ea8e9=_0x5db86d[_0x31d951(0xbb)][_0x31d951(0xa2)];return _0x2ea8e9[_0x31d951(0xa7)]?0x0!==[..._0x2ea8e9[_0x31d951(0xb2)]()][_0x31d951(0x97)]&&![..._0x2ea8e9[_0x31d951(0xb2)]()][0x0][_0x31d951(0x92)]:!!_0x5db86d[_0x31d951(0xb3)](_0x2ea8e9[_0x31d951(0xb6)]());}(_0x50fa49);const _0x211298=_0x50fa49[_0xf2a91a(0xbb)][_0xf2a91a(0xa2)],_0x3aa5a6=this[_0xf2a91a(0x9e)][_0xf2a91a(0x9b)][_0xf2a91a(0xa1)](_0xf2a91a(0xba));for(const _0xc9896c of _0x211298[_0xf2a91a(0xa8)]())for(const _0x56fee0 of _0xc9896c[_0xf2a91a(0xb5)]())if(_0x56fee0['is'](_0xf2a91a(0xa0))&&_0x3aa5a6[_0xf2a91a(0xa9)](_0x56fee0[_0xf2a91a(0xaf)]))return void(this[_0xf2a91a(0xb7)]=!0x1);this[_0xf2a91a(0xb7)]=!0x0;}[_0x1c0f34(0x99)](_0x49f5e4='',_0xb09058='',_0x33ddea=_0x1c0f34(0x95)){const _0x1d3c34=_0x1c0f34;this[_0x1d3c34(0x9e)][_0x1d3c34(0xb8)][_0x1d3c34(0xa1)](_0x5026a4)[_0x1d3c34(0xb0)](_0x49f5e4,_0xb09058,_0x33ddea);}}function _0x4ca8(){const _0x4b34d5=['requiresContent','editor','values','element','get','selection','1TKmSAB','2636915lSSdBf','model','change:_hasContext','isCollapsed','getRanges','includes','8IwjYQX','31976750pgrJLP','13755447wbsrtH','8rkdewn','1445674YLVhpm','name','showUI','enabledCommandsIds','getSelectedBlocks','hasContent','from','getItems','getFirstRange','isEnabled','plugins','add','ai.aiAssistant.disabledElements','document','1928886mqyvXb','4442809nfIahk','isEmpty','_commandDefinitions','refresh','custom','4809147aFpqIi','length','_hasContext','execute','set','config','change:isEnabled'];_0x4ca8=function(){return _0x4b34d5;};return _0x4ca8();}function F(_0x1b6550,_0x109351){const _0x7a6e42=_0x1c0f34,_0x12779f=new Set();for(const _0x14f813 of _0x1b6550[_0x7a6e42(0x9f)]())(_0x109351||!0x1===_0x14f813[_0x7a6e42(0x9d)])&&_0x12779f[_0x7a6e42(0xb9)](_0x14f813['id']);return Array[_0x7a6e42(0xb4)](_0x12779f);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1af4f2,_0x61a0d4,_0x2f2c27){const t=_0x1af4f2['t'];switch(_0x61a0d4){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',_0x2f2c27);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2f2c27);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'},_0x2f2c27);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 _0x61a0d4;}}
23
+ export function getTranslation(_0x13c49c,_0x184cd3,_0x1a218b){const t=_0x13c49c['t'];switch(_0x184cd3){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',_0x1a218b);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1a218b);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'},_0x1a218b);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 _0x184cd3;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x21d318,_0xf233a3){const _0x28ef7b=(0x0,_0xf233a3['t'])('Other');return _0x21d318['length']?'groupId'in _0x21d318[0x0]?_0x21d318:[{'groupId':'_ungrouppedCommands','groupLabel':_0x28ef7b,'order':0x1/0x0,'commands':_0x21d318}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x28ef7b,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x5901bb,_0x59e48e){const _0xcb0f5c=(0x0,_0x59e48e['t'])('Other');return _0x5901bb['length']?'groupId'in _0x5901bb[0x0]?_0x5901bb:[{'groupId':'_ungrouppedCommands','groupLabel':_0xcb0f5c,'order':0x1/0x0,'commands':_0x5901bb}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0xcb0f5c,'order':0x1/0x0,'commands':[]}];}