@ckeditor/ckeditor5-ai 46.0.1-alpha.9 → 46.0.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 _0x4e73e3=_0x1d23;(function(_0x3eb25e,_0x36a0b9){const _0x23b60f=_0x1d23,_0x19d5df=_0x3eb25e();while(!![]){try{const _0x378856=parseInt(_0x23b60f(0x1e4))/0x1+-parseInt(_0x23b60f(0x1d9))/0x2+parseInt(_0x23b60f(0x1d3))/0x3+-parseInt(_0x23b60f(0x1cf))/0x4+parseInt(_0x23b60f(0x1bd))/0x5+parseInt(_0x23b60f(0x1b6))/0x6*(parseInt(_0x23b60f(0x1de))/0x7)+-parseInt(_0x23b60f(0x1bb))/0x8*(parseInt(_0x23b60f(0x1c4))/0x9);if(_0x378856===_0x36a0b9)break;else _0x19d5df['push'](_0x19d5df['shift']());}catch(_0x5b9136){_0x19d5df['push'](_0x19d5df['shift']());}}}(_0x2c9c,0x5c1cb));function _0x2c9c(){const _0x139062=['enter','408963Egjucg','_createSubmitButton','focus','focusableChildren','_createShowHistoryButton','fire','style','Submit','requestAnimationFrame','resultsView','queryView','198006QJTkIt','submitButtonView','fieldWrapperChildren','ck-ai-form__submit','rtl','16672yjzNBd','children','665560DXWCyJ','filteredView','left','bind','focusFirst','keystrokes','set','1269UijaZf','History','excludeScrollbarsAndBorders','maxRows','execute','update','render','isOn','right','element','ck-ai-form__toggle-history','565792YoNCvo','focusLast','width','isEnabled','2088099FjiHLo','target','value','isEmpty','add','focusCycler','917052buYFgn','submit','fieldView','showHistoryButtonView','minRows','7LjXOgH','locale','isVisible','window','uiLanguageDirection'];_0x2c9c=function(){return _0x139062;};return _0x2c9c();}function _0x1d23(_0x3bf6d8,_0x535cba){const _0x2c9c00=_0x2c9c();return _0x1d23=function(_0x1d23fb,_0x46dadd){_0x1d23fb=_0x1d23fb-0x1af;let _0x46e537=_0x2c9c00[_0x1d23fb];return _0x46e537;},_0x1d23(_0x3bf6d8,_0x535cba);}import{Rect as _0x449179,global as _0x1fe522,isVisible as _0x447dd3}from'ckeditor5/src/utils.js';import{IconHistory as _0x310f0f,IconSubmit as _0x450fa8}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x5b0f3d,ButtonView as _0x5e5327}from'ckeditor5/src/ui.js';import{getTranslation as _0x3d04a9}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x5b0f3d{[_0x4e73e3(0x1b7)];[_0x4e73e3(0x1dc)];constructor(_0x1687a8,_0x5a1f61){const _0x50886b=_0x4e73e3;super(_0x1687a8,_0x5a1f61),this[_0x50886b(0x1b5)][_0x50886b(0x1db)][_0x50886b(0x1dd)]=0x1,this[_0x50886b(0x1b5)][_0x50886b(0x1db)][_0x50886b(0x1c7)]=0x3,this[_0x50886b(0x1b7)]=this[_0x50886b(0x1e5)](),this[_0x50886b(0x1dc)]=this[_0x50886b(0x1af)](),this[_0x50886b(0x1e7)][_0x50886b(0x1d7)](this[_0x50886b(0x1dc)],0x1),this[_0x50886b(0x1e7)][_0x50886b(0x1d7)](this[_0x50886b(0x1b7)]);}[_0x4e73e3(0x1ca)](){const _0x16ed92=_0x4e73e3;super[_0x16ed92(0x1ca)](),this[_0x16ed92(0x1b5)][_0x16ed92(0x1b8)][_0x16ed92(0x1d7)](this[_0x16ed92(0x1dc)]),this[_0x16ed92(0x1bc)][_0x16ed92(0x1d7)](this[_0x16ed92(0x1b7)]),this[_0x16ed92(0x1c2)][_0x16ed92(0x1c3)](_0x16ed92(0x1e3),(_0x59c5bd,_0x550105)=>{const _0x324624=_0x16ed92;_0x59c5bd[_0x324624(0x1d4)]==this[_0x324624(0x1b5)][_0x324624(0x1db)][_0x324624(0x1cd)]&&(this[_0x324624(0x1da)](),_0x550105());});}[_0x4e73e3(0x1e5)](){const _0x192d3e=_0x4e73e3,_0x3d5a8f=new _0x5e5327(this[_0x192d3e(0x1df)]),_0x2f11ae=this[_0x192d3e(0x1df)];return _0x3d5a8f[_0x192d3e(0x1c3)]({'icon':_0x450fa8,'label':_0x3d04a9(_0x2f11ae,_0x192d3e(0x1b2)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x192d3e(0x1b9)}),_0x3d5a8f['on'](_0x192d3e(0x1c8),()=>{const _0x3e7218=_0x192d3e;this[_0x3e7218(0x1da)]();}),_0x3d5a8f[_0x192d3e(0x1c0)](_0x192d3e(0x1d2))['to'](this[_0x192d3e(0x1b5)][_0x192d3e(0x1db)],_0x192d3e(0x1d6),this,_0x192d3e(0x1d2),(_0x2e7129,_0xf13e91)=>!_0x2e7129&&_0xf13e91),_0x3d5a8f;}[_0x4e73e3(0x1af)](){const _0x1c91c5=_0x4e73e3,_0x573e8b=new _0x5e5327(this[_0x1c91c5(0x1df)]),_0x45f5f8=this[_0x1c91c5(0x1b4)],_0x28713a=this[_0x1c91c5(0x1df)];_0x573e8b[_0x1c91c5(0x1c3)]({'label':_0x3d04a9(_0x28713a,_0x1c91c5(0x1c5)),'withText':!0x1,'icon':_0x310f0f,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1c91c5(0x1ce)}),_0x573e8b[_0x1c91c5(0x1c0)](_0x1c91c5(0x1cb))['to'](_0x45f5f8,_0x1c91c5(0x1e0)),_0x573e8b[_0x1c91c5(0x1c0)](_0x1c91c5(0x1d2))['to'](this,_0x1c91c5(0x1d2)),_0x573e8b['on'](_0x1c91c5(0x1c8),()=>{const _0x418311=_0x1c91c5;_0x45f5f8[_0x418311(0x1e0)]=!_0x45f5f8[_0x418311(0x1e0)],_0x45f5f8[_0x418311(0x1e0)]?this[_0x418311(0x1be)][_0x418311(0x1e6)]():this[_0x418311(0x1e6)]();});const _0x3a7eb1=()=>{const _0x272158=_0x1c91c5;_0x1fe522[_0x272158(0x1e1)][_0x272158(0x1b3)](()=>{const _0x4dad3c=_0x272158;if(_0x447dd3(this[_0x4dad3c(0x1cd)])){const _0x53f5d4=new _0x449179(this[_0x4dad3c(0x1b5)][_0x4dad3c(0x1db)][_0x4dad3c(0x1cd)]),_0x551734=_0x53f5d4[_0x4dad3c(0x1d1)],_0x5d6cd0=_0x4dad3c(0x1ba)===_0x28713a[_0x4dad3c(0x1e2)]?_0x4dad3c(0x1bf):_0x4dad3c(0x1cc);_0x53f5d4[_0x4dad3c(0x1c6)](),_0x573e8b[_0x4dad3c(0x1cd)][_0x4dad3c(0x1b1)][_0x5d6cd0]=_0x551734-_0x53f5d4[_0x4dad3c(0x1d1)]+0x1+'px';}});};return this[_0x1c91c5(0x1b5)][_0x1c91c5(0x1db)]['on'](_0x1c91c5(0x1c9),_0x3a7eb1),this['on'](_0x1c91c5(0x1ca),_0x3a7eb1),_0x573e8b;}[_0x4e73e3(0x1da)](){const _0x3c461a=_0x4e73e3,_0x40f582=this[_0x3c461a(0x1b5)][_0x3c461a(0x1db)][_0x3c461a(0x1cd)][_0x3c461a(0x1d5)];this[_0x3c461a(0x1b0)](_0x3c461a(0x1da),_0x40f582);}[_0x4e73e3(0x1e6)](_0x3f1e57){const _0x272147=_0x4e73e3;-0x1===_0x3f1e57?this[_0x272147(0x1d8)][_0x272147(0x1d0)]():this[_0x272147(0x1d8)][_0x272147(0x1c1)]();}}
23
+ function _0x56bf(){const _0x1f5f93=['4280616BlzCZv','submit','isEmpty','submitButtonView','enter','uiLanguageDirection','_createSubmitButton','showHistoryButtonView','ck-ai-form__submit','focusFirst','rtl','Submit','style','isOn','execute','width','fieldView','focus','_createShowHistoryButton','window','551712ApuIYk','477964oGuClL','isVisible','filteredView','focusLast','update','add','2204081plwavX','540890WHUgRj','History','isEnabled','focusCycler','fieldWrapperChildren','10WsbTNw','target','element','queryView','keystrokes','maxRows','value','right','21VuZFTZ','bind','excludeScrollbarsAndBorders','resultsView','requestAnimationFrame','minRows','focusableChildren','locale','2LpXCeT','children','1271370drcrzG','left','678416FBomTb','set','25kKGJJC','ck-ai-form__toggle-history','fire','render'];_0x56bf=function(){return _0x1f5f93;};return _0x56bf();}const _0x28f64b=_0x37d8;(function(_0x1c6d4f,_0x4c2bd8){const _0x2a5673=_0x37d8,_0x15bdfe=_0x1c6d4f();while(!![]){try{const _0x4911f7=parseInt(_0x2a5673(0x105))/0x1*(parseInt(_0x2a5673(0xf0))/0x2)+parseInt(_0x2a5673(0x123))/0x3+-parseInt(_0x2a5673(0x124))/0x4*(parseInt(_0x2a5673(0x10b))/0x5)+parseInt(_0x2a5673(0x107))/0x6*(parseInt(_0x2a5673(0xfd))/0x7)+-parseInt(_0x2a5673(0x109))/0x8+parseInt(_0x2a5673(0x10f))/0x9*(-parseInt(_0x2a5673(0xf5))/0xa)+parseInt(_0x2a5673(0x12a))/0xb;if(_0x4911f7===_0x4c2bd8)break;else _0x15bdfe['push'](_0x15bdfe['shift']());}catch(_0x4c86e6){_0x15bdfe['push'](_0x15bdfe['shift']());}}}(_0x56bf,0x62619));import{Rect as _0x36f8b5,global as _0x4a8305,isVisible as _0x248088}from'ckeditor5/src/utils.js';import{IconHistory as _0xf381d,IconSubmit as _0xe11b46}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x5ebec1,ButtonView as _0x2ef5ab}from'ckeditor5/src/ui.js';function _0x37d8(_0x3a8ba2,_0x505a89){const _0x56bf10=_0x56bf();return _0x37d8=function(_0x37d87c,_0x38d32f){_0x37d87c=_0x37d87c-0xf0;let _0x7dc401=_0x56bf10[_0x37d87c];return _0x7dc401;},_0x37d8(_0x3a8ba2,_0x505a89);}import{getTranslation as _0x388760}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x5ebec1{[_0x28f64b(0x112)];[_0x28f64b(0x116)];constructor(_0x42db04,_0x1d49fe){const _0x20420a=_0x28f64b;super(_0x42db04,_0x1d49fe),this[_0x20420a(0xf8)][_0x20420a(0x11f)][_0x20420a(0x102)]=0x1,this[_0x20420a(0xf8)][_0x20420a(0x11f)][_0x20420a(0xfa)]=0x3,this[_0x20420a(0x112)]=this[_0x20420a(0x115)](),this[_0x20420a(0x116)]=this[_0x20420a(0x121)](),this[_0x20420a(0x103)][_0x20420a(0x129)](this[_0x20420a(0x116)],0x1),this[_0x20420a(0x103)][_0x20420a(0x129)](this[_0x20420a(0x112)]);}[_0x28f64b(0x10e)](){const _0x261b6f=_0x28f64b;super[_0x261b6f(0x10e)](),this[_0x261b6f(0xf8)][_0x261b6f(0xf4)][_0x261b6f(0x129)](this[_0x261b6f(0x116)]),this[_0x261b6f(0x106)][_0x261b6f(0x129)](this[_0x261b6f(0x112)]),this[_0x261b6f(0xf9)][_0x261b6f(0x10a)](_0x261b6f(0x113),(_0x4f8d74,_0x1e356f)=>{const _0x15d992=_0x261b6f;_0x4f8d74[_0x15d992(0xf6)]==this[_0x15d992(0xf8)][_0x15d992(0x11f)][_0x15d992(0xf7)]&&(this[_0x15d992(0x110)](),_0x1e356f());});}[_0x28f64b(0x115)](){const _0x2b8860=_0x28f64b,_0x46af3f=new _0x2ef5ab(this[_0x2b8860(0x104)]),_0x2466e4=this[_0x2b8860(0x104)];return _0x46af3f[_0x2b8860(0x10a)]({'icon':_0xe11b46,'label':_0x388760(_0x2466e4,_0x2b8860(0x11a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2b8860(0x117)}),_0x46af3f['on'](_0x2b8860(0x11d),()=>{const _0x2b0cb1=_0x2b8860;this[_0x2b0cb1(0x110)]();}),_0x46af3f[_0x2b8860(0xfe)](_0x2b8860(0xf2))['to'](this[_0x2b8860(0xf8)][_0x2b8860(0x11f)],_0x2b8860(0x111),this,_0x2b8860(0xf2),(_0x5e0710,_0x1d8ff1)=>!_0x5e0710&&_0x1d8ff1),_0x46af3f;}[_0x28f64b(0x121)](){const _0x29bb8b=_0x28f64b,_0x2c1dd8=new _0x2ef5ab(this[_0x29bb8b(0x104)]),_0x11c8ad=this[_0x29bb8b(0x100)],_0x3586bc=this[_0x29bb8b(0x104)];_0x2c1dd8[_0x29bb8b(0x10a)]({'label':_0x388760(_0x3586bc,_0x29bb8b(0xf1)),'withText':!0x1,'icon':_0xf381d,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x29bb8b(0x10c)}),_0x2c1dd8[_0x29bb8b(0xfe)](_0x29bb8b(0x11c))['to'](_0x11c8ad,_0x29bb8b(0x125)),_0x2c1dd8[_0x29bb8b(0xfe)](_0x29bb8b(0xf2))['to'](this,_0x29bb8b(0xf2)),_0x2c1dd8['on'](_0x29bb8b(0x11d),()=>{const _0x3a0dc3=_0x29bb8b;_0x11c8ad[_0x3a0dc3(0x125)]=!_0x11c8ad[_0x3a0dc3(0x125)],_0x11c8ad[_0x3a0dc3(0x125)]?this[_0x3a0dc3(0x126)][_0x3a0dc3(0x120)]():this[_0x3a0dc3(0x120)]();});const _0x3bc969=()=>{const _0x100744=_0x29bb8b;_0x4a8305[_0x100744(0x122)][_0x100744(0x101)](()=>{const _0x30ffa1=_0x100744;if(_0x248088(this[_0x30ffa1(0xf7)])){const _0x4cc2bd=new _0x36f8b5(this[_0x30ffa1(0xf8)][_0x30ffa1(0x11f)][_0x30ffa1(0xf7)]),_0xe4d183=_0x4cc2bd[_0x30ffa1(0x11e)],_0x2314fa=_0x30ffa1(0x119)===_0x3586bc[_0x30ffa1(0x114)]?_0x30ffa1(0x108):_0x30ffa1(0xfc);_0x4cc2bd[_0x30ffa1(0xff)](),_0x2c1dd8[_0x30ffa1(0xf7)][_0x30ffa1(0x11b)][_0x2314fa]=_0xe4d183-_0x4cc2bd[_0x30ffa1(0x11e)]+0x1+'px';}});};return this[_0x29bb8b(0xf8)][_0x29bb8b(0x11f)]['on'](_0x29bb8b(0x128),_0x3bc969),this['on'](_0x29bb8b(0x10e),_0x3bc969),_0x2c1dd8;}[_0x28f64b(0x110)](){const _0xb80ae6=_0x28f64b,_0x224aed=this[_0xb80ae6(0xf8)][_0xb80ae6(0x11f)][_0xb80ae6(0xf7)][_0xb80ae6(0xfb)];this[_0xb80ae6(0x10d)](_0xb80ae6(0x110),_0x224aed);}[_0x28f64b(0x120)](_0xe05b63){const _0x27b68a=_0x28f64b;-0x1===_0xe05b63?this[_0x27b68a(0xf3)][_0x27b68a(0x127)]():this[_0x27b68a(0xf3)][_0x27b68a(0x118)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37e6ce=_0x1ed4;function _0x1ed4(_0x1ceb80,_0x4dd438){const _0x5c13dc=_0x5c13();return _0x1ed4=function(_0x1ed4df,_0x193526){_0x1ed4df=_0x1ed4df-0xab;let _0x4eff1a=_0x5c13dc[_0x1ed4df];return _0x4eff1a;},_0x1ed4(_0x1ceb80,_0x4dd438);}(function(_0x1e7289,_0xeceb5e){const _0x42e7ca=_0x1ed4,_0x10ada7=_0x1e7289();while(!![]){try{const _0x1e7685=-parseInt(_0x42e7ca(0xaf))/0x1*(parseInt(_0x42e7ca(0xb5))/0x2)+-parseInt(_0x42e7ca(0xb9))/0x3*(-parseInt(_0x42e7ca(0xb7))/0x4)+-parseInt(_0x42e7ca(0xc6))/0x5*(parseInt(_0x42e7ca(0xac))/0x6)+parseInt(_0x42e7ca(0xad))/0x7+parseInt(_0x42e7ca(0xb0))/0x8+-parseInt(_0x42e7ca(0xc0))/0x9+parseInt(_0x42e7ca(0xc7))/0xa;if(_0x1e7685===_0xeceb5e)break;else _0x10ada7['push'](_0x10ada7['shift']());}catch(_0x56b9e6){_0x10ada7['push'](_0x10ada7['shift']());}}}(_0x5c13,0x88185));function _0x5c13(){const _0x3a5d20=['replaceButton','toUpperCase','ck-hidden','label','318rEbjek','2819677ggGmBU','items','440YBbtZV','8086400jbhGjQ','AI_','bind','tryAgainButton','Stop','4934aSzbop','locale','19528prAgDA','bindTemplate','174pbhDNN','ck-ai-form__toolbar','stopButton','insertButton','extendTemplate','Insert\x20below','_CONTENT','2666970FIOojg','Try\x20again','_createButton','ck-button-action','isVisible','insert','41845xFYInj','6860450ravarh','REPLACE','set','mainAction','replace','addMany'];_0x5c13=function(){return _0x3a5d20;};return _0x5c13();}import{ToolbarView as _0x505dc0,ButtonView as _0xf1f0db}from'ckeditor5/src/ui.js';import{getTranslation as _0x5a7f38}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x37e6ce(0xcb),'INSERT':_0x37e6ce(0xc5)};export class AIFormToolbarView extends _0x505dc0{constructor(_0x1bed64){const _0x2fa806=_0x37e6ce;super(_0x1bed64),this[_0x2fa806(0xc9)](_0x2fa806(0xc4),!0x1),this[_0x2fa806(0xc9)](_0x2fa806(0xca),AIFormToolbarViewMainActionLabel[_0x2fa806(0xc8)]),this[_0x2fa806(0xcd)]=this[_0x2fa806(0xc2)]('',_0x2fa806(0xc3)),this[_0x2fa806(0xcd)][_0x2fa806(0xb2)](_0x2fa806(0xab))['to'](this,_0x2fa806(0xca),_0x5c95cd=>_0x5a7f38(_0x1bed64,_0x2fa806(0xb1)+_0x5c95cd[_0x2fa806(0xce)]()+_0x2fa806(0xbf))),this[_0x2fa806(0xbc)]=this[_0x2fa806(0xc2)](_0x5a7f38(_0x1bed64,_0x2fa806(0xbe))),this[_0x2fa806(0xb3)]=this[_0x2fa806(0xc2)](_0x5a7f38(_0x1bed64,_0x2fa806(0xc1))),this[_0x2fa806(0xbb)]=this[_0x2fa806(0xc2)](_0x5a7f38(_0x1bed64,_0x2fa806(0xb4)));const _0x1f4fde=this[_0x2fa806(0xb8)];this[_0x2fa806(0xbd)]({'attributes':{'class':[_0x2fa806(0xba),_0x1f4fde['if'](_0x2fa806(0xc4),_0x2fa806(0xcf),_0x140ae0=>!_0x140ae0)]}}),this[_0x2fa806(0xae)][_0x2fa806(0xcc)]([this[_0x2fa806(0xcd)],this[_0x2fa806(0xbc)],this[_0x2fa806(0xb3)],this[_0x2fa806(0xbb)]]);}[_0x37e6ce(0xc2)](_0x5449e2,_0x57fbd9){const _0x5aaa77=_0x37e6ce,_0x4d0e05=new _0xf1f0db(this[_0x5aaa77(0xb6)]);return _0x4d0e05[_0x5aaa77(0xc9)]({'label':_0x5449e2,'class':_0x57fbd9||'','isVisible':!0x0,'withText':!0x0}),_0x4d0e05;}}
23
+ const _0x4e96fd=_0x2e9b;function _0x2924(){const _0x31cba6=['insert','stopButton','AI_','ck-button-action','572159JJmZXw','set','_createButton','1682777SzwJze','10313728MmAnPT','11ZPvdrx','toUpperCase','ck-ai-form__toolbar','ck-hidden','replaceButton','items','2cyOAfs','tryAgainButton','5112606wzgMHT','9jdkULM','REPLACE','label','6FXOaar','isVisible','locale','addMany','extendTemplate','mainAction','Insert\x20below','insertButton','_CONTENT','replace','65228810MEdkoO','3380840igVWKj','bind','bindTemplate','8275515wuiHAR','Try\x20again','Stop'];_0x2924=function(){return _0x31cba6;};return _0x2924();}(function(_0x242c6a,_0x4cd8a8){const _0x5e0d52=_0x2e9b,_0xc6b22c=_0x242c6a();while(!![]){try{const _0xfc2197=-parseInt(_0x5e0d52(0xd0))/0x1*(parseInt(_0x5e0d52(0xd8))/0x2)+-parseInt(_0x5e0d52(0xda))/0x3+parseInt(_0x5e0d52(0xc3))/0x4+-parseInt(_0x5e0d52(0xc6))/0x5+parseInt(_0x5e0d52(0xb8))/0x6*(-parseInt(_0x5e0d52(0xcd))/0x7)+-parseInt(_0x5e0d52(0xd1))/0x8*(parseInt(_0x5e0d52(0xdb))/0x9)+-parseInt(_0x5e0d52(0xc2))/0xa*(-parseInt(_0x5e0d52(0xd2))/0xb);if(_0xfc2197===_0x4cd8a8)break;else _0xc6b22c['push'](_0xc6b22c['shift']());}catch(_0x56c94d){_0xc6b22c['push'](_0xc6b22c['shift']());}}}(_0x2924,0xe92b0));function _0x2e9b(_0x582c27,_0xe3d752){const _0x292499=_0x2924();return _0x2e9b=function(_0x2e9b44,_0x46a28d){_0x2e9b44=_0x2e9b44-0xb6;let _0x334077=_0x292499[_0x2e9b44];return _0x334077;},_0x2e9b(_0x582c27,_0xe3d752);}import{ToolbarView as _0x100ca3,ButtonView as _0x2f4e03}from'ckeditor5/src/ui.js';import{getTranslation as _0x25448f}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x4e96fd(0xc1),'INSERT':_0x4e96fd(0xc9)};export class AIFormToolbarView extends _0x100ca3{constructor(_0x74e037){const _0xe5028b=_0x4e96fd;super(_0x74e037),this[_0xe5028b(0xce)](_0xe5028b(0xb9),!0x1),this[_0xe5028b(0xce)](_0xe5028b(0xbd),AIFormToolbarViewMainActionLabel[_0xe5028b(0xb6)]),this[_0xe5028b(0xd6)]=this[_0xe5028b(0xcf)]('',_0xe5028b(0xcc)),this[_0xe5028b(0xd6)][_0xe5028b(0xc4)](_0xe5028b(0xb7))['to'](this,_0xe5028b(0xbd),_0x7f3257=>_0x25448f(_0x74e037,_0xe5028b(0xcb)+_0x7f3257[_0xe5028b(0xd3)]()+_0xe5028b(0xc0))),this[_0xe5028b(0xbf)]=this[_0xe5028b(0xcf)](_0x25448f(_0x74e037,_0xe5028b(0xbe))),this[_0xe5028b(0xd9)]=this[_0xe5028b(0xcf)](_0x25448f(_0x74e037,_0xe5028b(0xc7))),this[_0xe5028b(0xca)]=this[_0xe5028b(0xcf)](_0x25448f(_0x74e037,_0xe5028b(0xc8)));const _0x7096c9=this[_0xe5028b(0xc5)];this[_0xe5028b(0xbc)]({'attributes':{'class':[_0xe5028b(0xd4),_0x7096c9['if'](_0xe5028b(0xb9),_0xe5028b(0xd5),_0x203cae=>!_0x203cae)]}}),this[_0xe5028b(0xd7)][_0xe5028b(0xbb)]([this[_0xe5028b(0xd6)],this[_0xe5028b(0xbf)],this[_0xe5028b(0xd9)],this[_0xe5028b(0xca)]]);}[_0x4e96fd(0xcf)](_0x2e54a3,_0x4daef4){const _0x2e60b1=_0x4e96fd,_0x3c0725=new _0x2f4e03(this[_0x2e60b1(0xba)]);return _0x3c0725[_0x2e60b1(0xce)]({'label':_0x2e54a3,'class':_0x4daef4||'','isVisible':!0x0,'withText':!0x0}),_0x3c0725;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59bcc0=_0x386f;function _0x492f(){const _0x16fd30=['Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','mainAction','element','isEnabled','tryAgainEvent','handleError','_focusables','274781XSNTok','REPLACE','value','1025122QshyXR','ck-ai-form-content','30KlhljO','delegate','_createToolbar','replaceButton','isProcessing','set','isVisible','historyGroupView','toolbar','locale','execute','678444sewTwT','search','clearHistory','focus','insertButton','label','Ask\x20AI\x20to\x20improve\x20generated\x20text','submitPrompt','64878sagUxY','ck-hidden','items','bindTemplate','AI_ERROR_FAILED','div','copyButtonView','stopProcessing','shift\x20+\x20tab','focusLast','_createPromptView','fire','clear','Empty\x20history','prompt','ck-ai-form','567436zCJClV','startProcessing','_createHistoryView','fieldView','finishProcessing','9hCsjDi','promptView','errorView','high','isError','contentArea','focusFirst','createCollection','bindTo','keystrokes','154RUVGpF','300312agxlRI','Ask\x20AI\x20to\x20edit\x20or\x20generate','1463230PvfrEK','stopButton','tab','setTemplate','reset','trim','12HhhRuh','focusCycler','chain','add','listenTo','queryView','bind','focusTracker','submit','27RuiCgz','render','88HaKinF','tryAgainButton','16hBHxSB','insertContentBelow','text','replaceContent','_promptHistory'];_0x492f=function(){return _0x16fd30;};return _0x492f();}(function(_0x5ae016,_0x55db13){const _0x409cf1=_0x386f,_0x3ad39c=_0x5ae016();while(!![]){try{const _0x5377b9=-parseInt(_0x409cf1(0xa4))/0x1*(-parseInt(_0x409cf1(0x7c))/0x2)+parseInt(_0x409cf1(0x91))/0x3*(parseInt(_0x409cf1(0x8c))/0x4)+parseInt(_0x409cf1(0xc2))/0x5*(parseInt(_0x409cf1(0x9c))/0x6)+-parseInt(_0x409cf1(0xc0))/0x7*(-parseInt(_0x409cf1(0xb1))/0x8)+-parseInt(_0x409cf1(0xad))/0x9*(parseInt(_0x409cf1(0x9e))/0xa)+-parseInt(_0x409cf1(0xaf))/0xb*(parseInt(_0x409cf1(0x74))/0xc)+parseInt(_0x409cf1(0xbd))/0xd*(-parseInt(_0x409cf1(0x9b))/0xe);if(_0x5377b9===_0x55db13)break;else _0x3ad39c['push'](_0x3ad39c['shift']());}catch(_0x576e71){_0x3ad39c['push'](_0x3ad39c['shift']());}}}(_0x492f,0x45675));import{FocusTracker as _0x295619,KeystrokeHandler as _0xcf14dc}from'ckeditor5/src/utils.js';import{View as _0x1536fe,FocusCycler as _0xa3cee,createLabeledTextarea as _0x3a943b}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x186f7e,AIFormToolbarViewMainActionLabel as _0x1d1419}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x553249}from'./aiformcontentarea.js';import{AIFormErrorView as _0x41392f}from'./aiformerrorview.js';import{AIFormPromptView as _0x395813}from'./aiformpromptview.js';function _0x386f(_0x1934e3,_0x2c7309){const _0x492f47=_0x492f();return _0x386f=function(_0x386fb1,_0xeb9a60){_0x386fb1=_0x386fb1-0x6c;let _0x4972d2=_0x492f47[_0x386fb1];return _0x4972d2;},_0x386f(_0x1934e3,_0x2c7309);}import{AIHistoryListView as _0x3e36af}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x1092f4}from'./aihistorylistitemview.js';import{PromptHistory as _0x1d5bf3}from'./prompthistory.js';import{getTranslation as _0x34ab56}from'../../utils/common-translations.js';import{escape as _0x5982c3}from'es-toolkit/compat';export class AIFormView extends _0x1536fe{[_0x59bcc0(0xab)];[_0x59bcc0(0x9a)];[_0x59bcc0(0x96)];[_0x59bcc0(0x71)];[_0x59bcc0(0x92)];[_0x59bcc0(0x93)];[_0x59bcc0(0xbc)];[_0x59bcc0(0xa5)];[_0x59bcc0(0xb5)];constructor(_0x4438d4,_0x4a5933,_0xd3e93a=''){const _0x3fdc78=_0x59bcc0;super(_0x4438d4),this[_0x3fdc78(0x6e)](_0x3fdc78(0xb9),!0x0),this[_0x3fdc78(0x6e)](_0x3fdc78(0x6d),!0x1),this[_0x3fdc78(0x6e)](_0x3fdc78(0x8a),''),this[_0x3fdc78(0x6e)](_0x3fdc78(0xbf),''),this[_0x3fdc78(0x6e)](_0x3fdc78(0x95),!0x1),this[_0x3fdc78(0x6e)](_0x3fdc78(0xb7),_0x1d1419[_0x3fdc78(0xbe)]),this[_0x3fdc78(0xb5)]=new _0x1d5bf3(),this[_0x3fdc78(0x93)]=new _0x41392f(_0x4438d4),this[_0x3fdc78(0x96)]=new _0x553249(_0x4438d4,_0xd3e93a),this[_0x3fdc78(0x96)][_0x3fdc78(0xaa)](_0x3fdc78(0x6d))['to'](this),this[_0x3fdc78(0x96)][_0x3fdc78(0xaa)](_0x3fdc78(0xbf))['to'](this),this[_0x3fdc78(0x71)]=this[_0x3fdc78(0xc4)](),this[_0x3fdc78(0x71)][_0x3fdc78(0xaa)](_0x3fdc78(0xb7))['to'](this),this[_0x3fdc78(0x92)]=this[_0x3fdc78(0x86)](),this[_0x3fdc78(0xab)]=new _0x295619(),this[_0x3fdc78(0x9a)]=new _0xcf14dc(),this[_0x3fdc78(0xbc)]=this[_0x3fdc78(0x98)]([this[_0x3fdc78(0x96)],this[_0x3fdc78(0x96)][_0x3fdc78(0x82)],this[_0x3fdc78(0x71)],this[_0x3fdc78(0x92)]]),this[_0x3fdc78(0xa5)]=new _0xa3cee({'focusables':this[_0x3fdc78(0xbc)],'focusTracker':this[_0x3fdc78(0xab)],'keystrokeHandler':this[_0x3fdc78(0x9a)],'actions':{'focusPrevious':_0x3fdc78(0x84),'focusNext':_0x3fdc78(0xa0)}}),this[_0x3fdc78(0xa5)][_0x3fdc78(0xa6)](this[_0x3fdc78(0x92)][_0x3fdc78(0xa5)]),this[_0x3fdc78(0x92)][_0x3fdc78(0xa9)][_0x3fdc78(0x8f)][_0x3fdc78(0xaa)](_0x3fdc78(0xbf))['to'](this,_0x3fdc78(0x8a));const _0x2c6748=this[_0x3fdc78(0x7f)];this[_0x3fdc78(0xa1)]({'tag':_0x3fdc78(0x81),'attributes':{'class':['ck',_0x3fdc78(0x8b),_0x4a5933],'tabindex':'-1'},'children':[{'tag':_0x3fdc78(0x81),'attributes':{'class':['ck',_0x3fdc78(0xc1)]},'children':[{'tag':_0x3fdc78(0x81),'attributes':{'class':[_0x2c6748['if'](_0x3fdc78(0x95),_0x3fdc78(0x7d),_0x54d6b0=>!_0x54d6b0)]},'children':[this[_0x3fdc78(0x93)]]},this[_0x3fdc78(0x96)],this[_0x3fdc78(0x71)],this[_0x3fdc78(0x92)]]}]});}[_0x59bcc0(0xae)](){const _0x34811b=_0x59bcc0;super[_0x34811b(0xae)](),this[_0x34811b(0xab)][_0x34811b(0xa7)](this[_0x34811b(0x96)][_0x34811b(0xb8)]),this[_0x34811b(0xab)][_0x34811b(0xa7)](this[_0x34811b(0x96)][_0x34811b(0x82)][_0x34811b(0xb8)]),this[_0x34811b(0xab)][_0x34811b(0xa7)](this[_0x34811b(0x71)][_0x34811b(0xb8)]),this[_0x34811b(0xab)][_0x34811b(0xa7)](this[_0x34811b(0x92)][_0x34811b(0xb8)]),this[_0x34811b(0x9a)][_0x34811b(0xa8)](this[_0x34811b(0xb8)]);}[_0x59bcc0(0x77)](_0x5e011c=0x1){const _0x5d4b59=_0x59bcc0;-0x1===_0x5e011c?this[_0x5d4b59(0xa5)][_0x5d4b59(0x85)]():this[_0x5d4b59(0xa5)][_0x5d4b59(0x97)]();}[_0x59bcc0(0xa2)](){const _0x2e82b7=_0x59bcc0;this[_0x2e82b7(0x8a)]='',this[_0x2e82b7(0xbf)]='',this[_0x2e82b7(0x95)]=!0x1,this[_0x2e82b7(0x92)][_0x2e82b7(0xa2)](),this[_0x2e82b7(0x96)][_0x2e82b7(0x6f)]=!0x1,this[_0x2e82b7(0x71)][_0x2e82b7(0x6f)]=!0x1;}[_0x59bcc0(0x86)](){const _0xbd0823=_0x59bcc0,_0x5245c8=this[_0xbd0823(0x72)],_0x3dda04=new _0x395813(_0x5245c8,{'queryView':{'label':_0x34ab56(_0x5245c8,_0xbd0823(0x9d)),'creator':_0x3a943b,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x34ab56(_0x5245c8,_0xbd0823(0x89)),'secondary':_0x34ab56(_0x5245c8,_0xbd0823(0xb6))}}},'filteredView':this[_0xbd0823(0x8e)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x3dda04[_0xbd0823(0xaa)](_0xbd0823(0xb9))['to'](this,_0xbd0823(0xb9),this,_0xbd0823(0x6d),(_0xf5bfbb,_0x1daccd)=>_0xf5bfbb&&!_0x1daccd),this[_0xbd0823(0xa8)](_0x3dda04,_0xbd0823(0xac),(_0x245788,_0x5432ad)=>{const _0x6fb074=_0xbd0823;this[_0x6fb074(0x8a)]=_0x5432ad;const _0x5c772a=_0x5982c3(_0x5432ad);this[_0x6fb074(0x87)](_0x6fb074(0x7b),_0x5c772a),_0x5432ad[_0x6fb074(0xa3)]()&&this[_0x6fb074(0xb5)][_0x6fb074(0xa7)]({'prompt':_0x5c772a},0x0);},{'priority':_0xbd0823(0x94)}),_0x3dda04;}[_0x59bcc0(0x8e)](){const _0x7daa1b=_0x59bcc0,_0x171c1a=new _0x3e36af(this[_0x7daa1b(0x72)]);return _0x171c1a[_0x7daa1b(0x70)][_0x7daa1b(0x7e)][_0x7daa1b(0x99)](this[_0x7daa1b(0xb5)])['as'](_0x1092f4),_0x171c1a['on'](_0x7daa1b(0x76),()=>{const _0x337ce0=_0x7daa1b;this[_0x337ce0(0xb5)][_0x337ce0(0x88)](),this[_0x337ce0(0x92)][_0x337ce0(0x75)](''),this[_0x337ce0(0x92)][_0x337ce0(0x77)]();}),_0x171c1a;}[_0x59bcc0(0xc4)](){const _0x24a76b=_0x59bcc0,_0x4cd9df=new _0x186f7e(this[_0x24a76b(0x72)]);return _0x4cd9df[_0x24a76b(0x6c)][_0x24a76b(0xaa)](_0x24a76b(0xb9))['to'](this,_0x24a76b(0xb9),this,_0x24a76b(0x6d),this,_0x24a76b(0xbf),(_0x3af8b9,_0x517146,_0x237d8a)=>_0x3af8b9&&!_0x517146&&!!_0x237d8a),_0x4cd9df[_0x24a76b(0x6c)][_0x24a76b(0xc3)](_0x24a76b(0x73))['to'](this,_0x24a76b(0xb4)),_0x4cd9df[_0x24a76b(0x78)][_0x24a76b(0xaa)](_0x24a76b(0xb9))['to'](this,_0x24a76b(0xb9),this,_0x24a76b(0x6d),this,_0x24a76b(0xbf),(_0x15592c,_0x5d4435,_0x1a3231)=>_0x15592c&&!_0x5d4435&&!!_0x1a3231),_0x4cd9df[_0x24a76b(0x78)][_0x24a76b(0xc3)](_0x24a76b(0x73))['to'](this,_0x24a76b(0xb2)),_0x4cd9df[_0x24a76b(0xb0)][_0x24a76b(0xaa)](_0x24a76b(0xb9))['to'](this,_0x24a76b(0xb9),this,_0x24a76b(0x6d),(_0x5e9145,_0x4ff440)=>_0x5e9145&&!_0x4ff440),_0x4cd9df[_0x24a76b(0xb0)][_0x24a76b(0xc3)](_0x24a76b(0x73))['to'](this,_0x24a76b(0xba)),_0x4cd9df[_0x24a76b(0x9f)][_0x24a76b(0xaa)](_0x24a76b(0xb9))['to'](this,_0x24a76b(0x6d)),_0x4cd9df[_0x24a76b(0x9f)][_0x24a76b(0xc3)](_0x24a76b(0x73))['to'](this,_0x24a76b(0x83)),_0x4cd9df;}[_0x59bcc0(0x8d)](){const _0x3300f4=_0x59bcc0;this[_0x3300f4(0xbf)]='',this[_0x3300f4(0x95)]=!0x1,this[_0x3300f4(0x6d)]=!0x0,this[_0x3300f4(0x96)][_0x3300f4(0x6f)]=!0x0,this[_0x3300f4(0x71)][_0x3300f4(0x6f)]=!0x0,this[_0x3300f4(0x96)][_0x3300f4(0x77)]();}[_0x59bcc0(0x90)](){const _0x2a2de4=_0x59bcc0,_0x27f8cc=this[_0x2a2de4(0x72)];this[_0x2a2de4(0x6d)]=!0x1,this[_0x2a2de4(0x8a)]='',this[_0x2a2de4(0x92)][_0x2a2de4(0xa2)](),this[_0x2a2de4(0xbf)]&&(this[_0x2a2de4(0x92)][_0x2a2de4(0xa9)][_0x2a2de4(0x79)]=_0x34ab56(_0x27f8cc,_0x2a2de4(0x7a)));}[_0x59bcc0(0xbb)](_0x49ec47){const _0x161f25=_0x59bcc0,_0x1293aa=this[_0x161f25(0x72)];this[_0x161f25(0x90)](),this[_0x161f25(0x95)]=!0x0,this[_0x161f25(0x93)][_0x161f25(0xb3)]=_0x49ec47||_0x34ab56(_0x1293aa,_0x161f25(0x80)),this[_0x161f25(0xbf)]||(this[_0x161f25(0x96)][_0x161f25(0x6f)]=!0x1);}}
23
+ const _0x368421=_0x918a;function _0x3aad(){const _0x1332ec=['items','ck-ai-form','add','execute','replaceContent','locale','prompt','setTemplate','focusLast','high','AI_ERROR_FAILED','REPLACE','_promptHistory','promptView','search','14718576XgfIZr','Ask\x20AI\x20to\x20improve\x20generated\x20text','3116904ymfPds','copyButtonView','handleError','contentArea','submitPrompt','queryView','isError','delegate','historyGroupView','isProcessing','insertButton','66RNjKXV','fire','isVisible','reset','1056350auPgQo','toolbar','focus','text','clearHistory','tryAgainEvent','trim','insertContentBelow','chain','Ask\x20AI\x20to\x20edit\x20or\x20generate','stopProcessing','createCollection','_createPromptView','357933gcZiDM','bindTo','mainAction','ck-ai-form-content','Empty\x20history','clear','startProcessing','keystrokes','listenTo','6619809sVVpyQ','fieldView','tab','finishProcessing','value','stopButton','label','element','tryAgainButton','focusTracker','focusCycler','_createHistoryView','219648YUjwPB','submit','isEnabled','errorView','div','92995zLoxKu','_createToolbar','ck-hidden','replaceButton','shift\x20+\x20tab','focusFirst','_focusables','bind','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','set','render','bindTemplate'];_0x3aad=function(){return _0x1332ec;};return _0x3aad();}(function(_0x51d1d3,_0x2472d2){const _0x438be4=_0x918a,_0x46af07=_0x51d1d3();while(!![]){try{const _0x3acd66=-parseInt(_0x438be4(0x19a))/0x1+-parseInt(_0x438be4(0x18d))/0x2+-parseInt(_0x438be4(0x1af))/0x3+parseInt(_0x438be4(0x1d1))/0x4+-parseInt(_0x438be4(0x1b4))/0x5*(parseInt(_0x438be4(0x189))/0x6)+-parseInt(_0x438be4(0x1a3))/0x7+parseInt(_0x438be4(0x1cf))/0x8;if(_0x3acd66===_0x2472d2)break;else _0x46af07['push'](_0x46af07['shift']());}catch(_0x3b369a){_0x46af07['push'](_0x46af07['shift']());}}}(_0x3aad,0x7c608));import{FocusTracker as _0x258d86,KeystrokeHandler as _0x45658f}from'ckeditor5/src/utils.js';import{View as _0xc51084,FocusCycler as _0x4bb50b,createLabeledTextarea as _0x190f24}from'ckeditor5/src/ui.js';function _0x918a(_0x39ebae,_0x5afcbe){const _0x3aadd8=_0x3aad();return _0x918a=function(_0x918a9,_0x5230aa){_0x918a9=_0x918a9-0x186;let _0x145345=_0x3aadd8[_0x918a9];return _0x145345;},_0x918a(_0x39ebae,_0x5afcbe);}import{AIFormToolbarView as _0x58b638,AIFormToolbarViewMainActionLabel as _0xf7b809}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x42d43b}from'./aiformcontentarea.js';import{AIFormErrorView as _0x54f0c4}from'./aiformerrorview.js';import{AIFormPromptView as _0x462a04}from'./aiformpromptview.js';import{AIHistoryListView as _0x5103f9}from'./aihistorylistview.js';import{AIHistoryListItemView as _0xa0c53a}from'./aihistorylistitemview.js';import{PromptHistory as _0x32778b}from'./prompthistory.js';import{getTranslation as _0x5c777c}from'../../utils/common-translations.js';import{escape as _0x3e3360}from'es-toolkit/compat';export class AIFormView extends _0xc51084{[_0x368421(0x1ac)];[_0x368421(0x1a1)];[_0x368421(0x1d4)];[_0x368421(0x18e)];[_0x368421(0x1cd)];[_0x368421(0x1b2)];[_0x368421(0x1ba)];[_0x368421(0x1ad)];[_0x368421(0x1cc)];constructor(_0x13cb41,_0x3def9f,_0x46e99a=''){const _0x26cfaa=_0x368421;super(_0x13cb41),this[_0x26cfaa(0x1bd)](_0x26cfaa(0x1b1),!0x0),this[_0x26cfaa(0x1bd)](_0x26cfaa(0x187),!0x1),this[_0x26cfaa(0x1bd)](_0x26cfaa(0x1c6),''),this[_0x26cfaa(0x1bd)](_0x26cfaa(0x1a7),''),this[_0x26cfaa(0x1bd)](_0x26cfaa(0x1d7),!0x1),this[_0x26cfaa(0x1bd)](_0x26cfaa(0x19c),_0xf7b809[_0x26cfaa(0x1cb)]),this[_0x26cfaa(0x1cc)]=new _0x32778b(),this[_0x26cfaa(0x1b2)]=new _0x54f0c4(_0x13cb41),this[_0x26cfaa(0x1d4)]=new _0x42d43b(_0x13cb41,_0x46e99a),this[_0x26cfaa(0x1d4)][_0x26cfaa(0x1bb)](_0x26cfaa(0x187))['to'](this),this[_0x26cfaa(0x1d4)][_0x26cfaa(0x1bb)](_0x26cfaa(0x1a7))['to'](this),this[_0x26cfaa(0x18e)]=this[_0x26cfaa(0x1b5)](),this[_0x26cfaa(0x18e)][_0x26cfaa(0x1bb)](_0x26cfaa(0x19c))['to'](this),this[_0x26cfaa(0x1cd)]=this[_0x26cfaa(0x199)](),this[_0x26cfaa(0x1ac)]=new _0x258d86(),this[_0x26cfaa(0x1a1)]=new _0x45658f(),this[_0x26cfaa(0x1ba)]=this[_0x26cfaa(0x198)]([this[_0x26cfaa(0x1d4)],this[_0x26cfaa(0x1d4)][_0x26cfaa(0x1d2)],this[_0x26cfaa(0x18e)],this[_0x26cfaa(0x1cd)]]),this[_0x26cfaa(0x1ad)]=new _0x4bb50b({'focusables':this[_0x26cfaa(0x1ba)],'focusTracker':this[_0x26cfaa(0x1ac)],'keystrokeHandler':this[_0x26cfaa(0x1a1)],'actions':{'focusPrevious':_0x26cfaa(0x1b8),'focusNext':_0x26cfaa(0x1a5)}}),this[_0x26cfaa(0x1ad)][_0x26cfaa(0x195)](this[_0x26cfaa(0x1cd)][_0x26cfaa(0x1ad)]),this[_0x26cfaa(0x1cd)][_0x26cfaa(0x1d6)][_0x26cfaa(0x1a4)][_0x26cfaa(0x1bb)](_0x26cfaa(0x1a7))['to'](this,_0x26cfaa(0x1c6));const _0x3322ee=this[_0x26cfaa(0x1bf)];this[_0x26cfaa(0x1c7)]({'tag':_0x26cfaa(0x1b3),'attributes':{'class':['ck',_0x26cfaa(0x1c1),_0x3def9f],'tabindex':'-1'},'children':[{'tag':_0x26cfaa(0x1b3),'attributes':{'class':['ck',_0x26cfaa(0x19d)]},'children':[{'tag':_0x26cfaa(0x1b3),'attributes':{'class':[_0x3322ee['if'](_0x26cfaa(0x1d7),_0x26cfaa(0x1b6),_0x15f3dc=>!_0x15f3dc)]},'children':[this[_0x26cfaa(0x1b2)]]},this[_0x26cfaa(0x1d4)],this[_0x26cfaa(0x18e)],this[_0x26cfaa(0x1cd)]]}]});}[_0x368421(0x1be)](){const _0x16db17=_0x368421;super[_0x16db17(0x1be)](),this[_0x16db17(0x1ac)][_0x16db17(0x1c2)](this[_0x16db17(0x1d4)][_0x16db17(0x1aa)]),this[_0x16db17(0x1ac)][_0x16db17(0x1c2)](this[_0x16db17(0x1d4)][_0x16db17(0x1d2)][_0x16db17(0x1aa)]),this[_0x16db17(0x1ac)][_0x16db17(0x1c2)](this[_0x16db17(0x18e)][_0x16db17(0x1aa)]),this[_0x16db17(0x1ac)][_0x16db17(0x1c2)](this[_0x16db17(0x1cd)][_0x16db17(0x1aa)]),this[_0x16db17(0x1a1)][_0x16db17(0x1a2)](this[_0x16db17(0x1aa)]);}[_0x368421(0x18f)](_0x115e48=0x1){const _0x6a2b7b=_0x368421;-0x1===_0x115e48?this[_0x6a2b7b(0x1ad)][_0x6a2b7b(0x1c8)]():this[_0x6a2b7b(0x1ad)][_0x6a2b7b(0x1b9)]();}[_0x368421(0x18c)](){const _0x596bce=_0x368421;this[_0x596bce(0x1c6)]='',this[_0x596bce(0x1a7)]='',this[_0x596bce(0x1d7)]=!0x1,this[_0x596bce(0x1cd)][_0x596bce(0x18c)](),this[_0x596bce(0x1d4)][_0x596bce(0x18b)]=!0x1,this[_0x596bce(0x18e)][_0x596bce(0x18b)]=!0x1;}[_0x368421(0x199)](){const _0x232470=_0x368421,_0x2f6ea5=this[_0x232470(0x1c5)],_0x529fd4=new _0x462a04(_0x2f6ea5,{'queryView':{'label':_0x5c777c(_0x2f6ea5,_0x232470(0x196)),'creator':_0x190f24,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5c777c(_0x2f6ea5,_0x232470(0x19e)),'secondary':_0x5c777c(_0x2f6ea5,_0x232470(0x1bc))}}},'filteredView':this[_0x232470(0x1ae)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x529fd4[_0x232470(0x1bb)](_0x232470(0x1b1))['to'](this,_0x232470(0x1b1),this,_0x232470(0x187),(_0x5ce907,_0x2eadb1)=>_0x5ce907&&!_0x2eadb1),this[_0x232470(0x1a2)](_0x529fd4,_0x232470(0x1b0),(_0x3ef379,_0x3e16fe)=>{const _0x30f005=_0x232470;this[_0x30f005(0x1c6)]=_0x3e16fe;const _0x20bccd=_0x3e3360(_0x3e16fe);this[_0x30f005(0x18a)](_0x30f005(0x1d5),_0x20bccd),_0x3e16fe[_0x30f005(0x193)]()&&this[_0x30f005(0x1cc)][_0x30f005(0x1c2)]({'prompt':_0x20bccd},0x0);},{'priority':_0x232470(0x1c9)}),_0x529fd4;}[_0x368421(0x1ae)](){const _0x155570=_0x368421,_0x5dd04b=new _0x5103f9(this[_0x155570(0x1c5)]);return _0x5dd04b[_0x155570(0x186)][_0x155570(0x1c0)][_0x155570(0x19b)](this[_0x155570(0x1cc)])['as'](_0xa0c53a),_0x5dd04b['on'](_0x155570(0x191),()=>{const _0x21263b=_0x155570;this[_0x21263b(0x1cc)][_0x21263b(0x19f)](),this[_0x21263b(0x1cd)][_0x21263b(0x1ce)](''),this[_0x21263b(0x1cd)][_0x21263b(0x18f)]();}),_0x5dd04b;}[_0x368421(0x1b5)](){const _0x3a45cf=_0x368421,_0x13533e=new _0x58b638(this[_0x3a45cf(0x1c5)]);return _0x13533e[_0x3a45cf(0x1b7)][_0x3a45cf(0x1bb)](_0x3a45cf(0x1b1))['to'](this,_0x3a45cf(0x1b1),this,_0x3a45cf(0x187),this,_0x3a45cf(0x1a7),(_0x602bca,_0x5b56c3,_0x549228)=>_0x602bca&&!_0x5b56c3&&!!_0x549228),_0x13533e[_0x3a45cf(0x1b7)][_0x3a45cf(0x1d8)](_0x3a45cf(0x1c3))['to'](this,_0x3a45cf(0x1c4)),_0x13533e[_0x3a45cf(0x188)][_0x3a45cf(0x1bb)](_0x3a45cf(0x1b1))['to'](this,_0x3a45cf(0x1b1),this,_0x3a45cf(0x187),this,_0x3a45cf(0x1a7),(_0x2fa532,_0x33bd5a,_0x3971ab)=>_0x2fa532&&!_0x33bd5a&&!!_0x3971ab),_0x13533e[_0x3a45cf(0x188)][_0x3a45cf(0x1d8)](_0x3a45cf(0x1c3))['to'](this,_0x3a45cf(0x194)),_0x13533e[_0x3a45cf(0x1ab)][_0x3a45cf(0x1bb)](_0x3a45cf(0x1b1))['to'](this,_0x3a45cf(0x1b1),this,_0x3a45cf(0x187),(_0xfa3c79,_0xbbbf3c)=>_0xfa3c79&&!_0xbbbf3c),_0x13533e[_0x3a45cf(0x1ab)][_0x3a45cf(0x1d8)](_0x3a45cf(0x1c3))['to'](this,_0x3a45cf(0x192)),_0x13533e[_0x3a45cf(0x1a8)][_0x3a45cf(0x1bb)](_0x3a45cf(0x1b1))['to'](this,_0x3a45cf(0x187)),_0x13533e[_0x3a45cf(0x1a8)][_0x3a45cf(0x1d8)](_0x3a45cf(0x1c3))['to'](this,_0x3a45cf(0x197)),_0x13533e;}[_0x368421(0x1a0)](){const _0x5ec2b7=_0x368421;this[_0x5ec2b7(0x1a7)]='',this[_0x5ec2b7(0x1d7)]=!0x1,this[_0x5ec2b7(0x187)]=!0x0,this[_0x5ec2b7(0x1d4)][_0x5ec2b7(0x18b)]=!0x0,this[_0x5ec2b7(0x18e)][_0x5ec2b7(0x18b)]=!0x0,this[_0x5ec2b7(0x1d4)][_0x5ec2b7(0x18f)]();}[_0x368421(0x1a6)](){const _0x112e3c=_0x368421,_0x5d5452=this[_0x112e3c(0x1c5)];this[_0x112e3c(0x187)]=!0x1,this[_0x112e3c(0x1c6)]='',this[_0x112e3c(0x1cd)][_0x112e3c(0x18c)](),this[_0x112e3c(0x1a7)]&&(this[_0x112e3c(0x1cd)][_0x112e3c(0x1d6)][_0x112e3c(0x1a9)]=_0x5c777c(_0x5d5452,_0x112e3c(0x1d0)));}[_0x368421(0x1d3)](_0x4b203b){const _0x2fcdf5=_0x368421,_0x2c4cad=this[_0x2fcdf5(0x1c5)];this[_0x2fcdf5(0x1a6)](),this[_0x2fcdf5(0x1d7)]=!0x0,this[_0x2fcdf5(0x1b2)][_0x2fcdf5(0x190)]=_0x4b203b||_0x5c777c(_0x2c4cad,_0x2fcdf5(0x1ca)),this[_0x2fcdf5(0x1a7)]||(this[_0x2fcdf5(0x1d4)][_0x2fcdf5(0x18b)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1388(){const _0x1c1dc2=['25396MKdFnw','fire','3916428XsGprr','10826376FZujwf','134455aegUEO','prompt','1302gLosGD','1140084jklaQv','locale','511830Pkgcdj','116nyNElM','add','set','children','execute','21973545cAtvAx'];_0x1388=function(){return _0x1c1dc2;};return _0x1388();}(function(_0x472755,_0x17ca76){const _0x523685=_0x2073,_0x20e644=_0x472755();while(!![]){try{const _0x2dcfc0=parseInt(_0x523685(0x1f4))/0x1+-parseInt(_0x523685(0x1f2))/0x2+-parseInt(_0x523685(0x1fd))/0x3+parseInt(_0x523685(0x1f5))/0x4*(-parseInt(_0x523685(0x1ff))/0x5)+-parseInt(_0x523685(0x1f1))/0x6*(parseInt(_0x523685(0x1fb))/0x7)+parseInt(_0x523685(0x1fe))/0x8+parseInt(_0x523685(0x1fa))/0x9;if(_0x2dcfc0===_0x17ca76)break;else _0x20e644['push'](_0x20e644['shift']());}catch(_0x477906){_0x20e644['push'](_0x20e644['shift']());}}}(_0x1388,0xd2eff));import{ListItemView as _0x8dad87,ButtonView as _0x302505,ButtonLabelView as _0xf1b689}from'ckeditor5/src/ui.js';function _0x2073(_0x2febf6,_0x1d7f92){const _0x138882=_0x1388();return _0x2073=function(_0x207380,_0x21f982){_0x207380=_0x207380-0x1f0;let _0x1a61ad=_0x138882[_0x207380];return _0x1a61ad;},_0x2073(_0x2febf6,_0x1d7f92);}import{unescape as _0x4f96b9}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x8dad87{constructor(_0x530801){const _0x540011=_0x2073;super();const _0x17a2dd=new _0xf1b689(),_0x5ae6f5=new _0x302505(this[_0x540011(0x1f3)],_0x17a2dd);this[_0x540011(0x1f8)][_0x540011(0x1f6)](_0x5ae6f5),_0x5ae6f5[_0x540011(0x1f7)]({'label':_0x530801[_0x540011(0x1f0)],'withText':!0x0}),_0x5ae6f5['on'](_0x540011(0x1f9),()=>{const _0x2e80fb=_0x540011;this[_0x2e80fb(0x1fc)](_0x2e80fb(0x1f9),{'value':_0x4f96b9(_0x530801[_0x2e80fb(0x1f0)])});});}}
23
+ function _0x4b69(_0xe474e0,_0x5c9843){const _0x4dfc5f=_0x4dfc();return _0x4b69=function(_0x4b69a9,_0x44487e){_0x4b69a9=_0x4b69a9-0x10c;let _0x339ff1=_0x4dfc5f[_0x4b69a9];return _0x339ff1;},_0x4b69(_0xe474e0,_0x5c9843);}(function(_0x53d390,_0x14d32a){const _0x19799d=_0x4b69,_0x402413=_0x53d390();while(!![]){try{const _0x12262e=-parseInt(_0x19799d(0x113))/0x1*(-parseInt(_0x19799d(0x110))/0x2)+parseInt(_0x19799d(0x11f))/0x3*(parseInt(_0x19799d(0x10c))/0x4)+parseInt(_0x19799d(0x10d))/0x5*(parseInt(_0x19799d(0x11c))/0x6)+-parseInt(_0x19799d(0x114))/0x7+parseInt(_0x19799d(0x11d))/0x8*(-parseInt(_0x19799d(0x117))/0x9)+-parseInt(_0x19799d(0x11a))/0xa*(-parseInt(_0x19799d(0x111))/0xb)+-parseInt(_0x19799d(0x112))/0xc*(parseInt(_0x19799d(0x119))/0xd);if(_0x12262e===_0x14d32a)break;else _0x402413['push'](_0x402413['shift']());}catch(_0x169be1){_0x402413['push'](_0x402413['shift']());}}}(_0x4dfc,0xcb9ca));import{ListItemView as _0x32794f,ButtonView as _0x1da84c,ButtonLabelView as _0x2d6217}from'ckeditor5/src/ui.js';import{unescape as _0x14dff2}from'es-toolkit/compat';function _0x4dfc(){const _0x3d61f6=['3382539LoovUY','4XuaYGB','5rkXroy','add','set','51674UxBWtq','345642bGOwbn','12YsCtDH','55GJJTZU','5720547NmYjEx','prompt','fire','18QzEAvZ','locale','19814327QHfubW','420RKvNhl','execute','2445264oKehbo','4401688YzymSr','children'];_0x4dfc=function(){return _0x3d61f6;};return _0x4dfc();}export class AIHistoryListItemView extends _0x32794f{constructor(_0x23ec10){const _0x4a28ca=_0x4b69;super();const _0x230d81=new _0x2d6217(),_0x165b7c=new _0x1da84c(this[_0x4a28ca(0x118)],_0x230d81);this[_0x4a28ca(0x11e)][_0x4a28ca(0x10e)](_0x165b7c),_0x165b7c[_0x4a28ca(0x10f)]({'label':_0x23ec10[_0x4a28ca(0x115)],'withText':!0x0}),_0x165b7c['on'](_0x4a28ca(0x11b),()=>{const _0x2e3c55=_0x4a28ca;this[_0x2e3c55(0x116)](_0x2e3c55(0x11b),{'value':_0x14dff2(_0x23ec10[_0x2e3c55(0x115)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x153c33=_0x40c9;(function(_0x4d4260,_0x26a81f){const _0x40c368=_0x40c9,_0xa15cb8=_0x4d4260();while(!![]){try{const _0x3b2db5=parseInt(_0x40c368(0x10c))/0x1*(-parseInt(_0x40c368(0x108))/0x2)+-parseInt(_0x40c368(0x106))/0x3*(-parseInt(_0x40c368(0x102))/0x4)+-parseInt(_0x40c368(0xff))/0x5*(-parseInt(_0x40c368(0x112))/0x6)+-parseInt(_0x40c368(0x101))/0x7+-parseInt(_0x40c368(0x10e))/0x8+-parseInt(_0x40c368(0xfe))/0x9+-parseInt(_0x40c368(0x115))/0xa*(-parseInt(_0x40c368(0x111))/0xb);if(_0x3b2db5===_0x26a81f)break;else _0xa15cb8['push'](_0xa15cb8['shift']());}catch(_0x5c3f2a){_0xa15cb8['push'](_0xa15cb8['shift']());}}}(_0x50da,0x56fee));function _0x40c9(_0x2af33e,_0x530165){const _0x50dad1=_0x50da();return _0x40c9=function(_0x40c96b,_0x320ec7){_0x40c96b=_0x40c96b-0xfb;let _0x187252=_0x50dad1[_0x40c96b];return _0x187252;},_0x40c9(_0x2af33e,_0x530165);}import{ListView as _0x376324,ListItemGroupView as _0x3a100b,ButtonView as _0x35a248}from'ckeditor5/src/ui.js';import{getTranslation as _0x483854}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x376324{[_0x153c33(0x10d)];[_0x153c33(0x10f)];constructor(_0x27f2cd){const _0x184e05=_0x153c33;super(_0x27f2cd),this[_0x184e05(0x10f)]=this[_0x184e05(0x109)](),this[_0x184e05(0x10d)]=new _0x3a100b(),this[_0x184e05(0x10d)][_0x184e05(0x104)][_0x184e05(0x10b)](this[_0x184e05(0x10f)],0x1),this[_0x184e05(0x10d)][_0x184e05(0x107)]=_0x483854(_0x27f2cd,_0x184e05(0x100)),this[_0x184e05(0x10d)][_0x184e05(0xfb)][_0x184e05(0x10a)](_0x184e05(0xfd))['to'](this),this[_0x184e05(0xfb)][_0x184e05(0x10b)](this[_0x184e05(0x10d)]);}[_0x153c33(0x110)](){const _0x11717a=_0x153c33;let _0x599c4c=0x0;for(const _0x2ff4a0 of this[_0x11717a(0xfb)])_0x599c4c+=_0x2ff4a0[_0x11717a(0xfb)][_0x11717a(0x116)];return{'resultsCount':_0x599c4c,'totalItemsCount':_0x599c4c};}[_0x153c33(0x109)](){const _0x7f2144=_0x153c33,_0x4e12d0=this[_0x7f2144(0x113)],_0x4eb732=new _0x35a248(this[_0x7f2144(0x113)]);return _0x4eb732[_0x7f2144(0x114)]({'label':'('+_0x483854(_0x4e12d0,_0x7f2144(0x105))+')','withText':!0x0}),_0x4eb732['on'](_0x7f2144(0xfd),()=>this[_0x7f2144(0xfc)](_0x7f2144(0x103))),_0x4eb732;}}function _0x50da(){const _0x56869e=['_createClearHistoryButton','delegate','add','2197NPODzh','historyGroupView','5212520ccuJUg','clearHistoryButton','filter','1111BzQSwP','42EwgkRe','locale','set','154010IwmjGR','length','items','fire','execute','5759721JrhdFF','299695pBzMsk','Prompt\x20history','1552425OADUkb','1146884vgNQCp','clearHistory','children','Clear','6qoAhEq','label','618qAopaM'];_0x50da=function(){return _0x56869e;};return _0x50da();}
23
+ const _0x584954=_0x5ca6;function _0x5ca6(_0x1948c0,_0x41833c){const _0x4a6e8e=_0x4a6e();return _0x5ca6=function(_0x5ca640,_0x12b490){_0x5ca640=_0x5ca640-0x1d3;let _0x30ad09=_0x4a6e8e[_0x5ca640];return _0x30ad09;},_0x5ca6(_0x1948c0,_0x41833c);}(function(_0x4e6711,_0x18467b){const _0x495e38=_0x5ca6,_0xfd66de=_0x4e6711();while(!![]){try{const _0x48ecc5=-parseInt(_0x495e38(0x1e4))/0x1+-parseInt(_0x495e38(0x1e9))/0x2*(parseInt(_0x495e38(0x1df))/0x3)+parseInt(_0x495e38(0x1e8))/0x4*(parseInt(_0x495e38(0x1ef))/0x5)+-parseInt(_0x495e38(0x1db))/0x6+-parseInt(_0x495e38(0x1e0))/0x7*(-parseInt(_0x495e38(0x1d7))/0x8)+-parseInt(_0x495e38(0x1ec))/0x9*(-parseInt(_0x495e38(0x1d3))/0xa)+parseInt(_0x495e38(0x1d8))/0xb*(parseInt(_0x495e38(0x1d6))/0xc);if(_0x48ecc5===_0x18467b)break;else _0xfd66de['push'](_0xfd66de['shift']());}catch(_0x503749){_0xfd66de['push'](_0xfd66de['shift']());}}}(_0x4a6e,0xdafa5));import{ListView as _0x156bbf,ListItemGroupView as _0x1eb038,ButtonView as _0x3f69d0}from'ckeditor5/src/ui.js';import{getTranslation as _0x51a257}from'../../utils/common-translations.js';function _0x4a6e(){const _0x140a98=['delegate','9WFdFML','filter','clearHistory','1683635RhSJPe','10574170RVpKjU','fire','historyGroupView','624144UmmFtJ','1976WMeMHS','143oFCgkG','execute','children','8087706tWzlHY','Prompt\x20history','locale','items','180NHTPtW','20307MLFpDf','_createClearHistoryButton','Clear','label','425291hINnUn','length','add','set','20fIfkwz','48786UWIdTJ','clearHistoryButton'];_0x4a6e=function(){return _0x140a98;};return _0x4a6e();}export class AIHistoryListView extends _0x156bbf{[_0x584954(0x1d5)];[_0x584954(0x1ea)];constructor(_0x33f0f5){const _0x164d49=_0x584954;super(_0x33f0f5),this[_0x164d49(0x1ea)]=this[_0x164d49(0x1e1)](),this[_0x164d49(0x1d5)]=new _0x1eb038(),this[_0x164d49(0x1d5)][_0x164d49(0x1da)][_0x164d49(0x1e6)](this[_0x164d49(0x1ea)],0x1),this[_0x164d49(0x1d5)][_0x164d49(0x1e3)]=_0x51a257(_0x33f0f5,_0x164d49(0x1dc)),this[_0x164d49(0x1d5)][_0x164d49(0x1de)][_0x164d49(0x1eb)](_0x164d49(0x1d9))['to'](this),this[_0x164d49(0x1de)][_0x164d49(0x1e6)](this[_0x164d49(0x1d5)]);}[_0x584954(0x1ed)](){const _0x5dcecd=_0x584954;let _0x435493=0x0;for(const _0x292c58 of this[_0x5dcecd(0x1de)])_0x435493+=_0x292c58[_0x5dcecd(0x1de)][_0x5dcecd(0x1e5)];return{'resultsCount':_0x435493,'totalItemsCount':_0x435493};}[_0x584954(0x1e1)](){const _0x521e0d=_0x584954,_0x4fc286=this[_0x521e0d(0x1dd)],_0x64d6fe=new _0x3f69d0(this[_0x521e0d(0x1dd)]);return _0x64d6fe[_0x521e0d(0x1e7)]({'label':'('+_0x51a257(_0x4fc286,_0x521e0d(0x1e2))+')','withText':!0x0}),_0x64d6fe['on'](_0x521e0d(0x1d9),()=>this[_0x521e0d(0x1d4)](_0x521e0d(0x1ee))),_0x64d6fe;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bd7bb=_0x2a91;function _0x2a91(_0x366f15,_0x49bda4){const _0x45399e=_0x4539();return _0x2a91=function(_0x2a91ae,_0x47efaf){_0x2a91ae=_0x2a91ae-0x1ef;let _0x3dc57a=_0x45399e[_0x2a91ae];return _0x3dc57a;},_0x2a91(_0x366f15,_0x49bda4);}(function(_0x3f923f,_0x102524){const _0x40f5a7=_0x2a91,_0x5013eb=_0x3f923f();while(!![]){try{const _0x663327=parseInt(_0x40f5a7(0x1f6))/0x1*(-parseInt(_0x40f5a7(0x1fc))/0x2)+-parseInt(_0x40f5a7(0x1fd))/0x3+parseInt(_0x40f5a7(0x1f7))/0x4+parseInt(_0x40f5a7(0x1ff))/0x5+-parseInt(_0x40f5a7(0x200))/0x6+parseInt(_0x40f5a7(0x204))/0x7+parseInt(_0x40f5a7(0x205))/0x8;if(_0x663327===_0x102524)break;else _0x5013eb['push'](_0x5013eb['shift']());}catch(_0xa523a8){_0x5013eb['push'](_0x5013eb['shift']());}}}(_0x4539,0x8d334));import{Collection as _0x11f5c5}from'ckeditor5/src/utils.js';const ts=_0x2bd7bb(0x1f3);export class PromptHistory extends _0x11f5c5{constructor(){const _0x268369=_0x2bd7bb;super(),this[_0x268369(0x1f1)](),this['on'](_0x268369(0x202),(_0x46d13c,_0x602937)=>{const _0x2c3616=_0x268369,_0x3dee21=os(_0x602937[_0x2c3616(0x1ef)]);for(const _0x2b2a18 of this)if(_0x2b2a18!=_0x602937&&os(_0x2b2a18[_0x2c3616(0x1ef)])===_0x3dee21){this[_0x2c3616(0x203)](_0x2b2a18);break;}this[_0x2c3616(0x1f2)]>0x14&&this[_0x2c3616(0x203)](this[_0x2c3616(0x201)]),this[_0x2c3616(0x1f5)]();}),this['on'](_0x268369(0x203),()=>{const _0x59fec1=_0x268369;this[_0x59fec1(0x1f5)]();});}[_0x2bd7bb(0x1f1)](){const _0x20ccc5=_0x2bd7bb,_0x4128f0=sessionStorage[_0x20ccc5(0x1fb)](ts)||'[]';this[_0x20ccc5(0x1f8)](JSON[_0x20ccc5(0x1fa)](_0x4128f0));}[_0x2bd7bb(0x1f5)](){const _0x2916a7=_0x2bd7bb;sessionStorage[_0x2916a7(0x206)](ts,JSON[_0x2916a7(0x1f0)](this[_0x2916a7(0x1fe)](_0x3d9e7e=>_0x3d9e7e)));}}function os(_0x4e88d4){const _0x16bfa1=_0x2bd7bb;return _0x4e88d4[_0x16bfa1(0x1f4)]()[_0x16bfa1(0x1f9)]();}function _0x4539(){const _0x472074=['695429jGOVlU','18706792xHYoZs','setItem','prompt','stringify','_loadFromSessionStorage','length','CKEditor/AIFormView/PromptHistory','toLowerCase','_saveToSessionStorage','963707nUWabW','1184516vlPyUx','addMany','trim','parse','getItem','2YHDXKo','1638444pQzOpc','map','2150060WvGmoY','6453756QpxlVl','last','add','remove'];_0x4539=function(){return _0x472074;};return _0x4539();}
23
+ function _0x2179(){const _0x3a2639=['prompt','getItem','1882848JINjWF','CKEditor/AIFormView/PromptHistory','7025148zlVPJx','3300978caAmvL','1GmJngR','stringify','addMany','add','trim','_saveToSessionStorage','_loadFromSessionStorage','5scPFuN','10889480YnhfQJ','last','remove','8WdphLN','length','1197528ENxkcf','setItem','map','toLowerCase','parse','2972852XYaZnJ','734174tRKksq'];_0x2179=function(){return _0x3a2639;};return _0x2179();}const _0x14e11e=_0x4395;(function(_0x582370,_0x1143c7){const _0x171678=_0x4395,_0x1c06d4=_0x582370();while(!![]){try{const _0x34f9ba=parseInt(_0x171678(0x9b))/0x1*(-parseInt(_0x171678(0x93))/0x2)+parseInt(_0x171678(0x97))/0x3+parseInt(_0x171678(0x8e))/0x4+-parseInt(_0x171678(0x88))/0x5*(parseInt(_0x171678(0x9a))/0x6)+parseInt(_0x171678(0x94))/0x7+parseInt(_0x171678(0x8c))/0x8*(parseInt(_0x171678(0x99))/0x9)+parseInt(_0x171678(0x89))/0xa;if(_0x34f9ba===_0x1143c7)break;else _0x1c06d4['push'](_0x1c06d4['shift']());}catch(_0x93156e){_0x1c06d4['push'](_0x1c06d4['shift']());}}}(_0x2179,0xd322b));import{Collection as _0x6d8a4a}from'ckeditor5/src/utils.js';function _0x4395(_0x54310b,_0x3ee433){const _0x2179d7=_0x2179();return _0x4395=function(_0x439532,_0x246eef){_0x439532=_0x439532-0x84;let _0x3e3df6=_0x2179d7[_0x439532];return _0x3e3df6;},_0x4395(_0x54310b,_0x3ee433);}const ts=_0x14e11e(0x98);export class PromptHistory extends _0x6d8a4a{constructor(){const _0x3e533d=_0x14e11e;super(),this[_0x3e533d(0x87)](),this['on'](_0x3e533d(0x84),(_0x44942d,_0x10cbaf)=>{const _0x270570=_0x3e533d,_0x33244a=os(_0x10cbaf[_0x270570(0x95)]);for(const _0x35d0c3 of this)if(_0x35d0c3!=_0x10cbaf&&os(_0x35d0c3[_0x270570(0x95)])===_0x33244a){this[_0x270570(0x8b)](_0x35d0c3);break;}this[_0x270570(0x8d)]>0x14&&this[_0x270570(0x8b)](this[_0x270570(0x8a)]),this[_0x270570(0x86)]();}),this['on'](_0x3e533d(0x8b),()=>{const _0x6da50c=_0x3e533d;this[_0x6da50c(0x86)]();});}[_0x14e11e(0x87)](){const _0x41ae59=_0x14e11e,_0x21105f=sessionStorage[_0x41ae59(0x96)](ts)||'[]';this[_0x41ae59(0x9d)](JSON[_0x41ae59(0x92)](_0x21105f));}[_0x14e11e(0x86)](){const _0x51b344=_0x14e11e;sessionStorage[_0x51b344(0x8f)](ts,JSON[_0x51b344(0x9c)](this[_0x51b344(0x90)](_0x2409b4=>_0x2409b4)));}}function os(_0x58a9a7){const _0x383d2e=_0x14e11e;return _0x58a9a7[_0x383d2e(0x91)]()[_0x383d2e(0x85)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe8c95e=_0x3204;(function(_0x3926e9,_0x29e353){const _0x3581e8=_0x3204,_0x16fe41=_0x3926e9();while(!![]){try{const _0x216336=-parseInt(_0x3581e8(0x1bb))/0x1+parseInt(_0x3581e8(0x1d4))/0x2+parseInt(_0x3581e8(0x1b9))/0x3+parseInt(_0x3581e8(0x1bf))/0x4*(parseInt(_0x3581e8(0x1b7))/0x5)+-parseInt(_0x3581e8(0x1c8))/0x6+-parseInt(_0x3581e8(0x1cf))/0x7+-parseInt(_0x3581e8(0x1d3))/0x8*(-parseInt(_0x3581e8(0x1c6))/0x9);if(_0x216336===_0x29e353)break;else _0x16fe41['push'](_0x16fe41['shift']());}catch(_0x20db0d){_0x16fe41['push'](_0x16fe41['shift']());}}}(_0x1fe0,0xaef5d));import{Command as _0x4ba69b}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x4e6c00}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x4ba69b{[_0xe8c95e(0x1b3)];constructor(_0x4adc50,_0x182d0e){const _0x1f280e=_0xe8c95e;super(_0x4adc50),this[_0x1f280e(0x1b3)]=_0x182d0e,this[_0x1f280e(0x1c3)](_0x1f280e(0x1cc),[]),this['on'](_0x1f280e(0x1c0),(_0x2f4621,_0x4d4bcf,_0x514850)=>{const _0x52bcfe=_0x1f280e;this[_0x52bcfe(0x1b1)]&&(this[_0x52bcfe(0x1cc)]=F(this[_0x52bcfe(0x1b3)],_0x514850));}),this[_0x1f280e(0x1c3)](_0x1f280e(0x1c1),!0x1),this['on'](_0x1f280e(0x1b6),(_0x434769,_0x4a14e2,_0x39792f)=>{const _0x3a1122=_0x1f280e;this[_0x3a1122(0x1cc)]=_0x39792f?F(this[_0x3a1122(0x1b3)],this[_0x3a1122(0x1c1)]):[];});}[_0xe8c95e(0x1c7)](){const _0x43e714=_0xe8c95e,_0x301663=this[_0x43e714(0x1c5)][_0x43e714(0x1ad)];this[_0x43e714(0x1c1)]=function(_0x125ee5){const _0x53a5ee=_0x43e714,_0x32831d=_0x125ee5[_0x53a5ee(0x1c9)][_0x53a5ee(0x1ae)];return _0x32831d[_0x53a5ee(0x1d7)]?0x0!==[..._0x32831d[_0x53a5ee(0x1ca)]()][_0x53a5ee(0x1bc)]&&![..._0x32831d[_0x53a5ee(0x1ca)]()][0x0][_0x53a5ee(0x1d0)]:!!_0x125ee5[_0x53a5ee(0x1cd)](_0x32831d[_0x53a5ee(0x1b5)]());}(_0x301663);const _0x2163b7=_0x301663[_0x43e714(0x1c9)][_0x43e714(0x1ae)],_0x25f9ef=this[_0x43e714(0x1c5)][_0x43e714(0x1ce)][_0x43e714(0x1bd)](_0x43e714(0x1be));for(const _0x2dfac7 of _0x2163b7[_0x43e714(0x1c2)]())for(const _0x2908a6 of _0x2dfac7[_0x43e714(0x1d1)]())if(_0x2908a6['is'](_0x43e714(0x1b4))&&_0x25f9ef[_0x43e714(0x1b8)](_0x2908a6[_0x43e714(0x1c4)]))return void(this[_0x43e714(0x1b1)]=!0x1);this[_0x43e714(0x1b1)]=!0x0;}[_0xe8c95e(0x1d5)](_0xc27e1f='',_0x241d37='',_0x5c8675=_0xe8c95e(0x1af)){const _0x2b57fc=_0xe8c95e;this[_0x2b57fc(0x1c5)][_0x2b57fc(0x1cb)][_0x2b57fc(0x1bd)](_0x4e6c00)[_0x2b57fc(0x1ba)](_0xc27e1f,_0x241d37,_0x5c8675);}}function _0x1fe0(){const _0x136e3c=['_commandDefinitions','element','getFirstRange','change:isEnabled','5sDDUGQ','includes','1449933idBkUI','showUI','1303148EKweAq','length','get','ai.aiAssistant.disabledElements','5192048EYPins','change:_hasContext','_hasContext','getRanges','set','name','editor','72svLxxw','refresh','3980904CpDnNa','document','getSelectedBlocks','plugins','enabledCommandsIds','hasContent','config','7827813xbDkjr','isEmpty','getItems','from','1534096NnKOgN','972218iKwQFf','execute','requiresContent','isCollapsed','model','selection','custom','values','isEnabled','add'];_0x1fe0=function(){return _0x136e3c;};return _0x1fe0();}function _0x3204(_0x38a48f,_0x516756){const _0x1fe0a3=_0x1fe0();return _0x3204=function(_0x320457,_0x412fd5){_0x320457=_0x320457-0x1ad;let _0x53356d=_0x1fe0a3[_0x320457];return _0x53356d;},_0x3204(_0x38a48f,_0x516756);}function F(_0x1618eb,_0x5bbf9f){const _0x484fcb=_0xe8c95e,_0x2df345=new Set();for(const _0x5a0a88 of _0x1618eb[_0x484fcb(0x1b0)]())(_0x5bbf9f||!0x1===_0x5a0a88[_0x484fcb(0x1d6)])&&_0x2df345[_0x484fcb(0x1b2)](_0x5a0a88['id']);return Array[_0x484fcb(0x1d2)](_0x2df345);}
23
+ const _0x23a766=_0x1020;function _0x1020(_0x22cf58,_0x4485c8){const _0x4703e5=_0x4703();return _0x1020=function(_0x102086,_0x29df04){_0x102086=_0x102086-0x9b;let _0x55b11e=_0x4703e5[_0x102086];return _0x55b11e;},_0x1020(_0x22cf58,_0x4485c8);}(function(_0x2315d4,_0x1be7c5){const _0x344378=_0x1020,_0x56c173=_0x2315d4();while(!![]){try{const _0x2e2b11=parseInt(_0x344378(0xb5))/0x1*(-parseInt(_0x344378(0xac))/0x2)+-parseInt(_0x344378(0xa8))/0x3*(-parseInt(_0x344378(0xbb))/0x4)+parseInt(_0x344378(0xc4))/0x5+parseInt(_0x344378(0xab))/0x6+parseInt(_0x344378(0xb6))/0x7*(-parseInt(_0x344378(0xbc))/0x8)+parseInt(_0x344378(0xa9))/0x9+-parseInt(_0x344378(0xbd))/0xa*(-parseInt(_0x344378(0xa6))/0xb);if(_0x2e2b11===_0x1be7c5)break;else _0x56c173['push'](_0x56c173['shift']());}catch(_0x1569af){_0x56c173['push'](_0x56c173['shift']());}}}(_0x4703,0x424e6));import{Command as _0x2a17de}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x46e3f7}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x2a17de{[_0x23a766(0xb4)];constructor(_0x27ec92,_0x124517){const _0x1d3847=_0x23a766;super(_0x27ec92),this[_0x1d3847(0xb4)]=_0x124517,this[_0x1d3847(0xb7)](_0x1d3847(0xc7),[]),this['on'](_0x1d3847(0xba),(_0x2145c4,_0x4f2b78,_0x856b9d)=>{const _0xbc617f=_0x1d3847;this[_0xbc617f(0xc1)]&&(this[_0xbc617f(0xc7)]=F(this[_0xbc617f(0xb4)],_0x856b9d));}),this[_0x1d3847(0xb7)](_0x1d3847(0x9e),!0x1),this['on'](_0x1d3847(0xc2),(_0x2642f4,_0x2351fc,_0x230a4b)=>{const _0x4d63c9=_0x1d3847;this[_0x4d63c9(0xc7)]=_0x230a4b?F(this[_0x4d63c9(0xb4)],this[_0x4d63c9(0x9e)]):[];});}[_0x23a766(0xa4)](){const _0x5cc6c1=_0x23a766,_0x597a65=this[_0x5cc6c1(0xa5)][_0x5cc6c1(0xa2)];this[_0x5cc6c1(0x9e)]=function(_0x383f2b){const _0x47822f=_0x5cc6c1,_0x43bfe=_0x383f2b[_0x47822f(0xc3)][_0x47822f(0xc6)];return _0x43bfe[_0x47822f(0x9b)]?0x0!==[..._0x43bfe[_0x47822f(0xb3)]()][_0x47822f(0xa0)]&&![..._0x43bfe[_0x47822f(0xb3)]()][0x0][_0x47822f(0xb2)]:!!_0x383f2b[_0x47822f(0xaa)](_0x43bfe[_0x47822f(0xc0)]());}(_0x597a65);const _0x4e475d=_0x597a65[_0x5cc6c1(0xc3)][_0x5cc6c1(0xc6)],_0x40292e=this[_0x5cc6c1(0xa5)][_0x5cc6c1(0x9f)][_0x5cc6c1(0xb0)](_0x5cc6c1(0xa1));for(const _0x1346fd of _0x4e475d[_0x5cc6c1(0xa7)]())for(const _0x5cc1de of _0x1346fd[_0x5cc6c1(0xa3)]())if(_0x5cc1de['is'](_0x5cc6c1(0xbf))&&_0x40292e[_0x5cc6c1(0xae)](_0x5cc1de[_0x5cc6c1(0xaf)]))return void(this[_0x5cc6c1(0xc1)]=!0x1);this[_0x5cc6c1(0xc1)]=!0x0;}[_0x23a766(0xbe)](_0x20a8ca='',_0x2edd7c='',_0x56f542=_0x23a766(0x9c)){const _0x3de6b8=_0x23a766;this[_0x3de6b8(0xa5)][_0x3de6b8(0xad)][_0x3de6b8(0xb0)](_0x46e3f7)[_0x3de6b8(0x9d)](_0x20a8ca,_0x2edd7c,_0x56f542);}}function F(_0x50c20d,_0x2e0610){const _0x555797=_0x23a766,_0x386946=new Set();for(const _0x19835f of _0x50c20d[_0x555797(0xc5)]())(_0x2e0610||!0x1===_0x19835f[_0x555797(0xb1)])&&_0x386946[_0x555797(0xb9)](_0x19835f['id']);return Array[_0x555797(0xb8)](_0x386946);}function _0x4703(){const _0x2b27a9=['isEnabled','change:isEnabled','document','732470NyTSbj','values','selection','enabledCommandsIds','isCollapsed','custom','showUI','_hasContext','config','length','ai.aiAssistant.disabledElements','model','getItems','refresh','editor','22qZCaDA','getRanges','722595XhcxOp','2183211MSSPBG','hasContent','2246514DIWdrW','5774WXxzVi','plugins','includes','name','get','requiresContent','isEmpty','getSelectedBlocks','_commandDefinitions','163AGQBXX','14umMkPZ','set','from','add','change:_hasContext','4ANfMcg','1226672jYbbMp','222410cuBVpY','execute','element','getFirstRange'];_0x4703=function(){return _0x2b27a9;};return _0x4703();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3c7cc6,_0x3ab6f1,_0x3ed0b7){const t=_0x3c7cc6['t'];switch(_0x3ab6f1){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',_0x3ed0b7);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x3ed0b7);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'},_0x3ed0b7);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 _0x3ab6f1;}}
23
+ export function getTranslation(_0x4ef3ec,_0x7f9dda,_0x378d30){const t=_0x4ef3ec['t'];switch(_0x7f9dda){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',_0x378d30);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x378d30);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'},_0x378d30);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 _0x7f9dda;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x64245a,_0xc45b7f){const _0x14adf2=(0x0,_0xc45b7f['t'])('Other');return _0x64245a['length']?'groupId'in _0x64245a[0x0]?_0x64245a:[{'groupId':'_ungrouppedCommands','groupLabel':_0x14adf2,'order':0x1/0x0,'commands':_0x64245a}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x14adf2,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x31043a,_0x4d02c9){const _0x30c33e=(0x0,_0x4d02c9['t'])('Other');return _0x31043a['length']?'groupId'in _0x31043a[0x0]?_0x31043a:[{'groupId':'_ungrouppedCommands','groupLabel':_0x30c33e,'order':0x1/0x0,'commands':_0x31043a}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x30c33e,'order':0x1/0x0,'commands':[]}];}