@ckeditor/ckeditor5-ai 44.1.0-alpha.2 → 44.1.0-alpha.4

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 +8 -8
  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 _0x37dd1a=_0xc9e9;(function(_0x4c7af2,_0x5ecea6){const _0x51c68a=_0xc9e9,_0x5dbfe9=_0x4c7af2();while(!![]){try{const _0x5bdfc1=-parseInt(_0x51c68a(0x1e3))/0x1+-parseInt(_0x51c68a(0x1f4))/0x2+-parseInt(_0x51c68a(0x1d8))/0x3*(parseInt(_0x51c68a(0x1e5))/0x4)+parseInt(_0x51c68a(0x1e0))/0x5+parseInt(_0x51c68a(0x1e9))/0x6+parseInt(_0x51c68a(0x1ea))/0x7+-parseInt(_0x51c68a(0x1e8))/0x8;if(_0x5bdfc1===_0x5ecea6)break;else _0x5dbfe9['push'](_0x5dbfe9['shift']());}catch(_0x48133c){_0x5dbfe9['push'](_0x5dbfe9['shift']());}}}(_0x4937,0x57f30));function _0xc9e9(_0x6013c2,_0xcc6071){const _0x493706=_0x4937();return _0xc9e9=function(_0xc9e987,_0x37548d){_0xc9e987=_0xc9e987-0x1d7;let _0x1c40f7=_0x493706[_0xc9e987];return _0x1c40f7;},_0xc9e9(_0x6013c2,_0xcc6071);}import{ToolbarView as _0x23fa8b,ButtonView as _0x4499b8}from'ckeditor5/src/ui.js';function _0x4937(){const _0x25cdb2=['set','insert','190268ZjuTQI','bindTemplate','32NpIsfh','ck-ai-form__toolbar','addMany','768552xsuraE','3562584OeIFQH','4296761xIyyxc','label','toUpperCase','locale','stopButton','extendTemplate','replace','Stop','bind','ck-hidden','817240meTaGK','isVisible','insertButton','_createButton','ck-button-action','replaceButton','mainAction','125691kgdeTp','_CONTENT','Try\x20again','REPLACE','AI_','tryAgainButton','Insert\x20below','items','913930iwUmQb'];_0x4937=function(){return _0x25cdb2;};return _0x4937();}import{getTranslation as _0x2dfc89}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x37dd1a(0x1f0),'INSERT':_0x37dd1a(0x1e2)};export default class nt extends _0x23fa8b{constructor(_0x55c618){const _0x3bf9d3=_0x37dd1a;super(_0x55c618),this[_0x3bf9d3(0x1e1)](_0x3bf9d3(0x1f5),!0x1),this[_0x3bf9d3(0x1e1)](_0x3bf9d3(0x1d7),AIFormToolbarViewMainActionLabel[_0x3bf9d3(0x1db)]),this[_0x3bf9d3(0x1f9)]=this[_0x3bf9d3(0x1f7)]('',_0x3bf9d3(0x1f8)),this[_0x3bf9d3(0x1f9)][_0x3bf9d3(0x1f2)](_0x3bf9d3(0x1eb))['to'](this,_0x3bf9d3(0x1d7),_0x43f8f7=>_0x2dfc89(_0x55c618,_0x3bf9d3(0x1dc)+_0x43f8f7[_0x3bf9d3(0x1ec)]()+_0x3bf9d3(0x1d9))),this[_0x3bf9d3(0x1f6)]=this[_0x3bf9d3(0x1f7)](_0x2dfc89(_0x55c618,_0x3bf9d3(0x1de))),this[_0x3bf9d3(0x1dd)]=this[_0x3bf9d3(0x1f7)](_0x2dfc89(_0x55c618,_0x3bf9d3(0x1da))),this[_0x3bf9d3(0x1ee)]=this[_0x3bf9d3(0x1f7)](_0x2dfc89(_0x55c618,_0x3bf9d3(0x1f1)));const _0x533be0=this[_0x3bf9d3(0x1e4)];this[_0x3bf9d3(0x1ef)]({'attributes':{'class':[_0x3bf9d3(0x1e6),_0x533be0['if'](_0x3bf9d3(0x1f5),_0x3bf9d3(0x1f3),_0x46e549=>!_0x46e549)]}}),this[_0x3bf9d3(0x1df)][_0x3bf9d3(0x1e7)]([this[_0x3bf9d3(0x1f9)],this[_0x3bf9d3(0x1f6)],this[_0x3bf9d3(0x1dd)],this[_0x3bf9d3(0x1ee)]]);}[_0x37dd1a(0x1f7)](_0x26b287,_0x3ac503){const _0x3e0319=_0x37dd1a,_0x45be60=new _0x4499b8(this[_0x3e0319(0x1ed)]);return _0x45be60[_0x3e0319(0x1e1)]({'label':_0x26b287,'class':_0x3ac503||'','isVisible':!0x0,'withText':!0x0}),_0x45be60;}}
