@ckeditor/ckeditor5-ai 44.2.0-alpha.7 → 44.2.0-alpha.9

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 _0xefbc7c=_0x4182;(function(_0x149f1e,_0x180589){const _0x41c8ca=_0x4182,_0x5a0564=_0x149f1e();while(!![]){try{const _0x426bf2=parseInt(_0x41c8ca(0x19f))/0x1+parseInt(_0x41c8ca(0x18c))/0x2*(parseInt(_0x41c8ca(0x197))/0x3)+parseInt(_0x41c8ca(0x1a6))/0x4*(-parseInt(_0x41c8ca(0x18b))/0x5)+parseInt(_0x41c8ca(0x19e))/0x6+-parseInt(_0x41c8ca(0x192))/0x7*(-parseInt(_0x41c8ca(0x18d))/0x8)+parseInt(_0x41c8ca(0x190))/0x9+-parseInt(_0x41c8ca(0x1ab))/0xa;if(_0x426bf2===_0x180589)break;else _0x5a0564['push'](_0x5a0564['shift']());}catch(_0x1747c5){_0x5a0564['push'](_0x5a0564['shift']());}}}(_0x3212,0x56ea4));function _0x3212(){const _0x4e16a5=['265944xwGCAC','_createButton','locale','set','mainAction','90HgvWxc','REPLACE','ck-hidden','Insert\x20below','bind','_CONTENT','addMany','1714548SEytsn','279855MyUTpv','insert','tryAgainButton','insertButton','toUpperCase','isVisible','replace','340yLhPKL','extendTemplate','stopButton','ck-ai-form__toolbar','AI_','11187840afbmHG','items','Stop','replaceButton','ck-button-action','2315WvaYfY','13182dHHrue','16ImGGgH','label','Try\x20again','6073344QjICTR','bindTemplate'];_0x3212=function(){return _0x4e16a5;};return _0x3212();}function _0x4182(_0x20efa9,_0x317cdc){const _0x32124b=_0x3212();return _0x4182=function(_0x418299,_0x3c70f8){_0x418299=_0x418299-0x187;let _0x47cb9c=_0x32124b[_0x418299];return _0x47cb9c;},_0x4182(_0x20efa9,_0x317cdc);}import{ToolbarView as _0x4d84aa,ButtonView as _0x1b8d89}from'ckeditor5/src/ui.js';import{getTranslation as _0x5181e0}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0xefbc7c(0x1a5),'INSERT':_0xefbc7c(0x1a0)};export default class at extends _0x4d84aa{constructor(_0x29fed8){const _0x7efeb8=_0xefbc7c;super(_0x29fed8),this[_0x7efeb8(0x195)](_0x7efeb8(0x1a4),!0x1),this[_0x7efeb8(0x195)](_0x7efeb8(0x196),AIFormToolbarViewMainActionLabel[_0x7efeb8(0x198)]),this[_0x7efeb8(0x189)]=this[_0x7efeb8(0x193)]('',_0x7efeb8(0x18a)),this[_0x7efeb8(0x189)][_0x7efeb8(0x19b)](_0x7efeb8(0x18e))['to'](this,_0x7efeb8(0x196),_0x5b09cc=>_0x5181e0(_0x29fed8,_0x7efeb8(0x1aa)+_0x5b09cc[_0x7efeb8(0x1a3)]()+_0x7efeb8(0x19c))),this[_0x7efeb8(0x1a2)]=this[_0x7efeb8(0x193)](_0x5181e0(_0x29fed8,_0x7efeb8(0x19a))),this[_0x7efeb8(0x1a1)]=this[_0x7efeb8(0x193)](_0x5181e0(_0x29fed8,_0x7efeb8(0x18f))),this[_0x7efeb8(0x1a8)]=this[_0x7efeb8(0x193)](_0x5181e0(_0x29fed8,_0x7efeb8(0x188)));const _0x4b3f6d=this[_0x7efeb8(0x191)];this[_0x7efeb8(0x1a7)]({'attributes':{'class':[_0x7efeb8(0x1a9),_0x4b3f6d['if'](_0x7efeb8(0x1a4),_0x7efeb8(0x199),_0x4e5ea5=>!_0x4e5ea5)]}}),this[_0x7efeb8(0x187)][_0x7efeb8(0x19d)]([this[_0x7efeb8(0x189)],this[_0x7efeb8(0x1a2)],this[_0x7efeb8(0x1a1)],this[_0x7efeb8(0x1a8)]]);}[_0xefbc7c(0x193)](_0x45e567,_0x1ce88c){const _0x1a17a9=_0xefbc7c,_0x3262aa=new _0x1b8d89(this[_0x1a17a9(0x194)]);return _0x3262aa[_0x1a17a9(0x195)]({'label':_0x45e567,'class':_0x1ce88c||'','isVisible':!0x0,'withText':!0x0}),_0x3262aa;}}
23
+ const _0x426308=_0x4f2a;(function(_0x33c284,_0x3e4fef){const _0x7f3d2c=_0x4f2a,_0x1d8d77=_0x33c284();while(!![]){try{const _0x81ce43=-parseInt(_0x7f3d2c(0x1fe))/0x1+-parseInt(_0x7f3d2c(0x202))/0x2+parseInt(_0x7f3d2c(0x211))/0x3*(-parseInt(_0x7f3d2c(0x200))/0x4)+parseInt(_0x7f3d2c(0x1f0))/0x5*(parseInt(_0x7f3d2c(0x1f7))/0x6)+parseInt(_0x7f3d2c(0x20c))/0x7*(parseInt(_0x7f3d2c(0x203))/0x8)+-parseInt(_0x7f3d2c(0x1ff))/0x9*(parseInt(_0x7f3d2c(0x1f4))/0xa)+parseInt(_0x7f3d2c(0x209))/0xb;if(_0x81ce43===_0x3e4fef)break;else _0x1d8d77['push'](_0x1d8d77['shift']());}catch(_0xd9c55d){_0x1d8d77['push'](_0x1d8d77['shift']());}}}(_0x5a77,0xeb09c));function _0x4f2a(_0x3e7668,_0x1ba13a){const _0x5a77fc=_0x5a77();return _0x4f2a=function(_0x4f2a0e,_0x3fe875){_0x4f2a0e=_0x4f2a0e-0x1ee;let _0x1e61e2=_0x5a77fc[_0x4f2a0e];return _0x1e61e2;},_0x4f2a(_0x3e7668,_0x1ba13a);}import{ToolbarView as _0xd7afde,ButtonView as _0x2da28f}from'ckeditor5/src/ui.js';function _0x5a77(){const _0x428d5f=['extendTemplate','270nOSRYM','replace','addMany','4707336nCnUbL','_createButton','stopButton','replaceButton','ck-button-action','insert','set','1231374Zeqxvy','262809uybtRq','4471684DllrZQ','insertButton','3490074axXJnb','679136LZWQpt','mainAction','isVisible','_CONTENT','Stop','REPLACE','29297565JxvaxC','ck-hidden','Insert\x20below','133qSlYpN','locale','bindTemplate','AI_','items','3IQrHUk','tryAgainButton','bind','ck-ai-form__toolbar','toUpperCase','10HucKel','Try\x20again','label'];_0x5a77=function(){return _0x428d5f;};return _0x5a77();}import{getTranslation as _0x14353e}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x426308(0x1f5),'INSERT':_0x426308(0x1fc)};export default class at extends _0xd7afde{constructor(_0x33ae99){const _0x13c915=_0x426308;super(_0x33ae99),this[_0x13c915(0x1fd)](_0x13c915(0x205),!0x1),this[_0x13c915(0x1fd)](_0x13c915(0x204),AIFormToolbarViewMainActionLabel[_0x13c915(0x208)]),this[_0x13c915(0x1fa)]=this[_0x13c915(0x1f8)]('',_0x13c915(0x1fb)),this[_0x13c915(0x1fa)][_0x13c915(0x213)](_0x13c915(0x1f2))['to'](this,_0x13c915(0x204),_0x4e4d1f=>_0x14353e(_0x33ae99,_0x13c915(0x20f)+_0x4e4d1f[_0x13c915(0x1ef)]()+_0x13c915(0x206))),this[_0x13c915(0x201)]=this[_0x13c915(0x1f8)](_0x14353e(_0x33ae99,_0x13c915(0x20b))),this[_0x13c915(0x212)]=this[_0x13c915(0x1f8)](_0x14353e(_0x33ae99,_0x13c915(0x1f1))),this[_0x13c915(0x1f9)]=this[_0x13c915(0x1f8)](_0x14353e(_0x33ae99,_0x13c915(0x207)));const _0x46a760=this[_0x13c915(0x20e)];this[_0x13c915(0x1f3)]({'attributes':{'class':[_0x13c915(0x1ee),_0x46a760['if'](_0x13c915(0x205),_0x13c915(0x20a),_0x27d9d9=>!_0x27d9d9)]}}),this[_0x13c915(0x210)][_0x13c915(0x1f6)]([this[_0x13c915(0x1fa)],this[_0x13c915(0x201)],this[_0x13c915(0x212)],this[_0x13c915(0x1f9)]]);}[_0x426308(0x1f8)](_0x7e2799,_0x2afd2d){const _0x35ef2c=_0x426308,_0x308f70=new _0x2da28f(this[_0x35ef2c(0x20d)]);return _0x308f70[_0x35ef2c(0x1fd)]({'label':_0x7e2799,'class':_0x2afd2d||'','isVisible':!0x0,'withText':!0x0}),_0x308f70;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1c3c(){const _0xc1b96f=['2117390wPiwRu','focusFirst','tryAgainButton','mainAction','queryView','isVisible','finishProcessing','errorView','stopButton','submitPrompt','tryAgainEvent','text','div','50tuCXeT','createCollection','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','items','search','bindTo','109288BXPAxu','promptView','_focusables','isEnabled','35QowYwJ','ck-hidden','submit','focusCycler','clearHistory','23036vwWioI','180684dlUXOv','Ask\x20AI\x20to\x20improve\x20generated\x20text','REPLACE','locale','handleError','listenTo','replaceContent','isProcessing','render','2154flcXTO','high','focusLast','stopProcessing','ck-ai-form','delegate','bind','Empty\x20history','fire','AI_ERROR_FAILED','_createHistoryView','isError','toolbar','46120NZlDFK','_createToolbar','contentArea','replaceButton','shift\x20+\x20tab','tab','Ask\x20AI\x20to\x20edit\x20or\x20generate','insertContentBelow','historyGroupView','label','48pSwMHN','copyButtonView','reset','setTemplate','add','focus','fieldView','chain','clear','_promptHistory','60NhCJlm','trim','bindTemplate','focusTracker','startProcessing','2232hIXvlr','element','keystrokes','_createPromptView','145JRQmXs','ck-ai-form-content','value','prompt','57810nnprIi','insertButton','set','execute'];_0x1c3c=function(){return _0xc1b96f;};return _0x1c3c();}const _0x642edb=_0x4e41;(function(_0x24cac8,_0x17e1b1){const _0x48d1ae=_0x4e41,_0x5a663e=_0x24cac8();while(!![]){try{const _0x2b6442=parseInt(_0x48d1ae(0x192))/0x1*(parseInt(_0x48d1ae(0x168))/0x2)+parseInt(_0x48d1ae(0x17f))/0x3*(parseInt(_0x48d1ae(0x175))/0x4)+parseInt(_0x48d1ae(0x14f))/0x5*(parseInt(_0x48d1ae(0x196))/0x6)+parseInt(_0x48d1ae(0x159))/0x7*(parseInt(_0x48d1ae(0x155))/0x8)+parseInt(_0x48d1ae(0x15f))/0x9*(parseInt(_0x48d1ae(0x189))/0xa)+-parseInt(_0x48d1ae(0x19a))/0xb+parseInt(_0x48d1ae(0x18e))/0xc*(-parseInt(_0x48d1ae(0x15e))/0xd);if(_0x2b6442===_0x17e1b1)break;else _0x5a663e['push'](_0x5a663e['shift']());}catch(_0x513121){_0x5a663e['push'](_0x5a663e['shift']());}}}(_0x1c3c,0x194fa));import{FocusTracker as _0x55857f,KeystrokeHandler as _0xe15a9e}from'ckeditor5/src/utils.js';import{View as _0x330bd7,FocusCycler as _0xcba4d9,createLabeledTextarea as _0x4a4787}from'ckeditor5/src/ui.js';import _0x10897c,{AIFormToolbarViewMainActionLabel as _0x53de75}from'./aiformtoolbarview.js';import _0xc5adc5 from'./aiformcontentarea.js';import _0x4b2da0 from'./aiformerrorview.js';import _0x29b5a4 from'./aiformpromptview.js';function _0x4e41(_0x1eb8a2,_0x3d53fe){const _0x1c3c67=_0x1c3c();return _0x4e41=function(_0x4e4138,_0xa0a23a){_0x4e4138=_0x4e4138-0x149;let _0x1b9a12=_0x1c3c67[_0x4e4138];return _0x1b9a12;},_0x4e41(_0x1eb8a2,_0x3d53fe);}import _0x872bab from'./aihistorylistview.js';import _0xf5167a from'./aihistorylistitemview.js';import _0x355f00 from'./prompthistory.js';import{getTranslation as _0x26f521}from'../../utils/common-translations.js';import{escape as _0x58a120}from'lodash-es';export default class k extends _0x330bd7{constructor(_0x216535,_0xf81555,_0x2fb6d2=''){const _0x5b9839=_0x4e41;super(_0x216535),this[_0x5b9839(0x198)](_0x5b9839(0x158),!0x0),this[_0x5b9839(0x198)](_0x5b9839(0x166),!0x1),this[_0x5b9839(0x198)](_0x5b9839(0x195),''),this[_0x5b9839(0x198)](_0x5b9839(0x194),''),this[_0x5b9839(0x198)](_0x5b9839(0x173),!0x1),this[_0x5b9839(0x198)](_0x5b9839(0x19d),_0x53de75[_0x5b9839(0x161)]),this[_0x5b9839(0x188)]=new _0x355f00(),this[_0x5b9839(0x149)]=new _0x4b2da0(_0x216535),this[_0x5b9839(0x177)]=new _0xc5adc5(_0x216535,_0x2fb6d2),this[_0x5b9839(0x177)][_0x5b9839(0x16e)](_0x5b9839(0x166))['to'](this),this[_0x5b9839(0x177)][_0x5b9839(0x16e)](_0x5b9839(0x194))['to'](this),this[_0x5b9839(0x174)]=this[_0x5b9839(0x176)](),this[_0x5b9839(0x174)][_0x5b9839(0x16e)](_0x5b9839(0x19d))['to'](this),this[_0x5b9839(0x156)]=this[_0x5b9839(0x191)](),this[_0x5b9839(0x18c)]=new _0x55857f(),this[_0x5b9839(0x190)]=new _0xe15a9e(),this[_0x5b9839(0x157)]=this[_0x5b9839(0x150)]([this[_0x5b9839(0x177)],this[_0x5b9839(0x177)][_0x5b9839(0x180)],this[_0x5b9839(0x174)],this[_0x5b9839(0x156)]]),this[_0x5b9839(0x15c)]=new _0xcba4d9({'focusables':this[_0x5b9839(0x157)],'focusTracker':this[_0x5b9839(0x18c)],'keystrokeHandler':this[_0x5b9839(0x190)],'actions':{'focusPrevious':_0x5b9839(0x179),'focusNext':_0x5b9839(0x17a)}}),this[_0x5b9839(0x15c)][_0x5b9839(0x186)](this[_0x5b9839(0x156)][_0x5b9839(0x15c)]),this[_0x5b9839(0x156)][_0x5b9839(0x19e)][_0x5b9839(0x185)][_0x5b9839(0x16e)](_0x5b9839(0x194))['to'](this,_0x5b9839(0x195));const _0x450bc5=this[_0x5b9839(0x18b)];this[_0x5b9839(0x182)]({'tag':_0x5b9839(0x14e),'attributes':{'class':['ck',_0x5b9839(0x16c),_0xf81555],'tabindex':'-1'},'children':[{'tag':_0x5b9839(0x14e),'attributes':{'class':['ck',_0x5b9839(0x193)]},'children':[{'tag':_0x5b9839(0x14e),'attributes':{'class':[_0x450bc5['if'](_0x5b9839(0x173),_0x5b9839(0x15a),_0x13f0f2=>!_0x13f0f2)]},'children':[this[_0x5b9839(0x149)]]},this[_0x5b9839(0x177)],this[_0x5b9839(0x174)],this[_0x5b9839(0x156)]]}]});}[_0x642edb(0x167)](){const _0x6175a8=_0x642edb;super[_0x6175a8(0x167)](),this[_0x6175a8(0x18c)][_0x6175a8(0x183)](this[_0x6175a8(0x177)][_0x6175a8(0x18f)]),this[_0x6175a8(0x18c)][_0x6175a8(0x183)](this[_0x6175a8(0x177)][_0x6175a8(0x180)][_0x6175a8(0x18f)]),this[_0x6175a8(0x18c)][_0x6175a8(0x183)](this[_0x6175a8(0x174)][_0x6175a8(0x18f)]),this[_0x6175a8(0x18c)][_0x6175a8(0x183)](this[_0x6175a8(0x156)][_0x6175a8(0x18f)]),this[_0x6175a8(0x190)][_0x6175a8(0x164)](this[_0x6175a8(0x18f)]);}[_0x642edb(0x184)](_0x36f290=0x1){const _0x24f515=_0x642edb;-0x1===_0x36f290?this[_0x24f515(0x15c)][_0x24f515(0x16a)]():this[_0x24f515(0x15c)][_0x24f515(0x19b)]();}[_0x642edb(0x181)](){const _0x1e3a23=_0x642edb;this[_0x1e3a23(0x195)]='',this[_0x1e3a23(0x194)]='',this[_0x1e3a23(0x173)]=!0x1,this[_0x1e3a23(0x156)][_0x1e3a23(0x181)](),this[_0x1e3a23(0x177)][_0x1e3a23(0x19f)]=!0x1,this[_0x1e3a23(0x174)][_0x1e3a23(0x19f)]=!0x1;}[_0x642edb(0x191)](){const _0x59882e=_0x642edb,_0x518c01=this[_0x59882e(0x162)],_0x54fd45=new _0x29b5a4(_0x518c01,{'queryView':{'label':_0x26f521(_0x518c01,_0x59882e(0x17b)),'creator':_0x4a4787,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x26f521(_0x518c01,_0x59882e(0x16f)),'secondary':_0x26f521(_0x518c01,_0x59882e(0x151))}}},'filteredView':this[_0x59882e(0x172)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x54fd45[_0x59882e(0x16e)](_0x59882e(0x158))['to'](this,_0x59882e(0x158),this,_0x59882e(0x166),(_0x28f425,_0x3c7702)=>_0x28f425&&!_0x3c7702),this[_0x59882e(0x164)](_0x54fd45,_0x59882e(0x15b),(_0x5c0a3a,_0x208c47)=>{const _0x43ad65=_0x59882e;this[_0x43ad65(0x195)]=_0x208c47;const _0x50311c=_0x58a120(_0x208c47);this[_0x43ad65(0x170)](_0x43ad65(0x14b),_0x50311c),_0x208c47[_0x43ad65(0x18a)]()&&this[_0x43ad65(0x188)][_0x43ad65(0x183)]({'prompt':_0x50311c},0x0);},{'priority':_0x59882e(0x169)}),_0x54fd45;}[_0x642edb(0x172)](){const _0x569af3=_0x642edb,_0x2dfa81=new _0x872bab(this[_0x569af3(0x162)]);return _0x2dfa81[_0x569af3(0x17d)][_0x569af3(0x152)][_0x569af3(0x154)](this[_0x569af3(0x188)])['as'](_0xf5167a),_0x2dfa81['on'](_0x569af3(0x15d),()=>{const _0x4a46b1=_0x569af3;this[_0x4a46b1(0x188)][_0x4a46b1(0x187)](),this[_0x4a46b1(0x156)][_0x4a46b1(0x153)](''),this[_0x4a46b1(0x156)][_0x4a46b1(0x184)]();}),_0x2dfa81;}[_0x642edb(0x176)](){const _0x36feb5=_0x642edb,_0xa74308=new _0x10897c(this[_0x36feb5(0x162)]);return _0xa74308[_0x36feb5(0x178)][_0x36feb5(0x16e)](_0x36feb5(0x158))['to'](this,_0x36feb5(0x158),this,_0x36feb5(0x166),this,_0x36feb5(0x194),(_0x42a16a,_0x422fc1,_0x29abd7)=>_0x42a16a&&!_0x422fc1&&!!_0x29abd7),_0xa74308[_0x36feb5(0x178)][_0x36feb5(0x16d)](_0x36feb5(0x199))['to'](this,_0x36feb5(0x165)),_0xa74308[_0x36feb5(0x197)][_0x36feb5(0x16e)](_0x36feb5(0x158))['to'](this,_0x36feb5(0x158),this,_0x36feb5(0x166),this,_0x36feb5(0x194),(_0x2089e9,_0x1955dc,_0x34042d)=>_0x2089e9&&!_0x1955dc&&!!_0x34042d),_0xa74308[_0x36feb5(0x197)][_0x36feb5(0x16d)](_0x36feb5(0x199))['to'](this,_0x36feb5(0x17c)),_0xa74308[_0x36feb5(0x19c)][_0x36feb5(0x16e)](_0x36feb5(0x158))['to'](this,_0x36feb5(0x158),this,_0x36feb5(0x166),(_0x18af79,_0x2e9bbc)=>_0x18af79&&!_0x2e9bbc),_0xa74308[_0x36feb5(0x19c)][_0x36feb5(0x16d)](_0x36feb5(0x199))['to'](this,_0x36feb5(0x14c)),_0xa74308[_0x36feb5(0x14a)][_0x36feb5(0x16e)](_0x36feb5(0x158))['to'](this,_0x36feb5(0x166)),_0xa74308[_0x36feb5(0x14a)][_0x36feb5(0x16d)](_0x36feb5(0x199))['to'](this,_0x36feb5(0x16b)),_0xa74308;}[_0x642edb(0x18d)](){const _0x3a7cbc=_0x642edb;this[_0x3a7cbc(0x194)]='',this[_0x3a7cbc(0x173)]=!0x1,this[_0x3a7cbc(0x166)]=!0x0,this[_0x3a7cbc(0x177)][_0x3a7cbc(0x19f)]=!0x0,this[_0x3a7cbc(0x174)][_0x3a7cbc(0x19f)]=!0x0,this[_0x3a7cbc(0x177)][_0x3a7cbc(0x184)]();}[_0x642edb(0x1a0)](){const _0x57c04f=_0x642edb,_0x1a988a=this[_0x57c04f(0x162)];this[_0x57c04f(0x166)]=!0x1,this[_0x57c04f(0x195)]='',this[_0x57c04f(0x156)][_0x57c04f(0x181)](),this[_0x57c04f(0x194)]&&(this[_0x57c04f(0x156)][_0x57c04f(0x19e)][_0x57c04f(0x17e)]=_0x26f521(_0x1a988a,_0x57c04f(0x160)));}[_0x642edb(0x163)](_0x5deb03){const _0x5ba35a=_0x642edb,_0x31483d=this[_0x5ba35a(0x162)];this[_0x5ba35a(0x1a0)](),this[_0x5ba35a(0x173)]=!0x0,this[_0x5ba35a(0x149)][_0x5ba35a(0x14d)]=_0x5deb03||_0x26f521(_0x31483d,_0x5ba35a(0x171)),this[_0x5ba35a(0x194)]||(this[_0x5ba35a(0x177)][_0x5ba35a(0x19f)]=!0x1);}}
23
+ const _0x3d850b=_0x2334;function _0xd44e(){const _0x17b261=['insertButton','354GdpsAP','chain','5zuuynh','fieldView','isEnabled','clear','mainAction','shift\x20+\x20tab','listenTo','stopButton','24079ISAwpu','insertContentBelow','delegate','tryAgainButton','finishProcessing','reset','setTemplate','3955322oGzRUc','high','_focusables','isError','stopProcessing','trim','historyGroupView','errorView','search','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','submitPrompt','15610lTXtfC','replaceContent','copyButtonView','set','bind','text','isProcessing','REPLACE','tryAgainEvent','9696SUkmWB','label','focusFirst','focusTracker','_promptHistory','_createPromptView','AI_ERROR_FAILED','handleError','Empty\x20history','keystrokes','locale','tab','startProcessing','873HlKjal','fire','value','replaceButton','promptView','ck-ai-form','Ask\x20AI\x20to\x20improve\x20generated\x20text','6550TNfjmV','submit','ck-hidden','createCollection','_createHistoryView','focus','render','queryView','element','Ask\x20AI\x20to\x20edit\x20or\x20generate','div','focusCycler','toolbar','_createToolbar','clearHistory','execute','items','isVisible','ck-ai-form-content','bindTemplate','367648jbzurU','prompt','focusLast','763840zVDNys','bindTo','add','contentArea','5109180kYIxJd'];_0xd44e=function(){return _0x17b261;};return _0xd44e();}(function(_0x46a3bb,_0x3e19e0){const _0x166a1f=_0x2334,_0x37d7e1=_0x46a3bb();while(!![]){try{const _0x578a51=parseInt(_0x166a1f(0x21a))/0x1+-parseInt(_0x166a1f(0x1e6))/0x2*(-parseInt(_0x166a1f(0x220))/0x3)+parseInt(_0x166a1f(0x217))/0x4+parseInt(_0x166a1f(0x222))/0x5*(parseInt(_0x166a1f(0x21e))/0x6)+-parseInt(_0x166a1f(0x231))/0x7+parseInt(_0x166a1f(0x1ef))/0x8*(-parseInt(_0x166a1f(0x1fc))/0x9)+parseInt(_0x166a1f(0x203))/0xa*(-parseInt(_0x166a1f(0x22a))/0xb);if(_0x578a51===_0x3e19e0)break;else _0x37d7e1['push'](_0x37d7e1['shift']());}catch(_0x24c26e){_0x37d7e1['push'](_0x37d7e1['shift']());}}}(_0xd44e,0x7cf7b));import{FocusTracker as _0x14aef0,KeystrokeHandler as _0x92e1f5}from'ckeditor5/src/utils.js';function _0x2334(_0x10b2f5,_0x1c3d79){const _0xd44e69=_0xd44e();return _0x2334=function(_0x2334dd,_0x166ba4){_0x2334dd=_0x2334dd-0x1e5;let _0x5cfdbb=_0xd44e69[_0x2334dd];return _0x5cfdbb;},_0x2334(_0x10b2f5,_0x1c3d79);}import{View as _0x3abf5c,FocusCycler as _0x2a7ce9,createLabeledTextarea as _0x33633a}from'ckeditor5/src/ui.js';import _0x3c4344,{AIFormToolbarViewMainActionLabel as _0x13692c}from'./aiformtoolbarview.js';import _0xb4931e from'./aiformcontentarea.js';import _0x5e8dfb from'./aiformerrorview.js';import _0x272a40 from'./aiformpromptview.js';import _0xf526ba from'./aihistorylistview.js';import _0x8a9fd6 from'./aihistorylistitemview.js';import _0x237b59 from'./prompthistory.js';import{getTranslation as _0x26602e}from'../../utils/common-translations.js';import{escape as _0xc99b2f}from'lodash-es';export default class k extends _0x3abf5c{constructor(_0x2f7108,_0xe001df,_0x2bf798=''){const _0x45f319=_0x2334;super(_0x2f7108),this[_0x45f319(0x1e9)](_0x45f319(0x224),!0x0),this[_0x45f319(0x1e9)](_0x45f319(0x1ec),!0x1),this[_0x45f319(0x1e9)](_0x45f319(0x218),''),this[_0x45f319(0x1e9)](_0x45f319(0x1fe),''),this[_0x45f319(0x1e9)](_0x45f319(0x234),!0x1),this[_0x45f319(0x1e9)](_0x45f319(0x226),_0x13692c[_0x45f319(0x1ed)]),this[_0x45f319(0x1f3)]=new _0x237b59(),this[_0x45f319(0x238)]=new _0x5e8dfb(_0x2f7108),this[_0x45f319(0x21d)]=new _0xb4931e(_0x2f7108,_0x2bf798),this[_0x45f319(0x21d)][_0x45f319(0x1ea)](_0x45f319(0x1ec))['to'](this),this[_0x45f319(0x21d)][_0x45f319(0x1ea)](_0x45f319(0x1fe))['to'](this),this[_0x45f319(0x20f)]=this[_0x45f319(0x210)](),this[_0x45f319(0x20f)][_0x45f319(0x1ea)](_0x45f319(0x226))['to'](this),this[_0x45f319(0x200)]=this[_0x45f319(0x1f4)](),this[_0x45f319(0x1f2)]=new _0x14aef0(),this[_0x45f319(0x1f8)]=new _0x92e1f5(),this[_0x45f319(0x233)]=this[_0x45f319(0x206)]([this[_0x45f319(0x21d)],this[_0x45f319(0x21d)][_0x45f319(0x1e8)],this[_0x45f319(0x20f)],this[_0x45f319(0x200)]]),this[_0x45f319(0x20e)]=new _0x2a7ce9({'focusables':this[_0x45f319(0x233)],'focusTracker':this[_0x45f319(0x1f2)],'keystrokeHandler':this[_0x45f319(0x1f8)],'actions':{'focusPrevious':_0x45f319(0x227),'focusNext':_0x45f319(0x1fa)}}),this[_0x45f319(0x20e)][_0x45f319(0x221)](this[_0x45f319(0x200)][_0x45f319(0x20e)]),this[_0x45f319(0x200)][_0x45f319(0x20a)][_0x45f319(0x223)][_0x45f319(0x1ea)](_0x45f319(0x1fe))['to'](this,_0x45f319(0x218));const _0x5c7142=this[_0x45f319(0x216)];this[_0x45f319(0x230)]({'tag':_0x45f319(0x20d),'attributes':{'class':['ck',_0x45f319(0x201),_0xe001df],'tabindex':'-1'},'children':[{'tag':_0x45f319(0x20d),'attributes':{'class':['ck',_0x45f319(0x215)]},'children':[{'tag':_0x45f319(0x20d),'attributes':{'class':[_0x5c7142['if'](_0x45f319(0x234),_0x45f319(0x205),_0x572a72=>!_0x572a72)]},'children':[this[_0x45f319(0x238)]]},this[_0x45f319(0x21d)],this[_0x45f319(0x20f)],this[_0x45f319(0x200)]]}]});}[_0x3d850b(0x209)](){const _0x2dcdf1=_0x3d850b;super[_0x2dcdf1(0x209)](),this[_0x2dcdf1(0x1f2)][_0x2dcdf1(0x21c)](this[_0x2dcdf1(0x21d)][_0x2dcdf1(0x20b)]),this[_0x2dcdf1(0x1f2)][_0x2dcdf1(0x21c)](this[_0x2dcdf1(0x21d)][_0x2dcdf1(0x1e8)][_0x2dcdf1(0x20b)]),this[_0x2dcdf1(0x1f2)][_0x2dcdf1(0x21c)](this[_0x2dcdf1(0x20f)][_0x2dcdf1(0x20b)]),this[_0x2dcdf1(0x1f2)][_0x2dcdf1(0x21c)](this[_0x2dcdf1(0x200)][_0x2dcdf1(0x20b)]),this[_0x2dcdf1(0x1f8)][_0x2dcdf1(0x228)](this[_0x2dcdf1(0x20b)]);}[_0x3d850b(0x208)](_0x22cd4d=0x1){const _0x4b9ac4=_0x3d850b;-0x1===_0x22cd4d?this[_0x4b9ac4(0x20e)][_0x4b9ac4(0x219)]():this[_0x4b9ac4(0x20e)][_0x4b9ac4(0x1f1)]();}[_0x3d850b(0x22f)](){const _0x932033=_0x3d850b;this[_0x932033(0x218)]='',this[_0x932033(0x1fe)]='',this[_0x932033(0x234)]=!0x1,this[_0x932033(0x200)][_0x932033(0x22f)](),this[_0x932033(0x21d)][_0x932033(0x214)]=!0x1,this[_0x932033(0x20f)][_0x932033(0x214)]=!0x1;}[_0x3d850b(0x1f4)](){const _0x164212=_0x3d850b,_0x1c7719=this[_0x164212(0x1f9)],_0x694af1=new _0x272a40(_0x1c7719,{'queryView':{'label':_0x26602e(_0x1c7719,_0x164212(0x20c)),'creator':_0x33633a,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x26602e(_0x1c7719,_0x164212(0x1f7)),'secondary':_0x26602e(_0x1c7719,_0x164212(0x23a))}}},'filteredView':this[_0x164212(0x207)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x694af1[_0x164212(0x1ea)](_0x164212(0x224))['to'](this,_0x164212(0x224),this,_0x164212(0x1ec),(_0x40e651,_0x3a7697)=>_0x40e651&&!_0x3a7697),this[_0x164212(0x228)](_0x694af1,_0x164212(0x204),(_0x555bf4,_0x36a2c0)=>{const _0x536071=_0x164212;this[_0x536071(0x218)]=_0x36a2c0;const _0x2cb717=_0xc99b2f(_0x36a2c0);this[_0x536071(0x1fd)](_0x536071(0x1e5),_0x2cb717),_0x36a2c0[_0x536071(0x236)]()&&this[_0x536071(0x1f3)][_0x536071(0x21c)]({'prompt':_0x2cb717},0x0);},{'priority':_0x164212(0x232)}),_0x694af1;}[_0x3d850b(0x207)](){const _0x436cc4=_0x3d850b,_0x49a310=new _0xf526ba(this[_0x436cc4(0x1f9)]);return _0x49a310[_0x436cc4(0x237)][_0x436cc4(0x213)][_0x436cc4(0x21b)](this[_0x436cc4(0x1f3)])['as'](_0x8a9fd6),_0x49a310['on'](_0x436cc4(0x211),()=>{const _0x4bce10=_0x436cc4;this[_0x4bce10(0x1f3)][_0x4bce10(0x225)](),this[_0x4bce10(0x200)][_0x4bce10(0x239)](''),this[_0x4bce10(0x200)][_0x4bce10(0x208)]();}),_0x49a310;}[_0x3d850b(0x210)](){const _0x42de22=_0x3d850b,_0xa8ff3f=new _0x3c4344(this[_0x42de22(0x1f9)]);return _0xa8ff3f[_0x42de22(0x1ff)][_0x42de22(0x1ea)](_0x42de22(0x224))['to'](this,_0x42de22(0x224),this,_0x42de22(0x1ec),this,_0x42de22(0x1fe),(_0x4118cd,_0x922a99,_0x4c071e)=>_0x4118cd&&!_0x922a99&&!!_0x4c071e),_0xa8ff3f[_0x42de22(0x1ff)][_0x42de22(0x22c)](_0x42de22(0x212))['to'](this,_0x42de22(0x1e7)),_0xa8ff3f[_0x42de22(0x21f)][_0x42de22(0x1ea)](_0x42de22(0x224))['to'](this,_0x42de22(0x224),this,_0x42de22(0x1ec),this,_0x42de22(0x1fe),(_0x50a90f,_0x196e74,_0x118058)=>_0x50a90f&&!_0x196e74&&!!_0x118058),_0xa8ff3f[_0x42de22(0x21f)][_0x42de22(0x22c)](_0x42de22(0x212))['to'](this,_0x42de22(0x22b)),_0xa8ff3f[_0x42de22(0x22d)][_0x42de22(0x1ea)](_0x42de22(0x224))['to'](this,_0x42de22(0x224),this,_0x42de22(0x1ec),(_0x20ec41,_0x34125a)=>_0x20ec41&&!_0x34125a),_0xa8ff3f[_0x42de22(0x22d)][_0x42de22(0x22c)](_0x42de22(0x212))['to'](this,_0x42de22(0x1ee)),_0xa8ff3f[_0x42de22(0x229)][_0x42de22(0x1ea)](_0x42de22(0x224))['to'](this,_0x42de22(0x1ec)),_0xa8ff3f[_0x42de22(0x229)][_0x42de22(0x22c)](_0x42de22(0x212))['to'](this,_0x42de22(0x235)),_0xa8ff3f;}[_0x3d850b(0x1fb)](){const _0x400f61=_0x3d850b;this[_0x400f61(0x1fe)]='',this[_0x400f61(0x234)]=!0x1,this[_0x400f61(0x1ec)]=!0x0,this[_0x400f61(0x21d)][_0x400f61(0x214)]=!0x0,this[_0x400f61(0x20f)][_0x400f61(0x214)]=!0x0,this[_0x400f61(0x21d)][_0x400f61(0x208)]();}[_0x3d850b(0x22e)](){const _0x166a87=_0x3d850b,_0xb82c84=this[_0x166a87(0x1f9)];this[_0x166a87(0x1ec)]=!0x1,this[_0x166a87(0x218)]='',this[_0x166a87(0x200)][_0x166a87(0x22f)](),this[_0x166a87(0x1fe)]&&(this[_0x166a87(0x200)][_0x166a87(0x20a)][_0x166a87(0x1f0)]=_0x26602e(_0xb82c84,_0x166a87(0x202)));}[_0x3d850b(0x1f6)](_0x52c0c6){const _0x22d702=_0x3d850b,_0x4627ea=this[_0x22d702(0x1f9)];this[_0x22d702(0x22e)](),this[_0x22d702(0x234)]=!0x0,this[_0x22d702(0x238)][_0x22d702(0x1eb)]=_0x52c0c6||_0x26602e(_0x4627ea,_0x22d702(0x1f5)),this[_0x22d702(0x1fe)]||(this[_0x22d702(0x21d)][_0x22d702(0x214)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4b3c22,_0x5d19c0){const _0x207c32=_0x5997,_0xc43576=_0x4b3c22();while(!![]){try{const _0x1bf8bf=-parseInt(_0x207c32(0xd2))/0x1*(-parseInt(_0x207c32(0xd3))/0x2)+parseInt(_0x207c32(0xd8))/0x3+parseInt(_0x207c32(0xd1))/0x4*(parseInt(_0x207c32(0xcb))/0x5)+-parseInt(_0x207c32(0xca))/0x6*(-parseInt(_0x207c32(0xd0))/0x7)+-parseInt(_0x207c32(0xcd))/0x8+-parseInt(_0x207c32(0xcc))/0x9+parseInt(_0x207c32(0xd6))/0xa*(parseInt(_0x207c32(0xcf))/0xb);if(_0x1bf8bf===_0x5d19c0)break;else _0xc43576['push'](_0xc43576['shift']());}catch(_0x41bef3){_0xc43576['push'](_0xc43576['shift']());}}}(_0x3b25,0xe6a89));import{ListItemView as _0x1f3e6c,ButtonView as _0x33d5d7,ButtonLabelView as _0x43614d}from'ckeditor5/src/ui.js';import{unescape as _0x50943f}from'lodash-es';function _0x3b25(){const _0x181a9f=['locale','add','168yavmvd','70qYROFp','15820641jjEbgu','954232qIMpMG','execute','11GRSUyr','159824gddAEs','166852jnlXRK','142OJFwfX','10378NXuNrN','set','children','3790170yJWCBT','prompt','1448316UfgAjZ','fire'];_0x3b25=function(){return _0x181a9f;};return _0x3b25();}function _0x5997(_0x148c3c,_0x2406d9){const _0x3b25c6=_0x3b25();return _0x5997=function(_0x5997cd,_0x111643){_0x5997cd=_0x5997cd-0xca;let _0x5e72f8=_0x3b25c6[_0x5997cd];return _0x5e72f8;},_0x5997(_0x148c3c,_0x2406d9);}export default class hs extends _0x1f3e6c{constructor(_0x1e7724){const _0x519ee3=_0x5997;super();const _0x78e1b4=new _0x43614d(),_0x487d0c=new _0x33d5d7(this[_0x519ee3(0xda)],_0x78e1b4);this[_0x519ee3(0xd5)][_0x519ee3(0xdb)](_0x487d0c),_0x487d0c[_0x519ee3(0xd4)]({'label':_0x1e7724[_0x519ee3(0xd7)],'withText':!0x0}),_0x487d0c['on'](_0x519ee3(0xce),()=>{const _0x15ddf9=_0x519ee3;this[_0x15ddf9(0xd9)](_0x15ddf9(0xce),{'value':_0x50943f(_0x1e7724[_0x15ddf9(0xd7)])});});}}
23
+ (function(_0x285699,_0x9d4b95){const _0x2e780c=_0x3cbd,_0x30d01d=_0x285699();while(!![]){try{const _0x470ffe=-parseInt(_0x2e780c(0x181))/0x1+-parseInt(_0x2e780c(0x18c))/0x2*(parseInt(_0x2e780c(0x18a))/0x3)+parseInt(_0x2e780c(0x189))/0x4*(parseInt(_0x2e780c(0x17e))/0x5)+parseInt(_0x2e780c(0x185))/0x6*(parseInt(_0x2e780c(0x18b))/0x7)+-parseInt(_0x2e780c(0x17f))/0x8*(parseInt(_0x2e780c(0x187))/0x9)+parseInt(_0x2e780c(0x18f))/0xa+parseInt(_0x2e780c(0x182))/0xb;if(_0x470ffe===_0x9d4b95)break;else _0x30d01d['push'](_0x30d01d['shift']());}catch(_0x3562b5){_0x30d01d['push'](_0x30d01d['shift']());}}}(_0x39a7,0xbb138));function _0x39a7(){const _0x348c95=['children','9teuFxf','execute','8jkxUPT','42879xaZzQm','1193906ARiAta','82npwSVD','locale','add','3833430OLISDo','2396400ndVdnY','10083344ZQsbfi','fire','312906hkdXrR','11792264reFnNX','prompt','set','18DgKKoY'];_0x39a7=function(){return _0x348c95;};return _0x39a7();}function _0x3cbd(_0x240e24,_0x5002e0){const _0x39a7e2=_0x39a7();return _0x3cbd=function(_0x3cbda0,_0x1a7944){_0x3cbda0=_0x3cbda0-0x17e;let _0x4fc0cc=_0x39a7e2[_0x3cbda0];return _0x4fc0cc;},_0x3cbd(_0x240e24,_0x5002e0);}import{ListItemView as _0x5937ab,ButtonView as _0xe09f21,ButtonLabelView as _0xff9d2c}from'ckeditor5/src/ui.js';import{unescape as _0x58a0df}from'lodash-es';export default class hs extends _0x5937ab{constructor(_0x437b1d){const _0x491244=_0x3cbd;super();const _0x29a224=new _0xff9d2c(),_0xd08470=new _0xe09f21(this[_0x491244(0x18d)],_0x29a224);this[_0x491244(0x186)][_0x491244(0x18e)](_0xd08470),_0xd08470[_0x491244(0x184)]({'label':_0x437b1d[_0x491244(0x183)],'withText':!0x0}),_0xd08470['on'](_0x491244(0x188),()=>{const _0x626f0c=_0x491244;this[_0x626f0c(0x180)](_0x626f0c(0x188),{'value':_0x58a0df(_0x437b1d[_0x626f0c(0x183)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ba629=_0x485a;(function(_0x589494,_0x500d9b){const _0x186206=_0x485a,_0x3b7264=_0x589494();while(!![]){try{const _0x59d772=-parseInt(_0x186206(0x10a))/0x1*(parseInt(_0x186206(0x109))/0x2)+parseInt(_0x186206(0x107))/0x3+parseInt(_0x186206(0x10d))/0x4+-parseInt(_0x186206(0x111))/0x5*(-parseInt(_0x186206(0x11b))/0x6)+-parseInt(_0x186206(0x10f))/0x7+parseInt(_0x186206(0x113))/0x8+-parseInt(_0x186206(0x114))/0x9;if(_0x59d772===_0x500d9b)break;else _0x3b7264['push'](_0x3b7264['shift']());}catch(_0x4c4e36){_0x3b7264['push'](_0x3b7264['shift']());}}}(_0x1db0,0x63190));function _0x485a(_0xca456f,_0x332713){const _0x1db032=_0x1db0();return _0x485a=function(_0x485a6a,_0x3e67e6){_0x485a6a=_0x485a6a-0x105;let _0x79e650=_0x1db032[_0x485a6a];return _0x79e650;},_0x485a(_0xca456f,_0x332713);}import{ListView as _0x205674,ListItemGroupView as _0x3bc799,ButtonView as _0x598de4}from'ckeditor5/src/ui.js';function _0x1db0(){const _0x351957=['3347071tAUuJB','delegate','299305QFMGbs','Clear','1932696hrVqRa','916812CldUaa','children','set','filter','label','clearHistory','_createClearHistoryButton','30CaXIWn','fire','Prompt\x20history','items','length','add','1319889dPSdVu','clearHistoryButton','186496PdKTUl','6xmFNfz','historyGroupView','locale','2258232yxtcoU','execute'];_0x1db0=function(){return _0x351957;};return _0x1db0();}import{getTranslation as _0x219f70}from'../../utils/common-translations.js';export default class rs extends _0x205674{constructor(_0x14a0cd){const _0x3eac6f=_0x485a;super(_0x14a0cd),this[_0x3eac6f(0x108)]=this[_0x3eac6f(0x11a)](),this[_0x3eac6f(0x10b)]=new _0x3bc799(),this[_0x3eac6f(0x10b)][_0x3eac6f(0x115)][_0x3eac6f(0x106)](this[_0x3eac6f(0x108)],0x1),this[_0x3eac6f(0x10b)][_0x3eac6f(0x118)]=_0x219f70(_0x14a0cd,_0x3eac6f(0x11d)),this[_0x3eac6f(0x10b)][_0x3eac6f(0x11e)][_0x3eac6f(0x110)](_0x3eac6f(0x10e))['to'](this),this[_0x3eac6f(0x11e)][_0x3eac6f(0x106)](this[_0x3eac6f(0x10b)]);}[_0x1ba629(0x117)](){const _0x51cc09=_0x1ba629;let _0x3105cd=0x0;for(const _0x3c1c09 of this[_0x51cc09(0x11e)])_0x3105cd+=_0x3c1c09[_0x51cc09(0x11e)][_0x51cc09(0x105)];return{'resultsCount':_0x3105cd,'totalItemsCount':_0x3105cd};}[_0x1ba629(0x11a)](){const _0x1f64ba=_0x1ba629,_0x4e7aa0=this[_0x1f64ba(0x10c)],_0x1de55e=new _0x598de4(this[_0x1f64ba(0x10c)]);return _0x1de55e[_0x1f64ba(0x116)]({'label':'('+_0x219f70(_0x4e7aa0,_0x1f64ba(0x112))+')','withText':!0x0}),_0x1de55e['on'](_0x1f64ba(0x10e),()=>this[_0x1f64ba(0x11c)](_0x1f64ba(0x119))),_0x1de55e;}}
23
+ function _0x23ed(){const _0x52acd8=['set','Clear','clearHistory','199550LeZfCC','filter','length','children','2131890vhVgmz','1540JlWAwX','fire','label','4807400BUugQF','clearHistoryButton','add','98488rpTQuX','delegate','execute','10Ybdkfn','locale','items','9sRNLJN','historyGroupView','2459008wKBaHu','5dixYHg','_createClearHistoryButton','34374BKDMye','37290946VZOuNS','Prompt\x20history'];_0x23ed=function(){return _0x52acd8;};return _0x23ed();}const _0x51b014=_0x4360;(function(_0x48b2ae,_0x179d1d){const _0x4453f7=_0x4360,_0x33c727=_0x48b2ae();while(!![]){try{const _0x1afc8f=parseInt(_0x4453f7(0x1a6))/0x1*(parseInt(_0x4453f7(0x192))/0x2)+-parseInt(_0x4453f7(0x196))/0x3+parseInt(_0x4453f7(0x19d))/0x4+-parseInt(_0x4453f7(0x19a))/0x5+-parseInt(_0x4453f7(0x1a8))/0x6*(parseInt(_0x4453f7(0x197))/0x7)+-parseInt(_0x4453f7(0x1a5))/0x8*(parseInt(_0x4453f7(0x1a3))/0x9)+parseInt(_0x4453f7(0x1a0))/0xa*(parseInt(_0x4453f7(0x1a9))/0xb);if(_0x1afc8f===_0x179d1d)break;else _0x33c727['push'](_0x33c727['shift']());}catch(_0x3f4926){_0x33c727['push'](_0x33c727['shift']());}}}(_0x23ed,0xa47b5));import{ListView as _0xa729ec,ListItemGroupView as _0x1fcb3b,ButtonView as _0x5d8846}from'ckeditor5/src/ui.js';function _0x4360(_0x47d2c8,_0x39afc9){const _0x23edce=_0x23ed();return _0x4360=function(_0x436003,_0x316c7f){_0x436003=_0x436003-0x191;let _0x434c10=_0x23edce[_0x436003];return _0x434c10;},_0x4360(_0x47d2c8,_0x39afc9);}import{getTranslation as _0x4808b4}from'../../utils/common-translations.js';export default class rs extends _0xa729ec{constructor(_0x44211a){const _0x30d6cc=_0x4360;super(_0x44211a),this[_0x30d6cc(0x19b)]=this[_0x30d6cc(0x1a7)](),this[_0x30d6cc(0x1a4)]=new _0x1fcb3b(),this[_0x30d6cc(0x1a4)][_0x30d6cc(0x195)][_0x30d6cc(0x19c)](this[_0x30d6cc(0x19b)],0x1),this[_0x30d6cc(0x1a4)][_0x30d6cc(0x199)]=_0x4808b4(_0x44211a,_0x30d6cc(0x1aa)),this[_0x30d6cc(0x1a4)][_0x30d6cc(0x1a2)][_0x30d6cc(0x19e)](_0x30d6cc(0x19f))['to'](this),this[_0x30d6cc(0x1a2)][_0x30d6cc(0x19c)](this[_0x30d6cc(0x1a4)]);}[_0x51b014(0x193)](){const _0x4aab25=_0x51b014;let _0x6d77d5=0x0;for(const _0x1a8286 of this[_0x4aab25(0x1a2)])_0x6d77d5+=_0x1a8286[_0x4aab25(0x1a2)][_0x4aab25(0x194)];return{'resultsCount':_0x6d77d5,'totalItemsCount':_0x6d77d5};}[_0x51b014(0x1a7)](){const _0x5a6740=_0x51b014,_0x52f16b=this[_0x5a6740(0x1a1)],_0x360e44=new _0x5d8846(this[_0x5a6740(0x1a1)]);return _0x360e44[_0x5a6740(0x1ab)]({'label':'('+_0x4808b4(_0x52f16b,_0x5a6740(0x1ac))+')','withText':!0x0}),_0x360e44['on'](_0x5a6740(0x19f),()=>this[_0x5a6740(0x198)](_0x5a6740(0x191))),_0x360e44;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1766cf=_0x4f04;(function(_0x5922b4,_0x320b62){const _0xe96041=_0x4f04,_0x8d697c=_0x5922b4();while(!![]){try{const _0x4b4115=parseInt(_0xe96041(0x1aa))/0x1*(-parseInt(_0xe96041(0x1ae))/0x2)+parseInt(_0xe96041(0x1a4))/0x3*(-parseInt(_0xe96041(0x1a0))/0x4)+-parseInt(_0xe96041(0x19a))/0x5*(-parseInt(_0xe96041(0x1ab))/0x6)+parseInt(_0xe96041(0x1af))/0x7+-parseInt(_0xe96041(0x19e))/0x8+-parseInt(_0xe96041(0x1a2))/0x9*(parseInt(_0xe96041(0x1a9))/0xa)+parseInt(_0xe96041(0x196))/0xb;if(_0x4b4115===_0x320b62)break;else _0x8d697c['push'](_0x8d697c['shift']());}catch(_0x500a9d){_0x8d697c['push'](_0x8d697c['shift']());}}}(_0x4165,0x5cfdd));function _0x4165(){const _0x5d6309=['setItem','162FKWqnE','trim','3QkaxKy','last','getItem','map','CKEditor/AIFormView/PromptHistory','236840gCcIkt','47501Zenxid','1038TCfROo','length','add','26KruOBt','3235589KuJKHq','addMany','13830828YKSBaT','stringify','_loadFromSessionStorage','prompt','18760aImfuH','parse','remove','_saveToSessionStorage','2893016hOftJW','toLowerCase','2329304YtTydA'];_0x4165=function(){return _0x5d6309;};return _0x4165();}import{Collection as _0x5a8231}from'ckeditor5/src/utils.js';const cs=_0x1766cf(0x1a8);function _0x4f04(_0x294a7f,_0x30aebc){const _0x4165a3=_0x4165();return _0x4f04=function(_0x4f0444,_0x42e4e1){_0x4f0444=_0x4f0444-0x196;let _0x23cf92=_0x4165a3[_0x4f0444];return _0x23cf92;},_0x4f04(_0x294a7f,_0x30aebc);}export default class os extends _0x5a8231{constructor(){const _0x40b4b7=_0x1766cf;super(),this[_0x40b4b7(0x198)](),this['on'](_0x40b4b7(0x1ad),(_0xaa3ea1,_0x2167ce)=>{const _0x1ff560=_0x40b4b7,_0x21b9c2=Ss(_0x2167ce[_0x1ff560(0x199)]);for(const _0x5422ca of this)if(_0x5422ca!=_0x2167ce&&Ss(_0x5422ca[_0x1ff560(0x199)])===_0x21b9c2){this[_0x1ff560(0x19c)](_0x5422ca);break;}this[_0x1ff560(0x1ac)]>0x14&&this[_0x1ff560(0x19c)](this[_0x1ff560(0x1a5)]),this[_0x1ff560(0x19d)]();}),this['on'](_0x40b4b7(0x19c),()=>{const _0x572762=_0x40b4b7;this[_0x572762(0x19d)]();});}[_0x1766cf(0x198)](){const _0x175e21=_0x1766cf,_0x24cc4c=sessionStorage[_0x175e21(0x1a6)](cs)||'[]';this[_0x175e21(0x1b0)](JSON[_0x175e21(0x19b)](_0x24cc4c));}[_0x1766cf(0x19d)](){const _0x365f1a=_0x1766cf;sessionStorage[_0x365f1a(0x1a1)](cs,JSON[_0x365f1a(0x197)](this[_0x365f1a(0x1a7)](_0x104936=>_0x104936)));}}function Ss(_0x497ba6){const _0x2020f6=_0x1766cf;return _0x497ba6[_0x2020f6(0x19f)]()[_0x2020f6(0x1a3)]();}
23
+ const _0x2384e3=_0x163b;function _0x2ac1(){const _0x586448=['prompt','75VECKOp','length','CKEditor/AIFormView/PromptHistory','7272711THEhAK','stringify','862596HpcgFi','setItem','1821QXkTbW','_loadFromSessionStorage','_saveToSessionStorage','parse','last','67368RbCeKO','205167qFHASl','addMany','getItem','add','toLowerCase','823296DtjugP','remove','map','trim','258zknAXm','62768NnQAOK'];_0x2ac1=function(){return _0x586448;};return _0x2ac1();}(function(_0x2619f6,_0x1b548c){const _0x44a79a=_0x163b,_0x5ac64b=_0x2619f6();while(!![]){try{const _0x5e1fe6=-parseInt(_0x44a79a(0x203))/0x1+-parseInt(_0x44a79a(0x1f3))/0x2*(parseInt(_0x44a79a(0x1fd))/0x3)+-parseInt(_0x44a79a(0x1f4))/0x4+parseInt(_0x44a79a(0x1f6))/0x5*(-parseInt(_0x44a79a(0x202))/0x6)+-parseInt(_0x44a79a(0x1fb))/0x7+-parseInt(_0x44a79a(0x1ef))/0x8+parseInt(_0x44a79a(0x1f9))/0x9;if(_0x5e1fe6===_0x1b548c)break;else _0x5ac64b['push'](_0x5ac64b['shift']());}catch(_0x2cca4f){_0x5ac64b['push'](_0x5ac64b['shift']());}}}(_0x2ac1,0x1beb5));import{Collection as _0xfa795f}from'ckeditor5/src/utils.js';const cs=_0x2384e3(0x1f8);export default class os extends _0xfa795f{constructor(){const _0x5d3899=_0x2384e3;super(),this[_0x5d3899(0x1fe)](),this['on'](_0x5d3899(0x206),(_0x325e72,_0x3affea)=>{const _0x227003=_0x5d3899,_0x32ef7a=Ss(_0x3affea[_0x227003(0x1f5)]);for(const _0x4724a1 of this)if(_0x4724a1!=_0x3affea&&Ss(_0x4724a1[_0x227003(0x1f5)])===_0x32ef7a){this[_0x227003(0x1f0)](_0x4724a1);break;}this[_0x227003(0x1f7)]>0x14&&this[_0x227003(0x1f0)](this[_0x227003(0x201)]),this[_0x227003(0x1ff)]();}),this['on'](_0x5d3899(0x1f0),()=>{const _0x3a4839=_0x5d3899;this[_0x3a4839(0x1ff)]();});}[_0x2384e3(0x1fe)](){const _0x50ba1c=_0x2384e3,_0x47729=sessionStorage[_0x50ba1c(0x205)](cs)||'[]';this[_0x50ba1c(0x204)](JSON[_0x50ba1c(0x200)](_0x47729));}[_0x2384e3(0x1ff)](){const _0x53732d=_0x2384e3;sessionStorage[_0x53732d(0x1fc)](cs,JSON[_0x53732d(0x1fa)](this[_0x53732d(0x1f1)](_0x2d175d=>_0x2d175d)));}}function _0x163b(_0x32648f,_0x53aaed){const _0x2ac108=_0x2ac1();return _0x163b=function(_0x163bb9,_0x1cb7e3){_0x163bb9=_0x163bb9-0x1ef;let _0x564435=_0x2ac108[_0x163bb9];return _0x564435;},_0x163b(_0x32648f,_0x53aaed);}function Ss(_0x2787cc){const _0x3991ab=_0x2384e3;return _0x2787cc[_0x3991ab(0x207)]()[_0x3991ab(0x1f2)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10a041=_0x4246;(function(_0xea2348,_0x5ae9e6){const _0x35252d=_0x4246,_0x1bdc43=_0xea2348();while(!![]){try{const _0x591130=parseInt(_0x35252d(0xc3))/0x1*(-parseInt(_0x35252d(0xb9))/0x2)+parseInt(_0x35252d(0xa0))/0x3+parseInt(_0x35252d(0xb5))/0x4+-parseInt(_0x35252d(0xa5))/0x5*(-parseInt(_0x35252d(0x9c))/0x6)+-parseInt(_0x35252d(0xb6))/0x7*(-parseInt(_0x35252d(0xb1))/0x8)+parseInt(_0x35252d(0xac))/0x9*(parseInt(_0x35252d(0xba))/0xa)+-parseInt(_0x35252d(0xb7))/0xb;if(_0x591130===_0x5ae9e6)break;else _0x1bdc43['push'](_0x1bdc43['shift']());}catch(_0xf8bddf){_0x1bdc43['push'](_0x1bdc43['shift']());}}}(_0x1ee4,0x2f25e));import{Command as _0x11b23b}from'ckeditor5/src/core.js';import _0x3177cf from'../aiassistantui.js';function _0x1ee4(){const _0x4a5eed=['2129292NlvLNl','_hasContext','isCollapsed','document','change:isEnabled','210632tEOPgB','element','values','plugins','775912KYFuRo','42SzliTz','5984572gkUCdW','add','580964nUUPFF','10Cmkabj','ai.aiAssistant.disabledElements','selection','isEnabled','length','getRanges','hasContent','requiresContent','from','1Xmdomb','name','custom','execute','_commandDefinitions','getFirstRange','118632tvbTqc','showUI','isEmpty','getSelectedBlocks','783492IMpSoS','change:_hasContext','get','model','editor','45CifgFJ','includes','enabledCommandsIds','getItems','config','refresh','set'];_0x1ee4=function(){return _0x4a5eed;};return _0x1ee4();}function _0x4246(_0x4ce22d,_0x45407f){const _0x1ee4c7=_0x1ee4();return _0x4246=function(_0x424677,_0x11f3d5){_0x424677=_0x424677-0x9b;let _0xb51a8f=_0x1ee4c7[_0x424677];return _0xb51a8f;},_0x4246(_0x4ce22d,_0x45407f);}export default class E extends _0x11b23b{constructor(_0x8547e2,_0xacce0c){const _0x53cc81=_0x4246;super(_0x8547e2),this[_0x53cc81(0xc7)]=_0xacce0c,this[_0x53cc81(0xab)](_0x53cc81(0xa7),[]),this['on'](_0x53cc81(0xa1),(_0xfba9af,_0x5b2a06,_0x4074e1)=>{const _0x1c3c22=_0x53cc81;this[_0x1c3c22(0xbd)]&&(this[_0x1c3c22(0xa7)]=G(this[_0x1c3c22(0xc7)],_0x4074e1));}),this[_0x53cc81(0xab)](_0x53cc81(0xad),!0x1),this['on'](_0x53cc81(0xb0),(_0x277c37,_0x89f0be,_0x50a9ad)=>{const _0x247def=_0x53cc81;this[_0x247def(0xa7)]=_0x50a9ad?G(this[_0x247def(0xc7)],this[_0x247def(0xad)]):[];});}[_0x10a041(0xaa)](){const _0x4170c8=_0x10a041,_0x5c2c85=this[_0x4170c8(0xa4)][_0x4170c8(0xa3)];this[_0x4170c8(0xad)]=function(_0x39e97f){const _0x246056=_0x4170c8,_0x31ac92=_0x39e97f[_0x246056(0xaf)][_0x246056(0xbc)];return _0x31ac92[_0x246056(0xae)]?0x0!==[..._0x31ac92[_0x246056(0x9f)]()][_0x246056(0xbe)]&&![..._0x31ac92[_0x246056(0x9f)]()][0x0][_0x246056(0x9e)]:!!_0x39e97f[_0x246056(0xc0)](_0x31ac92[_0x246056(0x9b)]());}(_0x5c2c85);const _0x25cc5f=_0x5c2c85[_0x4170c8(0xaf)][_0x4170c8(0xbc)],_0xc77bb6=this[_0x4170c8(0xa4)][_0x4170c8(0xa9)][_0x4170c8(0xa2)](_0x4170c8(0xbb));for(const _0x4aaed4 of _0x25cc5f[_0x4170c8(0xbf)]())for(const _0x7abaa3 of _0x4aaed4[_0x4170c8(0xa8)]())if(_0x7abaa3['is'](_0x4170c8(0xb2))&&_0xc77bb6[_0x4170c8(0xa6)](_0x7abaa3[_0x4170c8(0xc4)]))return void(this[_0x4170c8(0xbd)]=!0x1);this[_0x4170c8(0xbd)]=!0x0;}[_0x10a041(0xc6)](_0xce0818='',_0x289f5c='',_0x10d8fe=_0x10a041(0xc5)){const _0xb1f066=_0x10a041;this[_0xb1f066(0xa4)][_0xb1f066(0xb4)][_0xb1f066(0xa2)](_0x3177cf)[_0xb1f066(0x9d)](_0xce0818,_0x289f5c,_0x10d8fe);}}function G(_0x31beb2,_0x33f4cf){const _0x117ca8=_0x10a041,_0x443797=new Set();for(const _0x6e3f2 of _0x31beb2[_0x117ca8(0xb3)]())(_0x33f4cf||!0x1===_0x6e3f2[_0x117ca8(0xc1)])&&_0x443797[_0x117ca8(0xb8)](_0x6e3f2['id']);return Array[_0x117ca8(0xc2)](_0x443797);}
23
+ function _0x30a7(_0x2522c3,_0x1cfb09){const _0x2b37dc=_0x2b37();return _0x30a7=function(_0x30a7cf,_0x5d6e8f){_0x30a7cf=_0x30a7cf-0x1c8;let _0x165b9a=_0x2b37dc[_0x30a7cf];return _0x165b9a;},_0x30a7(_0x2522c3,_0x1cfb09);}const _0x15ccc9=_0x30a7;function _0x2b37(){const _0x170717=['isEmpty','_commandDefinitions','5268460XYRwqv','hasContent','getRanges','4142655TrYYsd','1708668hkdTZo','120DvsmhN','model','showUI','getFirstRange','2456iboSFt','change:_hasContext','change:isEnabled','enabledCommandsIds','config','document','length','isCollapsed','getItems','custom','includes','set','300635jsSFAl','1260727mbLDOh','name','2MUZwDB','55EDwpVS','ai.aiAssistant.disabledElements','from','4dZeCkT','plugins','element','6876660xtGGsj','add','24367Apmiay','editor','execute','selection','values','isEnabled','requiresContent','_hasContext','refresh','getSelectedBlocks','get'];_0x2b37=function(){return _0x170717;};return _0x2b37();}(function(_0x3188e9,_0x3852c6){const _0x5c31f1=_0x30a7,_0x613be=_0x3188e9();while(!![]){try{const _0x458f83=-parseInt(_0x5c31f1(0x1d3))/0x1*(parseInt(_0x5c31f1(0x1d5))/0x2)+-parseInt(_0x5c31f1(0x1ef))/0x3*(parseInt(_0x5c31f1(0x1d9))/0x4)+parseInt(_0x5c31f1(0x1d2))/0x5*(-parseInt(_0x5c31f1(0x1f0))/0x6)+-parseInt(_0x5c31f1(0x1de))/0x7*(-parseInt(_0x5c31f1(0x1f4))/0x8)+parseInt(_0x5c31f1(0x1ee))/0x9+-parseInt(_0x5c31f1(0x1eb))/0xa+-parseInt(_0x5c31f1(0x1d6))/0xb*(-parseInt(_0x5c31f1(0x1dc))/0xc);if(_0x458f83===_0x3852c6)break;else _0x613be['push'](_0x613be['shift']());}catch(_0xb44a0c){_0x613be['push'](_0x613be['shift']());}}}(_0x2b37,0xcbc08));import{Command as _0x3fc0ac}from'ckeditor5/src/core.js';import _0x31fd8c from'../aiassistantui.js';export default class E extends _0x3fc0ac{constructor(_0x330b18,_0x25003f){const _0x2375af=_0x30a7;super(_0x330b18),this[_0x2375af(0x1ea)]=_0x25003f,this[_0x2375af(0x1d1)](_0x2375af(0x1c9),[]),this['on'](_0x2375af(0x1f5),(_0x11998b,_0x40dfcd,_0x4265f6)=>{const _0x30aee8=_0x2375af;this[_0x30aee8(0x1e3)]&&(this[_0x30aee8(0x1c9)]=G(this[_0x30aee8(0x1ea)],_0x4265f6));}),this[_0x2375af(0x1d1)](_0x2375af(0x1e5),!0x1),this['on'](_0x2375af(0x1c8),(_0x440526,_0x4cb687,_0x13d32e)=>{const _0x17f75a=_0x2375af;this[_0x17f75a(0x1c9)]=_0x13d32e?G(this[_0x17f75a(0x1ea)],this[_0x17f75a(0x1e5)]):[];});}[_0x15ccc9(0x1e6)](){const _0x3b8d44=_0x15ccc9,_0x4a0db6=this[_0x3b8d44(0x1df)][_0x3b8d44(0x1f1)];this[_0x3b8d44(0x1e5)]=function(_0x1247c2){const _0x24b9e3=_0x3b8d44,_0x1007ed=_0x1247c2[_0x24b9e3(0x1cb)][_0x24b9e3(0x1e1)];return _0x1007ed[_0x24b9e3(0x1cd)]?0x0!==[..._0x1007ed[_0x24b9e3(0x1e7)]()][_0x24b9e3(0x1cc)]&&![..._0x1007ed[_0x24b9e3(0x1e7)]()][0x0][_0x24b9e3(0x1e9)]:!!_0x1247c2[_0x24b9e3(0x1ec)](_0x1007ed[_0x24b9e3(0x1f3)]());}(_0x4a0db6);const _0x5a6b5e=_0x4a0db6[_0x3b8d44(0x1cb)][_0x3b8d44(0x1e1)],_0x2389b6=this[_0x3b8d44(0x1df)][_0x3b8d44(0x1ca)][_0x3b8d44(0x1e8)](_0x3b8d44(0x1d7));for(const _0x15416b of _0x5a6b5e[_0x3b8d44(0x1ed)]())for(const _0x4c57f0 of _0x15416b[_0x3b8d44(0x1ce)]())if(_0x4c57f0['is'](_0x3b8d44(0x1db))&&_0x2389b6[_0x3b8d44(0x1d0)](_0x4c57f0[_0x3b8d44(0x1d4)]))return void(this[_0x3b8d44(0x1e3)]=!0x1);this[_0x3b8d44(0x1e3)]=!0x0;}[_0x15ccc9(0x1e0)](_0x55de5e='',_0x44da8f='',_0x3a965a=_0x15ccc9(0x1cf)){const _0x51723f=_0x15ccc9;this[_0x51723f(0x1df)][_0x51723f(0x1da)][_0x51723f(0x1e8)](_0x31fd8c)[_0x51723f(0x1f2)](_0x55de5e,_0x44da8f,_0x3a965a);}}function G(_0x1d644c,_0x32afec){const _0x14b15b=_0x15ccc9,_0xb69829=new Set();for(const _0x284ae6 of _0x1d644c[_0x14b15b(0x1e2)]())(_0x32afec||!0x1===_0x284ae6[_0x14b15b(0x1e4)])&&_0xb69829[_0x14b15b(0x1dd)](_0x284ae6['id']);return Array[_0x14b15b(0x1d8)](_0xb69829);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2057de,_0x24f260,_0x509611){const t=_0x2057de['t'];switch(_0x24f260){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',_0x509611);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x509611);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'},_0x509611);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 _0x24f260;}}
23
+ export function getTranslation(_0x3bbf36,_0x1c3ca0,_0x1eacc9){const t=_0x3bbf36['t'];switch(_0x1c3ca0){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',_0x1eacc9);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1eacc9);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'},_0x1eacc9);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 _0x1c3ca0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x4c723a,_0x443ea0){const _0x507884=(0x0,_0x443ea0['t'])('Other');return _0x4c723a['length']?'groupId'in _0x4c723a[0x0]?_0x4c723a:[{'groupId':'_ungrouppedCommands','groupLabel':_0x507884,'order':0x1/0x0,'commands':_0x4c723a}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x507884,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x40bb0c,_0x55ad1a){const _0x12fde0=(0x0,_0x55ad1a['t'])('Other');return _0x40bb0c['length']?'groupId'in _0x40bb0c[0x0]?_0x40bb0c:[{'groupId':'_ungrouppedCommands','groupLabel':_0x12fde0,'order':0x1/0x0,'commands':_0x40bb0c}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x12fde0,'order':0x1/0x0,'commands':[]}];}