@ckeditor/ckeditor5-ai 44.2.0-alpha.16 → 44.2.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +9 -9
  148. package/src/adapters/aiadapter.js +1 -1
  149. package/src/adapters/aitextadapter.js +1 -1
  150. package/src/adapters/awstextadapter.js +1 -1
  151. package/src/adapters/openaitextadapter.js +1 -1
  152. package/src/aiassistant.js +1 -1
  153. package/src/aiassistantediting.js +1 -1
  154. package/src/aiassistantui.js +1 -1
  155. package/src/index.js +1 -1
  156. package/src/legacyerrors.js +1 -1
  157. package/src/ui/aiassistantcontroller.js +2 -2
  158. package/src/ui/form/aiformcontentarea.js +1 -1
  159. package/src/ui/form/aiformerrorview.js +1 -1
  160. package/src/ui/form/aiformpromptview.js +1 -1
  161. package/src/ui/form/aiformtoolbarview.js +1 -1
  162. package/src/ui/form/aiformview.js +1 -1
  163. package/src/ui/form/aihistorylistitemview.js +1 -1
  164. package/src/ui/form/aihistorylistview.js +1 -1
  165. package/src/ui/form/prompthistory.js +1 -1
  166. package/src/ui/showaiassistantcommand.js +1 -1
  167. package/src/utils/common-translations.js +1 -1
  168. package/src/utils/normalizecommandsconfig.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55179a=_0x3457;function _0x3457(_0x25c7a0,_0x2bd088){const _0x203811=_0x2038();return _0x3457=function(_0x34574b,_0x3932b7){_0x34574b=_0x34574b-0x6e;let _0x5ee90e=_0x203811[_0x34574b];return _0x5ee90e;},_0x3457(_0x25c7a0,_0x2bd088);}(function(_0x10ffa0,_0x848241){const _0x2cc764=_0x3457,_0x26ca04=_0x10ffa0();while(!![]){try{const _0x54a33f=parseInt(_0x2cc764(0x71))/0x1+-parseInt(_0x2cc764(0x6e))/0x2*(-parseInt(_0x2cc764(0x80))/0x3)+parseInt(_0x2cc764(0x76))/0x4+parseInt(_0x2cc764(0x91))/0x5+parseInt(_0x2cc764(0x8d))/0x6+-parseInt(_0x2cc764(0x84))/0x7*(-parseInt(_0x2cc764(0x8f))/0x8)+-parseInt(_0x2cc764(0x72))/0x9*(parseInt(_0x2cc764(0x7d))/0xa);if(_0x54a33f===_0x848241)break;else _0x26ca04['push'](_0x26ca04['shift']());}catch(_0x38987b){_0x26ca04['push'](_0x26ca04['shift']());}}}(_0x2038,0x51240));import{ToolbarView as _0x428fc3,ButtonView as _0x5a417d}from'ckeditor5/src/ui.js';import{getTranslation as _0x87dfb9}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x55179a(0x74),'INSERT':_0x55179a(0x7f)};export default class at extends _0x428fc3{constructor(_0x4ebf4d){const _0x3bbe64=_0x55179a;super(_0x4ebf4d),this[_0x3bbe64(0x82)](_0x3bbe64(0x8a),!0x1),this[_0x3bbe64(0x82)](_0x3bbe64(0x83),AIFormToolbarViewMainActionLabel[_0x3bbe64(0x81)]),this[_0x3bbe64(0x75)]=this[_0x3bbe64(0x70)]('',_0x3bbe64(0x7b)),this[_0x3bbe64(0x75)][_0x3bbe64(0x8b)](_0x3bbe64(0x89))['to'](this,_0x3bbe64(0x83),_0x5bf04a=>_0x87dfb9(_0x4ebf4d,_0x3bbe64(0x86)+_0x5bf04a[_0x3bbe64(0x7c)]()+_0x3bbe64(0x7a))),this[_0x3bbe64(0x88)]=this[_0x3bbe64(0x70)](_0x87dfb9(_0x4ebf4d,_0x3bbe64(0x7e))),this[_0x3bbe64(0x6f)]=this[_0x3bbe64(0x70)](_0x87dfb9(_0x4ebf4d,_0x3bbe64(0x8c))),this[_0x3bbe64(0x78)]=this[_0x3bbe64(0x70)](_0x87dfb9(_0x4ebf4d,_0x3bbe64(0x87)));const _0x44e52a=this[_0x3bbe64(0x8e)];this[_0x3bbe64(0x73)]({'attributes':{'class':[_0x3bbe64(0x85),_0x44e52a['if'](_0x3bbe64(0x8a),_0x3bbe64(0x77),_0x46b00f=>!_0x46b00f)]}}),this[_0x3bbe64(0x92)][_0x3bbe64(0x90)]([this[_0x3bbe64(0x75)],this[_0x3bbe64(0x88)],this[_0x3bbe64(0x6f)],this[_0x3bbe64(0x78)]]);}[_0x55179a(0x70)](_0x174a4d,_0x14a7e3){const _0x1936fc=_0x55179a,_0x39f59e=new _0x5a417d(this[_0x1936fc(0x79)]);return _0x39f59e[_0x1936fc(0x82)]({'label':_0x174a4d,'class':_0x14a7e3||'','isVisible':!0x0,'withText':!0x0}),_0x39f59e;}}function _0x2038(){const _0x59a17f=['isVisible','bind','Try\x20again','2400978tmkmTT','bindTemplate','4977584KabaPO','addMany','1592005CqIKGI','items','190XDMyxV','tryAgainButton','_createButton','114416PmnHwU','369855NOBMlG','extendTemplate','replace','replaceButton','1223436FGkvEA','ck-hidden','stopButton','locale','_CONTENT','ck-button-action','toUpperCase','480PPXCDW','Insert\x20below','insert','17175rkoTCA','REPLACE','set','mainAction','7vREMob','ck-ai-form__toolbar','AI_','Stop','insertButton','label'];_0x2038=function(){return _0x59a17f;};return _0x2038();}