23
+ const _0x124c27=_0x4a5a;function _0x4a5a(_0x5c930a,_0x110071){const _0x4012eb=_0x4012();return _0x4a5a=function(_0x4a5a45,_0x4f8ac7){_0x4a5a45=_0x4a5a45-0x8e;let _0x2d4af6=_0x4012eb[_0x4a5a45];return _0x2d4af6;},_0x4a5a(_0x5c930a,_0x110071);}(function(_0x3f1e5a,_0x5bc02f){const _0x1f569f=_0x4a5a,_0xcf9c4d=_0x3f1e5a();while(!![]){try{const _0x20e7a0=parseInt(_0x1f569f(0x8e))/0x1*(-parseInt(_0x1f569f(0x9d))/0x2)+-parseInt(_0x1f569f(0x99))/0x3+parseInt(_0x1f569f(0x93))/0x4*(parseInt(_0x1f569f(0xb2))/0x5)+-parseInt(_0x1f569f(0xa8))/0x6*(parseInt(_0x1f569f(0xac))/0x7)+-parseInt(_0x1f569f(0x8f))/0x8*(parseInt(_0x1f569f(0xa6))/0x9)+parseInt(_0x1f569f(0xa7))/0xa*(-parseInt(_0x1f569f(0xb1))/0xb)+parseInt(_0x1f569f(0xa5))/0xc;if(_0x20e7a0===_0x5bc02f)break;else _0xcf9c4d['push'](_0xcf9c4d['shift']());}catch(_0x167106){_0xcf9c4d['push'](_0xcf9c4d['shift']());}}}(_0x4012,0x4dd83));import{ToolbarView as _0x599b54,ButtonView as _0x553f2e}from'ckeditor5/src/ui.js';import{getTranslation as _0x4e286c}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x124c27(0xab),'INSERT':_0x124c27(0xad)};function _0x4012(){const _0x47e224=['104KfQyxS','REPLACE','_createButton','AI_','604iXRWui','_CONTENT','set','mainAction','Stop','replaceButton','1101879qSSkDU','Try\x20again','stopButton','isVisible','58244aXZILe','ck-button-action','label','items','insertButton','ck-ai-form__toolbar','bindTemplate','toUpperCase','25474044MSQxZL','427374IQwUef','1767910DjEXeu','78TBAbmd','extendTemplate','locale','replace','338863NPHOgG','insert','ck-hidden','tryAgainButton','addMany','11huQfSa','525nlsVVR','Insert\x20below','bind','1xnLjRv'];_0x4012=function(){return _0x47e224;};return _0x4012();}export default class nt extends _0x599b54{constructor(_0x25b6b3){const _0x355145=_0x124c27;super(_0x25b6b3),this[_0x355145(0x95)](_0x355145(0x9c),!0x1),this[_0x355145(0x95)](_0x355145(0x96),AIFormToolbarViewMainActionLabel[_0x355145(0x90)]),this[_0x355145(0x98)]=this[_0x355145(0x91)]('',_0x355145(0x9e)),this[_0x355145(0x98)][_0x355145(0xb4)](_0x355145(0x9f))['to'](this,_0x355145(0x96),_0x1103df=>_0x4e286c(_0x25b6b3,_0x355145(0x92)+_0x1103df[_0x355145(0xa4)]()+_0x355145(0x94))),this[_0x355145(0xa1)]=this[_0x355145(0x91)](_0x4e286c(_0x25b6b3,_0x355145(0xb3))),this[_0x355145(0xaf)]=this[_0x355145(0x91)](_0x4e286c(_0x25b6b3,_0x355145(0x9a))),this[_0x355145(0x9b)]=this[_0x355145(0x91)](_0x4e286c(_0x25b6b3,_0x355145(0x97)));const _0x3bbf5c=this[_0x355145(0xa3)];this[_0x355145(0xa9)]({'attributes':{'class':[_0x355145(0xa2),_0x3bbf5c['if'](_0x355145(0x9c),_0x355145(0xae),_0xad3873=>!_0xad3873)]}}),this[_0x355145(0xa0)][_0x355145(0xb0)]([this[_0x355145(0x98)],this[_0x355145(0xa1)],this[_0x355145(0xaf)],this[_0x355145(0x9b)]]);}[_0x124c27(0x91)](_0x52f1b6,_0x20e468){const _0x1d9999=_0x124c27,_0x4379d9=new _0x553f2e(this[_0x1d9999(0xaa)]);return _0x4379d9[_0x1d9999(0x95)]({'label':_0x52f1b6,'class':_0x20e468||'','isVisible':!0x0,'withText':!0x0}),_0x4379d9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f5468=_0x2be5;(function(_0x3b9561,_0x3ee40e){const _0x286411=_0x2be5,_0x41f553=_0x3b9561();while(!![]){try{const _0x203c1c=parseInt(_0x286411(0x203))/0x1*(parseInt(_0x286411(0x231))/0x2)+-parseInt(_0x286411(0x210))/0x3*(parseInt(_0x286411(0x214))/0x4)+parseInt(_0x286411(0x1e9))/0x5+parseInt(_0x286411(0x218))/0x6*(parseInt(_0x286411(0x228))/0x7)+-parseInt(_0x286411(0x22c))/0x8*(-parseInt(_0x286411(0x237))/0x9)+-parseInt(_0x286411(0x1f4))/0xa*(-parseInt(_0x286411(0x1fc))/0xb)+-parseInt(_0x286411(0x204))/0xc;if(_0x203c1c===_0x3ee40e)break;else _0x41f553['push'](_0x41f553['shift']());}catch(_0x1ab2c){_0x41f553['push'](_0x41f553['shift']());}}}(_0x2fd1,0x5a581));import{FocusTracker as _0x46ef73,KeystrokeHandler as _0xc319d5}from'ckeditor5/src/utils.js';import{View as _0x194caf,FocusCycler as _0x1512fe,createLabeledTextarea as _0x4ee9a4}from'ckeditor5/src/ui.js';import _0xe7a25e,{AIFormToolbarViewMainActionLabel as _0x405837}from'./aiformtoolbarview.js';import _0x501a4b from'./aiformcontentarea.js';import _0x190a14 from'./aiformerrorview.js';import _0xa1e850 from'./aiformpromptview.js';import _0x50f7b2 from'./aihistorylistview.js';import _0x3f2848 from'./aihistorylistitemview.js';import _0x44658a from'./prompthistory.js';function _0x2be5(_0x15a44b,_0x4780aa){const _0x2fd178=_0x2fd1();return _0x2be5=function(_0x2be5f2,_0x2a9a7d){_0x2be5f2=_0x2be5f2-0x1e8;let _0x38270d=_0x2fd178[_0x2be5f2];return _0x38270d;},_0x2be5(_0x15a44b,_0x4780aa);}function _0x2fd1(){const _0x2fcd8c=['delegate','insertButton','handleError','keystrokes','ck-hidden','execute','2786695EjWylL','focusLast','focusCycler','promptView','finishProcessing','clearHistory','Ask\x20AI\x20to\x20improve\x20generated\x20text','trim','clear','focusTracker','render','3010tsmgDg','bindTemplate','insertContentBelow','setTemplate','text','add','_createHistoryView','high','21362xSJfyy','bindTo','startProcessing','_createToolbar','Ask\x20AI\x20to\x20edit\x20or\x20generate','shift\x20+\x20tab','label','2tbeTcB','24037860EluhBR','errorView','fire','bind','copyButtonView','isEnabled','fieldView','ck-ai-form','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','replaceButton','stopButton','items','3JzUJHm','focusFirst','toolbar','chain','703540ANdDdz','stopProcessing','tab','_focusables','18DpWASi','value','createCollection','_promptHistory','focus','prompt','search','mainAction','AI_ERROR_FAILED','ck-ai-form-content','isVisible','queryView','replaceContent','isError','isProcessing','_createPromptView','1358644oXHmhZ','submitPrompt','historyGroupView','element','487624rCBRwF','div','tryAgainEvent','listenTo','submit','581120wXUawH','reset','REPLACE','contentArea','locale','Empty\x20history','36zBCjTs','tryAgainButton','set'];_0x2fd1=function(){return _0x2fcd8c;};return _0x2fd1();}import{getTranslation as _0x48ebb6}from'../../utils/common-translations.js';import{escape as _0x4eb046}from'lodash-es';export default class K extends _0x194caf{constructor(_0x581d7d,_0x48faed,_0x4258d3=''){const _0x21c336=_0x2be5;super(_0x581d7d),this[_0x21c336(0x239)](_0x21c336(0x209),!0x0),this[_0x21c336(0x239)](_0x21c336(0x226),!0x1),this[_0x21c336(0x239)](_0x21c336(0x21d),''),this[_0x21c336(0x239)](_0x21c336(0x219),''),this[_0x21c336(0x239)](_0x21c336(0x225),!0x1),this[_0x21c336(0x239)](_0x21c336(0x21f),_0x405837[_0x21c336(0x233)]),this[_0x21c336(0x21b)]=new _0x44658a(),this[_0x21c336(0x205)]=new _0x190a14(_0x581d7d),this[_0x21c336(0x234)]=new _0x501a4b(_0x581d7d,_0x4258d3),this[_0x21c336(0x234)][_0x21c336(0x207)](_0x21c336(0x226))['to'](this),this[_0x21c336(0x234)][_0x21c336(0x207)](_0x21c336(0x219))['to'](this),this[_0x21c336(0x212)]=this[_0x21c336(0x1ff)](),this[_0x21c336(0x212)][_0x21c336(0x207)](_0x21c336(0x21f))['to'](this),this[_0x21c336(0x1ec)]=this[_0x21c336(0x227)](),this[_0x21c336(0x1f2)]=new _0x46ef73(),this[_0x21c336(0x23d)]=new _0xc319d5(),this[_0x21c336(0x217)]=this[_0x21c336(0x21a)]([this[_0x21c336(0x234)],this[_0x21c336(0x234)][_0x21c336(0x208)],this[_0x21c336(0x212)],this[_0x21c336(0x1ec)]]),this[_0x21c336(0x1eb)]=new _0x1512fe({'focusables':this[_0x21c336(0x217)],'focusTracker':this[_0x21c336(0x1f2)],'keystrokeHandler':this[_0x21c336(0x23d)],'actions':{'focusPrevious':_0x21c336(0x201),'focusNext':_0x21c336(0x216)}}),this[_0x21c336(0x1eb)][_0x21c336(0x213)](this[_0x21c336(0x1ec)][_0x21c336(0x1eb)]),this[_0x21c336(0x1ec)][_0x21c336(0x223)][_0x21c336(0x20a)][_0x21c336(0x207)](_0x21c336(0x219))['to'](this,_0x21c336(0x21d));const _0x2415aa=this[_0x21c336(0x1f5)];this[_0x21c336(0x1f7)]({'tag':_0x21c336(0x22d),'attributes':{'class':['ck',_0x21c336(0x20b),_0x48faed],'tabindex':'-1'},'children':[{'tag':_0x21c336(0x22d),'attributes':{'class':['ck',_0x21c336(0x221)]},'children':[{'tag':_0x21c336(0x22d),'attributes':{'class':[_0x2415aa['if'](_0x21c336(0x225),_0x21c336(0x23e),_0xbe5062=>!_0xbe5062)]},'children':[this[_0x21c336(0x205)]]},this[_0x21c336(0x234)],this[_0x21c336(0x212)],this[_0x21c336(0x1ec)]]}]});}[_0x4f5468(0x1f3)](){const _0x513854=_0x4f5468;super[_0x513854(0x1f3)](),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x234)][_0x513854(0x22b)]),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x234)][_0x513854(0x208)][_0x513854(0x22b)]),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x212)][_0x513854(0x22b)]),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x1ec)][_0x513854(0x22b)]),this[_0x513854(0x23d)][_0x513854(0x22f)](this[_0x513854(0x22b)]);}[_0x4f5468(0x21c)](_0x33261a=0x1){const _0x493b54=_0x4f5468;-0x1===_0x33261a?this[_0x493b54(0x1eb)][_0x493b54(0x1ea)]():this[_0x493b54(0x1eb)][_0x493b54(0x211)]();}[_0x4f5468(0x232)](){const _0x1a5b8d=_0x4f5468;this[_0x1a5b8d(0x21d)]='',this[_0x1a5b8d(0x219)]='',this[_0x1a5b8d(0x225)]=!0x1,this[_0x1a5b8d(0x1ec)][_0x1a5b8d(0x232)](),this[_0x1a5b8d(0x234)][_0x1a5b8d(0x222)]=!0x1,this[_0x1a5b8d(0x212)][_0x1a5b8d(0x222)]=!0x1;}[_0x4f5468(0x227)](){const _0x533ad4=_0x4f5468,_0x19b673=this[_0x533ad4(0x235)],_0x1c1c1d=new _0xa1e850(_0x19b673,{'queryView':{'label':_0x48ebb6(_0x19b673,_0x533ad4(0x200)),'creator':_0x4ee9a4,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x48ebb6(_0x19b673,_0x533ad4(0x236)),'secondary':_0x48ebb6(_0x19b673,_0x533ad4(0x20c))}}},'filteredView':this[_0x533ad4(0x1fa)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1c1c1d[_0x533ad4(0x207)](_0x533ad4(0x209))['to'](this,_0x533ad4(0x209),this,_0x533ad4(0x226),(_0xa5ddcc,_0x789922)=>_0xa5ddcc&&!_0x789922),this[_0x533ad4(0x22f)](_0x1c1c1d,_0x533ad4(0x230),(_0x46ba04,_0x4b5a47)=>{const _0x34fe12=_0x533ad4;this[_0x34fe12(0x21d)]=_0x4b5a47;const _0x516b41=_0x4eb046(_0x4b5a47);this[_0x34fe12(0x206)](_0x34fe12(0x229),_0x516b41),_0x4b5a47[_0x34fe12(0x1f0)]()&&this[_0x34fe12(0x21b)][_0x34fe12(0x1f9)]({'prompt':_0x516b41},0x0);},{'priority':_0x533ad4(0x1fb)}),_0x1c1c1d;}[_0x4f5468(0x1fa)](){const _0x3c30d0=_0x4f5468,_0x2d90a6=new _0x50f7b2(this[_0x3c30d0(0x235)]);return _0x2d90a6[_0x3c30d0(0x22a)][_0x3c30d0(0x20f)][_0x3c30d0(0x1fd)](this[_0x3c30d0(0x21b)])['as'](_0x3f2848),_0x2d90a6['on'](_0x3c30d0(0x1ee),()=>{const _0xe6f5f3=_0x3c30d0;this[_0xe6f5f3(0x21b)][_0xe6f5f3(0x1f1)](),this[_0xe6f5f3(0x1ec)][_0xe6f5f3(0x21e)](''),this[_0xe6f5f3(0x1ec)][_0xe6f5f3(0x21c)]();}),_0x2d90a6;}[_0x4f5468(0x1ff)](){const _0x198ecc=_0x4f5468,_0x2767f9=new _0xe7a25e(this[_0x198ecc(0x235)]);return _0x2767f9[_0x198ecc(0x20d)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x209),this,_0x198ecc(0x226),this,_0x198ecc(0x219),(_0x4ed597,_0x1a4b2b,_0x2be9f1)=>_0x4ed597&&!_0x1a4b2b&&!!_0x2be9f1),_0x2767f9[_0x198ecc(0x20d)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x224)),_0x2767f9[_0x198ecc(0x23b)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x209),this,_0x198ecc(0x226),this,_0x198ecc(0x219),(_0x31cc12,_0x4297e3,_0x3cc6d5)=>_0x31cc12&&!_0x4297e3&&!!_0x3cc6d5),_0x2767f9[_0x198ecc(0x23b)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x1f6)),_0x2767f9[_0x198ecc(0x238)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x209),this,_0x198ecc(0x226),(_0x53806b,_0x542993)=>_0x53806b&&!_0x542993),_0x2767f9[_0x198ecc(0x238)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x22e)),_0x2767f9[_0x198ecc(0x20e)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x226)),_0x2767f9[_0x198ecc(0x20e)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x215)),_0x2767f9;}[_0x4f5468(0x1fe)](){const _0xa5b045=_0x4f5468;this[_0xa5b045(0x219)]='',this[_0xa5b045(0x225)]=!0x1,this[_0xa5b045(0x226)]=!0x0,this[_0xa5b045(0x234)][_0xa5b045(0x222)]=!0x0,this[_0xa5b045(0x212)][_0xa5b045(0x222)]=!0x0,this[_0xa5b045(0x234)][_0xa5b045(0x21c)]();}[_0x4f5468(0x1ed)](){const _0x4f531c=_0x4f5468,_0x1ea323=this[_0x4f531c(0x235)];this[_0x4f531c(0x226)]=!0x1,this[_0x4f531c(0x21d)]='',this[_0x4f531c(0x1ec)][_0x4f531c(0x232)](),this[_0x4f531c(0x219)]&&(this[_0x4f531c(0x1ec)][_0x4f531c(0x223)][_0x4f531c(0x202)]=_0x48ebb6(_0x1ea323,_0x4f531c(0x1ef)));}[_0x4f5468(0x23c)](_0x27073e){const _0xcf2357=_0x4f5468,_0x3f5238=this[_0xcf2357(0x235)];this[_0xcf2357(0x1ed)](),this[_0xcf2357(0x225)]=!0x0,this[_0xcf2357(0x205)][_0xcf2357(0x1f8)]=_0x27073e||_0x48ebb6(_0x3f5238,_0xcf2357(0x220)),this[_0xcf2357(0x219)]||(this[_0xcf2357(0x234)][_0xcf2357(0x222)]=!0x1);}}
23
+ const _0x1e30b3=_0x5398;(function(_0x597674,_0x23aa9e){const _0x1dad55=_0x5398,_0x7c8196=_0x597674();while(!![]){try{const _0x33cf85=-parseInt(_0x1dad55(0x172))/0x1+-parseInt(_0x1dad55(0x184))/0x2+parseInt(_0x1dad55(0x147))/0x3+-parseInt(_0x1dad55(0x191))/0x4+-parseInt(_0x1dad55(0x188))/0x5+parseInt(_0x1dad55(0x168))/0x6+parseInt(_0x1dad55(0x173))/0x7*(parseInt(_0x1dad55(0x169))/0x8);if(_0x33cf85===_0x23aa9e)break;else _0x7c8196['push'](_0x7c8196['shift']());}catch(_0x1193c1){_0x7c8196['push'](_0x7c8196['shift']());}}}(_0x14cd,0x71580));import{FocusTracker as _0x5addcc,KeystrokeHandler as _0x263865}from'ckeditor5/src/utils.js';import{View as _0x1fadac,FocusCycler as _0x4bbe7e,createLabeledTextarea as _0x3106db}from'ckeditor5/src/ui.js';import _0x27e062,{AIFormToolbarViewMainActionLabel as _0x533a9a}from'./aiformtoolbarview.js';import _0x26f9ab from'./aiformcontentarea.js';function _0x14cd(){const _0x3d70d4=['focusTracker','insertButton','historyGroupView','execute','copyButtonView','clearHistory','render','focusCycler','focusFirst','element','stopButton','focusLast','contentArea','insertContentBelow','trim','isEnabled','errorView','label','2176428iyUVbf','8TLhyKQ','high','tryAgainEvent','_focusables','items','value','keystrokes','_createPromptView','delegate','565365yuAVof','10887562CzbGla','stopProcessing','listenTo','startProcessing','Ask\x20AI\x20to\x20improve\x20generated\x20text','queryView','submit','tryAgainButton','createCollection','Empty\x20history','_createHistoryView','isVisible','add','bindTo','div','fire','set','587546iaLLtU','submitPrompt','ck-ai-form-content','text','3613515dgQFgI','toolbar','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','clear','isError','focus','replaceContent','chain','ck-ai-form','3183964PxTFfd','bind','tab','reset','isProcessing','REPLACE','prompt','ck-hidden','shift\x20+\x20tab','2771952DCBNWn','setTemplate','locale','fieldView','finishProcessing','replaceButton','promptView','_promptHistory','mainAction','_createToolbar','bindTemplate','handleError','AI_ERROR_FAILED','Ask\x20AI\x20to\x20edit\x20or\x20generate','search'];_0x14cd=function(){return _0x3d70d4;};return _0x14cd();}import _0x450bed from'./aiformerrorview.js';import _0x2b0a66 from'./aiformpromptview.js';import _0x467c2a from'./aihistorylistview.js';import _0x484547 from'./aihistorylistitemview.js';import _0x341d91 from'./prompthistory.js';import{getTranslation as _0x13b9cd}from'../../utils/common-translations.js';import{escape as _0xa6be2a}from'lodash-es';function _0x5398(_0x42a6bc,_0x581c9a){const _0x14cd34=_0x14cd();return _0x5398=function(_0x5398a3,_0x382b00){_0x5398a3=_0x5398a3-0x146;let _0x155244=_0x14cd34[_0x5398a3];return _0x155244;},_0x5398(_0x42a6bc,_0x581c9a);}export default class K extends _0x1fadac{constructor(_0x27cbb9,_0x3d0d31,_0x4f8469=''){const _0x5a43c7=_0x5398;super(_0x27cbb9),this[_0x5a43c7(0x183)](_0x5a43c7(0x165),!0x0),this[_0x5a43c7(0x183)](_0x5a43c7(0x195),!0x1),this[_0x5a43c7(0x183)](_0x5a43c7(0x197),''),this[_0x5a43c7(0x183)](_0x5a43c7(0x16e),''),this[_0x5a43c7(0x183)](_0x5a43c7(0x18c),!0x1),this[_0x5a43c7(0x183)](_0x5a43c7(0x14f),_0x533a9a[_0x5a43c7(0x196)]),this[_0x5a43c7(0x14e)]=new _0x341d91(),this[_0x5a43c7(0x166)]=new _0x450bed(_0x27cbb9),this[_0x5a43c7(0x162)]=new _0x26f9ab(_0x27cbb9,_0x4f8469),this[_0x5a43c7(0x162)][_0x5a43c7(0x192)](_0x5a43c7(0x195))['to'](this),this[_0x5a43c7(0x162)][_0x5a43c7(0x192)](_0x5a43c7(0x16e))['to'](this),this[_0x5a43c7(0x189)]=this[_0x5a43c7(0x150)](),this[_0x5a43c7(0x189)][_0x5a43c7(0x192)](_0x5a43c7(0x14f))['to'](this),this[_0x5a43c7(0x14d)]=this[_0x5a43c7(0x170)](),this[_0x5a43c7(0x156)]=new _0x5addcc(),this[_0x5a43c7(0x16f)]=new _0x263865(),this[_0x5a43c7(0x16c)]=this[_0x5a43c7(0x17b)]([this[_0x5a43c7(0x162)],this[_0x5a43c7(0x162)][_0x5a43c7(0x15a)],this[_0x5a43c7(0x189)],this[_0x5a43c7(0x14d)]]),this[_0x5a43c7(0x15d)]=new _0x4bbe7e({'focusables':this[_0x5a43c7(0x16c)],'focusTracker':this[_0x5a43c7(0x156)],'keystrokeHandler':this[_0x5a43c7(0x16f)],'actions':{'focusPrevious':_0x5a43c7(0x146),'focusNext':_0x5a43c7(0x193)}}),this[_0x5a43c7(0x15d)][_0x5a43c7(0x18f)](this[_0x5a43c7(0x14d)][_0x5a43c7(0x15d)]),this[_0x5a43c7(0x14d)][_0x5a43c7(0x178)][_0x5a43c7(0x14a)][_0x5a43c7(0x192)](_0x5a43c7(0x16e))['to'](this,_0x5a43c7(0x197));const _0x3a2d93=this[_0x5a43c7(0x151)];this[_0x5a43c7(0x148)]({'tag':_0x5a43c7(0x181),'attributes':{'class':['ck',_0x5a43c7(0x190),_0x3d0d31],'tabindex':'-1'},'children':[{'tag':_0x5a43c7(0x181),'attributes':{'class':['ck',_0x5a43c7(0x186)]},'children':[{'tag':_0x5a43c7(0x181),'attributes':{'class':[_0x3a2d93['if'](_0x5a43c7(0x18c),_0x5a43c7(0x198),_0xc67e82=>!_0xc67e82)]},'children':[this[_0x5a43c7(0x166)]]},this[_0x5a43c7(0x162)],this[_0x5a43c7(0x189)],this[_0x5a43c7(0x14d)]]}]});}[_0x1e30b3(0x15c)](){const _0x27b291=_0x1e30b3;super[_0x27b291(0x15c)](),this[_0x27b291(0x156)][_0x27b291(0x17f)](this[_0x27b291(0x162)][_0x27b291(0x15f)]),this[_0x27b291(0x156)][_0x27b291(0x17f)](this[_0x27b291(0x162)][_0x27b291(0x15a)][_0x27b291(0x15f)]),this[_0x27b291(0x156)][_0x27b291(0x17f)](this[_0x27b291(0x189)][_0x27b291(0x15f)]),this[_0x27b291(0x156)][_0x27b291(0x17f)](this[_0x27b291(0x14d)][_0x27b291(0x15f)]),this[_0x27b291(0x16f)][_0x27b291(0x175)](this[_0x27b291(0x15f)]);}[_0x1e30b3(0x18d)](_0x1e77af=0x1){const _0x24cfae=_0x1e30b3;-0x1===_0x1e77af?this[_0x24cfae(0x15d)][_0x24cfae(0x161)]():this[_0x24cfae(0x15d)][_0x24cfae(0x15e)]();}[_0x1e30b3(0x194)](){const _0x2e59f8=_0x1e30b3;this[_0x2e59f8(0x197)]='',this[_0x2e59f8(0x16e)]='',this[_0x2e59f8(0x18c)]=!0x1,this[_0x2e59f8(0x14d)][_0x2e59f8(0x194)](),this[_0x2e59f8(0x162)][_0x2e59f8(0x17e)]=!0x1,this[_0x2e59f8(0x189)][_0x2e59f8(0x17e)]=!0x1;}[_0x1e30b3(0x170)](){const _0x2ffc39=_0x1e30b3,_0x104bae=this[_0x2ffc39(0x149)],_0x456dfc=new _0x2b0a66(_0x104bae,{'queryView':{'label':_0x13b9cd(_0x104bae,_0x2ffc39(0x154)),'creator':_0x3106db,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x13b9cd(_0x104bae,_0x2ffc39(0x17c)),'secondary':_0x13b9cd(_0x104bae,_0x2ffc39(0x18a))}}},'filteredView':this[_0x2ffc39(0x17d)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x456dfc[_0x2ffc39(0x192)](_0x2ffc39(0x165))['to'](this,_0x2ffc39(0x165),this,_0x2ffc39(0x195),(_0x16d44c,_0x2c5359)=>_0x16d44c&&!_0x2c5359),this[_0x2ffc39(0x175)](_0x456dfc,_0x2ffc39(0x179),(_0x29722c,_0x1d5878)=>{const _0x3a9f5e=_0x2ffc39;this[_0x3a9f5e(0x197)]=_0x1d5878;const _0x24b302=_0xa6be2a(_0x1d5878);this[_0x3a9f5e(0x182)](_0x3a9f5e(0x185),_0x24b302),_0x1d5878[_0x3a9f5e(0x164)]()&&this[_0x3a9f5e(0x14e)][_0x3a9f5e(0x17f)]({'prompt':_0x24b302},0x0);},{'priority':_0x2ffc39(0x16a)}),_0x456dfc;}[_0x1e30b3(0x17d)](){const _0x428b19=_0x1e30b3,_0x23d3f8=new _0x467c2a(this[_0x428b19(0x149)]);return _0x23d3f8[_0x428b19(0x158)][_0x428b19(0x16d)][_0x428b19(0x180)](this[_0x428b19(0x14e)])['as'](_0x484547),_0x23d3f8['on'](_0x428b19(0x15b),()=>{const _0x44702a=_0x428b19;this[_0x44702a(0x14e)][_0x44702a(0x18b)](),this[_0x44702a(0x14d)][_0x44702a(0x155)](''),this[_0x44702a(0x14d)][_0x44702a(0x18d)]();}),_0x23d3f8;}[_0x1e30b3(0x150)](){const _0x419c15=_0x1e30b3,_0x350473=new _0x27e062(this[_0x419c15(0x149)]);return _0x350473[_0x419c15(0x14c)][_0x419c15(0x192)](_0x419c15(0x165))['to'](this,_0x419c15(0x165),this,_0x419c15(0x195),this,_0x419c15(0x16e),(_0x59d8d9,_0x19170a,_0x2f92ad)=>_0x59d8d9&&!_0x19170a&&!!_0x2f92ad),_0x350473[_0x419c15(0x14c)][_0x419c15(0x171)](_0x419c15(0x159))['to'](this,_0x419c15(0x18e)),_0x350473[_0x419c15(0x157)][_0x419c15(0x192)](_0x419c15(0x165))['to'](this,_0x419c15(0x165),this,_0x419c15(0x195),this,_0x419c15(0x16e),(_0x540bbe,_0x1d75e9,_0x2ec884)=>_0x540bbe&&!_0x1d75e9&&!!_0x2ec884),_0x350473[_0x419c15(0x157)][_0x419c15(0x171)](_0x419c15(0x159))['to'](this,_0x419c15(0x163)),_0x350473[_0x419c15(0x17a)][_0x419c15(0x192)](_0x419c15(0x165))['to'](this,_0x419c15(0x165),this,_0x419c15(0x195),(_0x50a28a,_0x1aabeb)=>_0x50a28a&&!_0x1aabeb),_0x350473[_0x419c15(0x17a)][_0x419c15(0x171)](_0x419c15(0x159))['to'](this,_0x419c15(0x16b)),_0x350473[_0x419c15(0x160)][_0x419c15(0x192)](_0x419c15(0x165))['to'](this,_0x419c15(0x195)),_0x350473[_0x419c15(0x160)][_0x419c15(0x171)](_0x419c15(0x159))['to'](this,_0x419c15(0x174)),_0x350473;}[_0x1e30b3(0x176)](){const _0x35e090=_0x1e30b3;this[_0x35e090(0x16e)]='',this[_0x35e090(0x18c)]=!0x1,this[_0x35e090(0x195)]=!0x0,this[_0x35e090(0x162)][_0x35e090(0x17e)]=!0x0,this[_0x35e090(0x189)][_0x35e090(0x17e)]=!0x0,this[_0x35e090(0x162)][_0x35e090(0x18d)]();}[_0x1e30b3(0x14b)](){const _0x5457ba=_0x1e30b3,_0x198331=this[_0x5457ba(0x149)];this[_0x5457ba(0x195)]=!0x1,this[_0x5457ba(0x197)]='',this[_0x5457ba(0x14d)][_0x5457ba(0x194)](),this[_0x5457ba(0x16e)]&&(this[_0x5457ba(0x14d)][_0x5457ba(0x178)][_0x5457ba(0x167)]=_0x13b9cd(_0x198331,_0x5457ba(0x177)));}[_0x1e30b3(0x152)](_0x4df192){const _0x5dc973=_0x1e30b3,_0x42c843=this[_0x5dc973(0x149)];this[_0x5dc973(0x14b)](),this[_0x5dc973(0x18c)]=!0x0,this[_0x5dc973(0x166)][_0x5dc973(0x187)]=_0x4df192||_0x13b9cd(_0x42c843,_0x5dc973(0x153)),this[_0x5dc973(0x16e)]||(this[_0x5dc973(0x162)][_0x5dc973(0x17e)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2f57b5,_0x34a828){const _0x1c6e92=_0x553c,_0x54ec30=_0x2f57b5();while(!![]){try{const _0x33b44d=-parseInt(_0x1c6e92(0x117))/0x1+-parseInt(_0x1c6e92(0x114))/0x2+parseInt(_0x1c6e92(0x11d))/0x3*(-parseInt(_0x1c6e92(0x11c))/0x4)+parseInt(_0x1c6e92(0x111))/0x5+-parseInt(_0x1c6e92(0x118))/0x6*(-parseInt(_0x1c6e92(0x113))/0x7)+parseInt(_0x1c6e92(0x11e))/0x8*(parseInt(_0x1c6e92(0x11b))/0x9)+-parseInt(_0x1c6e92(0x11a))/0xa;if(_0x33b44d===_0x34a828)break;else _0x54ec30['push'](_0x54ec30['shift']());}catch(_0x456664){_0x54ec30['push'](_0x54ec30['shift']());}}}(_0x1e26,0x363fb));import{ListItemView as _0x65065b,ButtonView as _0xad43e8,ButtonLabelView as _0x2ec9e5}from'ckeditor5/src/ui.js';import{unescape as _0x806cd9}from'lodash-es';function _0x553c(_0x246174,_0x1b090c){const _0x1e2681=_0x1e26();return _0x553c=function(_0x553c7b,_0x1060d7){_0x553c7b=_0x553c7b-0x10e;let _0x4ade0d=_0x1e2681[_0x553c7b];return _0x4ade0d;},_0x553c(_0x246174,_0x1b090c);}function _0x1e26(){const _0x30c263=['18OyuvcG','add','2276570xKmAZi','501948lhckgR','12660olhfsj','69mnWODR','40oaKOYH','execute','locale','prompt','786385QhpvVn','set','438487eRCrfd','190554NCIHlF','children','fire','6128bTfSEA'];_0x1e26=function(){return _0x30c263;};return _0x1e26();}export default class hs extends _0x65065b{constructor(_0x24f3e3){const _0x5bb2da=_0x553c;super();const _0x21b1f9=new _0x2ec9e5(),_0x308988=new _0xad43e8(this[_0x5bb2da(0x10f)],_0x21b1f9);this[_0x5bb2da(0x115)][_0x5bb2da(0x119)](_0x308988),_0x308988[_0x5bb2da(0x112)]({'label':_0x24f3e3[_0x5bb2da(0x110)],'withText':!0x0}),_0x308988['on'](_0x5bb2da(0x10e),()=>{const _0x1b21e8=_0x5bb2da;this[_0x1b21e8(0x116)](_0x1b21e8(0x10e),{'value':_0x806cd9(_0x24f3e3[_0x1b21e8(0x110)])});});}}
23
+ (function(_0x5e35bd,_0x55af66){const _0x2be554=_0x4279,_0x18ebdc=_0x5e35bd();while(!![]){try{const _0x4bac8c=-parseInt(_0x2be554(0x152))/0x1*(parseInt(_0x2be554(0x149))/0x2)+parseInt(_0x2be554(0x14c))/0x3+-parseInt(_0x2be554(0x155))/0x4*(parseInt(_0x2be554(0x151))/0x5)+parseInt(_0x2be554(0x14f))/0x6*(-parseInt(_0x2be554(0x154))/0x7)+parseInt(_0x2be554(0x14e))/0x8+parseInt(_0x2be554(0x153))/0x9*(parseInt(_0x2be554(0x148))/0xa)+parseInt(_0x2be554(0x146))/0xb*(parseInt(_0x2be554(0x143))/0xc);if(_0x4bac8c===_0x55af66)break;else _0x18ebdc['push'](_0x18ebdc['shift']());}catch(_0x3c46f1){_0x18ebdc['push'](_0x18ebdc['shift']());}}}(_0x5971,0xa86a9));function _0x5971(){const _0x2c6221=['495IJkJWs','1FPAJZl','63lgShoX','338919Syrdke','14460CQzecD','5092896Azudje','execute','add','44saHNSt','fire','132930YHUFuK','2602442VFbTFh','locale','prompt','3853071yHDAEb','set','5036600yhPKpz','168BSYmcq','children'];_0x5971=function(){return _0x2c6221;};return _0x5971();}import{ListItemView as _0x396ffe,ButtonView as _0x19f2e0,ButtonLabelView as _0x381e78}from'ckeditor5/src/ui.js';function _0x4279(_0x125b50,_0x20f1fd){const _0x59714c=_0x5971();return _0x4279=function(_0x427958,_0x35e776){_0x427958=_0x427958-0x143;let _0x132705=_0x59714c[_0x427958];return _0x132705;},_0x4279(_0x125b50,_0x20f1fd);}import{unescape as _0xc0dcd8}from'lodash-es';export default class hs extends _0x396ffe{constructor(_0x2e4824){const _0x7dd2c4=_0x4279;super();const _0x518c58=new _0x381e78(),_0x1b4b22=new _0x19f2e0(this[_0x7dd2c4(0x14a)],_0x518c58);this[_0x7dd2c4(0x150)][_0x7dd2c4(0x145)](_0x1b4b22),_0x1b4b22[_0x7dd2c4(0x14d)]({'label':_0x2e4824[_0x7dd2c4(0x14b)],'withText':!0x0}),_0x1b4b22['on'](_0x7dd2c4(0x144),()=>{const _0x1cb05f=_0x7dd2c4;this[_0x1cb05f(0x147)](_0x1cb05f(0x144),{'value':_0xc0dcd8(_0x2e4824[_0x1cb05f(0x14b)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd2765d=_0x1e1d;(function(_0x4f8b89,_0x21a8b3){const _0x23d692=_0x1e1d,_0x394d15=_0x4f8b89();while(!![]){try{const _0x32821f=-parseInt(_0x23d692(0xfa))/0x1+parseInt(_0x23d692(0xf8))/0x2+-parseInt(_0x23d692(0xe9))/0x3+parseInt(_0x23d692(0xea))/0x4+parseInt(_0x23d692(0xf3))/0x5*(parseInt(_0x23d692(0xfc))/0x6)+-parseInt(_0x23d692(0x101))/0x7*(-parseInt(_0x23d692(0xf4))/0x8)+-parseInt(_0x23d692(0xfb))/0x9*(parseInt(_0x23d692(0xf1))/0xa);if(_0x32821f===_0x21a8b3)break;else _0x394d15['push'](_0x394d15['shift']());}catch(_0x1d0cde){_0x394d15['push'](_0x394d15['shift']());}}}(_0x326e,0xbd852));function _0x326e(){const _0x11e67d=['1843194jLNqeg','children','Prompt\x20history','locale','filter','105308LDbASR','clearHistoryButton','fire','3183714vyWHvE','2808776nHcZRJ','historyGroupView','delegate','label','items','add','length','12170OTYuly','_createClearHistoryButton','15aJTmfh','8KcBTZB','execute','Clear','set','2920198nSLSTM','clearHistory','1043579oBMIzG','1611pzPWCF'];_0x326e=function(){return _0x11e67d;};return _0x326e();}function _0x1e1d(_0x111891,_0x42c4f7){const _0x326eca=_0x326e();return _0x1e1d=function(_0x1e1dbe,_0x4bde34){_0x1e1dbe=_0x1e1dbe-0xe7;let _0x59e397=_0x326eca[_0x1e1dbe];return _0x59e397;},_0x1e1d(_0x111891,_0x42c4f7);}import{ListView as _0x45c426,ListItemGroupView as _0x2fdf37,ButtonView as _0x3438b2}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c2b7c}from'../../utils/common-translations.js';export default class rs extends _0x45c426{constructor(_0xfdab9f){const _0x442c2d=_0x1e1d;super(_0xfdab9f),this[_0x442c2d(0xe7)]=this[_0x442c2d(0xf2)](),this[_0x442c2d(0xeb)]=new _0x2fdf37(),this[_0x442c2d(0xeb)][_0x442c2d(0xfd)][_0x442c2d(0xef)](this[_0x442c2d(0xe7)],0x1),this[_0x442c2d(0xeb)][_0x442c2d(0xed)]=_0x1c2b7c(_0xfdab9f,_0x442c2d(0xfe)),this[_0x442c2d(0xeb)][_0x442c2d(0xee)][_0x442c2d(0xec)](_0x442c2d(0xf5))['to'](this),this[_0x442c2d(0xee)][_0x442c2d(0xef)](this[_0x442c2d(0xeb)]);}[_0xd2765d(0x100)](){const _0x58f0c5=_0xd2765d;let _0x515c1f=0x0;for(const _0x24d184 of this[_0x58f0c5(0xee)])_0x515c1f+=_0x24d184[_0x58f0c5(0xee)][_0x58f0c5(0xf0)];return{'resultsCount':_0x515c1f,'totalItemsCount':_0x515c1f};}[_0xd2765d(0xf2)](){const _0x165d2e=_0xd2765d,_0x4068fc=this[_0x165d2e(0xff)],_0x35c22f=new _0x3438b2(this[_0x165d2e(0xff)]);return _0x35c22f[_0x165d2e(0xf7)]({'label':'('+_0x1c2b7c(_0x4068fc,_0x165d2e(0xf6))+')','withText':!0x0}),_0x35c22f['on'](_0x165d2e(0xf5),()=>this[_0x165d2e(0xe8)](_0x165d2e(0xf9))),_0x35c22f;}}
23
+ const _0xd17c77=_0x4b4e;function _0x56b8(){const _0x4416a6=['1jIGAKV','1397600qYnZsg','clearHistory','length','430650NsFPfa','filter','1217912EPRGsl','items','label','1915659rcJwxu','Prompt\x20history','clearHistoryButton','add','2096ZbvSiD','children','set','locale','execute','_createClearHistoryButton','delegate','4959LgZFvU','1022966BwKrpg','55fDrhFu','397685QIzObq','fire','24VTHeyt','Clear','historyGroupView'];_0x56b8=function(){return _0x4416a6;};return _0x56b8();}(function(_0x21cc32,_0x5ebdc5){const _0x197e69=_0x4b4e,_0x4245ba=_0x21cc32();while(!![]){try{const _0x21e5b9=-parseInt(_0x197e69(0x1bc))/0x1*(parseInt(_0x197e69(0x1c2))/0x2)+parseInt(_0x197e69(0x1c5))/0x3+-parseInt(_0x197e69(0x1b9))/0x4*(parseInt(_0x197e69(0x1b7))/0x5)+parseInt(_0x197e69(0x1c0))/0x6+parseInt(_0x197e69(0x1b5))/0x7+-parseInt(_0x197e69(0x1c9))/0x8*(parseInt(_0x197e69(0x1b4))/0x9)+-parseInt(_0x197e69(0x1bd))/0xa*(-parseInt(_0x197e69(0x1b6))/0xb);if(_0x21e5b9===_0x5ebdc5)break;else _0x4245ba['push'](_0x4245ba['shift']());}catch(_0x1a5dc4){_0x4245ba['push'](_0x4245ba['shift']());}}}(_0x56b8,0x4f476));function _0x4b4e(_0x3df8ac,_0x33f28e){const _0x56b8ac=_0x56b8();return _0x4b4e=function(_0x4b4e08,_0x4050ba){_0x4b4e08=_0x4b4e08-0x1b1;let _0x43ccb9=_0x56b8ac[_0x4b4e08];return _0x43ccb9;},_0x4b4e(_0x3df8ac,_0x33f28e);}import{ListView as _0x57fbb0,ListItemGroupView as _0x5a6c59,ButtonView as _0x22a520}from'ckeditor5/src/ui.js';import{getTranslation as _0x3601e1}from'../../utils/common-translations.js';export default class rs extends _0x57fbb0{constructor(_0x5ebd3a){const _0x1cf0b5=_0x4b4e;super(_0x5ebd3a),this[_0x1cf0b5(0x1c7)]=this[_0x1cf0b5(0x1b2)](),this[_0x1cf0b5(0x1bb)]=new _0x5a6c59(),this[_0x1cf0b5(0x1bb)][_0x1cf0b5(0x1ca)][_0x1cf0b5(0x1c8)](this[_0x1cf0b5(0x1c7)],0x1),this[_0x1cf0b5(0x1bb)][_0x1cf0b5(0x1c4)]=_0x3601e1(_0x5ebd3a,_0x1cf0b5(0x1c6)),this[_0x1cf0b5(0x1bb)][_0x1cf0b5(0x1c3)][_0x1cf0b5(0x1b3)](_0x1cf0b5(0x1b1))['to'](this),this[_0x1cf0b5(0x1c3)][_0x1cf0b5(0x1c8)](this[_0x1cf0b5(0x1bb)]);}[_0xd17c77(0x1c1)](){const _0x35a0eb=_0xd17c77;let _0x4fdd84=0x0;for(const _0x15bfdc of this[_0x35a0eb(0x1c3)])_0x4fdd84+=_0x15bfdc[_0x35a0eb(0x1c3)][_0x35a0eb(0x1bf)];return{'resultsCount':_0x4fdd84,'totalItemsCount':_0x4fdd84};}[_0xd17c77(0x1b2)](){const _0x359bc6=_0xd17c77,_0x23e73a=this[_0x359bc6(0x1cc)],_0x3f3a7b=new _0x22a520(this[_0x359bc6(0x1cc)]);return _0x3f3a7b[_0x359bc6(0x1cb)]({'label':'('+_0x3601e1(_0x23e73a,_0x359bc6(0x1ba))+')','withText':!0x0}),_0x3f3a7b['on'](_0x359bc6(0x1b1),()=>this[_0x359bc6(0x1b8)](_0x359bc6(0x1be))),_0x3f3a7b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f5e0b=_0x5bfb;(function(_0x1cb687,_0x2985dd){const _0x481935=_0x5bfb,_0x5338d1=_0x1cb687();while(!![]){try{const _0x3b9ba2=-parseInt(_0x481935(0x7c))/0x1+-parseInt(_0x481935(0x8d))/0x2+parseInt(_0x481935(0x87))/0x3+parseInt(_0x481935(0x82))/0x4+parseInt(_0x481935(0x80))/0x5+parseInt(_0x481935(0x8a))/0x6*(parseInt(_0x481935(0x83))/0x7)+-parseInt(_0x481935(0x7d))/0x8*(-parseInt(_0x481935(0x88))/0x9);if(_0x3b9ba2===_0x2985dd)break;else _0x5338d1['push'](_0x5338d1['shift']());}catch(_0x4b0c6a){_0x5338d1['push'](_0x5338d1['shift']());}}}(_0x2f96,0x44588));import{Collection as _0x48da2d}from'ckeditor5/src/utils.js';const cs=_0x4f5e0b(0x7a);function _0x5bfb(_0x4ca688,_0x58abe2){const _0x2f968e=_0x2f96();return _0x5bfb=function(_0x5bfb2d,_0x19ef8b){_0x5bfb2d=_0x5bfb2d-0x78;let _0x3104d7=_0x2f968e[_0x5bfb2d];return _0x3104d7;},_0x5bfb(_0x4ca688,_0x58abe2);}export default class os extends _0x48da2d{constructor(){const _0x55c81f=_0x4f5e0b;super(),this[_0x55c81f(0x81)](),this['on'](_0x55c81f(0x8c),(_0x12a05,_0xdc9c92)=>{const _0x1f83f4=_0x55c81f,_0xe20b9b=Ss(_0xdc9c92[_0x1f83f4(0x86)]);for(const _0x6bda2b of this)if(_0x6bda2b!=_0xdc9c92&&Ss(_0x6bda2b[_0x1f83f4(0x86)])===_0xe20b9b){this[_0x1f83f4(0x8e)](_0x6bda2b);break;}this[_0x1f83f4(0x79)]>0x14&&this[_0x1f83f4(0x8e)](this[_0x1f83f4(0x7e)]),this[_0x1f83f4(0x78)]();}),this['on'](_0x55c81f(0x8e),()=>{const _0x2ae9df=_0x55c81f;this[_0x2ae9df(0x78)]();});}[_0x4f5e0b(0x81)](){const _0x3f1ddf=_0x4f5e0b,_0x246782=sessionStorage[_0x3f1ddf(0x7f)](cs)||'[]';this[_0x3f1ddf(0x89)](JSON[_0x3f1ddf(0x85)](_0x246782));}[_0x4f5e0b(0x78)](){const _0x36483d=_0x4f5e0b;sessionStorage[_0x36483d(0x8f)](cs,JSON[_0x36483d(0x7b)](this[_0x36483d(0x8b)](_0x5c0a6a=>_0x5c0a6a)));}}function _0x2f96(){const _0x11e8a8=['777594MgsqFT','12375ByThQC','addMany','233250nwxnFH','map','add','654316PRtyVg','remove','setItem','toLowerCase','_saveToSessionStorage','length','CKEditor/AIFormView/PromptHistory','stringify','543084JfqUhe','1864iQHzCB','last','getItem','749690TvdpYS','_loadFromSessionStorage','1060700FjffAJ','28cYkANf','trim','parse','prompt'];_0x2f96=function(){return _0x11e8a8;};return _0x2f96();}function Ss(_0x18d8e3){const _0x3bf472=_0x4f5e0b;return _0x18d8e3[_0x3bf472(0x90)]()[_0x3bf472(0x84)]();}
23
+ function _0x4904(){const _0x423cc3=['getItem','trim','139916BCqYWZ','last','9AcYtka','add','3304230zFpYFQ','map','1030200BhpQOX','setItem','47244VjGHjX','_saveToSessionStorage','21glJkqA','remove','CKEditor/AIFormView/PromptHistory','stringify','_loadFromSessionStorage','442025DWCspX','prompt','58608mbDLGK','parse','8nPGCdU','toLowerCase','length','addMany','768198OKmGrO'];_0x4904=function(){return _0x423cc3;};return _0x4904();}const _0x5df326=_0x3a2f;(function(_0x385449,_0x4bfbf0){const _0x27f921=_0x3a2f,_0x32bfe2=_0x385449();while(!![]){try{const _0x4cfd86=parseInt(_0x27f921(0x155))/0x1*(-parseInt(_0x27f921(0x160))/0x2)+-parseInt(_0x27f921(0x164))/0x3+-parseInt(_0x27f921(0x14d))/0x4+parseInt(_0x27f921(0x15c))/0x5+parseInt(_0x27f921(0x153))/0x6+-parseInt(_0x27f921(0x157))/0x7*(-parseInt(_0x27f921(0x15e))/0x8)+-parseInt(_0x27f921(0x14f))/0x9*(-parseInt(_0x27f921(0x151))/0xa);if(_0x4cfd86===_0x4bfbf0)break;else _0x32bfe2['push'](_0x32bfe2['shift']());}catch(_0x4bdedf){_0x32bfe2['push'](_0x32bfe2['shift']());}}}(_0x4904,0x20585));function _0x3a2f(_0x534240,_0x3047cf){const _0x490461=_0x4904();return _0x3a2f=function(_0x3a2f76,_0x554826){_0x3a2f76=_0x3a2f76-0x14b;let _0x191762=_0x490461[_0x3a2f76];return _0x191762;},_0x3a2f(_0x534240,_0x3047cf);}import{Collection as _0x1069d9}from'ckeditor5/src/utils.js';const cs=_0x5df326(0x159);export default class os extends _0x1069d9{constructor(){const _0x58a904=_0x5df326;super(),this[_0x58a904(0x15b)](),this['on'](_0x58a904(0x150),(_0x3be52c,_0x5d2228)=>{const _0x1560d1=_0x58a904,_0x3f3710=Ss(_0x5d2228[_0x1560d1(0x15d)]);for(const _0x525282 of this)if(_0x525282!=_0x5d2228&&Ss(_0x525282[_0x1560d1(0x15d)])===_0x3f3710){this[_0x1560d1(0x158)](_0x525282);break;}this[_0x1560d1(0x162)]>0x14&&this[_0x1560d1(0x158)](this[_0x1560d1(0x14e)]),this[_0x1560d1(0x156)]();}),this['on'](_0x58a904(0x158),()=>{const _0x45794f=_0x58a904;this[_0x45794f(0x156)]();});}[_0x5df326(0x15b)](){const _0x2142f5=_0x5df326,_0x4db268=sessionStorage[_0x2142f5(0x14b)](cs)||'[]';this[_0x2142f5(0x163)](JSON[_0x2142f5(0x15f)](_0x4db268));}[_0x5df326(0x156)](){const _0x1b64f7=_0x5df326;sessionStorage[_0x1b64f7(0x154)](cs,JSON[_0x1b64f7(0x15a)](this[_0x1b64f7(0x152)](_0x208f5c=>_0x208f5c)));}}function Ss(_0x15d188){const _0x24b3fa=_0x5df326;return _0x15d188[_0x24b3fa(0x161)]()[_0x24b3fa(0x14c)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x6a3f(){const _0x592235=['180lFToEC','_hasContext','name','document','getRanges','length','includes','custom','set','enabledCommandsIds','values','execute','change:_hasContext','showUI','getItems','9thllGp','2542818UrRRsg','model','config','plugins','getSelectedBlocks','250996JUvaGN','isEnabled','refresh','447862mIkALR','isEmpty','from','requiresContent','add','7273090CgcKPL','ai.aiAssistant.disabledElements','8408TCCHSE','_commandDefinitions','get','hasContent','4591573CKzWfy','8yOKHgh','change:isEnabled','2016759KKimGj','isCollapsed','getFirstRange','element','selection','editor'];_0x6a3f=function(){return _0x592235;};return _0x6a3f();}const _0x55a405=_0x49e9;function _0x49e9(_0x56d205,_0x17c0c7){const _0x6a3f7f=_0x6a3f();return _0x49e9=function(_0x49e9c1,_0x3e99ac){_0x49e9c1=_0x49e9c1-0x17e;let _0x623daa=_0x6a3f7f[_0x49e9c1];return _0x623daa;},_0x49e9(_0x56d205,_0x17c0c7);}(function(_0x5bc975,_0x2e3cbf){const _0x43e601=_0x49e9,_0x382d8c=_0x5bc975();while(!![]){try{const _0x47665a=parseInt(_0x43e601(0x184))/0x1+parseInt(_0x43e601(0x181))/0x2+parseInt(_0x43e601(0x192))/0x3+parseInt(_0x43e601(0x18b))/0x4*(parseInt(_0x43e601(0x198))/0x5)+-parseInt(_0x43e601(0x1a8))/0x6+-parseInt(_0x43e601(0x18f))/0x7*(-parseInt(_0x43e601(0x190))/0x8)+-parseInt(_0x43e601(0x1a7))/0x9*(parseInt(_0x43e601(0x189))/0xa);if(_0x47665a===_0x2e3cbf)break;else _0x382d8c['push'](_0x382d8c['shift']());}catch(_0x3b93d2){_0x382d8c['push'](_0x382d8c['shift']());}}}(_0x6a3f,0xc9b00));import{Command as _0x12487b}from'ckeditor5/src/core.js';import _0x525420 from'../aiassistantui.js';export default class y extends _0x12487b{constructor(_0x55bda6,_0x1653e7){const _0x54c8e9=_0x49e9;super(_0x55bda6),this[_0x54c8e9(0x18c)]=_0x1653e7,this[_0x54c8e9(0x1a0)](_0x54c8e9(0x1a1),[]),this['on'](_0x54c8e9(0x1a4),(_0xb239bb,_0x7410a,_0x4ab420)=>{const _0x3d9833=_0x54c8e9;this[_0x3d9833(0x182)]&&(this[_0x3d9833(0x1a1)]=G(this[_0x3d9833(0x18c)],_0x4ab420));}),this[_0x54c8e9(0x1a0)](_0x54c8e9(0x199),!0x1),this['on'](_0x54c8e9(0x191),(_0x535cd1,_0xa7102c,_0x10cf48)=>{const _0x230ebd=_0x54c8e9;this[_0x230ebd(0x1a1)]=_0x10cf48?G(this[_0x230ebd(0x18c)],this[_0x230ebd(0x199)]):[];});}[_0x55a405(0x183)](){const _0x56143d=_0x55a405,_0x5a66b4=this[_0x56143d(0x197)][_0x56143d(0x1a9)];this[_0x56143d(0x199)]=function(_0x4b4b1a){const _0x518bf5=_0x56143d,_0x16e7f6=_0x4b4b1a[_0x518bf5(0x19b)][_0x518bf5(0x196)];return _0x16e7f6[_0x518bf5(0x193)]?0x0!==[..._0x16e7f6[_0x518bf5(0x180)]()][_0x518bf5(0x19d)]&&![..._0x16e7f6[_0x518bf5(0x180)]()][0x0][_0x518bf5(0x185)]:!!_0x4b4b1a[_0x518bf5(0x18e)](_0x16e7f6[_0x518bf5(0x194)]());}(_0x5a66b4);const _0xf9de85=_0x5a66b4[_0x56143d(0x19b)][_0x56143d(0x196)],_0x27e0e9=this[_0x56143d(0x197)][_0x56143d(0x17e)][_0x56143d(0x18d)](_0x56143d(0x18a));for(const _0x5cbc34 of _0xf9de85[_0x56143d(0x19c)]())for(const _0x27aece of _0x5cbc34[_0x56143d(0x1a6)]())if(_0x27aece['is'](_0x56143d(0x195))&&_0x27e0e9[_0x56143d(0x19e)](_0x27aece[_0x56143d(0x19a)]))return void(this[_0x56143d(0x182)]=!0x1);this[_0x56143d(0x182)]=!0x0;}[_0x55a405(0x1a3)](_0x5c43e6='',_0x1606a7='',_0x559b11=_0x55a405(0x19f)){const _0x191e11=_0x55a405;this[_0x191e11(0x197)][_0x191e11(0x17f)][_0x191e11(0x18d)](_0x525420)[_0x191e11(0x1a5)](_0x5c43e6,_0x1606a7,_0x559b11);}}function G(_0x3a0ce5,_0x4d16e9){const _0x45428a=_0x55a405,_0x2de3fd=new Set();for(const _0x11f33c of _0x3a0ce5[_0x45428a(0x1a2)]())(_0x4d16e9||!0x1===_0x11f33c[_0x45428a(0x187)])&&_0x2de3fd[_0x45428a(0x188)](_0x11f33c['id']);return Array[_0x45428a(0x186)](_0x2de3fd);}
23
+ const _0x20e2d1=_0xac36;(function(_0x531a4d,_0xa5cbea){const _0x2940f2=_0xac36,_0x33f07c=_0x531a4d();while(!![]){try{const _0x5da991=-parseInt(_0x2940f2(0xbd))/0x1*(parseInt(_0x2940f2(0xa2))/0x2)+parseInt(_0x2940f2(0xa5))/0x3*(parseInt(_0x2940f2(0xb6))/0x4)+parseInt(_0x2940f2(0x95))/0x5+parseInt(_0x2940f2(0xb0))/0x6*(-parseInt(_0x2940f2(0xa0))/0x7)+parseInt(_0x2940f2(0xbe))/0x8*(parseInt(_0x2940f2(0x94))/0x9)+-parseInt(_0x2940f2(0xa7))/0xa*(parseInt(_0x2940f2(0xa6))/0xb)+parseInt(_0x2940f2(0xab))/0xc;if(_0x5da991===_0xa5cbea)break;else _0x33f07c['push'](_0x33f07c['shift']());}catch(_0x471a98){_0x33f07c['push'](_0x33f07c['shift']());}}}(_0x4942,0xe0e37));import{Command as _0x1d4a5b}from'ckeditor5/src/core.js';function _0xac36(_0x5c517c,_0xdc7ee9){const _0x49429b=_0x4942();return _0xac36=function(_0xac36db,_0x53c2d1){_0xac36db=_0xac36db-0x91;let _0x236460=_0x49429b[_0xac36db];return _0x236460;},_0xac36(_0x5c517c,_0xdc7ee9);}import _0x4a6800 from'../aiassistantui.js';export default class y extends _0x1d4a5b{constructor(_0x37990d,_0x375a15){const _0x770992=_0xac36;super(_0x37990d),this[_0x770992(0x9e)]=_0x375a15,this[_0x770992(0x92)](_0x770992(0xba),[]),this['on'](_0x770992(0xb7),(_0x101b6b,_0x1be30f,_0x33495a)=>{const _0x145bc3=_0x770992;this[_0x145bc3(0xaf)]&&(this[_0x145bc3(0xba)]=G(this[_0x145bc3(0x9e)],_0x33495a));}),this[_0x770992(0x92)](_0x770992(0xb9),!0x1),this['on'](_0x770992(0x9a),(_0x178df4,_0x8f9da1,_0x24abc5)=>{const _0x27a3ef=_0x770992;this[_0x27a3ef(0xba)]=_0x24abc5?G(this[_0x27a3ef(0x9e)],this[_0x27a3ef(0xb9)]):[];});}[_0x20e2d1(0xb1)](){const _0x3b30fd=_0x20e2d1,_0x5b9c5f=this[_0x3b30fd(0xb2)][_0x3b30fd(0x9b)];this[_0x3b30fd(0xb9)]=function(_0x43d625){const _0x1913a7=_0x3b30fd,_0x539f2b=_0x43d625[_0x1913a7(0x91)][_0x1913a7(0xa9)];return _0x539f2b[_0x1913a7(0x9d)]?0x0!==[..._0x539f2b[_0x1913a7(0xb4)]()][_0x1913a7(0xa1)]&&![..._0x539f2b[_0x1913a7(0xb4)]()][0x0][_0x1913a7(0xad)]:!!_0x43d625[_0x1913a7(0xb8)](_0x539f2b[_0x1913a7(0xbc)]());}(_0x5b9c5f);const _0x12b68d=_0x5b9c5f[_0x3b30fd(0x91)][_0x3b30fd(0xa9)],_0x3dbe75=this[_0x3b30fd(0xb2)][_0x3b30fd(0xb3)][_0x3b30fd(0x9c)](_0x3b30fd(0xa4));for(const _0x38b5b0 of _0x12b68d[_0x3b30fd(0xa8)]())for(const _0x1c34c3 of _0x38b5b0[_0x3b30fd(0x99)]())if(_0x1c34c3['is'](_0x3b30fd(0x9f))&&_0x3dbe75[_0x3b30fd(0xae)](_0x1c34c3[_0x3b30fd(0xaa)]))return void(this[_0x3b30fd(0xaf)]=!0x1);this[_0x3b30fd(0xaf)]=!0x0;}[_0x20e2d1(0x98)](_0x1e26b5='',_0x5ae95c='',_0x26b344=_0x20e2d1(0xa3)){const _0x2d1386=_0x20e2d1;this[_0x2d1386(0xb2)][_0x2d1386(0x93)][_0x2d1386(0x9c)](_0x4a6800)[_0x2d1386(0x96)](_0x1e26b5,_0x5ae95c,_0x26b344);}}function G(_0x3d7ee5,_0x59bbe9){const _0x467b7e=_0x20e2d1,_0x1b7f97=new Set();for(const _0x105f89 of _0x3d7ee5[_0x467b7e(0xbb)]())(_0x59bbe9||!0x1===_0x105f89[_0x467b7e(0xb5)])&&_0x1b7f97[_0x467b7e(0x97)](_0x105f89['id']);return Array[_0x467b7e(0xac)](_0x1b7f97);}function _0x4942(){const _0x24edf4=['isEnabled','30JRAzwe','refresh','editor','config','getSelectedBlocks','requiresContent','4mjMhTb','change:_hasContext','hasContent','_hasContext','enabledCommandsIds','values','getFirstRange','88187IHXATL','8EvqATE','document','set','plugins','14721957yiFOAA','1999730GnpAzY','showUI','add','execute','getItems','change:isEnabled','model','get','isCollapsed','_commandDefinitions','element','2010799QUiMxs','length','22YqIgnm','custom','ai.aiAssistant.disabledElements','1553181QDofjq','3949fSpzDO','27610WyYPoN','getRanges','selection','name','21182856qynOKt','from','isEmpty','includes'];_0x4942=function(){return _0x24edf4;};return _0x4942();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3ce17f,_0x12f306,_0x24ec0d){const t=_0x3ce17f['t'];switch(_0x12f306){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',_0x24ec0d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x24ec0d);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'},_0x24ec0d);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 _0x12f306;}}
23
+ export function getTranslation(_0x2026d0,_0x49c23a,_0x3e7862){const t=_0x2026d0['t'];switch(_0x49c23a){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',_0x3e7862);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x3e7862);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'},_0x3e7862);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 _0x49c23a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x590e0f,_0x5628ba){const _0x39eea9=(0x0,_0x5628ba['t'])('Other');return _0x590e0f['length']?'groupId'in _0x590e0f[0x0]?_0x590e0f:[{'groupId':'_ungrouppedCommands','groupLabel':_0x39eea9,'order':0x1/0x0,'commands':_0x590e0f}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x39eea9,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x2f3404,_0x282b31){const _0x1dcf13=(0x0,_0x282b31['t'])('Other');return _0x2f3404['length']?'groupId'in _0x2f3404[0x0]?_0x2f3404:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1dcf13,'order':0x1/0x0,'commands':_0x2f3404}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1dcf13,'order':0x1/0x0,'commands':[]}];}