@ckeditor/ckeditor5-ai 44.2.0-alpha.0 → 44.2.0-alpha.10

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 _0x3783=_0x4467;function _0x1f25(){const _0xaf7c7a=['ck-hidden','79697zYGHtI','bind','replaceButton','mainAction','items','AI_','toUpperCase','2257830wkSxQB','addMany','6037675JBsBgO','tryAgainButton','extendTemplate','Stop','80CIvUUy','_CONTENT','3824024piesLV','label','ck-button-action','insertButton','bindTemplate','4623090wQHDKr','79176tLlzRg','locale','_createButton','Insert\x20below','stopButton','16819029AYGDcI','isVisible','set','REPLACE','20AFBOvF','insert','ck-ai-form__toolbar','replace','Try\x20again'];_0x1f25=function(){return _0xaf7c7a;};return _0x1f25();}(function(_0xcfd97b,_0x6a10e1){const _0x3d38dd=_0x4467,_0x450ad0=_0xcfd97b();while(!![]){try{const _0x2c8524=-parseInt(_0x3d38dd(0x129))/0x1*(parseInt(_0x3d38dd(0x123))/0x2)+parseInt(_0x3d38dd(0x10c))/0x3+parseInt(_0x3d38dd(0x11a))/0x4*(parseInt(_0x3d38dd(0x112))/0x5)+-parseInt(_0x3d38dd(0x119))/0x6+-parseInt(_0x3d38dd(0x10e))/0x7+parseInt(_0x3d38dd(0x114))/0x8+parseInt(_0x3d38dd(0x11f))/0x9;if(_0x2c8524===_0x6a10e1)break;else _0x450ad0['push'](_0x450ad0['shift']());}catch(_0x4d4746){_0x450ad0['push'](_0x450ad0['shift']());}}}(_0x1f25,0xf0be8));import{ToolbarView as _0x4c8af0,ButtonView as _0x42212e}from'ckeditor5/src/ui.js';function _0x4467(_0x32acc7,_0x4eb501){const _0x1f2593=_0x1f25();return _0x4467=function(_0x44670f,_0x56d4ae){_0x44670f=_0x44670f-0x109;let _0x3513e0=_0x1f2593[_0x44670f];return _0x3513e0;},_0x4467(_0x32acc7,_0x4eb501);}import{getTranslation as _0x131c08}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3783(0x126),'INSERT':_0x3783(0x124)};export default class at extends _0x4c8af0{constructor(_0x2d674e){const _0x3a4eda=_0x3783;super(_0x2d674e),this[_0x3a4eda(0x121)](_0x3a4eda(0x120),!0x1),this[_0x3a4eda(0x121)](_0x3a4eda(0x12c),AIFormToolbarViewMainActionLabel[_0x3a4eda(0x122)]),this[_0x3a4eda(0x12b)]=this[_0x3a4eda(0x11c)]('',_0x3a4eda(0x116)),this[_0x3a4eda(0x12b)][_0x3a4eda(0x12a)](_0x3a4eda(0x115))['to'](this,_0x3a4eda(0x12c),_0x1c12a2=>_0x131c08(_0x2d674e,_0x3a4eda(0x10a)+_0x1c12a2[_0x3a4eda(0x10b)]()+_0x3a4eda(0x113))),this[_0x3a4eda(0x117)]=this[_0x3a4eda(0x11c)](_0x131c08(_0x2d674e,_0x3a4eda(0x11d))),this[_0x3a4eda(0x10f)]=this[_0x3a4eda(0x11c)](_0x131c08(_0x2d674e,_0x3a4eda(0x127))),this[_0x3a4eda(0x11e)]=this[_0x3a4eda(0x11c)](_0x131c08(_0x2d674e,_0x3a4eda(0x111)));const _0x5b19c9=this[_0x3a4eda(0x118)];this[_0x3a4eda(0x110)]({'attributes':{'class':[_0x3a4eda(0x125),_0x5b19c9['if'](_0x3a4eda(0x120),_0x3a4eda(0x128),_0x29139e=>!_0x29139e)]}}),this[_0x3a4eda(0x109)][_0x3a4eda(0x10d)]([this[_0x3a4eda(0x12b)],this[_0x3a4eda(0x117)],this[_0x3a4eda(0x10f)],this[_0x3a4eda(0x11e)]]);}[_0x3783(0x11c)](_0x3ad544,_0x2ddd54){const _0x86cd22=_0x3783,_0x3d2401=new _0x42212e(this[_0x86cd22(0x11b)]);return _0x3d2401[_0x86cd22(0x121)]({'label':_0x3ad544,'class':_0x2ddd54||'','isVisible':!0x0,'withText':!0x0}),_0x3d2401;}}
23
+ const _0x1168cc=_0x254d;function _0x254d(_0x207c81,_0x4b19c1){const _0x11ab3e=_0x11ab();return _0x254d=function(_0x254dc4,_0x17a5ad){_0x254dc4=_0x254dc4-0xe2;let _0x5efb1d=_0x11ab3e[_0x254dc4];return _0x5efb1d;},_0x254d(_0x207c81,_0x4b19c1);}(function(_0x4a704a,_0x1d7ee5){const _0x3f7c5c=_0x254d,_0x50c8cd=_0x4a704a();while(!![]){try{const _0x2041a1=parseInt(_0x3f7c5c(0xf2))/0x1+-parseInt(_0x3f7c5c(0xf1))/0x2*(-parseInt(_0x3f7c5c(0xf4))/0x3)+-parseInt(_0x3f7c5c(0x106))/0x4*(-parseInt(_0x3f7c5c(0xec))/0x5)+parseInt(_0x3f7c5c(0xf8))/0x6+-parseInt(_0x3f7c5c(0xee))/0x7+parseInt(_0x3f7c5c(0xed))/0x8*(parseInt(_0x3f7c5c(0xe4))/0x9)+parseInt(_0x3f7c5c(0x103))/0xa*(-parseInt(_0x3f7c5c(0xf6))/0xb);if(_0x2041a1===_0x1d7ee5)break;else _0x50c8cd['push'](_0x50c8cd['shift']());}catch(_0xe2ffed){_0x50c8cd['push'](_0x50c8cd['shift']());}}}(_0x11ab,0x7a38d));import{ToolbarView as _0x22030f,ButtonView as _0x4f4418}from'ckeditor5/src/ui.js';function _0x11ab(){const _0x4d1531=['ck-button-action','12YrgrFZ','bindTemplate','ck-hidden','replace','2043czMbvr','tryAgainButton','isVisible','toUpperCase','items','AI_','extendTemplate','_createButton','151765nPcGSF','19736lsSiBe','2380175UKtTSd','insert','bind','30adITHB','931796lGJlTS','label','52233zlSHst','set','13851563wGhkAj','addMany','1535100iKtNFe','locale','replaceButton','_CONTENT','stopButton','mainAction','REPLACE','ck-ai-form__toolbar','Try\x20again','Stop','Insert\x20below','10rMFJgH','insertButton'];_0x11ab=function(){return _0x4d1531;};return _0x11ab();}import{getTranslation as _0x533cbe}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1168cc(0xe3),'INSERT':_0x1168cc(0xef)};export default class at extends _0x22030f{constructor(_0x219dd3){const _0x3dd3e2=_0x1168cc;super(_0x219dd3),this[_0x3dd3e2(0xf5)](_0x3dd3e2(0xe6),!0x1),this[_0x3dd3e2(0xf5)](_0x3dd3e2(0xfd),AIFormToolbarViewMainActionLabel[_0x3dd3e2(0xfe)]),this[_0x3dd3e2(0xfa)]=this[_0x3dd3e2(0xeb)]('',_0x3dd3e2(0x105)),this[_0x3dd3e2(0xfa)][_0x3dd3e2(0xf0)](_0x3dd3e2(0xf3))['to'](this,_0x3dd3e2(0xfd),_0x13fba2=>_0x533cbe(_0x219dd3,_0x3dd3e2(0xe9)+_0x13fba2[_0x3dd3e2(0xe7)]()+_0x3dd3e2(0xfb))),this[_0x3dd3e2(0x104)]=this[_0x3dd3e2(0xeb)](_0x533cbe(_0x219dd3,_0x3dd3e2(0x102))),this[_0x3dd3e2(0xe5)]=this[_0x3dd3e2(0xeb)](_0x533cbe(_0x219dd3,_0x3dd3e2(0x100))),this[_0x3dd3e2(0xfc)]=this[_0x3dd3e2(0xeb)](_0x533cbe(_0x219dd3,_0x3dd3e2(0x101)));const _0x286bb1=this[_0x3dd3e2(0x107)];this[_0x3dd3e2(0xea)]({'attributes':{'class':[_0x3dd3e2(0xff),_0x286bb1['if'](_0x3dd3e2(0xe6),_0x3dd3e2(0xe2),_0x44744a=>!_0x44744a)]}}),this[_0x3dd3e2(0xe8)][_0x3dd3e2(0xf7)]([this[_0x3dd3e2(0xfa)],this[_0x3dd3e2(0x104)],this[_0x3dd3e2(0xe5)],this[_0x3dd3e2(0xfc)]]);}[_0x1168cc(0xeb)](_0x207165,_0x260e11){const _0x392494=_0x1168cc,_0x1a0a57=new _0x4f4418(this[_0x392494(0xf9)]);return _0x1a0a57[_0x392494(0xf5)]({'label':_0x207165,'class':_0x260e11||'','isVisible':!0x0,'withText':!0x0}),_0x1a0a57;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ff24b=_0x390d;(function(_0x3a449f,_0x272f12){const _0x1cae82=_0x390d,_0x2490f9=_0x3a449f();while(!![]){try{const _0x10079b=parseInt(_0x1cae82(0x171))/0x1+-parseInt(_0x1cae82(0x169))/0x2*(parseInt(_0x1cae82(0x17d))/0x3)+-parseInt(_0x1cae82(0x183))/0x4*(-parseInt(_0x1cae82(0x178))/0x5)+-parseInt(_0x1cae82(0x17b))/0x6+parseInt(_0x1cae82(0x181))/0x7+-parseInt(_0x1cae82(0x179))/0x8+parseInt(_0x1cae82(0x18f))/0x9;if(_0x10079b===_0x272f12)break;else _0x2490f9['push'](_0x2490f9['shift']());}catch(_0x47e961){_0x2490f9['push'](_0x2490f9['shift']());}}}(_0x3bdd,0xacdf4));import{FocusTracker as _0x52cecb,KeystrokeHandler as _0x4e0253}from'ckeditor5/src/utils.js';import{View as _0x3a2f13,FocusCycler as _0x147d21,createLabeledTextarea as _0x4197fd}from'ckeditor5/src/ui.js';function _0x3bdd(){const _0x1ca9c6=['items','queryView','_promptHistory','bind','isProcessing','listenTo','isEnabled','label','locale','value','submit','render','add','startProcessing','insertContentBelow','bindTemplate','focusLast','high','_createPromptView','bindTo','20HoARRS','contentArea','tryAgainButton','tab','clearHistory','ck-hidden','promptView','text','1184883FQymUu','div','AI_ERROR_FAILED','historyGroupView','ck-ai-form','execute','createCollection','10KVmmLS','5542008qfkOfP','stopButton','3766176RxIXmj','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','84789StZdkW','focusCycler','trim','focusFirst','3279360tHazod','handleError','878804EDHobG','copyButtonView','insertButton','focusTracker','setTemplate','Ask\x20AI\x20to\x20edit\x20or\x20generate','ck-ai-form-content','mainAction','Ask\x20AI\x20to\x20improve\x20generated\x20text','reset','toolbar','replaceContent','1965564KNXApu','clear','isVisible','tryAgainEvent','search','stopProcessing','errorView','submitPrompt','keystrokes','fire','fieldView','focus','isError','_focusables','element','_createHistoryView','delegate','_createToolbar','REPLACE','set','shift\x20+\x20tab','chain','finishProcessing','prompt','Empty\x20history','replaceButton'];_0x3bdd=function(){return _0x1ca9c6;};return _0x3bdd();}import _0x49fa11,{AIFormToolbarViewMainActionLabel as _0x27240c}from'./aiformtoolbarview.js';function _0x390d(_0x471964,_0x545427){const _0x3bddc0=_0x3bdd();return _0x390d=function(_0x390dae,_0x1d4657){_0x390dae=_0x390dae-0x160;let _0x298c0b=_0x3bddc0[_0x390dae];return _0x298c0b;},_0x390d(_0x471964,_0x545427);}import _0x5d17c7 from'./aiformcontentarea.js';import _0x1816f2 from'./aiformerrorview.js';import _0x9a91a6 from'./aiformpromptview.js';import _0x38fc35 from'./aihistorylistview.js';import _0x367a92 from'./aihistorylistitemview.js';import _0x194eca from'./prompthistory.js';import{getTranslation as _0x2d655f}from'../../utils/common-translations.js';import{escape as _0x337f7f}from'lodash-es';export default class k extends _0x3a2f13{constructor(_0xdb9b87,_0x5b1356,_0x23ca6f=''){const _0x5e8613=_0x390d;super(_0xdb9b87),this[_0x5e8613(0x1a2)](_0x5e8613(0x1af),!0x0),this[_0x5e8613(0x1a2)](_0x5e8613(0x1ad),!0x1),this[_0x5e8613(0x1a2)](_0x5e8613(0x1a6),''),this[_0x5e8613(0x1a2)](_0x5e8613(0x1b2),''),this[_0x5e8613(0x1a2)](_0x5e8613(0x19b),!0x1),this[_0x5e8613(0x1a2)](_0x5e8613(0x18a),_0x27240c[_0x5e8613(0x1a1)]),this[_0x5e8613(0x1ab)]=new _0x194eca(),this[_0x5e8613(0x195)]=new _0x1816f2(_0xdb9b87),this[_0x5e8613(0x16a)]=new _0x5d17c7(_0xdb9b87,_0x23ca6f),this[_0x5e8613(0x16a)][_0x5e8613(0x1ac)](_0x5e8613(0x1ad))['to'](this),this[_0x5e8613(0x16a)][_0x5e8613(0x1ac)](_0x5e8613(0x1b2))['to'](this),this[_0x5e8613(0x18d)]=this[_0x5e8613(0x1a0)](),this[_0x5e8613(0x18d)][_0x5e8613(0x1ac)](_0x5e8613(0x18a))['to'](this),this[_0x5e8613(0x16f)]=this[_0x5e8613(0x167)](),this[_0x5e8613(0x186)]=new _0x52cecb(),this[_0x5e8613(0x197)]=new _0x4e0253(),this[_0x5e8613(0x19c)]=this[_0x5e8613(0x177)]([this[_0x5e8613(0x16a)],this[_0x5e8613(0x16a)][_0x5e8613(0x184)],this[_0x5e8613(0x18d)],this[_0x5e8613(0x16f)]]),this[_0x5e8613(0x17e)]=new _0x147d21({'focusables':this[_0x5e8613(0x19c)],'focusTracker':this[_0x5e8613(0x186)],'keystrokeHandler':this[_0x5e8613(0x197)],'actions':{'focusPrevious':_0x5e8613(0x1a3),'focusNext':_0x5e8613(0x16c)}}),this[_0x5e8613(0x17e)][_0x5e8613(0x1a4)](this[_0x5e8613(0x16f)][_0x5e8613(0x17e)]),this[_0x5e8613(0x16f)][_0x5e8613(0x1aa)][_0x5e8613(0x199)][_0x5e8613(0x1ac)](_0x5e8613(0x1b2))['to'](this,_0x5e8613(0x1a6));const _0x1dede4=this[_0x5e8613(0x164)];this[_0x5e8613(0x187)]({'tag':_0x5e8613(0x172),'attributes':{'class':['ck',_0x5e8613(0x175),_0x5b1356],'tabindex':'-1'},'children':[{'tag':_0x5e8613(0x172),'attributes':{'class':['ck',_0x5e8613(0x189)]},'children':[{'tag':_0x5e8613(0x172),'attributes':{'class':[_0x1dede4['if'](_0x5e8613(0x19b),_0x5e8613(0x16e),_0x282452=>!_0x282452)]},'children':[this[_0x5e8613(0x195)]]},this[_0x5e8613(0x16a)],this[_0x5e8613(0x18d)],this[_0x5e8613(0x16f)]]}]});}[_0x3ff24b(0x160)](){const _0x5197cc=_0x3ff24b;super[_0x5197cc(0x160)](),this[_0x5197cc(0x186)][_0x5197cc(0x161)](this[_0x5197cc(0x16a)][_0x5197cc(0x19d)]),this[_0x5197cc(0x186)][_0x5197cc(0x161)](this[_0x5197cc(0x16a)][_0x5197cc(0x184)][_0x5197cc(0x19d)]),this[_0x5197cc(0x186)][_0x5197cc(0x161)](this[_0x5197cc(0x18d)][_0x5197cc(0x19d)]),this[_0x5197cc(0x186)][_0x5197cc(0x161)](this[_0x5197cc(0x16f)][_0x5197cc(0x19d)]),this[_0x5197cc(0x197)][_0x5197cc(0x1ae)](this[_0x5197cc(0x19d)]);}[_0x3ff24b(0x19a)](_0x4d30a6=0x1){const _0x16c148=_0x3ff24b;-0x1===_0x4d30a6?this[_0x16c148(0x17e)][_0x16c148(0x165)]():this[_0x16c148(0x17e)][_0x16c148(0x180)]();}[_0x3ff24b(0x18c)](){const _0x45b4cc=_0x3ff24b;this[_0x45b4cc(0x1a6)]='',this[_0x45b4cc(0x1b2)]='',this[_0x45b4cc(0x19b)]=!0x1,this[_0x45b4cc(0x16f)][_0x45b4cc(0x18c)](),this[_0x45b4cc(0x16a)][_0x45b4cc(0x191)]=!0x1,this[_0x45b4cc(0x18d)][_0x45b4cc(0x191)]=!0x1;}[_0x3ff24b(0x167)](){const _0x1c257b=_0x3ff24b,_0x2b81ad=this[_0x1c257b(0x1b1)],_0xe790ee=new _0x9a91a6(_0x2b81ad,{'queryView':{'label':_0x2d655f(_0x2b81ad,_0x1c257b(0x188)),'creator':_0x4197fd,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2d655f(_0x2b81ad,_0x1c257b(0x1a7)),'secondary':_0x2d655f(_0x2b81ad,_0x1c257b(0x17c))}}},'filteredView':this[_0x1c257b(0x19e)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0xe790ee[_0x1c257b(0x1ac)](_0x1c257b(0x1af))['to'](this,_0x1c257b(0x1af),this,_0x1c257b(0x1ad),(_0x476b35,_0x416231)=>_0x476b35&&!_0x416231),this[_0x1c257b(0x1ae)](_0xe790ee,_0x1c257b(0x1b3),(_0x5f0800,_0x324566)=>{const _0x4c8080=_0x1c257b;this[_0x4c8080(0x1a6)]=_0x324566;const _0x31a5a5=_0x337f7f(_0x324566);this[_0x4c8080(0x198)](_0x4c8080(0x196),_0x31a5a5),_0x324566[_0x4c8080(0x17f)]()&&this[_0x4c8080(0x1ab)][_0x4c8080(0x161)]({'prompt':_0x31a5a5},0x0);},{'priority':_0x1c257b(0x166)}),_0xe790ee;}[_0x3ff24b(0x19e)](){const _0x2f63c6=_0x3ff24b,_0x14eb3d=new _0x38fc35(this[_0x2f63c6(0x1b1)]);return _0x14eb3d[_0x2f63c6(0x174)][_0x2f63c6(0x1a9)][_0x2f63c6(0x168)](this[_0x2f63c6(0x1ab)])['as'](_0x367a92),_0x14eb3d['on'](_0x2f63c6(0x16d),()=>{const _0x90301=_0x2f63c6;this[_0x90301(0x1ab)][_0x90301(0x190)](),this[_0x90301(0x16f)][_0x90301(0x193)](''),this[_0x90301(0x16f)][_0x90301(0x19a)]();}),_0x14eb3d;}[_0x3ff24b(0x1a0)](){const _0x5dc1e2=_0x3ff24b,_0x752f27=new _0x49fa11(this[_0x5dc1e2(0x1b1)]);return _0x752f27[_0x5dc1e2(0x1a8)][_0x5dc1e2(0x1ac)](_0x5dc1e2(0x1af))['to'](this,_0x5dc1e2(0x1af),this,_0x5dc1e2(0x1ad),this,_0x5dc1e2(0x1b2),(_0x43b24b,_0x47183c,_0x5322df)=>_0x43b24b&&!_0x47183c&&!!_0x5322df),_0x752f27[_0x5dc1e2(0x1a8)][_0x5dc1e2(0x19f)](_0x5dc1e2(0x176))['to'](this,_0x5dc1e2(0x18e)),_0x752f27[_0x5dc1e2(0x185)][_0x5dc1e2(0x1ac)](_0x5dc1e2(0x1af))['to'](this,_0x5dc1e2(0x1af),this,_0x5dc1e2(0x1ad),this,_0x5dc1e2(0x1b2),(_0x54de43,_0xeb054a,_0x34dac7)=>_0x54de43&&!_0xeb054a&&!!_0x34dac7),_0x752f27[_0x5dc1e2(0x185)][_0x5dc1e2(0x19f)](_0x5dc1e2(0x176))['to'](this,_0x5dc1e2(0x163)),_0x752f27[_0x5dc1e2(0x16b)][_0x5dc1e2(0x1ac)](_0x5dc1e2(0x1af))['to'](this,_0x5dc1e2(0x1af),this,_0x5dc1e2(0x1ad),(_0x101d02,_0x48c883)=>_0x101d02&&!_0x48c883),_0x752f27[_0x5dc1e2(0x16b)][_0x5dc1e2(0x19f)](_0x5dc1e2(0x176))['to'](this,_0x5dc1e2(0x192)),_0x752f27[_0x5dc1e2(0x17a)][_0x5dc1e2(0x1ac)](_0x5dc1e2(0x1af))['to'](this,_0x5dc1e2(0x1ad)),_0x752f27[_0x5dc1e2(0x17a)][_0x5dc1e2(0x19f)](_0x5dc1e2(0x176))['to'](this,_0x5dc1e2(0x194)),_0x752f27;}[_0x3ff24b(0x162)](){const _0x27a68b=_0x3ff24b;this[_0x27a68b(0x1b2)]='',this[_0x27a68b(0x19b)]=!0x1,this[_0x27a68b(0x1ad)]=!0x0,this[_0x27a68b(0x16a)][_0x27a68b(0x191)]=!0x0,this[_0x27a68b(0x18d)][_0x27a68b(0x191)]=!0x0,this[_0x27a68b(0x16a)][_0x27a68b(0x19a)]();}[_0x3ff24b(0x1a5)](){const _0x5b9ee6=_0x3ff24b,_0x1868ed=this[_0x5b9ee6(0x1b1)];this[_0x5b9ee6(0x1ad)]=!0x1,this[_0x5b9ee6(0x1a6)]='',this[_0x5b9ee6(0x16f)][_0x5b9ee6(0x18c)](),this[_0x5b9ee6(0x1b2)]&&(this[_0x5b9ee6(0x16f)][_0x5b9ee6(0x1aa)][_0x5b9ee6(0x1b0)]=_0x2d655f(_0x1868ed,_0x5b9ee6(0x18b)));}[_0x3ff24b(0x182)](_0x592a99){const _0x545181=_0x3ff24b,_0x5f0402=this[_0x545181(0x1b1)];this[_0x545181(0x1a5)](),this[_0x545181(0x19b)]=!0x0,this[_0x545181(0x195)][_0x545181(0x170)]=_0x592a99||_0x2d655f(_0x5f0402,_0x545181(0x173)),this[_0x545181(0x1b2)]||(this[_0x545181(0x16a)][_0x545181(0x191)]=!0x1);}}
23
+ const _0x6d6616=_0x4947;(function(_0x2ccbd0,_0x228a3b){const _0x1af5e8=_0x4947,_0x6d1aeb=_0x2ccbd0();while(!![]){try{const _0x453a03=-parseInt(_0x1af5e8(0x1fa))/0x1*(-parseInt(_0x1af5e8(0x1fe))/0x2)+parseInt(_0x1af5e8(0x20a))/0x3+parseInt(_0x1af5e8(0x21d))/0x4+parseInt(_0x1af5e8(0x1f8))/0x5+-parseInt(_0x1af5e8(0x1e5))/0x6+-parseInt(_0x1af5e8(0x214))/0x7+-parseInt(_0x1af5e8(0x1fc))/0x8;if(_0x453a03===_0x228a3b)break;else _0x6d1aeb['push'](_0x6d1aeb['shift']());}catch(_0x463ba9){_0x6d1aeb['push'](_0x6d1aeb['shift']());}}}(_0x1450,0xc74d5));import{FocusTracker as _0x3e7425,KeystrokeHandler as _0x486c95}from'ckeditor5/src/utils.js';import{View as _0x4a8e5b,FocusCycler as _0x31ebdc,createLabeledTextarea as _0xf351a4}from'ckeditor5/src/ui.js';import _0x4bc0c6,{AIFormToolbarViewMainActionLabel as _0x434a4b}from'./aiformtoolbarview.js';import _0x1a5e36 from'./aiformcontentarea.js';function _0x4947(_0x12a3d3,_0x40a024){const _0x145015=_0x1450();return _0x4947=function(_0x4947a2,_0x318109){_0x4947a2=_0x4947a2-0x1d6;let _0x51ce69=_0x145015[_0x4947a2];return _0x51ce69;},_0x4947(_0x12a3d3,_0x40a024);}import _0x3b3cfd from'./aiformerrorview.js';import _0x4d58d6 from'./aiformpromptview.js';import _0x56f360 from'./aihistorylistview.js';import _0x254d1b from'./aihistorylistitemview.js';function _0x1450(){const _0x2c68b1=['Ask\x20AI\x20to\x20improve\x20generated\x20text','_promptHistory','label','setTemplate','focus','queryView','startProcessing','5424923ATCHyt','clear','stopProcessing','mainAction','trim','createCollection','insertContentBelow','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','finishProcessing','4561896QkCCNJ','insertButton','_focusables','toolbar','stopButton','_createPromptView','bindTo','delegate','focusLast','isProcessing','execute','search','tab','promptView','keystrokes','submit','fire','element','historyGroupView','replaceButton','replaceContent','focusTracker','reset','high','focusFirst','handleError','add','7933854wbrNxZ','fieldView','clearHistory','locale','shift\x20+\x20tab','chain','AI_ERROR_FAILED','tryAgainEvent','value','focusCycler','REPLACE','set','ck-ai-form','render','copyButtonView','ck-hidden','Empty\x20history','_createHistoryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','2395465tPmPKK','bindTemplate','384924geDjAS','div','7710696aThQuF','prompt','8ozoORZ','isVisible','listenTo','items','ck-ai-form-content','errorView','_createToolbar','contentArea','bind','submitPrompt','isError','text','2154639JHBkGx','isEnabled','tryAgainButton'];_0x1450=function(){return _0x2c68b1;};return _0x1450();}import _0x4f6d09 from'./prompthistory.js';import{getTranslation as _0x2b6759}from'../../utils/common-translations.js';import{escape as _0x199c7b}from'lodash-es';export default class k extends _0x4a8e5b{constructor(_0x432296,_0x3cacc0,_0x1a6759=''){const _0x32ed1d=_0x4947;super(_0x432296),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x20b),!0x0),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x226),!0x1),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x1fd),''),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x1ed),''),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x208),!0x1),this[_0x32ed1d(0x1f0)](_0x32ed1d(0x217),_0x434a4b[_0x32ed1d(0x1ef)]),this[_0x32ed1d(0x20e)]=new _0x4f6d09(),this[_0x32ed1d(0x203)]=new _0x3b3cfd(_0x432296),this[_0x32ed1d(0x205)]=new _0x1a5e36(_0x432296,_0x1a6759),this[_0x32ed1d(0x205)][_0x32ed1d(0x206)](_0x32ed1d(0x226))['to'](this),this[_0x32ed1d(0x205)][_0x32ed1d(0x206)](_0x32ed1d(0x1ed))['to'](this),this[_0x32ed1d(0x220)]=this[_0x32ed1d(0x204)](),this[_0x32ed1d(0x220)][_0x32ed1d(0x206)](_0x32ed1d(0x217))['to'](this),this[_0x32ed1d(0x1d7)]=this[_0x32ed1d(0x222)](),this[_0x32ed1d(0x1df)]=new _0x3e7425(),this[_0x32ed1d(0x1d8)]=new _0x486c95(),this[_0x32ed1d(0x21f)]=this[_0x32ed1d(0x219)]([this[_0x32ed1d(0x205)],this[_0x32ed1d(0x205)][_0x32ed1d(0x1f3)],this[_0x32ed1d(0x220)],this[_0x32ed1d(0x1d7)]]),this[_0x32ed1d(0x1ee)]=new _0x31ebdc({'focusables':this[_0x32ed1d(0x21f)],'focusTracker':this[_0x32ed1d(0x1df)],'keystrokeHandler':this[_0x32ed1d(0x1d8)],'actions':{'focusPrevious':_0x32ed1d(0x1e9),'focusNext':_0x32ed1d(0x1d6)}}),this[_0x32ed1d(0x1ee)][_0x32ed1d(0x1ea)](this[_0x32ed1d(0x1d7)][_0x32ed1d(0x1ee)]),this[_0x32ed1d(0x1d7)][_0x32ed1d(0x212)][_0x32ed1d(0x1e6)][_0x32ed1d(0x206)](_0x32ed1d(0x1ed))['to'](this,_0x32ed1d(0x1fd));const _0x4b0d93=this[_0x32ed1d(0x1f9)];this[_0x32ed1d(0x210)]({'tag':_0x32ed1d(0x1fb),'attributes':{'class':['ck',_0x32ed1d(0x1f1),_0x3cacc0],'tabindex':'-1'},'children':[{'tag':_0x32ed1d(0x1fb),'attributes':{'class':['ck',_0x32ed1d(0x202)]},'children':[{'tag':_0x32ed1d(0x1fb),'attributes':{'class':[_0x4b0d93['if'](_0x32ed1d(0x208),_0x32ed1d(0x1f4),_0x5a1f17=>!_0x5a1f17)]},'children':[this[_0x32ed1d(0x203)]]},this[_0x32ed1d(0x205)],this[_0x32ed1d(0x220)],this[_0x32ed1d(0x1d7)]]}]});}[_0x6d6616(0x1f2)](){const _0x3c7f66=_0x6d6616;super[_0x3c7f66(0x1f2)](),this[_0x3c7f66(0x1df)][_0x3c7f66(0x1e4)](this[_0x3c7f66(0x205)][_0x3c7f66(0x1db)]),this[_0x3c7f66(0x1df)][_0x3c7f66(0x1e4)](this[_0x3c7f66(0x205)][_0x3c7f66(0x1f3)][_0x3c7f66(0x1db)]),this[_0x3c7f66(0x1df)][_0x3c7f66(0x1e4)](this[_0x3c7f66(0x220)][_0x3c7f66(0x1db)]),this[_0x3c7f66(0x1df)][_0x3c7f66(0x1e4)](this[_0x3c7f66(0x1d7)][_0x3c7f66(0x1db)]),this[_0x3c7f66(0x1d8)][_0x3c7f66(0x200)](this[_0x3c7f66(0x1db)]);}[_0x6d6616(0x211)](_0x2fde95=0x1){const _0x59ac89=_0x6d6616;-0x1===_0x2fde95?this[_0x59ac89(0x1ee)][_0x59ac89(0x225)]():this[_0x59ac89(0x1ee)][_0x59ac89(0x1e2)]();}[_0x6d6616(0x1e0)](){const _0x2b992d=_0x6d6616;this[_0x2b992d(0x1fd)]='',this[_0x2b992d(0x1ed)]='',this[_0x2b992d(0x208)]=!0x1,this[_0x2b992d(0x1d7)][_0x2b992d(0x1e0)](),this[_0x2b992d(0x205)][_0x2b992d(0x1ff)]=!0x1,this[_0x2b992d(0x220)][_0x2b992d(0x1ff)]=!0x1;}[_0x6d6616(0x222)](){const _0x21636e=_0x6d6616,_0x30c86a=this[_0x21636e(0x1e8)],_0x310e09=new _0x4d58d6(_0x30c86a,{'queryView':{'label':_0x2b6759(_0x30c86a,_0x21636e(0x1f7)),'creator':_0xf351a4,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2b6759(_0x30c86a,_0x21636e(0x1f5)),'secondary':_0x2b6759(_0x30c86a,_0x21636e(0x21b))}}},'filteredView':this[_0x21636e(0x1f6)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x310e09[_0x21636e(0x206)](_0x21636e(0x20b))['to'](this,_0x21636e(0x20b),this,_0x21636e(0x226),(_0x525803,_0x3a9201)=>_0x525803&&!_0x3a9201),this[_0x21636e(0x200)](_0x310e09,_0x21636e(0x1d9),(_0x10868d,_0x44c87b)=>{const _0x41460c=_0x21636e;this[_0x41460c(0x1fd)]=_0x44c87b;const _0x4e4f01=_0x199c7b(_0x44c87b);this[_0x41460c(0x1da)](_0x41460c(0x207),_0x4e4f01),_0x44c87b[_0x41460c(0x218)]()&&this[_0x41460c(0x20e)][_0x41460c(0x1e4)]({'prompt':_0x4e4f01},0x0);},{'priority':_0x21636e(0x1e1)}),_0x310e09;}[_0x6d6616(0x1f6)](){const _0x56ded5=_0x6d6616,_0x418456=new _0x56f360(this[_0x56ded5(0x1e8)]);return _0x418456[_0x56ded5(0x1dc)][_0x56ded5(0x201)][_0x56ded5(0x223)](this[_0x56ded5(0x20e)])['as'](_0x254d1b),_0x418456['on'](_0x56ded5(0x1e7),()=>{const _0x2f334f=_0x56ded5;this[_0x2f334f(0x20e)][_0x2f334f(0x215)](),this[_0x2f334f(0x1d7)][_0x2f334f(0x228)](''),this[_0x2f334f(0x1d7)][_0x2f334f(0x211)]();}),_0x418456;}[_0x6d6616(0x204)](){const _0x17935c=_0x6d6616,_0x25c3f7=new _0x4bc0c6(this[_0x17935c(0x1e8)]);return _0x25c3f7[_0x17935c(0x1dd)][_0x17935c(0x206)](_0x17935c(0x20b))['to'](this,_0x17935c(0x20b),this,_0x17935c(0x226),this,_0x17935c(0x1ed),(_0x3942a0,_0x55ddce,_0x3bb2f5)=>_0x3942a0&&!_0x55ddce&&!!_0x3bb2f5),_0x25c3f7[_0x17935c(0x1dd)][_0x17935c(0x224)](_0x17935c(0x227))['to'](this,_0x17935c(0x1de)),_0x25c3f7[_0x17935c(0x21e)][_0x17935c(0x206)](_0x17935c(0x20b))['to'](this,_0x17935c(0x20b),this,_0x17935c(0x226),this,_0x17935c(0x1ed),(_0x344666,_0x22a9cb,_0x591011)=>_0x344666&&!_0x22a9cb&&!!_0x591011),_0x25c3f7[_0x17935c(0x21e)][_0x17935c(0x224)](_0x17935c(0x227))['to'](this,_0x17935c(0x21a)),_0x25c3f7[_0x17935c(0x20c)][_0x17935c(0x206)](_0x17935c(0x20b))['to'](this,_0x17935c(0x20b),this,_0x17935c(0x226),(_0x2b157,_0x27cf97)=>_0x2b157&&!_0x27cf97),_0x25c3f7[_0x17935c(0x20c)][_0x17935c(0x224)](_0x17935c(0x227))['to'](this,_0x17935c(0x1ec)),_0x25c3f7[_0x17935c(0x221)][_0x17935c(0x206)](_0x17935c(0x20b))['to'](this,_0x17935c(0x226)),_0x25c3f7[_0x17935c(0x221)][_0x17935c(0x224)](_0x17935c(0x227))['to'](this,_0x17935c(0x216)),_0x25c3f7;}[_0x6d6616(0x213)](){const _0x194cdf=_0x6d6616;this[_0x194cdf(0x1ed)]='',this[_0x194cdf(0x208)]=!0x1,this[_0x194cdf(0x226)]=!0x0,this[_0x194cdf(0x205)][_0x194cdf(0x1ff)]=!0x0,this[_0x194cdf(0x220)][_0x194cdf(0x1ff)]=!0x0,this[_0x194cdf(0x205)][_0x194cdf(0x211)]();}[_0x6d6616(0x21c)](){const _0x225f05=_0x6d6616,_0xa4fc00=this[_0x225f05(0x1e8)];this[_0x225f05(0x226)]=!0x1,this[_0x225f05(0x1fd)]='',this[_0x225f05(0x1d7)][_0x225f05(0x1e0)](),this[_0x225f05(0x1ed)]&&(this[_0x225f05(0x1d7)][_0x225f05(0x212)][_0x225f05(0x20f)]=_0x2b6759(_0xa4fc00,_0x225f05(0x20d)));}[_0x6d6616(0x1e3)](_0x1776af){const _0x41a517=_0x6d6616,_0x100ce3=this[_0x41a517(0x1e8)];this[_0x41a517(0x21c)](),this[_0x41a517(0x208)]=!0x0,this[_0x41a517(0x203)][_0x41a517(0x209)]=_0x1776af||_0x2b6759(_0x100ce3,_0x41a517(0x1eb)),this[_0x41a517(0x1ed)]||(this[_0x41a517(0x205)][_0x41a517(0x1ff)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1ff169,_0x2e9005){const _0x244bb3=_0xc2f2,_0xcae9cb=_0x1ff169();while(!![]){try{const _0x265ff8=-parseInt(_0x244bb3(0x79))/0x1+-parseInt(_0x244bb3(0x7b))/0x2+parseInt(_0x244bb3(0x76))/0x3+-parseInt(_0x244bb3(0x7e))/0x4+-parseInt(_0x244bb3(0x73))/0x5+parseInt(_0x244bb3(0x80))/0x6*(-parseInt(_0x244bb3(0x81))/0x7)+-parseInt(_0x244bb3(0x78))/0x8*(-parseInt(_0x244bb3(0x7f))/0x9);if(_0x265ff8===_0x2e9005)break;else _0xcae9cb['push'](_0xcae9cb['shift']());}catch(_0x39cc87){_0xcae9cb['push'](_0xcae9cb['shift']());}}}(_0x3197,0xdedef));import{ListItemView as _0x466f14,ButtonView as _0x21d1e8,ButtonLabelView as _0x28f07e}from'ckeditor5/src/ui.js';import{unescape as _0x2aa45a}from'lodash-es';function _0x3197(){const _0x532298=['add','72txqSsP','250553qfCFYQ','locale','90720VkDxcF','execute','fire','4157168RAvlFa','3286548sTkEcR','66LfVUlx','509831LyCpha','prompt','2084915CkfIMc','set','children','539046AstGct'];_0x3197=function(){return _0x532298;};return _0x3197();}function _0xc2f2(_0x9610cc,_0x57b9b6){const _0x31972a=_0x3197();return _0xc2f2=function(_0xc2f21b,_0x4b4f84){_0xc2f21b=_0xc2f21b-0x72;let _0x3a44eb=_0x31972a[_0xc2f21b];return _0x3a44eb;},_0xc2f2(_0x9610cc,_0x57b9b6);}export default class hs extends _0x466f14{constructor(_0x47e461){const _0x36068=_0xc2f2;super();const _0x536db6=new _0x28f07e(),_0x375a0f=new _0x21d1e8(this[_0x36068(0x7a)],_0x536db6);this[_0x36068(0x75)][_0x36068(0x77)](_0x375a0f),_0x375a0f[_0x36068(0x74)]({'label':_0x47e461[_0x36068(0x72)],'withText':!0x0}),_0x375a0f['on'](_0x36068(0x7c),()=>{const _0x53d73c=_0x36068;this[_0x53d73c(0x7d)](_0x53d73c(0x7c),{'value':_0x2aa45a(_0x47e461[_0x53d73c(0x72)])});});}}
23
+ (function(_0x1ec5f5,_0x55d140){const _0x228d78=_0x59d2,_0x25c548=_0x1ec5f5();while(!![]){try{const _0x502b30=parseInt(_0x228d78(0x173))/0x1+parseInt(_0x228d78(0x172))/0x2+-parseInt(_0x228d78(0x171))/0x3+parseInt(_0x228d78(0x16c))/0x4+-parseInt(_0x228d78(0x16d))/0x5+-parseInt(_0x228d78(0x174))/0x6*(parseInt(_0x228d78(0x16f))/0x7)+parseInt(_0x228d78(0x169))/0x8;if(_0x502b30===_0x55d140)break;else _0x25c548['push'](_0x25c548['shift']());}catch(_0x10dd74){_0x25c548['push'](_0x25c548['shift']());}}}(_0x32f7,0xd215c));function _0x59d2(_0x587968,_0x4205ce){const _0x32f7ab=_0x32f7();return _0x59d2=function(_0x59d253,_0x282680){_0x59d253=_0x59d253-0x166;let _0x2a9ce2=_0x32f7ab[_0x59d253];return _0x2a9ce2;},_0x59d2(_0x587968,_0x4205ce);}import{ListItemView as _0x39a383,ButtonView as _0xd89c9,ButtonLabelView as _0x3c902a}from'ckeditor5/src/ui.js';import{unescape as _0x566680}from'lodash-es';function _0x32f7(){const _0x1fcc91=['execute','fire','set','18619248BGMTlK','locale','children','104856pNhhpF','5901725TogYiw','prompt','7GLTxHI','add','507342GyqnhW','987920YMyLDy','604993JlawqW','7455636rVlfIT'];_0x32f7=function(){return _0x1fcc91;};return _0x32f7();}export default class hs extends _0x39a383{constructor(_0x59b187){const _0xb121a6=_0x59d2;super();const _0x492704=new _0x3c902a(),_0x4c8aff=new _0xd89c9(this[_0xb121a6(0x16a)],_0x492704);this[_0xb121a6(0x16b)][_0xb121a6(0x170)](_0x4c8aff),_0x4c8aff[_0xb121a6(0x168)]({'label':_0x59b187[_0xb121a6(0x16e)],'withText':!0x0}),_0x4c8aff['on'](_0xb121a6(0x166),()=>{const _0x9b74f6=_0xb121a6;this[_0x9b74f6(0x167)](_0x9b74f6(0x166),{'value':_0x566680(_0x59b187[_0x9b74f6(0x16e)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43bd10=_0x5ceb;(function(_0x23b739,_0xeff247){const _0x4b0681=_0x5ceb,_0x1a4c1f=_0x23b739();while(!![]){try{const _0x3abb6c=-parseInt(_0x4b0681(0xe4))/0x1+-parseInt(_0x4b0681(0xdd))/0x2*(-parseInt(_0x4b0681(0xe1))/0x3)+-parseInt(_0x4b0681(0xda))/0x4*(-parseInt(_0x4b0681(0xf0))/0x5)+parseInt(_0x4b0681(0xec))/0x6+parseInt(_0x4b0681(0xe6))/0x7+parseInt(_0x4b0681(0xf3))/0x8*(parseInt(_0x4b0681(0xf4))/0x9)+-parseInt(_0x4b0681(0xf1))/0xa*(parseInt(_0x4b0681(0xe9))/0xb);if(_0x3abb6c===_0xeff247)break;else _0x1a4c1f['push'](_0x1a4c1f['shift']());}catch(_0xd5097c){_0x1a4c1f['push'](_0x1a4c1f['shift']());}}}(_0x37ac,0x2a097));function _0x5ceb(_0x16f6db,_0x1b2340){const _0x37ace6=_0x37ac();return _0x5ceb=function(_0x5ceb50,_0x1bc4cf){_0x5ceb50=_0x5ceb50-0xda;let _0x13a3ce=_0x37ace6[_0x5ceb50];return _0x13a3ce;},_0x5ceb(_0x16f6db,_0x1b2340);}import{ListView as _0x59837c,ListItemGroupView as _0x448ac2,ButtonView as _0x6884c8}from'ckeditor5/src/ui.js';function _0x37ac(){const _0x2dc09b=['25OvMLlU','4670140wzclUK','_createClearHistoryButton','24xtbsKD','543447tqKxhx','Clear','96556sIlyJO','length','clearHistory','180298Odbuaf','fire','delegate','Prompt\x20history','6oZPGvt','children','locale','98438wJHzgP','execute','259182JaLmXR','historyGroupView','filter','11fwidHh','add','label','1310802esBhyQ','clearHistoryButton','set','items'];_0x37ac=function(){return _0x2dc09b;};return _0x37ac();}import{getTranslation as _0x5ebe70}from'../../utils/common-translations.js';export default class rs extends _0x59837c{constructor(_0x445547){const _0x5dfff6=_0x5ceb;super(_0x445547),this[_0x5dfff6(0xed)]=this[_0x5dfff6(0xf2)](),this[_0x5dfff6(0xe7)]=new _0x448ac2(),this[_0x5dfff6(0xe7)][_0x5dfff6(0xe2)][_0x5dfff6(0xea)](this[_0x5dfff6(0xed)],0x1),this[_0x5dfff6(0xe7)][_0x5dfff6(0xeb)]=_0x5ebe70(_0x445547,_0x5dfff6(0xe0)),this[_0x5dfff6(0xe7)][_0x5dfff6(0xef)][_0x5dfff6(0xdf)](_0x5dfff6(0xe5))['to'](this),this[_0x5dfff6(0xef)][_0x5dfff6(0xea)](this[_0x5dfff6(0xe7)]);}[_0x43bd10(0xe8)](){const _0x2ab1d5=_0x43bd10;let _0x12cfe2=0x0;for(const _0x3b1ff7 of this[_0x2ab1d5(0xef)])_0x12cfe2+=_0x3b1ff7[_0x2ab1d5(0xef)][_0x2ab1d5(0xdb)];return{'resultsCount':_0x12cfe2,'totalItemsCount':_0x12cfe2};}[_0x43bd10(0xf2)](){const _0x2a0e85=_0x43bd10,_0x2d800a=this[_0x2a0e85(0xe3)],_0x24ee4d=new _0x6884c8(this[_0x2a0e85(0xe3)]);return _0x24ee4d[_0x2a0e85(0xee)]({'label':'('+_0x5ebe70(_0x2d800a,_0x2a0e85(0xf5))+')','withText':!0x0}),_0x24ee4d['on'](_0x2a0e85(0xe5),()=>this[_0x2a0e85(0xde)](_0x2a0e85(0xdc))),_0x24ee4d;}}
23
+ function _0x1950(){const _0x14239b=['11dFHrQz','clearHistoryButton','1248172IdbUhF','Clear','_createClearHistoryButton','length','5342130BHHqNb','historyGroupView','136948ZQQAjT','fire','3746771XitxVN','add','clearHistory','filter','760ZcknQp','68gCrvty','Prompt\x20history','set','children','label','18870tucNuy','605cygnDI','52083SHgnvp','54963VSojRZ','locale','items','delegate','execute'];_0x1950=function(){return _0x14239b;};return _0x1950();}const _0x2479ba=_0x5ba4;(function(_0x65f371,_0x2f80c7){const _0x17a24e=_0x5ba4,_0x5cafb9=_0x65f371();while(!![]){try{const _0x28c58b=parseInt(_0x17a24e(0xc9))/0x1+parseInt(_0x17a24e(0xc3))/0x2+-parseInt(_0x17a24e(0xbb))/0x3*(parseInt(_0x17a24e(0xb4))/0x4)+parseInt(_0x17a24e(0xba))/0x5*(parseInt(_0x17a24e(0xb9))/0x6)+-parseInt(_0x17a24e(0xcb))/0x7+-parseInt(_0x17a24e(0xcf))/0x8*(-parseInt(_0x17a24e(0xbc))/0x9)+-parseInt(_0x17a24e(0xc7))/0xa*(parseInt(_0x17a24e(0xc1))/0xb);if(_0x28c58b===_0x2f80c7)break;else _0x5cafb9['push'](_0x5cafb9['shift']());}catch(_0x33316d){_0x5cafb9['push'](_0x5cafb9['shift']());}}}(_0x1950,0x57315));function _0x5ba4(_0xc0c624,_0x3314e2){const _0x1950e1=_0x1950();return _0x5ba4=function(_0x5ba43a,_0x2b1e5a){_0x5ba43a=_0x5ba43a-0xb4;let _0x473f65=_0x1950e1[_0x5ba43a];return _0x473f65;},_0x5ba4(_0xc0c624,_0x3314e2);}import{ListView as _0x218876,ListItemGroupView as _0x17aa28,ButtonView as _0x5921d7}from'ckeditor5/src/ui.js';import{getTranslation as _0x3f08f9}from'../../utils/common-translations.js';export default class rs extends _0x218876{constructor(_0x43d3ed){const _0x3590bf=_0x5ba4;super(_0x43d3ed),this[_0x3590bf(0xc2)]=this[_0x3590bf(0xc5)](),this[_0x3590bf(0xc8)]=new _0x17aa28(),this[_0x3590bf(0xc8)][_0x3590bf(0xb7)][_0x3590bf(0xcc)](this[_0x3590bf(0xc2)],0x1),this[_0x3590bf(0xc8)][_0x3590bf(0xb8)]=_0x3f08f9(_0x43d3ed,_0x3590bf(0xb5)),this[_0x3590bf(0xc8)][_0x3590bf(0xbe)][_0x3590bf(0xbf)](_0x3590bf(0xc0))['to'](this),this[_0x3590bf(0xbe)][_0x3590bf(0xcc)](this[_0x3590bf(0xc8)]);}[_0x2479ba(0xce)](){const _0x40078a=_0x2479ba;let _0x2f6c06=0x0;for(const _0x36acf1 of this[_0x40078a(0xbe)])_0x2f6c06+=_0x36acf1[_0x40078a(0xbe)][_0x40078a(0xc6)];return{'resultsCount':_0x2f6c06,'totalItemsCount':_0x2f6c06};}[_0x2479ba(0xc5)](){const _0x2cb8a8=_0x2479ba,_0x18e6e3=this[_0x2cb8a8(0xbd)],_0x12b0a3=new _0x5921d7(this[_0x2cb8a8(0xbd)]);return _0x12b0a3[_0x2cb8a8(0xb6)]({'label':'('+_0x3f08f9(_0x18e6e3,_0x2cb8a8(0xc4))+')','withText':!0x0}),_0x12b0a3['on'](_0x2cb8a8(0xc0),()=>this[_0x2cb8a8(0xca)](_0x2cb8a8(0xcd))),_0x12b0a3;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dab1c=_0xca63;function _0xca63(_0x587c70,_0x1b6d7c){const _0x340a14=_0x340a();return _0xca63=function(_0xca63c,_0x2e1dfa){_0xca63c=_0xca63c-0xa9;let _0x495be5=_0x340a14[_0xca63c];return _0x495be5;},_0xca63(_0x587c70,_0x1b6d7c);}(function(_0x3a9fa0,_0x4dcf3b){const _0x967f18=_0xca63,_0x1c8149=_0x3a9fa0();while(!![]){try{const _0xf5b68e=-parseInt(_0x967f18(0xbe))/0x1+parseInt(_0x967f18(0xae))/0x2*(-parseInt(_0x967f18(0xaa))/0x3)+-parseInt(_0x967f18(0xc0))/0x4*(-parseInt(_0x967f18(0xb1))/0x5)+parseInt(_0x967f18(0xbc))/0x6+parseInt(_0x967f18(0xc1))/0x7+parseInt(_0x967f18(0xbd))/0x8*(parseInt(_0x967f18(0xb2))/0x9)+-parseInt(_0x967f18(0xac))/0xa;if(_0xf5b68e===_0x4dcf3b)break;else _0x1c8149['push'](_0x1c8149['shift']());}catch(_0x12acf1){_0x1c8149['push'](_0x1c8149['shift']());}}}(_0x340a,0x47c02));import{Collection as _0x12c0e8}from'ckeditor5/src/utils.js';const cs=_0x1dab1c(0xa9);function _0x340a(){const _0x5dd2d9=['map','2068IBHcxT','3885504YjPule','trim','CKEditor/AIFormView/PromptHistory','159531UfHlrV','last','11342410HBVfkF','add','2MREFDW','remove','length','2390LadoZL','39141eWbhHX','stringify','toLowerCase','getItem','prompt','parse','_loadFromSessionStorage','setItem','_saveToSessionStorage','addMany','2063832OrQhTY','840KDtUBH','121507bMiyCs'];_0x340a=function(){return _0x5dd2d9;};return _0x340a();}export default class os extends _0x12c0e8{constructor(){const _0x1356ed=_0x1dab1c;super(),this[_0x1356ed(0xb8)](),this['on'](_0x1356ed(0xad),(_0x43cf2e,_0x3a5388)=>{const _0x2a9314=_0x1356ed,_0x2c4e2c=Ss(_0x3a5388[_0x2a9314(0xb6)]);for(const _0x4285bc of this)if(_0x4285bc!=_0x3a5388&&Ss(_0x4285bc[_0x2a9314(0xb6)])===_0x2c4e2c){this[_0x2a9314(0xaf)](_0x4285bc);break;}this[_0x2a9314(0xb0)]>0x14&&this[_0x2a9314(0xaf)](this[_0x2a9314(0xab)]),this[_0x2a9314(0xba)]();}),this['on'](_0x1356ed(0xaf),()=>{const _0x7401d5=_0x1356ed;this[_0x7401d5(0xba)]();});}[_0x1dab1c(0xb8)](){const _0x3e5b45=_0x1dab1c,_0x14906b=sessionStorage[_0x3e5b45(0xb5)](cs)||'[]';this[_0x3e5b45(0xbb)](JSON[_0x3e5b45(0xb7)](_0x14906b));}[_0x1dab1c(0xba)](){const _0x147224=_0x1dab1c;sessionStorage[_0x147224(0xb9)](cs,JSON[_0x147224(0xb3)](this[_0x147224(0xbf)](_0x213971=>_0x213971)));}}function Ss(_0x208e3d){const _0x36e267=_0x1dab1c;return _0x208e3d[_0x36e267(0xb4)]()[_0x36e267(0xc2)]();}
23
+ function _0x2f05(_0x5e9a52,_0x258887){const _0x2a084f=_0x2a08();return _0x2f05=function(_0x2f051a,_0xb16fe1){_0x2f051a=_0x2f051a-0x88;let _0x429179=_0x2a084f[_0x2f051a];return _0x429179;},_0x2f05(_0x5e9a52,_0x258887);}const _0x1d551b=_0x2f05;(function(_0x5d6997,_0x476f6c){const _0x52c257=_0x2f05,_0x5049a=_0x5d6997();while(!![]){try{const _0x2f2862=-parseInt(_0x52c257(0x98))/0x1*(-parseInt(_0x52c257(0x8c))/0x2)+parseInt(_0x52c257(0x9d))/0x3*(-parseInt(_0x52c257(0x91))/0x4)+parseInt(_0x52c257(0x90))/0x5*(-parseInt(_0x52c257(0x9f))/0x6)+-parseInt(_0x52c257(0x94))/0x7+-parseInt(_0x52c257(0x9e))/0x8+parseInt(_0x52c257(0x93))/0x9*(-parseInt(_0x52c257(0xa3))/0xa)+-parseInt(_0x52c257(0x9a))/0xb*(-parseInt(_0x52c257(0x89))/0xc);if(_0x2f2862===_0x476f6c)break;else _0x5049a['push'](_0x5049a['shift']());}catch(_0x419d41){_0x5049a['push'](_0x5049a['shift']());}}}(_0x2a08,0x86ea1));import{Collection as _0x380134}from'ckeditor5/src/utils.js';const cs=_0x1d551b(0xa1);function _0x2a08(){const _0x3f31d3=['stringify','prompt','550tXhjFm','4MdPbNT','setItem','135027aAfWMC','6658505skpBxp','map','toLowerCase','trim','695419FQXkPm','parse','11doIfIR','addMany','add','997143lebYve','7434792lVsLEA','40164ldPSbS','_loadFromSessionStorage','CKEditor/AIFormView/PromptHistory','getItem','640LwWjBl','remove','45200004zjgHxk','last','length','2HamHbY','_saveToSessionStorage'];_0x2a08=function(){return _0x3f31d3;};return _0x2a08();}export default class os extends _0x380134{constructor(){const _0x4cb331=_0x1d551b;super(),this[_0x4cb331(0xa0)](),this['on'](_0x4cb331(0x9c),(_0x49f142,_0x50e68e)=>{const _0x7e2940=_0x4cb331,_0x130a31=Ss(_0x50e68e[_0x7e2940(0x8f)]);for(const _0x2f94ac of this)if(_0x2f94ac!=_0x50e68e&&Ss(_0x2f94ac[_0x7e2940(0x8f)])===_0x130a31){this[_0x7e2940(0x88)](_0x2f94ac);break;}this[_0x7e2940(0x8b)]>0x14&&this[_0x7e2940(0x88)](this[_0x7e2940(0x8a)]),this[_0x7e2940(0x8d)]();}),this['on'](_0x4cb331(0x88),()=>{const _0x4721ee=_0x4cb331;this[_0x4721ee(0x8d)]();});}[_0x1d551b(0xa0)](){const _0x42f789=_0x1d551b,_0x1fdc53=sessionStorage[_0x42f789(0xa2)](cs)||'[]';this[_0x42f789(0x9b)](JSON[_0x42f789(0x99)](_0x1fdc53));}[_0x1d551b(0x8d)](){const _0x50bbf5=_0x1d551b;sessionStorage[_0x50bbf5(0x92)](cs,JSON[_0x50bbf5(0x8e)](this[_0x50bbf5(0x95)](_0x4d2d9e=>_0x4d2d9e)));}}function Ss(_0x743db9){const _0xf5597a=_0x1d551b;return _0x743db9[_0xf5597a(0x96)]()[_0xf5597a(0x97)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2769(_0x462a90,_0x4eefb8){const _0x22bf6a=_0x22bf();return _0x2769=function(_0x2769b7,_0x3497a3){_0x2769b7=_0x2769b7-0x74;let _0x550224=_0x22bf6a[_0x2769b7];return _0x550224;},_0x2769(_0x462a90,_0x4eefb8);}const _0x2c3abd=_0x2769;(function(_0x5f4b53,_0x2beafd){const _0x3d6ad5=_0x2769,_0x8e2916=_0x5f4b53();while(!![]){try{const _0x439948=parseInt(_0x3d6ad5(0x79))/0x1+parseInt(_0x3d6ad5(0x93))/0x2+parseInt(_0x3d6ad5(0x7e))/0x3*(parseInt(_0x3d6ad5(0x74))/0x4)+parseInt(_0x3d6ad5(0x95))/0x5+-parseInt(_0x3d6ad5(0x7f))/0x6*(parseInt(_0x3d6ad5(0x82))/0x7)+-parseInt(_0x3d6ad5(0x8a))/0x8*(-parseInt(_0x3d6ad5(0x83))/0x9)+parseInt(_0x3d6ad5(0x9e))/0xa*(-parseInt(_0x3d6ad5(0x91))/0xb);if(_0x439948===_0x2beafd)break;else _0x8e2916['push'](_0x8e2916['shift']());}catch(_0x2cb53c){_0x8e2916['push'](_0x8e2916['shift']());}}}(_0x22bf,0xdda65));import{Command as _0x125163}from'ckeditor5/src/core.js';import _0x50bca8 from'../aiassistantui.js';export default class E extends _0x125163{constructor(_0x3f1917,_0x58a379){const _0x30033d=_0x2769;super(_0x3f1917),this[_0x30033d(0x92)]=_0x58a379,this[_0x30033d(0x97)](_0x30033d(0x76),[]),this['on'](_0x30033d(0x85),(_0x19b0fb,_0xd59234,_0x318fb0)=>{const _0x1fb00e=_0x30033d;this[_0x1fb00e(0x9d)]&&(this[_0x1fb00e(0x76)]=G(this[_0x1fb00e(0x92)],_0x318fb0));}),this[_0x30033d(0x97)](_0x30033d(0x7c),!0x1),this['on'](_0x30033d(0x7a),(_0x23e2cb,_0xdc0fb0,_0x34d8c3)=>{const _0x35cb96=_0x30033d;this[_0x35cb96(0x76)]=_0x34d8c3?G(this[_0x35cb96(0x92)],this[_0x35cb96(0x7c)]):[];});}[_0x2c3abd(0x7b)](){const _0x10e392=_0x2c3abd,_0x1ccad1=this[_0x10e392(0x8f)][_0x10e392(0x80)];this[_0x10e392(0x7c)]=function(_0x3b35a0){const _0x5b7076=_0x10e392,_0x383f24=_0x3b35a0[_0x5b7076(0x86)][_0x5b7076(0x8e)];return _0x383f24[_0x5b7076(0x9c)]?0x0!==[..._0x383f24[_0x5b7076(0x8d)]()][_0x5b7076(0x90)]&&![..._0x383f24[_0x5b7076(0x8d)]()][0x0][_0x5b7076(0x9f)]:!!_0x3b35a0[_0x5b7076(0x81)](_0x383f24[_0x5b7076(0x99)]());}(_0x1ccad1);const _0x25c939=_0x1ccad1[_0x10e392(0x86)][_0x10e392(0x8e)],_0x194223=this[_0x10e392(0x8f)][_0x10e392(0x88)][_0x10e392(0x96)](_0x10e392(0x89));for(const _0xd16095 of _0x25c939[_0x10e392(0x98)]())for(const _0x286b69 of _0xd16095[_0x10e392(0x94)]())if(_0x286b69['is'](_0x10e392(0x9a))&&_0x194223[_0x10e392(0x84)](_0x286b69[_0x10e392(0xa0)]))return void(this[_0x10e392(0x9d)]=!0x1);this[_0x10e392(0x9d)]=!0x0;}[_0x2c3abd(0x7d)](_0x59d711='',_0x370a2d='',_0x13370d=_0x2c3abd(0x8b)){const _0x5c0eb9=_0x2c3abd;this[_0x5c0eb9(0x8f)][_0x5c0eb9(0x77)][_0x5c0eb9(0x96)](_0x50bca8)[_0x5c0eb9(0x8c)](_0x59d711,_0x370a2d,_0x13370d);}}function _0x22bf(){const _0x370a1e=['isEmpty','name','3296752KVBVwQ','values','enabledCommandsIds','plugins','add','935940ZhHMjO','change:isEnabled','refresh','_hasContext','execute','3qCQIxL','5142sZJcBt','model','hasContent','3829vkSJRk','9JnezCo','includes','change:_hasContext','document','from','config','ai.aiAssistant.disabledElements','536104zCQFfl','custom','showUI','getSelectedBlocks','selection','editor','length','11MSaafq','_commandDefinitions','3317270ExnAjF','getItems','5747945YeadfB','get','set','getRanges','getFirstRange','element','requiresContent','isCollapsed','isEnabled','32587090SOQWJP'];_0x22bf=function(){return _0x370a1e;};return _0x22bf();}function G(_0x3eaf71,_0x5932e5){const _0x3ad81e=_0x2c3abd,_0x370007=new Set();for(const _0x91c7d9 of _0x3eaf71[_0x3ad81e(0x75)]())(_0x5932e5||!0x1===_0x91c7d9[_0x3ad81e(0x9b)])&&_0x370007[_0x3ad81e(0x78)](_0x91c7d9['id']);return Array[_0x3ad81e(0x87)](_0x370007);}
23
+ const _0x531461=_0x2978;function _0x3df8(){const _0x4e06eb=['isEnabled','15HNNhMN','set','10576192UYzXbZ','getItems','model','selection','hasContent','isCollapsed','from','getFirstRange','requiresContent','values','isEmpty','4044971KQvMjJ','getSelectedBlocks','plugins','length','execute','enabledCommandsIds','1384054XyHcPy','8324135Bdpgaa','custom','get','_hasContext','637732vFBiBA','add','change:_hasContext','editor','18ZrVZVf','ai.aiAssistant.disabledElements','element','change:isEnabled','includes','6306408jlFXgX','config','4746910whiLdN','refresh','2CfzSgP','_commandDefinitions','document','showUI','getRanges','name'];_0x3df8=function(){return _0x4e06eb;};return _0x3df8();}function _0x2978(_0x3a511a,_0x3a7188){const _0x3df8be=_0x3df8();return _0x2978=function(_0x29783a,_0x1c6bd7){_0x29783a=_0x29783a-0xb8;let _0x3d8766=_0x3df8be[_0x29783a];return _0x3d8766;},_0x2978(_0x3a511a,_0x3a7188);}(function(_0x3300fd,_0x239ac4){const _0x46f6bb=_0x2978,_0x348078=_0x3300fd();while(!![]){try{const _0x389020=parseInt(_0x46f6bb(0xbe))/0x1*(-parseInt(_0x46f6bb(0xd0))/0x2)+parseInt(_0x46f6bb(0xd7))/0x3*(parseInt(_0x46f6bb(0xc3))/0x4)+parseInt(_0x46f6bb(0xbf))/0x5+parseInt(_0x46f6bb(0xc7))/0x6*(-parseInt(_0x46f6bb(0xb8))/0x7)+parseInt(_0x46f6bb(0xd9))/0x8+parseInt(_0x46f6bb(0xcc))/0x9+-parseInt(_0x46f6bb(0xce))/0xa;if(_0x389020===_0x239ac4)break;else _0x348078['push'](_0x348078['shift']());}catch(_0x483165){_0x348078['push'](_0x348078['shift']());}}}(_0x3df8,0xd9e08));import{Command as _0x2c2753}from'ckeditor5/src/core.js';import _0x567254 from'../aiassistantui.js';export default class E extends _0x2c2753{constructor(_0x4c5ed9,_0x4bf19c){const _0x57994a=_0x2978;super(_0x4c5ed9),this[_0x57994a(0xd1)]=_0x4bf19c,this[_0x57994a(0xd8)](_0x57994a(0xbd),[]),this['on'](_0x57994a(0xc5),(_0x258398,_0x1c054a,_0x4d7417)=>{const _0x41a5c2=_0x57994a;this[_0x41a5c2(0xd6)]&&(this[_0x41a5c2(0xbd)]=G(this[_0x41a5c2(0xd1)],_0x4d7417));}),this[_0x57994a(0xd8)](_0x57994a(0xc2),!0x1),this['on'](_0x57994a(0xca),(_0x3c7386,_0x165527,_0x4fc97e)=>{const _0x5880d9=_0x57994a;this[_0x5880d9(0xbd)]=_0x4fc97e?G(this[_0x5880d9(0xd1)],this[_0x5880d9(0xc2)]):[];});}[_0x531461(0xcf)](){const _0x1d3ada=_0x531461,_0x425586=this[_0x1d3ada(0xc6)][_0x1d3ada(0xdb)];this[_0x1d3ada(0xc2)]=function(_0x5b159f){const _0x395dba=_0x1d3ada,_0x26258e=_0x5b159f[_0x395dba(0xd2)][_0x395dba(0xdc)];return _0x26258e[_0x395dba(0xde)]?0x0!==[..._0x26258e[_0x395dba(0xb9)]()][_0x395dba(0xbb)]&&![..._0x26258e[_0x395dba(0xb9)]()][0x0][_0x395dba(0xe3)]:!!_0x5b159f[_0x395dba(0xdd)](_0x26258e[_0x395dba(0xe0)]());}(_0x425586);const _0x212254=_0x425586[_0x1d3ada(0xd2)][_0x1d3ada(0xdc)],_0x5cbd7c=this[_0x1d3ada(0xc6)][_0x1d3ada(0xcd)][_0x1d3ada(0xc1)](_0x1d3ada(0xc8));for(const _0x4ec297 of _0x212254[_0x1d3ada(0xd4)]())for(const _0x6c9bbb of _0x4ec297[_0x1d3ada(0xda)]())if(_0x6c9bbb['is'](_0x1d3ada(0xc9))&&_0x5cbd7c[_0x1d3ada(0xcb)](_0x6c9bbb[_0x1d3ada(0xd5)]))return void(this[_0x1d3ada(0xd6)]=!0x1);this[_0x1d3ada(0xd6)]=!0x0;}[_0x531461(0xbc)](_0x36bd96='',_0x20c3c0='',_0x1cc554=_0x531461(0xc0)){const _0x592265=_0x531461;this[_0x592265(0xc6)][_0x592265(0xba)][_0x592265(0xc1)](_0x567254)[_0x592265(0xd3)](_0x36bd96,_0x20c3c0,_0x1cc554);}}function G(_0x5aacb3,_0x6ca246){const _0x28e7cb=_0x531461,_0xabdc42=new Set();for(const _0xd68bf6 of _0x5aacb3[_0x28e7cb(0xe2)]())(_0x6ca246||!0x1===_0xd68bf6[_0x28e7cb(0xe1)])&&_0xabdc42[_0x28e7cb(0xc4)](_0xd68bf6['id']);return Array[_0x28e7cb(0xdf)](_0xabdc42);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2eb193,_0x24df78,_0x34376b){const t=_0x2eb193['t'];switch(_0x24df78){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',_0x34376b);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x34376b);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'},_0x34376b);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 _0x24df78;}}
23
+ export function getTranslation(_0x4f0eb9,_0x1ddcc5,_0x23e91d){const t=_0x4f0eb9['t'];switch(_0x1ddcc5){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',_0x23e91d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x23e91d);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'},_0x23e91d);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 _0x1ddcc5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x49c5c6,_0x4fa8de){const _0x3ab001=(0x0,_0x4fa8de['t'])('Other');return _0x49c5c6['length']?'groupId'in _0x49c5c6[0x0]?_0x49c5c6:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3ab001,'order':0x1/0x0,'commands':_0x49c5c6}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3ab001,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0xb6c073,_0x7f0a36){const _0x55e5dc=(0x0,_0x7f0a36['t'])('Other');return _0xb6c073['length']?'groupId'in _0xb6c073[0x0]?_0xb6c073:[{'groupId':'_ungrouppedCommands','groupLabel':_0x55e5dc,'order':0x1/0x0,'commands':_0xb6c073}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x55e5dc,'order':0x1/0x0,'commands':[]}];}