23
+ const _0x1e76e8=_0x5866;(function(_0x12ede9,_0x529d36){const _0x56179b=_0x5866,_0x2cd1e2=_0x12ede9();while(!![]){try{const _0x4d2a2b=parseInt(_0x56179b(0x13f))/0x1+-parseInt(_0x56179b(0x155))/0x2+-parseInt(_0x56179b(0x150))/0x3+parseInt(_0x56179b(0x13c))/0x4+-parseInt(_0x56179b(0x156))/0x5*(-parseInt(_0x56179b(0x13b))/0x6)+parseInt(_0x56179b(0x147))/0x7+parseInt(_0x56179b(0x13d))/0x8;if(_0x4d2a2b===_0x529d36)break;else _0x2cd1e2['push'](_0x2cd1e2['shift']());}catch(_0x34e75a){_0x2cd1e2['push'](_0x2cd1e2['shift']());}}}(_0x3da7,0x4871d));function _0x3da7(){const _0x35b414=['Insert\x20below','locale','insertButton','bind','2946202FNgFYr','ck-hidden','addMany','bindTemplate','isVisible','REPLACE','set','replace','toUpperCase','1386696KSpmjf','_createButton','insert','tryAgainButton','stopButton','1155410ZYrMjc','5nzILDJ','Try\x20again','_CONTENT','items','label','ck-button-action','Stop','extendTemplate','180306myqGNH','2035380NsxPvD','2123864jCcJtN','replaceButton','111405FETalM','mainAction','AI_','ck-ai-form__toolbar'];_0x3da7=function(){return _0x35b414;};return _0x3da7();}function _0x5866(_0x17199f,_0x5055e3){const _0x3da78d=_0x3da7();return _0x5866=function(_0x5866a2,_0x37855d){_0x5866a2=_0x5866a2-0x137;let _0x18ab88=_0x3da78d[_0x5866a2];return _0x18ab88;},_0x5866(_0x17199f,_0x5055e3);}import{ToolbarView as _0x3bceb5,ButtonView as _0x1a93cc}from'ckeditor5/src/ui.js';import{getTranslation as _0x54cc33}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1e76e8(0x14e),'INSERT':_0x1e76e8(0x152)};export default class at extends _0x3bceb5{constructor(_0x1ba507){const _0x46c309=_0x1e76e8;super(_0x1ba507),this[_0x46c309(0x14d)](_0x46c309(0x14b),!0x1),this[_0x46c309(0x14d)](_0x46c309(0x140),AIFormToolbarViewMainActionLabel[_0x46c309(0x14c)]),this[_0x46c309(0x13e)]=this[_0x46c309(0x151)]('',_0x46c309(0x138)),this[_0x46c309(0x13e)][_0x46c309(0x146)](_0x46c309(0x137))['to'](this,_0x46c309(0x140),_0x43c4d2=>_0x54cc33(_0x1ba507,_0x46c309(0x141)+_0x43c4d2[_0x46c309(0x14f)]()+_0x46c309(0x158))),this[_0x46c309(0x145)]=this[_0x46c309(0x151)](_0x54cc33(_0x1ba507,_0x46c309(0x143))),this[_0x46c309(0x153)]=this[_0x46c309(0x151)](_0x54cc33(_0x1ba507,_0x46c309(0x157))),this[_0x46c309(0x154)]=this[_0x46c309(0x151)](_0x54cc33(_0x1ba507,_0x46c309(0x139)));const _0x44b97d=this[_0x46c309(0x14a)];this[_0x46c309(0x13a)]({'attributes':{'class':[_0x46c309(0x142),_0x44b97d['if'](_0x46c309(0x14b),_0x46c309(0x148),_0xd51bf6=>!_0xd51bf6)]}}),this[_0x46c309(0x159)][_0x46c309(0x149)]([this[_0x46c309(0x13e)],this[_0x46c309(0x145)],this[_0x46c309(0x153)],this[_0x46c309(0x154)]]);}[_0x1e76e8(0x151)](_0x10ce23,_0x2a0156){const _0x2bc26c=_0x1e76e8,_0x1d7f2f=new _0x1a93cc(this[_0x2bc26c(0x144)]);return _0x1d7f2f[_0x2bc26c(0x14d)]({'label':_0x10ce23,'class':_0x2a0156||'','isVisible':!0x0,'withText':!0x0}),_0x1d7f2f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1975c7=_0x452b;(function(_0x221d86,_0x89de58){const _0x1e32bc=_0x452b,_0xf3384=_0x221d86();while(!![]){try{const _0x4a40c8=-parseInt(_0x1e32bc(0x1ae))/0x1*(parseInt(_0x1e32bc(0x1a7))/0x2)+-parseInt(_0x1e32bc(0x1ac))/0x3+parseInt(_0x1e32bc(0x19c))/0x4*(parseInt(_0x1e32bc(0x18d))/0x5)+-parseInt(_0x1e32bc(0x17e))/0x6+-parseInt(_0x1e32bc(0x1b8))/0x7+-parseInt(_0x1e32bc(0x18c))/0x8*(-parseInt(_0x1e32bc(0x1b4))/0x9)+parseInt(_0x1e32bc(0x175))/0xa;if(_0x4a40c8===_0x89de58)break;else _0xf3384['push'](_0xf3384['shift']());}catch(_0x99b348){_0xf3384['push'](_0xf3384['shift']());}}}(_0x406a,0xa9518));import{FocusTracker as _0xb8c252,KeystrokeHandler as _0x2781a3}from'ckeditor5/src/utils.js';import{View as _0x364f35,FocusCycler as _0x3f11b3,createLabeledTextarea as _0x235246}from'ckeditor5/src/ui.js';import _0x57ef70,{AIFormToolbarViewMainActionLabel as _0x48dead}from'./aiformtoolbarview.js';import _0x2fdfb0 from'./aiformcontentarea.js';import _0x1e551a from'./aiformerrorview.js';import _0x12baea from'./aiformpromptview.js';import _0x339bc7 from'./aihistorylistview.js';function _0x406a(){const _0x196195=['focusLast','stopProcessing','render','_createHistoryView','contentArea','keystrokes','isError','setTemplate','copyButtonView','focusTracker','Ask\x20AI\x20to\x20improve\x20generated\x20text','value','13999930KtWzHn','_createToolbar','high','trim','tryAgainEvent','insertContentBelow','historyGroupView','search','tryAgainButton','6566694fQDDEo','insertButton','prompt','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','ck-ai-form-content','clear','tab','fieldView','focusCycler','_createPromptView','queryView','shift\x20+\x20tab','focus','_promptHistory','8RTMoGI','5ydiHak','ck-hidden','locale','submitPrompt','text','set','isProcessing','promptView','element','isVisible','bindTemplate','reset','bindTo','clearHistory','mainAction','5543084IjEZve','startProcessing','replaceButton','REPLACE','Empty\x20history','focusFirst','AI_ERROR_FAILED','handleError','fire','toolbar','finishProcessing','106dgMKKP','delegate','label','Ask\x20AI\x20to\x20edit\x20or\x20generate','chain','1818276LPPkUj','_focusables','23879jJYshn','add','div','createCollection','bind','listenTo','10292679pvKFyg','isEnabled','errorView','submit','1888173kiVQEy','ck-ai-form','stopButton','execute','items','replaceContent'];_0x406a=function(){return _0x196195;};return _0x406a();}import _0x1745f4 from'./aihistorylistitemview.js';import _0x4695a4 from'./prompthistory.js';import{getTranslation as _0x1c4f79}from'../../utils/common-translations.js';import{escape as _0x2b7836}from'lodash-es';function _0x452b(_0xbe23b,_0x1db67e){const _0x406a01=_0x406a();return _0x452b=function(_0x452b3b,_0x3144f5){_0x452b3b=_0x452b3b-0x172;let _0x1a7728=_0x406a01[_0x452b3b];return _0x1a7728;},_0x452b(_0xbe23b,_0x1db67e);}export default class k extends _0x364f35{constructor(_0x834d6d,_0x1719a8,_0x571cac=''){const _0x395dd6=_0x452b;super(_0x834d6d),this[_0x395dd6(0x192)](_0x395dd6(0x1b5),!0x0),this[_0x395dd6(0x192)](_0x395dd6(0x193),!0x1),this[_0x395dd6(0x192)](_0x395dd6(0x180),''),this[_0x395dd6(0x192)](_0x395dd6(0x174),''),this[_0x395dd6(0x192)](_0x395dd6(0x1c4),!0x1),this[_0x395dd6(0x192)](_0x395dd6(0x19b),_0x48dead[_0x395dd6(0x19f)]),this[_0x395dd6(0x18b)]=new _0x4695a4(),this[_0x395dd6(0x1b6)]=new _0x1e551a(_0x834d6d),this[_0x395dd6(0x1c2)]=new _0x2fdfb0(_0x834d6d,_0x571cac),this[_0x395dd6(0x1c2)][_0x395dd6(0x1b2)](_0x395dd6(0x193))['to'](this),this[_0x395dd6(0x1c2)][_0x395dd6(0x1b2)](_0x395dd6(0x174))['to'](this),this[_0x395dd6(0x1a5)]=this[_0x395dd6(0x176)](),this[_0x395dd6(0x1a5)][_0x395dd6(0x1b2)](_0x395dd6(0x19b))['to'](this),this[_0x395dd6(0x194)]=this[_0x395dd6(0x187)](),this[_0x395dd6(0x172)]=new _0xb8c252(),this[_0x395dd6(0x1c3)]=new _0x2781a3(),this[_0x395dd6(0x1ad)]=this[_0x395dd6(0x1b1)]([this[_0x395dd6(0x1c2)],this[_0x395dd6(0x1c2)][_0x395dd6(0x1c6)],this[_0x395dd6(0x1a5)],this[_0x395dd6(0x194)]]),this[_0x395dd6(0x186)]=new _0x3f11b3({'focusables':this[_0x395dd6(0x1ad)],'focusTracker':this[_0x395dd6(0x172)],'keystrokeHandler':this[_0x395dd6(0x1c3)],'actions':{'focusPrevious':_0x395dd6(0x189),'focusNext':_0x395dd6(0x184)}}),this[_0x395dd6(0x186)][_0x395dd6(0x1ab)](this[_0x395dd6(0x194)][_0x395dd6(0x186)]),this[_0x395dd6(0x194)][_0x395dd6(0x188)][_0x395dd6(0x185)][_0x395dd6(0x1b2)](_0x395dd6(0x174))['to'](this,_0x395dd6(0x180));const _0x45a7b8=this[_0x395dd6(0x197)];this[_0x395dd6(0x1c5)]({'tag':_0x395dd6(0x1b0),'attributes':{'class':['ck',_0x395dd6(0x1b9),_0x1719a8],'tabindex':'-1'},'children':[{'tag':_0x395dd6(0x1b0),'attributes':{'class':['ck',_0x395dd6(0x182)]},'children':[{'tag':_0x395dd6(0x1b0),'attributes':{'class':[_0x45a7b8['if'](_0x395dd6(0x1c4),_0x395dd6(0x18e),_0x2120d1=>!_0x2120d1)]},'children':[this[_0x395dd6(0x1b6)]]},this[_0x395dd6(0x1c2)],this[_0x395dd6(0x1a5)],this[_0x395dd6(0x194)]]}]});}[_0x1975c7(0x1c0)](){const _0x4c9dc4=_0x1975c7;super[_0x4c9dc4(0x1c0)](),this[_0x4c9dc4(0x172)][_0x4c9dc4(0x1af)](this[_0x4c9dc4(0x1c2)][_0x4c9dc4(0x195)]),this[_0x4c9dc4(0x172)][_0x4c9dc4(0x1af)](this[_0x4c9dc4(0x1c2)][_0x4c9dc4(0x1c6)][_0x4c9dc4(0x195)]),this[_0x4c9dc4(0x172)][_0x4c9dc4(0x1af)](this[_0x4c9dc4(0x1a5)][_0x4c9dc4(0x195)]),this[_0x4c9dc4(0x172)][_0x4c9dc4(0x1af)](this[_0x4c9dc4(0x194)][_0x4c9dc4(0x195)]),this[_0x4c9dc4(0x1c3)][_0x4c9dc4(0x1b3)](this[_0x4c9dc4(0x195)]);}[_0x1975c7(0x18a)](_0x363e17=0x1){const _0x3b3f3b=_0x1975c7;-0x1===_0x363e17?this[_0x3b3f3b(0x186)][_0x3b3f3b(0x1be)]():this[_0x3b3f3b(0x186)][_0x3b3f3b(0x1a1)]();}[_0x1975c7(0x198)](){const _0x22079e=_0x1975c7;this[_0x22079e(0x180)]='',this[_0x22079e(0x174)]='',this[_0x22079e(0x1c4)]=!0x1,this[_0x22079e(0x194)][_0x22079e(0x198)](),this[_0x22079e(0x1c2)][_0x22079e(0x196)]=!0x1,this[_0x22079e(0x1a5)][_0x22079e(0x196)]=!0x1;}[_0x1975c7(0x187)](){const _0x57b290=_0x1975c7,_0x1a371b=this[_0x57b290(0x18f)],_0x110926=new _0x12baea(_0x1a371b,{'queryView':{'label':_0x1c4f79(_0x1a371b,_0x57b290(0x1aa)),'creator':_0x235246,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1c4f79(_0x1a371b,_0x57b290(0x1a0)),'secondary':_0x1c4f79(_0x1a371b,_0x57b290(0x181))}}},'filteredView':this[_0x57b290(0x1c1)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x110926[_0x57b290(0x1b2)](_0x57b290(0x1b5))['to'](this,_0x57b290(0x1b5),this,_0x57b290(0x193),(_0x465416,_0x893acc)=>_0x465416&&!_0x893acc),this[_0x57b290(0x1b3)](_0x110926,_0x57b290(0x1b7),(_0x44226d,_0x4735b1)=>{const _0x2e00f8=_0x57b290;this[_0x2e00f8(0x180)]=_0x4735b1;const _0x323460=_0x2b7836(_0x4735b1);this[_0x2e00f8(0x1a4)](_0x2e00f8(0x190),_0x323460),_0x4735b1[_0x2e00f8(0x178)]()&&this[_0x2e00f8(0x18b)][_0x2e00f8(0x1af)]({'prompt':_0x323460},0x0);},{'priority':_0x57b290(0x177)}),_0x110926;}[_0x1975c7(0x1c1)](){const _0x3224ae=_0x1975c7,_0x562b15=new _0x339bc7(this[_0x3224ae(0x18f)]);return _0x562b15[_0x3224ae(0x17b)][_0x3224ae(0x1bc)][_0x3224ae(0x199)](this[_0x3224ae(0x18b)])['as'](_0x1745f4),_0x562b15['on'](_0x3224ae(0x19a),()=>{const _0x6992ab=_0x3224ae;this[_0x6992ab(0x18b)][_0x6992ab(0x183)](),this[_0x6992ab(0x194)][_0x6992ab(0x17c)](''),this[_0x6992ab(0x194)][_0x6992ab(0x18a)]();}),_0x562b15;}[_0x1975c7(0x176)](){const _0x52a51e=_0x1975c7,_0x41ad4c=new _0x57ef70(this[_0x52a51e(0x18f)]);return _0x41ad4c[_0x52a51e(0x19e)][_0x52a51e(0x1b2)](_0x52a51e(0x1b5))['to'](this,_0x52a51e(0x1b5),this,_0x52a51e(0x193),this,_0x52a51e(0x174),(_0x196eb9,_0x367cde,_0x28e7b1)=>_0x196eb9&&!_0x367cde&&!!_0x28e7b1),_0x41ad4c[_0x52a51e(0x19e)][_0x52a51e(0x1a8)](_0x52a51e(0x1bb))['to'](this,_0x52a51e(0x1bd)),_0x41ad4c[_0x52a51e(0x17f)][_0x52a51e(0x1b2)](_0x52a51e(0x1b5))['to'](this,_0x52a51e(0x1b5),this,_0x52a51e(0x193),this,_0x52a51e(0x174),(_0x2cc65c,_0x56becf,_0x6cc0d4)=>_0x2cc65c&&!_0x56becf&&!!_0x6cc0d4),_0x41ad4c[_0x52a51e(0x17f)][_0x52a51e(0x1a8)](_0x52a51e(0x1bb))['to'](this,_0x52a51e(0x17a)),_0x41ad4c[_0x52a51e(0x17d)][_0x52a51e(0x1b2)](_0x52a51e(0x1b5))['to'](this,_0x52a51e(0x1b5),this,_0x52a51e(0x193),(_0x2056c4,_0x3303b1)=>_0x2056c4&&!_0x3303b1),_0x41ad4c[_0x52a51e(0x17d)][_0x52a51e(0x1a8)](_0x52a51e(0x1bb))['to'](this,_0x52a51e(0x179)),_0x41ad4c[_0x52a51e(0x1ba)][_0x52a51e(0x1b2)](_0x52a51e(0x1b5))['to'](this,_0x52a51e(0x193)),_0x41ad4c[_0x52a51e(0x1ba)][_0x52a51e(0x1a8)](_0x52a51e(0x1bb))['to'](this,_0x52a51e(0x1bf)),_0x41ad4c;}[_0x1975c7(0x19d)](){const _0x525acf=_0x1975c7;this[_0x525acf(0x174)]='',this[_0x525acf(0x1c4)]=!0x1,this[_0x525acf(0x193)]=!0x0,this[_0x525acf(0x1c2)][_0x525acf(0x196)]=!0x0,this[_0x525acf(0x1a5)][_0x525acf(0x196)]=!0x0,this[_0x525acf(0x1c2)][_0x525acf(0x18a)]();}[_0x1975c7(0x1a6)](){const _0x3d88f0=_0x1975c7,_0x20853d=this[_0x3d88f0(0x18f)];this[_0x3d88f0(0x193)]=!0x1,this[_0x3d88f0(0x180)]='',this[_0x3d88f0(0x194)][_0x3d88f0(0x198)](),this[_0x3d88f0(0x174)]&&(this[_0x3d88f0(0x194)][_0x3d88f0(0x188)][_0x3d88f0(0x1a9)]=_0x1c4f79(_0x20853d,_0x3d88f0(0x173)));}[_0x1975c7(0x1a3)](_0x4109ef){const _0x4e9e43=_0x1975c7,_0x224ddf=this[_0x4e9e43(0x18f)];this[_0x4e9e43(0x1a6)](),this[_0x4e9e43(0x1c4)]=!0x0,this[_0x4e9e43(0x1b6)][_0x4e9e43(0x191)]=_0x4109ef||_0x1c4f79(_0x224ddf,_0x4e9e43(0x1a2)),this[_0x4e9e43(0x174)]||(this[_0x4e9e43(0x1c2)][_0x4e9e43(0x196)]=!0x1);}}
23
+ const _0x52309a=_0x4f87;(function(_0x102857,_0x369086){const _0xe9cdb6=_0x4f87,_0x5b4470=_0x102857();while(!![]){try{const _0x235a00=parseInt(_0xe9cdb6(0x1e5))/0x1*(parseInt(_0xe9cdb6(0x1ca))/0x2)+parseInt(_0xe9cdb6(0x1f0))/0x3*(-parseInt(_0xe9cdb6(0x1d4))/0x4)+parseInt(_0xe9cdb6(0x1c3))/0x5*(parseInt(_0xe9cdb6(0x1a9))/0x6)+-parseInt(_0xe9cdb6(0x1cd))/0x7+-parseInt(_0xe9cdb6(0x1f7))/0x8*(parseInt(_0xe9cdb6(0x1d0))/0x9)+parseInt(_0xe9cdb6(0x1b6))/0xa+parseInt(_0xe9cdb6(0x1bc))/0xb;if(_0x235a00===_0x369086)break;else _0x5b4470['push'](_0x5b4470['shift']());}catch(_0x3e1bce){_0x5b4470['push'](_0x5b4470['shift']());}}}(_0x93ad,0xd6fc4));import{FocusTracker as _0x399bea,KeystrokeHandler as _0x5929cd}from'ckeditor5/src/utils.js';function _0x93ad(){const _0x45fa29=['add','fieldView','keystrokes','locale','submit','_createPromptView','items','high','1XzsLOb','set','_promptHistory','listenTo','_createToolbar','label','bindTo','value','stopButton','promptView','isProcessing','1053zIGkTA','queryView','finishProcessing','replaceButton','isEnabled','tryAgainButton','execute','513640cCYykN','focusFirst','insertButton','bindTemplate','trim','createCollection','delegate','chain','656592EEbbye','stopProcessing','focus','errorView','REPLACE','bind','reset','ck-ai-form','tryAgainEvent','AI_ERROR_FAILED','text','render','handleError','828650FcnYOL','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusCycler','div','contentArea','element','20910747xannNO','Ask\x20AI\x20to\x20edit\x20or\x20generate','replaceContent','Empty\x20history','isVisible','isError','shift\x20+\x20tab','40mOSowV','setTemplate','focusTracker','mainAction','prompt','search','focusLast','726166XYFggx','Ask\x20AI\x20to\x20improve\x20generated\x20text','_createHistoryView','12093053uYYqTz','ck-hidden','ck-ai-form-content','9kfMrTo','_focusables','copyButtonView','toolbar','6268arMLyM','startProcessing','clear','clearHistory','fire','historyGroupView','submitPrompt','tab','insertContentBelow'];_0x93ad=function(){return _0x45fa29;};return _0x93ad();}import{View as _0x120ccb,FocusCycler as _0x12d09f,createLabeledTextarea as _0x4cc07f}from'ckeditor5/src/ui.js';import _0x34f456,{AIFormToolbarViewMainActionLabel as _0x3fefa5}from'./aiformtoolbarview.js';import _0x156891 from'./aiformcontentarea.js';import _0x22c165 from'./aiformerrorview.js';import _0x166669 from'./aiformpromptview.js';import _0x2bd18b from'./aihistorylistview.js';import _0x2e3878 from'./aihistorylistitemview.js';function _0x4f87(_0x81635c,_0x8be5dd){const _0x93ad3d=_0x93ad();return _0x4f87=function(_0x4f87be,_0x4e2bf1){_0x4f87be=_0x4f87be-0x1a2;let _0x22a319=_0x93ad3d[_0x4f87be];return _0x22a319;},_0x4f87(_0x81635c,_0x8be5dd);}import _0x3895bb from'./prompthistory.js';import{getTranslation as _0x1ff4ae}from'../../utils/common-translations.js';import{escape as _0x4d7aef}from'lodash-es';export default class k extends _0x120ccb{constructor(_0x550d02,_0x285933,_0x2b26bb=''){const _0xc9b031=_0x4f87;super(_0x550d02),this[_0xc9b031(0x1e6)](_0xc9b031(0x1f4),!0x0),this[_0xc9b031(0x1e6)](_0xc9b031(0x1ef),!0x1),this[_0xc9b031(0x1e6)](_0xc9b031(0x1c7),''),this[_0xc9b031(0x1e6)](_0xc9b031(0x1ec),''),this[_0xc9b031(0x1e6)](_0xc9b031(0x1c1),!0x1),this[_0xc9b031(0x1e6)](_0xc9b031(0x1c6),_0x3fefa5[_0xc9b031(0x1ad)]),this[_0xc9b031(0x1e7)]=new _0x3895bb(),this[_0xc9b031(0x1ac)]=new _0x22c165(_0x550d02),this[_0xc9b031(0x1ba)]=new _0x156891(_0x550d02,_0x2b26bb),this[_0xc9b031(0x1ba)][_0xc9b031(0x1ae)](_0xc9b031(0x1ef))['to'](this),this[_0xc9b031(0x1ba)][_0xc9b031(0x1ae)](_0xc9b031(0x1ec))['to'](this),this[_0xc9b031(0x1d3)]=this[_0xc9b031(0x1e9)](),this[_0xc9b031(0x1d3)][_0xc9b031(0x1ae)](_0xc9b031(0x1c6))['to'](this),this[_0xc9b031(0x1ee)]=this[_0xc9b031(0x1e2)](),this[_0xc9b031(0x1c5)]=new _0x399bea(),this[_0xc9b031(0x1df)]=new _0x5929cd(),this[_0xc9b031(0x1d1)]=this[_0xc9b031(0x1a6)]([this[_0xc9b031(0x1ba)],this[_0xc9b031(0x1ba)][_0xc9b031(0x1d2)],this[_0xc9b031(0x1d3)],this[_0xc9b031(0x1ee)]]),this[_0xc9b031(0x1b8)]=new _0x12d09f({'focusables':this[_0xc9b031(0x1d1)],'focusTracker':this[_0xc9b031(0x1c5)],'keystrokeHandler':this[_0xc9b031(0x1df)],'actions':{'focusPrevious':_0xc9b031(0x1c2),'focusNext':_0xc9b031(0x1db)}}),this[_0xc9b031(0x1b8)][_0xc9b031(0x1a8)](this[_0xc9b031(0x1ee)][_0xc9b031(0x1b8)]),this[_0xc9b031(0x1ee)][_0xc9b031(0x1f1)][_0xc9b031(0x1de)][_0xc9b031(0x1ae)](_0xc9b031(0x1ec))['to'](this,_0xc9b031(0x1c7));const _0x50186b=this[_0xc9b031(0x1a4)];this[_0xc9b031(0x1c4)]({'tag':_0xc9b031(0x1b9),'attributes':{'class':['ck',_0xc9b031(0x1b0),_0x285933],'tabindex':'-1'},'children':[{'tag':_0xc9b031(0x1b9),'attributes':{'class':['ck',_0xc9b031(0x1cf)]},'children':[{'tag':_0xc9b031(0x1b9),'attributes':{'class':[_0x50186b['if'](_0xc9b031(0x1c1),_0xc9b031(0x1ce),_0x172bfc=>!_0x172bfc)]},'children':[this[_0xc9b031(0x1ac)]]},this[_0xc9b031(0x1ba)],this[_0xc9b031(0x1d3)],this[_0xc9b031(0x1ee)]]}]});}[_0x52309a(0x1b4)](){const _0x2099aa=_0x52309a;super[_0x2099aa(0x1b4)](),this[_0x2099aa(0x1c5)][_0x2099aa(0x1dd)](this[_0x2099aa(0x1ba)][_0x2099aa(0x1bb)]),this[_0x2099aa(0x1c5)][_0x2099aa(0x1dd)](this[_0x2099aa(0x1ba)][_0x2099aa(0x1d2)][_0x2099aa(0x1bb)]),this[_0x2099aa(0x1c5)][_0x2099aa(0x1dd)](this[_0x2099aa(0x1d3)][_0x2099aa(0x1bb)]),this[_0x2099aa(0x1c5)][_0x2099aa(0x1dd)](this[_0x2099aa(0x1ee)][_0x2099aa(0x1bb)]),this[_0x2099aa(0x1df)][_0x2099aa(0x1e8)](this[_0x2099aa(0x1bb)]);}[_0x52309a(0x1ab)](_0x3fd484=0x1){const _0x7192e8=_0x52309a;-0x1===_0x3fd484?this[_0x7192e8(0x1b8)][_0x7192e8(0x1c9)]():this[_0x7192e8(0x1b8)][_0x7192e8(0x1a2)]();}[_0x52309a(0x1af)](){const _0x3e3ad8=_0x52309a;this[_0x3e3ad8(0x1c7)]='',this[_0x3e3ad8(0x1ec)]='',this[_0x3e3ad8(0x1c1)]=!0x1,this[_0x3e3ad8(0x1ee)][_0x3e3ad8(0x1af)](),this[_0x3e3ad8(0x1ba)][_0x3e3ad8(0x1c0)]=!0x1,this[_0x3e3ad8(0x1d3)][_0x3e3ad8(0x1c0)]=!0x1;}[_0x52309a(0x1e2)](){const _0x113710=_0x52309a,_0x1bf130=this[_0x113710(0x1e0)],_0x457795=new _0x166669(_0x1bf130,{'queryView':{'label':_0x1ff4ae(_0x1bf130,_0x113710(0x1bd)),'creator':_0x4cc07f,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1ff4ae(_0x1bf130,_0x113710(0x1bf)),'secondary':_0x1ff4ae(_0x1bf130,_0x113710(0x1b7))}}},'filteredView':this[_0x113710(0x1cc)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x457795[_0x113710(0x1ae)](_0x113710(0x1f4))['to'](this,_0x113710(0x1f4),this,_0x113710(0x1ef),(_0x4728a2,_0x16abe9)=>_0x4728a2&&!_0x16abe9),this[_0x113710(0x1e8)](_0x457795,_0x113710(0x1e1),(_0x2a6758,_0x1ba13f)=>{const _0x2c9a2c=_0x113710;this[_0x2c9a2c(0x1c7)]=_0x1ba13f;const _0x38edaf=_0x4d7aef(_0x1ba13f);this[_0x2c9a2c(0x1d8)](_0x2c9a2c(0x1da),_0x38edaf),_0x1ba13f[_0x2c9a2c(0x1a5)]()&&this[_0x2c9a2c(0x1e7)][_0x2c9a2c(0x1dd)]({'prompt':_0x38edaf},0x0);},{'priority':_0x113710(0x1e4)}),_0x457795;}[_0x52309a(0x1cc)](){const _0x44b461=_0x52309a,_0x3b7d43=new _0x2bd18b(this[_0x44b461(0x1e0)]);return _0x3b7d43[_0x44b461(0x1d9)][_0x44b461(0x1e3)][_0x44b461(0x1eb)](this[_0x44b461(0x1e7)])['as'](_0x2e3878),_0x3b7d43['on'](_0x44b461(0x1d7),()=>{const _0x22e515=_0x44b461;this[_0x22e515(0x1e7)][_0x22e515(0x1d6)](),this[_0x22e515(0x1ee)][_0x22e515(0x1c8)](''),this[_0x22e515(0x1ee)][_0x22e515(0x1ab)]();}),_0x3b7d43;}[_0x52309a(0x1e9)](){const _0x355275=_0x52309a,_0x28cc8c=new _0x34f456(this[_0x355275(0x1e0)]);return _0x28cc8c[_0x355275(0x1f3)][_0x355275(0x1ae)](_0x355275(0x1f4))['to'](this,_0x355275(0x1f4),this,_0x355275(0x1ef),this,_0x355275(0x1ec),(_0x4f046e,_0x18d53e,_0x1b5380)=>_0x4f046e&&!_0x18d53e&&!!_0x1b5380),_0x28cc8c[_0x355275(0x1f3)][_0x355275(0x1a7)](_0x355275(0x1f6))['to'](this,_0x355275(0x1be)),_0x28cc8c[_0x355275(0x1a3)][_0x355275(0x1ae)](_0x355275(0x1f4))['to'](this,_0x355275(0x1f4),this,_0x355275(0x1ef),this,_0x355275(0x1ec),(_0x370003,_0x4e795f,_0x2d7238)=>_0x370003&&!_0x4e795f&&!!_0x2d7238),_0x28cc8c[_0x355275(0x1a3)][_0x355275(0x1a7)](_0x355275(0x1f6))['to'](this,_0x355275(0x1dc)),_0x28cc8c[_0x355275(0x1f5)][_0x355275(0x1ae)](_0x355275(0x1f4))['to'](this,_0x355275(0x1f4),this,_0x355275(0x1ef),(_0x10011f,_0x109abc)=>_0x10011f&&!_0x109abc),_0x28cc8c[_0x355275(0x1f5)][_0x355275(0x1a7)](_0x355275(0x1f6))['to'](this,_0x355275(0x1b1)),_0x28cc8c[_0x355275(0x1ed)][_0x355275(0x1ae)](_0x355275(0x1f4))['to'](this,_0x355275(0x1ef)),_0x28cc8c[_0x355275(0x1ed)][_0x355275(0x1a7)](_0x355275(0x1f6))['to'](this,_0x355275(0x1aa)),_0x28cc8c;}[_0x52309a(0x1d5)](){const _0x8afb12=_0x52309a;this[_0x8afb12(0x1ec)]='',this[_0x8afb12(0x1c1)]=!0x1,this[_0x8afb12(0x1ef)]=!0x0,this[_0x8afb12(0x1ba)][_0x8afb12(0x1c0)]=!0x0,this[_0x8afb12(0x1d3)][_0x8afb12(0x1c0)]=!0x0,this[_0x8afb12(0x1ba)][_0x8afb12(0x1ab)]();}[_0x52309a(0x1f2)](){const _0xa549ba=_0x52309a,_0x11cf42=this[_0xa549ba(0x1e0)];this[_0xa549ba(0x1ef)]=!0x1,this[_0xa549ba(0x1c7)]='',this[_0xa549ba(0x1ee)][_0xa549ba(0x1af)](),this[_0xa549ba(0x1ec)]&&(this[_0xa549ba(0x1ee)][_0xa549ba(0x1f1)][_0xa549ba(0x1ea)]=_0x1ff4ae(_0x11cf42,_0xa549ba(0x1cb)));}[_0x52309a(0x1b5)](_0x438702){const _0x3f67d8=_0x52309a,_0xbcbd60=this[_0x3f67d8(0x1e0)];this[_0x3f67d8(0x1f2)](),this[_0x3f67d8(0x1c1)]=!0x0,this[_0x3f67d8(0x1ac)][_0x3f67d8(0x1b3)]=_0x438702||_0x1ff4ae(_0xbcbd60,_0x3f67d8(0x1b2)),this[_0x3f67d8(0x1ec)]||(this[_0x3f67d8(0x1ba)][_0x3f67d8(0x1c0)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x33dc(_0x294695,_0x5f181a){const _0x11e5c3=_0x11e5();return _0x33dc=function(_0x33dc1a,_0x35fbab){_0x33dc1a=_0x33dc1a-0x9a;let _0x197c58=_0x11e5c3[_0x33dc1a];return _0x197c58;},_0x33dc(_0x294695,_0x5f181a);}(function(_0xda412c,_0x4176c4){const _0x3bcedc=_0x33dc,_0x3b7447=_0xda412c();while(!![]){try{const _0x177c43=parseInt(_0x3bcedc(0xa8))/0x1+-parseInt(_0x3bcedc(0x9f))/0x2*(parseInt(_0x3bcedc(0xa1))/0x3)+parseInt(_0x3bcedc(0xa5))/0x4*(parseInt(_0x3bcedc(0x9a))/0x5)+-parseInt(_0x3bcedc(0xaa))/0x6*(parseInt(_0x3bcedc(0xa0))/0x7)+parseInt(_0x3bcedc(0xab))/0x8*(parseInt(_0x3bcedc(0xa9))/0x9)+-parseInt(_0x3bcedc(0x9d))/0xa+parseInt(_0x3bcedc(0x9e))/0xb;if(_0x177c43===_0x4176c4)break;else _0x3b7447['push'](_0x3b7447['shift']());}catch(_0x2febff){_0x3b7447['push'](_0x3b7447['shift']());}}}(_0x11e5,0x313cb));import{ListItemView as _0x35dff9,ButtonView as _0x3c70dd,ButtonLabelView as _0x55cf8f}from'ckeditor5/src/ui.js';import{unescape as _0x3ff023}from'lodash-es';export default class hs extends _0x35dff9{constructor(_0x53f24a){const _0x12e235=_0x33dc;super();const _0x467962=new _0x55cf8f(),_0xbeb399=new _0x3c70dd(this[_0x12e235(0xa2)],_0x467962);this[_0x12e235(0xa4)][_0x12e235(0xa3)](_0xbeb399),_0xbeb399[_0x12e235(0x9c)]({'label':_0x53f24a[_0x12e235(0x9b)],'withText':!0x0}),_0xbeb399['on'](_0x12e235(0xa6),()=>{const _0x51b428=_0x12e235;this[_0x51b428(0xa7)](_0x51b428(0xa6),{'value':_0x3ff023(_0x53f24a[_0x51b428(0x9b)])});});}}function _0x11e5(){const _0x1a17e5=['1965YdDinw','prompt','set','3432880xJjeqH','2267177ikICDb','2lkRsfx','14juaDju','567051YJIWmm','locale','add','children','3012dlJapM','execute','fire','213277wCECxS','2367jpFaWO','489198mJImEy','5528Rbwgvp'];_0x11e5=function(){return _0x1a17e5;};return _0x11e5();}
23
+ (function(_0x183d41,_0x41fce4){const _0x1df87e=_0x4141,_0x21738f=_0x183d41();while(!![]){try{const _0x9d3dde=parseInt(_0x1df87e(0x102))/0x1+-parseInt(_0x1df87e(0xff))/0x2*(-parseInt(_0x1df87e(0x106))/0x3)+parseInt(_0x1df87e(0xf9))/0x4+-parseInt(_0x1df87e(0x103))/0x5+-parseInt(_0x1df87e(0xfd))/0x6+parseInt(_0x1df87e(0xfa))/0x7+-parseInt(_0x1df87e(0xf8))/0x8*(parseInt(_0x1df87e(0x105))/0x9);if(_0x9d3dde===_0x41fce4)break;else _0x21738f['push'](_0x21738f['shift']());}catch(_0x4a4a89){_0x21738f['push'](_0x21738f['shift']());}}}(_0x32c0,0xb021e));import{ListItemView as _0x20354d,ButtonView as _0x2dbaaa,ButtonLabelView as _0x38d48e}from'ckeditor5/src/ui.js';function _0x4141(_0x305acb,_0x4ed1f5){const _0x32c0a7=_0x32c0();return _0x4141=function(_0x414130,_0xe9b53f){_0x414130=_0x414130-0xf8;let _0xacfce8=_0x32c0a7[_0x414130];return _0xacfce8;},_0x4141(_0x305acb,_0x4ed1f5);}import{unescape as _0xbca1a9}from'lodash-es';function _0x32c0(){const _0x576c8a=['children','612877XkOGVM','4762175msqiaG','execute','9irJPMk','3575460DEOaOf','fire','4899056csXzhr','1459928CqLjLS','7234255yHxKyH','add','set','5501334LvsRTE','locale','2lToFIQ','prompt'];_0x32c0=function(){return _0x576c8a;};return _0x32c0();}export default class hs extends _0x20354d{constructor(_0x3c4823){const _0x3b87de=_0x4141;super();const _0x46155c=new _0x38d48e(),_0x4422be=new _0x2dbaaa(this[_0x3b87de(0xfe)],_0x46155c);this[_0x3b87de(0x101)][_0x3b87de(0xfb)](_0x4422be),_0x4422be[_0x3b87de(0xfc)]({'label':_0x3c4823[_0x3b87de(0x100)],'withText':!0x0}),_0x4422be['on'](_0x3b87de(0x104),()=>{const _0x4a67e1=_0x3b87de;this[_0x4a67e1(0x107)](_0x4a67e1(0x104),{'value':_0xbca1a9(_0x3c4823[_0x4a67e1(0x100)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1b73(_0x15d736,_0x1dfdc1){const _0x38135c=_0x3813();return _0x1b73=function(_0x1b73ef,_0x126f6d){_0x1b73ef=_0x1b73ef-0x19d;let _0x55fca1=_0x38135c[_0x1b73ef];return _0x55fca1;},_0x1b73(_0x15d736,_0x1dfdc1);}const _0x5ae591=_0x1b73;(function(_0x4472f0,_0x16bee4){const _0x3f4d85=_0x1b73,_0x27ae89=_0x4472f0();while(!![]){try{const _0x58141c=-parseInt(_0x3f4d85(0x1b4))/0x1+-parseInt(_0x3f4d85(0x19f))/0x2*(parseInt(_0x3f4d85(0x1a8))/0x3)+-parseInt(_0x3f4d85(0x1a5))/0x4+-parseInt(_0x3f4d85(0x1ad))/0x5+parseInt(_0x3f4d85(0x1aa))/0x6*(-parseInt(_0x3f4d85(0x1b0))/0x7)+-parseInt(_0x3f4d85(0x1a4))/0x8*(parseInt(_0x3f4d85(0x1ae))/0x9)+parseInt(_0x3f4d85(0x1ac))/0xa;if(_0x58141c===_0x16bee4)break;else _0x27ae89['push'](_0x27ae89['shift']());}catch(_0x887d17){_0x27ae89['push'](_0x27ae89['shift']());}}}(_0x3813,0xba0c5));import{ListView as _0x322127,ListItemGroupView as _0x499b51,ButtonView as _0xcb1107}from'ckeditor5/src/ui.js';import{getTranslation as _0xab145a}from'../../utils/common-translations.js';export default class rs extends _0x322127{constructor(_0x23569f){const _0x12919d=_0x1b73;super(_0x23569f),this[_0x12919d(0x1b3)]=this[_0x12919d(0x1ab)](),this[_0x12919d(0x1b7)]=new _0x499b51(),this[_0x12919d(0x1b7)][_0x12919d(0x1a9)][_0x12919d(0x1a7)](this[_0x12919d(0x1b3)],0x1),this[_0x12919d(0x1b7)][_0x12919d(0x1a3)]=_0xab145a(_0x23569f,_0x12919d(0x1b1)),this[_0x12919d(0x1b7)][_0x12919d(0x1a1)][_0x12919d(0x1a2)](_0x12919d(0x1b6))['to'](this),this[_0x12919d(0x1a1)][_0x12919d(0x1a7)](this[_0x12919d(0x1b7)]);}[_0x5ae591(0x1a0)](){const _0x548725=_0x5ae591;let _0x5d41f9=0x0;for(const _0x320633 of this[_0x548725(0x1a1)])_0x5d41f9+=_0x320633[_0x548725(0x1a1)][_0x548725(0x19e)];return{'resultsCount':_0x5d41f9,'totalItemsCount':_0x5d41f9};}[_0x5ae591(0x1ab)](){const _0x4cf601=_0x5ae591,_0x4d809f=this[_0x4cf601(0x1b5)],_0x4ebe8e=new _0xcb1107(this[_0x4cf601(0x1b5)]);return _0x4ebe8e[_0x4cf601(0x1b2)]({'label':'('+_0xab145a(_0x4d809f,_0x4cf601(0x1af))+')','withText':!0x0}),_0x4ebe8e['on'](_0x4cf601(0x1b6),()=>this[_0x4cf601(0x1a6)](_0x4cf601(0x19d))),_0x4ebe8e;}}function _0x3813(){const _0x48e51a=['3111484zkSNgI','fire','add','24FgrqnY','children','3379008egvHEp','_createClearHistoryButton','51198740uDJJCF','1803965KfBDUL','22698OHyLem','Clear','7dUogus','Prompt\x20history','set','clearHistoryButton','1321699kqEHRR','locale','execute','historyGroupView','clearHistory','length','295112ToMcxI','filter','items','delegate','label','488izTBYi'];_0x3813=function(){return _0x48e51a;};return _0x3813();}
23
+ function _0x2307(_0x47fe12,_0x3f74a6){const _0x4b9a83=_0x4b9a();return _0x2307=function(_0x230796,_0x80a874){_0x230796=_0x230796-0x96;let _0x4c2d57=_0x4b9a83[_0x230796];return _0x4c2d57;},_0x2307(_0x47fe12,_0x3f74a6);}function _0x4b9a(){const _0xb67fc9=['clearHistoryButton','locale','items','743584QsJcom','execute','14503056jXeLLu','set','fire','1437249NpbcyX','delegate','filter','7anPQNl','add','_createClearHistoryButton','Prompt\x20history','840050dCydkY','clearHistory','1477192HzfqoZ','356400tRdruf','length','children','historyGroupView','Clear','3640105pkCeEH','label'];_0x4b9a=function(){return _0xb67fc9;};return _0x4b9a();}const _0x377731=_0x2307;(function(_0x66574b,_0x196a15){const _0x43fee4=_0x2307,_0x189a44=_0x66574b();while(!![]){try{const _0x34588c=parseInt(_0x43fee4(0xa2))/0x1+-parseInt(_0x43fee4(0xae))/0x2+-parseInt(_0x43fee4(0xa7))/0x3+-parseInt(_0x43fee4(0x97))/0x4+-parseInt(_0x43fee4(0x9d))/0x5+-parseInt(_0x43fee4(0x98))/0x6+-parseInt(_0x43fee4(0xaa))/0x7*(-parseInt(_0x43fee4(0xa4))/0x8);if(_0x34588c===_0x196a15)break;else _0x189a44['push'](_0x189a44['shift']());}catch(_0x156f98){_0x189a44['push'](_0x189a44['shift']());}}}(_0x4b9a,0x7a39f));import{ListView as _0x58ffb6,ListItemGroupView as _0x1d5a19,ButtonView as _0x446bac}from'ckeditor5/src/ui.js';import{getTranslation as _0x3d4c3e}from'../../utils/common-translations.js';export default class rs extends _0x58ffb6{constructor(_0xfef65f){const _0x2035a6=_0x2307;super(_0xfef65f),this[_0x2035a6(0x9f)]=this[_0x2035a6(0xac)](),this[_0x2035a6(0x9b)]=new _0x1d5a19(),this[_0x2035a6(0x9b)][_0x2035a6(0x9a)][_0x2035a6(0xab)](this[_0x2035a6(0x9f)],0x1),this[_0x2035a6(0x9b)][_0x2035a6(0x9e)]=_0x3d4c3e(_0xfef65f,_0x2035a6(0xad)),this[_0x2035a6(0x9b)][_0x2035a6(0xa1)][_0x2035a6(0xa8)](_0x2035a6(0xa3))['to'](this),this[_0x2035a6(0xa1)][_0x2035a6(0xab)](this[_0x2035a6(0x9b)]);}[_0x377731(0xa9)](){const _0x4a1985=_0x377731;let _0x1f173a=0x0;for(const _0x14e6f1 of this[_0x4a1985(0xa1)])_0x1f173a+=_0x14e6f1[_0x4a1985(0xa1)][_0x4a1985(0x99)];return{'resultsCount':_0x1f173a,'totalItemsCount':_0x1f173a};}[_0x377731(0xac)](){const _0x5ec176=_0x377731,_0x3604b9=this[_0x5ec176(0xa0)],_0x5c3896=new _0x446bac(this[_0x5ec176(0xa0)]);return _0x5c3896[_0x5ec176(0xa5)]({'label':'('+_0x3d4c3e(_0x3604b9,_0x5ec176(0x9c))+')','withText':!0x0}),_0x5c3896['on'](_0x5ec176(0xa3),()=>this[_0x5ec176(0xa6)](_0x5ec176(0x96))),_0x5c3896;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4cd0(_0x1121a7,_0x2adecc){const _0x47775b=_0x4777();return _0x4cd0=function(_0x4cd060,_0x1cf29d){_0x4cd060=_0x4cd060-0xb7;let _0x170f7b=_0x47775b[_0x4cd060];return _0x170f7b;},_0x4cd0(_0x1121a7,_0x2adecc);}const _0x43e6b0=_0x4cd0;function _0x4777(){const _0x329496=['getItem','_saveToSessionStorage','CKEditor/AIFormView/PromptHistory','prompt','setItem','1385334JCMeIn','822792PasDWb','remove','10BeJoDD','map','trim','addMany','toLowerCase','7teiYPx','146918fXzaHA','add','15BuTqaf','871172TpJBiz','stringify','length','518685kwGrzZ','last','2752002wdzRqe','_loadFromSessionStorage','91128rcSyrn','4PGABsd','parse'];_0x4777=function(){return _0x329496;};return _0x4777();}(function(_0x3f8e0b,_0x4fa033){const _0x27af34=_0x4cd0,_0x3977bf=_0x3f8e0b();while(!![]){try{const _0x40e0cd=-parseInt(_0x27af34(0xca))/0x1*(-parseInt(_0x27af34(0xba))/0x2)+parseInt(_0x27af34(0xd0))/0x3+-parseInt(_0x27af34(0xcd))/0x4*(parseInt(_0x27af34(0xcc))/0x5)+parseInt(_0x27af34(0xc2))/0x6*(parseInt(_0x27af34(0xc9))/0x7)+-parseInt(_0x27af34(0xb9))/0x8+parseInt(_0x27af34(0xc1))/0x9*(parseInt(_0x27af34(0xc4))/0xa)+parseInt(_0x27af34(0xb7))/0xb;if(_0x40e0cd===_0x4fa033)break;else _0x3977bf['push'](_0x3977bf['shift']());}catch(_0x591aff){_0x3977bf['push'](_0x3977bf['shift']());}}}(_0x4777,0x53ca1));import{Collection as _0x1c68ae}from'ckeditor5/src/utils.js';const cs=_0x43e6b0(0xbe);export default class os extends _0x1c68ae{constructor(){const _0x447a1a=_0x43e6b0;super(),this[_0x447a1a(0xb8)](),this['on'](_0x447a1a(0xcb),(_0x279b1f,_0x34f8eb)=>{const _0x305ed2=_0x447a1a,_0x5a49f6=Ss(_0x34f8eb[_0x305ed2(0xbf)]);for(const _0x41fb04 of this)if(_0x41fb04!=_0x34f8eb&&Ss(_0x41fb04[_0x305ed2(0xbf)])===_0x5a49f6){this[_0x305ed2(0xc3)](_0x41fb04);break;}this[_0x305ed2(0xcf)]>0x14&&this[_0x305ed2(0xc3)](this[_0x305ed2(0xd1)]),this[_0x305ed2(0xbd)]();}),this['on'](_0x447a1a(0xc3),()=>{const _0x4a20f5=_0x447a1a;this[_0x4a20f5(0xbd)]();});}[_0x43e6b0(0xb8)](){const _0x10a1c7=_0x43e6b0,_0x5a1053=sessionStorage[_0x10a1c7(0xbc)](cs)||'[]';this[_0x10a1c7(0xc7)](JSON[_0x10a1c7(0xbb)](_0x5a1053));}[_0x43e6b0(0xbd)](){const _0x25236f=_0x43e6b0;sessionStorage[_0x25236f(0xc0)](cs,JSON[_0x25236f(0xce)](this[_0x25236f(0xc5)](_0x5e7c69=>_0x5e7c69)));}}function Ss(_0x30df39){const _0x463fba=_0x43e6b0;return _0x30df39[_0x463fba(0xc8)]()[_0x463fba(0xc6)]();}
23
+ const _0x58fb15=_0x4d30;(function(_0x1d2b7a,_0x5c4fb0){const _0x46ac08=_0x4d30,_0x41c15e=_0x1d2b7a();while(!![]){try{const _0x1d95e4=parseInt(_0x46ac08(0x198))/0x1*(parseInt(_0x46ac08(0x19f))/0x2)+parseInt(_0x46ac08(0x18d))/0x3*(parseInt(_0x46ac08(0x193))/0x4)+-parseInt(_0x46ac08(0x18f))/0x5*(-parseInt(_0x46ac08(0x18a))/0x6)+parseInt(_0x46ac08(0x19e))/0x7+parseInt(_0x46ac08(0x191))/0x8+-parseInt(_0x46ac08(0x1a1))/0x9*(-parseInt(_0x46ac08(0x1a2))/0xa)+-parseInt(_0x46ac08(0x19b))/0xb;if(_0x1d95e4===_0x5c4fb0)break;else _0x41c15e['push'](_0x41c15e['shift']());}catch(_0x2627c2){_0x41c15e['push'](_0x41c15e['shift']());}}}(_0x76cf,0x91ad6));function _0x76cf(){const _0x300e93=['last','_saveToSessionStorage','7860916AjZxVq','2SfyqPR','setItem','9IGeOtp','3219430HGXTaV','getItem','length','372678vVlyLL','CKEditor/AIFormView/PromptHistory','remove','1090707uGmgbz','prompt','70ovyDsk','toLowerCase','6940328ttiCkD','trim','4WSywjo','stringify','parse','add','map','778944jVFMMX','_loadFromSessionStorage','addMany','41006603DrTfoS'];_0x76cf=function(){return _0x300e93;};return _0x76cf();}import{Collection as _0x13ef3b}from'ckeditor5/src/utils.js';const cs=_0x58fb15(0x18b);export default class os extends _0x13ef3b{constructor(){const _0x550562=_0x58fb15;super(),this[_0x550562(0x199)](),this['on'](_0x550562(0x196),(_0x41150e,_0x28e7f8)=>{const _0x33f38b=_0x550562,_0x23cf73=Ss(_0x28e7f8[_0x33f38b(0x18e)]);for(const _0x1dddb5 of this)if(_0x1dddb5!=_0x28e7f8&&Ss(_0x1dddb5[_0x33f38b(0x18e)])===_0x23cf73){this[_0x33f38b(0x18c)](_0x1dddb5);break;}this[_0x33f38b(0x1a4)]>0x14&&this[_0x33f38b(0x18c)](this[_0x33f38b(0x19c)]),this[_0x33f38b(0x19d)]();}),this['on'](_0x550562(0x18c),()=>{const _0x22a236=_0x550562;this[_0x22a236(0x19d)]();});}[_0x58fb15(0x199)](){const _0x2e5706=_0x58fb15,_0x116e4e=sessionStorage[_0x2e5706(0x1a3)](cs)||'[]';this[_0x2e5706(0x19a)](JSON[_0x2e5706(0x195)](_0x116e4e));}[_0x58fb15(0x19d)](){const _0x547acf=_0x58fb15;sessionStorage[_0x547acf(0x1a0)](cs,JSON[_0x547acf(0x194)](this[_0x547acf(0x197)](_0x3bec24=>_0x3bec24)));}}function _0x4d30(_0x43835d,_0x39b9bc){const _0x76cfc5=_0x76cf();return _0x4d30=function(_0x4d3082,_0x5a45f8){_0x4d3082=_0x4d3082-0x18a;let _0x28806b=_0x76cfc5[_0x4d3082];return _0x28806b;},_0x4d30(_0x43835d,_0x39b9bc);}function Ss(_0x1ecae3){const _0x16bd6a=_0x58fb15;return _0x1ecae3[_0x16bd6a(0x190)]()[_0x16bd6a(0x192)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19cac2=_0x58f1;(function(_0x1ecddc,_0x1cd248){const _0x83de45=_0x58f1,_0x369d5e=_0x1ecddc();while(!![]){try{const _0x565e6e=parseInt(_0x83de45(0x7d))/0x1*(-parseInt(_0x83de45(0x84))/0x2)+-parseInt(_0x83de45(0x72))/0x3*(-parseInt(_0x83de45(0x75))/0x4)+-parseInt(_0x83de45(0x6c))/0x5*(-parseInt(_0x83de45(0x93))/0x6)+parseInt(_0x83de45(0x73))/0x7*(parseInt(_0x83de45(0x8f))/0x8)+parseInt(_0x83de45(0x8e))/0x9+-parseInt(_0x83de45(0x79))/0xa+-parseInt(_0x83de45(0x86))/0xb*(parseInt(_0x83de45(0x78))/0xc);if(_0x565e6e===_0x1cd248)break;else _0x369d5e['push'](_0x369d5e['shift']());}catch(_0x39a95b){_0x369d5e['push'](_0x369d5e['shift']());}}}(_0x3bcb,0xadd67));function _0x58f1(_0x366b85,_0x3c99d9){const _0x3bcbdd=_0x3bcb();return _0x58f1=function(_0x58f1ec,_0x4011d9){_0x58f1ec=_0x58f1ec-0x69;let _0x1bbd1f=_0x3bcbdd[_0x58f1ec];return _0x1bbd1f;},_0x58f1(_0x366b85,_0x3c99d9);}import{Command as _0x313a34}from'ckeditor5/src/core.js';import _0x3f99bb from'../aiassistantui.js';function _0x3bcb(){const _0x1f5c97=['custom','selection','163295clLZqM','editor','_hasContext','values','refresh','ai.aiAssistant.disabledElements','add','2rzoSxn','change:isEnabled','865843AKnTxn','getItems','length','hasContent','element','config','isEmpty','from','11626884ejDTib','8fXEtjA','set','get','name','6uOTWaX','change:_hasContext','_commandDefinitions','requiresContent','enabledCommandsIds','showUI','model','970945NSHXXe','getRanges','isCollapsed','getFirstRange','includes','execute','4015566wKnDzT','6819078UNCGQp','isEnabled','4TAFfif','getSelectedBlocks','plugins','444kHtCOf','110260CRDuOG','document'];_0x3bcb=function(){return _0x1f5c97;};return _0x3bcb();}export default class E extends _0x313a34{constructor(_0x21da8d,_0x1d53c9){const _0x5501e8=_0x58f1;super(_0x21da8d),this[_0x5501e8(0x95)]=_0x1d53c9,this[_0x5501e8(0x90)](_0x5501e8(0x69),[]),this['on'](_0x5501e8(0x94),(_0x33fb9a,_0x4f494a,_0x2957ac)=>{const _0x2339f0=_0x5501e8;this[_0x2339f0(0x74)]&&(this[_0x2339f0(0x69)]=G(this[_0x2339f0(0x95)],_0x2957ac));}),this[_0x5501e8(0x90)](_0x5501e8(0x7f),!0x1),this['on'](_0x5501e8(0x85),(_0x191034,_0x3129be,_0x52f77c)=>{const _0x30da15=_0x5501e8;this[_0x30da15(0x69)]=_0x52f77c?G(this[_0x30da15(0x95)],this[_0x30da15(0x7f)]):[];});}[_0x19cac2(0x81)](){const _0x4942eb=_0x19cac2,_0x7224ff=this[_0x4942eb(0x7e)][_0x4942eb(0x6b)];this[_0x4942eb(0x7f)]=function(_0x1fac5d){const _0x1054fb=_0x4942eb,_0x1d1d77=_0x1fac5d[_0x1054fb(0x7a)][_0x1054fb(0x7c)];return _0x1d1d77[_0x1054fb(0x6e)]?0x0!==[..._0x1d1d77[_0x1054fb(0x76)]()][_0x1054fb(0x88)]&&![..._0x1d1d77[_0x1054fb(0x76)]()][0x0][_0x1054fb(0x8c)]:!!_0x1fac5d[_0x1054fb(0x89)](_0x1d1d77[_0x1054fb(0x6f)]());}(_0x7224ff);const _0xf243b8=_0x7224ff[_0x4942eb(0x7a)][_0x4942eb(0x7c)],_0x1d3c76=this[_0x4942eb(0x7e)][_0x4942eb(0x8b)][_0x4942eb(0x91)](_0x4942eb(0x82));for(const _0x5ca856 of _0xf243b8[_0x4942eb(0x6d)]())for(const _0xc48de1 of _0x5ca856[_0x4942eb(0x87)]())if(_0xc48de1['is'](_0x4942eb(0x8a))&&_0x1d3c76[_0x4942eb(0x70)](_0xc48de1[_0x4942eb(0x92)]))return void(this[_0x4942eb(0x74)]=!0x1);this[_0x4942eb(0x74)]=!0x0;}[_0x19cac2(0x71)](_0x1316ae='',_0x3dd1ff='',_0x4363d3=_0x19cac2(0x7b)){const _0xf73cca=_0x19cac2;this[_0xf73cca(0x7e)][_0xf73cca(0x77)][_0xf73cca(0x91)](_0x3f99bb)[_0xf73cca(0x6a)](_0x1316ae,_0x3dd1ff,_0x4363d3);}}function G(_0x595368,_0x5cfae2){const _0x154629=_0x19cac2,_0x57a76b=new Set();for(const _0x2a3a31 of _0x595368[_0x154629(0x80)]())(_0x5cfae2||!0x1===_0x2a3a31[_0x154629(0x96)])&&_0x57a76b[_0x154629(0x83)](_0x2a3a31['id']);return Array[_0x154629(0x8d)](_0x57a76b);}
23
+ const _0x5d91f7=_0xd1a0;function _0x4a1c(){const _0x374fd0=['change:isEnabled','model','40YxBrnp','99gqyUpf','plugins','refresh','isEmpty','requiresContent','from','document','_hasContext','config','62070sCnUUC','name','1434815YPlCxj','60944dlbodi','selection','showUI','enabledCommandsIds','getSelectedBlocks','9200275OJXSPS','includes','getItems','change:_hasContext','ai.aiAssistant.disabledElements','set','add','get','length','isEnabled','values','editor','element','getFirstRange','103347WALrqq','147208IFSiXi','44720820wjmYzk','isCollapsed','_commandDefinitions','execute','custom','hasContent','847izialj','getRanges'];_0x4a1c=function(){return _0x374fd0;};return _0x4a1c();}(function(_0x4ace06,_0x2fb800){const _0x111fda=_0xd1a0,_0x145333=_0x4ace06();while(!![]){try{const _0x219e24=parseInt(_0x111fda(0x116))/0x1+-parseInt(_0x111fda(0x10a))/0x2*(-parseInt(_0x111fda(0xfe))/0x3)+-parseInt(_0x111fda(0x117))/0x4+parseInt(_0x111fda(0x11c))/0x5+-parseInt(_0x111fda(0x114))/0x6*(-parseInt(_0x111fda(0x106))/0x7)+parseInt(_0x111fda(0xff))/0x8*(parseInt(_0x111fda(0x10b))/0x9)+-parseInt(_0x111fda(0x100))/0xa;if(_0x219e24===_0x2fb800)break;else _0x145333['push'](_0x145333['shift']());}catch(_0x211755){_0x145333['push'](_0x145333['shift']());}}}(_0x4a1c,0xe3380));import{Command as _0x25597c}from'ckeditor5/src/core.js';import _0x2ede17 from'../aiassistantui.js';export default class E extends _0x25597c{constructor(_0x8d16c9,_0x1e6848){const _0x1454d9=_0xd1a0;super(_0x8d16c9),this[_0x1454d9(0x102)]=_0x1e6848,this[_0x1454d9(0xf5)](_0x1454d9(0x11a),[]),this['on'](_0x1454d9(0x11f),(_0x1f2dee,_0x42b819,_0x573b45)=>{const _0x342af9=_0x1454d9;this[_0x342af9(0xf9)]&&(this[_0x342af9(0x11a)]=G(this[_0x342af9(0x102)],_0x573b45));}),this[_0x1454d9(0xf5)](_0x1454d9(0x112),!0x1),this['on'](_0x1454d9(0x108),(_0xe7df7d,_0x2b9584,_0xc939df)=>{const _0x586126=_0x1454d9;this[_0x586126(0x11a)]=_0xc939df?G(this[_0x586126(0x102)],this[_0x586126(0x112)]):[];});}[_0x5d91f7(0x10d)](){const _0x37c048=_0x5d91f7,_0x17f19a=this[_0x37c048(0xfb)][_0x37c048(0x109)];this[_0x37c048(0x112)]=function(_0x245d62){const _0x3215c8=_0x37c048,_0x3947bc=_0x245d62[_0x3215c8(0x111)][_0x3215c8(0x118)];return _0x3947bc[_0x3215c8(0x101)]?0x0!==[..._0x3947bc[_0x3215c8(0x11b)]()][_0x3215c8(0xf8)]&&![..._0x3947bc[_0x3215c8(0x11b)]()][0x0][_0x3215c8(0x10e)]:!!_0x245d62[_0x3215c8(0x105)](_0x3947bc[_0x3215c8(0xfd)]());}(_0x17f19a);const _0x1374f8=_0x17f19a[_0x37c048(0x111)][_0x37c048(0x118)],_0x4f2ea8=this[_0x37c048(0xfb)][_0x37c048(0x113)][_0x37c048(0xf7)](_0x37c048(0x120));for(const _0x185476 of _0x1374f8[_0x37c048(0x107)]())for(const _0x1a7ca7 of _0x185476[_0x37c048(0x11e)]())if(_0x1a7ca7['is'](_0x37c048(0xfc))&&_0x4f2ea8[_0x37c048(0x11d)](_0x1a7ca7[_0x37c048(0x115)]))return void(this[_0x37c048(0xf9)]=!0x1);this[_0x37c048(0xf9)]=!0x0;}[_0x5d91f7(0x103)](_0x4b81a6='',_0x3f82de='',_0x507059=_0x5d91f7(0x104)){const _0x50d066=_0x5d91f7;this[_0x50d066(0xfb)][_0x50d066(0x10c)][_0x50d066(0xf7)](_0x2ede17)[_0x50d066(0x119)](_0x4b81a6,_0x3f82de,_0x507059);}}function _0xd1a0(_0x4a7fd8,_0x425f6d){const _0x4a1ca9=_0x4a1c();return _0xd1a0=function(_0xd1a0f7,_0x519325){_0xd1a0f7=_0xd1a0f7-0xf5;let _0x3a97b7=_0x4a1ca9[_0xd1a0f7];return _0x3a97b7;},_0xd1a0(_0x4a7fd8,_0x425f6d);}function G(_0x466ee3,_0x3e3511){const _0x2a32f6=_0x5d91f7,_0x463b09=new Set();for(const _0x4e7f78 of _0x466ee3[_0x2a32f6(0xfa)]())(_0x3e3511||!0x1===_0x4e7f78[_0x2a32f6(0x10f)])&&_0x463b09[_0x2a32f6(0xf6)](_0x4e7f78['id']);return Array[_0x2a32f6(0x110)](_0x463b09);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x230cfd,_0x57daf2,_0x34bcba){const t=_0x230cfd['t'];switch(_0x57daf2){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',_0x34bcba);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x34bcba);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'},_0x34bcba);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 _0x57daf2;}}
23
+ export function getTranslation(_0x21ef4f,_0x1a00e1,_0x158775){const t=_0x21ef4f['t'];switch(_0x1a00e1){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',_0x158775);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x158775);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'},_0x158775);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 _0x1a00e1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x2d5cbf,_0x7a0a31){const _0x2d1ce3=(0x0,_0x7a0a31['t'])('Other');return _0x2d5cbf['length']?'groupId'in _0x2d5cbf[0x0]?_0x2d5cbf:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d1ce3,'order':0x1/0x0,'commands':_0x2d5cbf}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d1ce3,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x33ee57,_0x31a76b){const _0x272f44=(0x0,_0x31a76b['t'])('Other');return _0x33ee57['length']?'groupId'in _0x33ee57[0x0]?_0x33ee57:[{'groupId':'_ungrouppedCommands','groupLabel':_0x272f44,'order':0x1/0x0,'commands':_0x33ee57}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x272f44,'order':0x1/0x0,'commands':[]}];}