@ckeditor/ckeditor5-ai 0.0.0-nightly-20240423.0 → 0.0.0-nightly-20240424.0

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 (158) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index-content.css +4 -0
  3. package/dist/index-editor.css +267 -0
  4. package/dist/index.css +396 -0
  5. package/dist/index.js +23 -0
  6. package/dist/translations/af.d.ts +8 -0
  7. package/dist/translations/af.js +23 -0
  8. package/dist/translations/ar.d.ts +8 -0
  9. package/dist/translations/ar.js +23 -0
  10. package/dist/translations/bg.d.ts +8 -0
  11. package/dist/translations/bg.js +23 -0
  12. package/dist/translations/bn.d.ts +8 -0
  13. package/dist/translations/bn.js +23 -0
  14. package/dist/translations/bs.d.ts +8 -0
  15. package/dist/translations/bs.js +23 -0
  16. package/dist/translations/ca.d.ts +8 -0
  17. package/dist/translations/ca.js +23 -0
  18. package/dist/translations/cs.d.ts +8 -0
  19. package/dist/translations/cs.js +23 -0
  20. package/dist/translations/da.d.ts +8 -0
  21. package/dist/translations/da.js +23 -0
  22. package/dist/translations/de-ch.d.ts +8 -0
  23. package/dist/translations/de-ch.js +23 -0
  24. package/dist/translations/de.d.ts +8 -0
  25. package/dist/translations/de.js +23 -0
  26. package/dist/translations/el.d.ts +8 -0
  27. package/dist/translations/el.js +23 -0
  28. package/dist/translations/en-au.d.ts +8 -0
  29. package/dist/translations/en-au.js +23 -0
  30. package/dist/translations/en.d.ts +8 -0
  31. package/dist/translations/en.js +23 -0
  32. package/dist/translations/es-co.d.ts +8 -0
  33. package/dist/translations/es-co.js +23 -0
  34. package/dist/translations/es.d.ts +8 -0
  35. package/dist/translations/es.js +23 -0
  36. package/dist/translations/et.d.ts +8 -0
  37. package/dist/translations/et.js +23 -0
  38. package/dist/translations/fa.d.ts +8 -0
  39. package/dist/translations/fa.js +23 -0
  40. package/dist/translations/fi.d.ts +8 -0
  41. package/dist/translations/fi.js +23 -0
  42. package/dist/translations/fr.d.ts +8 -0
  43. package/dist/translations/fr.js +23 -0
  44. package/dist/translations/gl.d.ts +8 -0
  45. package/dist/translations/gl.js +23 -0
  46. package/dist/translations/he.d.ts +8 -0
  47. package/dist/translations/he.js +23 -0
  48. package/dist/translations/hi.d.ts +8 -0
  49. package/dist/translations/hi.js +23 -0
  50. package/dist/translations/hr.d.ts +8 -0
  51. package/dist/translations/hr.js +23 -0
  52. package/dist/translations/hu.d.ts +8 -0
  53. package/dist/translations/hu.js +23 -0
  54. package/dist/translations/id.d.ts +8 -0
  55. package/dist/translations/id.js +23 -0
  56. package/dist/translations/it.d.ts +8 -0
  57. package/dist/translations/it.js +23 -0
  58. package/dist/translations/ja.d.ts +8 -0
  59. package/dist/translations/ja.js +23 -0
  60. package/dist/translations/jv.d.ts +8 -0
  61. package/dist/translations/jv.js +23 -0
  62. package/dist/translations/ko.d.ts +8 -0
  63. package/dist/translations/ko.js +23 -0
  64. package/dist/translations/lt.d.ts +8 -0
  65. package/dist/translations/lt.js +23 -0
  66. package/dist/translations/lv.d.ts +8 -0
  67. package/dist/translations/lv.js +23 -0
  68. package/dist/translations/ms.d.ts +8 -0
  69. package/dist/translations/ms.js +23 -0
  70. package/dist/translations/nl.d.ts +8 -0
  71. package/dist/translations/nl.js +23 -0
  72. package/dist/translations/no.d.ts +8 -0
  73. package/dist/translations/no.js +23 -0
  74. package/dist/translations/pl.d.ts +8 -0
  75. package/dist/translations/pl.js +23 -0
  76. package/dist/translations/pt-br.d.ts +8 -0
  77. package/dist/translations/pt-br.js +23 -0
  78. package/dist/translations/pt.d.ts +8 -0
  79. package/dist/translations/pt.js +23 -0
  80. package/dist/translations/ro.d.ts +8 -0
  81. package/dist/translations/ro.js +23 -0
  82. package/dist/translations/ru.d.ts +8 -0
  83. package/dist/translations/ru.js +23 -0
  84. package/dist/translations/sk.d.ts +8 -0
  85. package/dist/translations/sk.js +23 -0
  86. package/dist/translations/sr-latn.d.ts +8 -0
  87. package/dist/translations/sr-latn.js +23 -0
  88. package/dist/translations/sr.d.ts +8 -0
  89. package/dist/translations/sr.js +23 -0
  90. package/dist/translations/sv.d.ts +8 -0
  91. package/dist/translations/sv.js +23 -0
  92. package/dist/translations/th.d.ts +8 -0
  93. package/dist/translations/th.js +23 -0
  94. package/dist/translations/tk.d.ts +8 -0
  95. package/dist/translations/tk.js +23 -0
  96. package/dist/translations/tr.d.ts +8 -0
  97. package/dist/translations/tr.js +23 -0
  98. package/dist/translations/ug.d.ts +8 -0
  99. package/dist/translations/ug.js +23 -0
  100. package/dist/translations/uk.d.ts +8 -0
  101. package/dist/translations/uk.js +23 -0
  102. package/dist/translations/ur.d.ts +8 -0
  103. package/dist/translations/ur.js +23 -0
  104. package/dist/translations/uz.d.ts +8 -0
  105. package/dist/translations/uz.js +23 -0
  106. package/dist/translations/vi.d.ts +8 -0
  107. package/dist/translations/vi.js +23 -0
  108. package/dist/translations/zh-cn.d.ts +8 -0
  109. package/dist/translations/zh-cn.js +23 -0
  110. package/dist/translations/zh.d.ts +8 -0
  111. package/dist/translations/zh.js +23 -0
  112. package/dist/types/adapters/aiadapter.d.ts +52 -0
  113. package/dist/types/adapters/aitextadapter.d.ts +150 -0
  114. package/dist/types/adapters/awstextadapter.d.ts +183 -0
  115. package/dist/types/adapters/openaitextadapter.d.ts +187 -0
  116. package/dist/types/aiassistant.d.ts +390 -0
  117. package/dist/types/aiassistantediting.d.ts +50 -0
  118. package/dist/types/aiassistantui.d.ts +57 -0
  119. package/dist/types/aiconfig.d.ts +73 -0
  120. package/dist/types/augmentation.d.ts +31 -0
  121. package/dist/types/index.d.ts +17 -0
  122. package/dist/types/ui/aiassistantcontroller.d.ts +113 -0
  123. package/dist/types/ui/dropdown/aicommandslistview.d.ts +37 -0
  124. package/dist/types/ui/dropdown/buttonlabelwithhighlightview.d.ts +33 -0
  125. package/dist/types/ui/dropdown/labelwithhighlightview.d.ts +29 -0
  126. package/dist/types/ui/form/aiformcontentarea.d.ts +52 -0
  127. package/dist/types/ui/form/aiformerrorview.d.ts +30 -0
  128. package/dist/types/ui/form/aiformpromptview.d.ts +50 -0
  129. package/dist/types/ui/form/aiformtoolbarview.d.ts +62 -0
  130. package/dist/types/ui/form/aiformview.d.ts +145 -0
  131. package/dist/types/ui/form/aihistorylistitemview.d.ts +22 -0
  132. package/dist/types/ui/form/aihistorylistview.d.ts +39 -0
  133. package/dist/types/ui/form/prompthistory.d.ts +24 -0
  134. package/dist/types/ui/showaiassistantcommand.d.ts +44 -0
  135. package/dist/types/utils/common-translations.d.ts +13 -0
  136. package/package.json +5 -4
  137. package/src/adapters/aiadapter.js +1 -1
  138. package/src/adapters/aitextadapter.js +1 -1
  139. package/src/adapters/awstextadapter.js +1 -1
  140. package/src/adapters/openaitextadapter.js +1 -1
  141. package/src/aiassistant.js +1 -1
  142. package/src/aiassistantediting.js +1 -1
  143. package/src/aiassistantui.js +1 -1
  144. package/src/index.js +1 -1
  145. package/src/ui/aiassistantcontroller.js +1 -1
  146. package/src/ui/dropdown/aicommandslistview.js +1 -1
  147. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  148. package/src/ui/dropdown/labelwithhighlightview.js +1 -1
  149. package/src/ui/form/aiformcontentarea.js +1 -1
  150. package/src/ui/form/aiformerrorview.js +1 -1
  151. package/src/ui/form/aiformpromptview.js +1 -1
  152. package/src/ui/form/aiformtoolbarview.js +1 -1
  153. package/src/ui/form/aiformview.js +1 -1
  154. package/src/ui/form/aihistorylistitemview.js +1 -1
  155. package/src/ui/form/aihistorylistview.js +1 -1
  156. package/src/ui/form/prompthistory.js +1 -1
  157. package/src/ui/showaiassistantcommand.js +1 -1
  158. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x149a(){const _0x5640a9=['locale','smooth','5QRdxKB','addRange','_createLoader','isVisible','listenTo','ck-ai-form__content-area-wrapper','bindTemplate','getSelection','ck-ai-form__content-area','clipboard','appendLoader','check','ck-ai-form__loader','setContent','focus','createRange','ck-ai-form__content-field','textContent','setEndBefore','icon','execute','write','ck-reset_all-excluded','copy','createElement','removeAllRanges','2517208HSYmgU','mousedown','12673940pogDad','text/html','ClipboardItem','688424DTQJzF','scrollTo','scrollHeight','ck-hidden','left','bind','lastElementChild','<span>]</span>','1253pRjfhW','18DwnkVU','body','class','254090qctmnb','1455894HgMWYl','value','ck-ai-form__content-area--processing','18072FdsEBH','\x20ck-ai-form__copy-button--copied','ck-content','position','_createCopyButton','innerHTML','text/plain','contentFieldView','Copy','wheel','331196oMfByO','<span>[</span>','AI\x20is\x20writing...','isProcessing','-9999px','isEnabled','ck-ai-form__copy-button','setStartAfter','setTemplate','ck-ai-form__copy-button-wrapper','element','execCommand','appendChild','querySelector','div','change:value','remove','set','copyButtonView','absolute','_copyHTMLToClipboard','style','render','.ck-ai-form__loader','firstElementChild','loaderView','change:isProcessing'];_0x149a=function(){return _0x5640a9;};return _0x149a();}const _0x599b35=_0x52ad;(function(_0x1ec480,_0x37fe9c){const _0x369152=_0x52ad,_0x232cfe=_0x1ec480();while(!![]){try{const _0x25edba=-parseInt(_0x369152(0x214))/0x1+-parseInt(_0x369152(0x220))/0x2+-parseInt(_0x369152(0x221))/0x3+-parseInt(_0x369152(0x22e))/0x4*(-parseInt(_0x369152(0x1f5))/0x5)+-parseInt(_0x369152(0x224))/0x6*(parseInt(_0x369152(0x21c))/0x7)+-parseInt(_0x369152(0x20f))/0x8+parseInt(_0x369152(0x21d))/0x9*(parseInt(_0x369152(0x211))/0xa);if(_0x25edba===_0x37fe9c)break;else _0x232cfe['push'](_0x232cfe['shift']());}catch(_0x456c3c){_0x232cfe['push'](_0x232cfe['shift']());}}}(_0x149a,0x710ad));import{global as _0x5c6baa}from'ckeditor5/src/utils.js';import{View as _0x1fae0f,ButtonView as _0x49f691,SpinnerView as _0x243624}from'ckeditor5/src/ui.js';import _0x22f164 from'../../../theme/icons/copy.svg';import{getTranslation as _0x49cb85}from'../../utils/common-translations.js';import{icons as _0x153db2}from'ckeditor5/src/core.js';function _0x52ad(_0x25cac6,_0x4b0ad3){const _0x149a77=_0x149a();return _0x52ad=function(_0x52ad43,_0x4377fe){_0x52ad43=_0x52ad43-0x1de;let _0x2ead9e=_0x149a77[_0x52ad43];return _0x2ead9e;},_0x52ad(_0x25cac6,_0x4b0ad3);}export default class nt extends _0x1fae0f{constructor(_0x4c4646,_0x1e0218=''){const _0x25b663=_0x52ad;super(_0x4c4646),this[_0x25b663(0x1e9)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x599be5=this[_0x25b663(0x1fb)];this[_0x25b663(0x22b)]=new ContentFieldView(_0x4c4646,_0x1e0218),this[_0x25b663(0x1ea)]=this[_0x25b663(0x228)](),this[_0x25b663(0x1e0)]({'tag':_0x25b663(0x1e6),'attributes':{'class':['ck',_0x25b663(0x1fa),_0x599be5['if'](_0x25b663(0x1f8),_0x25b663(0x217),_0x5013d5=>!_0x5013d5)],'tabindex':'-1'},'children':[{'tag':_0x25b663(0x1e6),'attributes':{'class':['ck',_0x25b663(0x1fd),_0x599be5['if'](_0x25b663(0x231),_0x25b663(0x223))]},'children':[this[_0x25b663(0x22b)],{'tag':_0x25b663(0x1e6),'attributes':{'class':['ck',_0x25b663(0x1e1)]},'children':[this[_0x25b663(0x1ea)]]}]}]});}[_0x599b35(0x1ee)](){const _0x32ebcf=_0x599b35;super[_0x32ebcf(0x1ee)](),this[_0x32ebcf(0x222)]&&this[_0x32ebcf(0x22b)][_0x32ebcf(0x202)](this[_0x32ebcf(0x222)]);let _0x4db10d=!0x1;this['on'](_0x32ebcf(0x1e7),(_0x25baab,_0x1da78a,_0x450817)=>{const _0x5cc5c0=_0x32ebcf,_0x2b6c95=!this[_0x5cc5c0(0x22b)][_0x5cc5c0(0x1e2)][_0x5cc5c0(0x1e5)](_0x5cc5c0(0x1ef));this[_0x5cc5c0(0x22b)][_0x5cc5c0(0x202)](_0x450817),this[_0x5cc5c0(0x231)]&&_0x2b6c95&&!_0x4db10d&&this[_0x5cc5c0(0x1e2)][_0x5cc5c0(0x215)]({'top':this[_0x5cc5c0(0x1e2)][_0x5cc5c0(0x216)],'behavior':_0x5cc5c0(0x1f4)});}),this['on'](_0x32ebcf(0x1f2),(_0xd42bd6,_0x36d4f6,_0x46b4e4)=>{const _0x43ff77=_0x32ebcf;_0x4db10d=!0x1,_0x46b4e4?(this[_0x43ff77(0x222)]=null,this[_0x43ff77(0x22b)][_0x43ff77(0x1ff)]()):this[_0x43ff77(0x222)]||this[_0x43ff77(0x22b)][_0x43ff77(0x202)]('');}),this[_0x32ebcf(0x1f9)](this[_0x32ebcf(0x1e2)],_0x32ebcf(0x22d),()=>{_0x4db10d=!0x0;}),this[_0x32ebcf(0x1f9)](this[_0x32ebcf(0x1e2)],_0x32ebcf(0x210),()=>{_0x4db10d=!0x0;});}[_0x599b35(0x203)](){const _0x111982=_0x599b35;this[_0x111982(0x1e2)][_0x111982(0x203)]();}[_0x599b35(0x228)](){const _0x50881c=_0x599b35,_0x284d4d=this[_0x50881c(0x1f3)],_0x36318c=new _0x49f691(this[_0x50881c(0x1f3)]),_0x2ad217=_0x50881c(0x1de);return _0x36318c[_0x50881c(0x1e9)]({'label':_0x49cb85(_0x284d4d,_0x50881c(0x22c)),'icon':_0x22f164,'class':_0x2ad217,'tooltip':!0x0}),_0x36318c[_0x50881c(0x219)](_0x50881c(0x1f8))['to'](this,_0x50881c(0x222),_0x588e79=>!!_0x588e79),_0x36318c[_0x50881c(0x219)](_0x50881c(0x233))['to'](this,_0x50881c(0x231),_0x82db07=>!_0x82db07),_0x36318c['on'](_0x50881c(0x209),()=>{const _0x2a377e=_0x50881c;this[_0x2a377e(0x1ec)](this[_0x2a377e(0x22b)][_0x2a377e(0x1e2)]),_0x36318c[_0x2a377e(0x208)]=_0x153db2[_0x2a377e(0x200)],_0x36318c[_0x2a377e(0x21f)]=_0x2ad217+_0x2a377e(0x225),this[_0x2a377e(0x203)](),setTimeout(()=>{const _0x50cac8=_0x2a377e;_0x36318c[_0x50cac8(0x208)]=_0x22f164,_0x36318c[_0x50cac8(0x21f)]=_0x2ad217;},0x3e8);}),_0x36318c;}[_0x599b35(0x1ec)](_0x385223){const _0x1c6e8b=_0x599b35,{window:_0x5d07df,document:_0x2520c7}=_0x5c6baa;if(_0x5d07df[_0x1c6e8b(0x213)]){const {Blob:_0x2fd500,ClipboardItem:_0x120cb4}=_0x5d07df,_0x522018=[new _0x120cb4({'text/html':new _0x2fd500([_0x385223[_0x1c6e8b(0x229)]],{'type':_0x1c6e8b(0x212)}),'text/plain':new _0x2fd500([_0x385223[_0x1c6e8b(0x206)]||''],{'type':_0x1c6e8b(0x22a)})})];navigator[_0x1c6e8b(0x1fe)][_0x1c6e8b(0x20a)](_0x522018);}else{const _0xd4ea77=_0x2520c7[_0x1c6e8b(0x20d)](_0x1c6e8b(0x1e6));_0xd4ea77[_0x1c6e8b(0x1ed)][_0x1c6e8b(0x227)]=_0x1c6e8b(0x1eb),_0xd4ea77[_0x1c6e8b(0x1ed)][_0x1c6e8b(0x218)]=_0x1c6e8b(0x232),_0xd4ea77[_0x1c6e8b(0x229)]=_0x1c6e8b(0x22f)+_0x385223[_0x1c6e8b(0x229)]+_0x1c6e8b(0x21b),_0x2520c7[_0x1c6e8b(0x21e)][_0x1c6e8b(0x1e4)](_0xd4ea77);const _0x59dfe6=_0x2520c7[_0x1c6e8b(0x204)]();_0x59dfe6[_0x1c6e8b(0x1df)](_0xd4ea77[_0x1c6e8b(0x1f0)]),_0x59dfe6[_0x1c6e8b(0x207)](_0xd4ea77[_0x1c6e8b(0x21a)]);const _0x3a4089=_0x5d07df[_0x1c6e8b(0x1fc)]();_0x3a4089[_0x1c6e8b(0x20e)](),_0x3a4089[_0x1c6e8b(0x1f6)](_0x59dfe6),_0x2520c7[_0x1c6e8b(0x1e3)](_0x1c6e8b(0x20c)),_0xd4ea77[_0x1c6e8b(0x1e8)]();}}}export class ContentFieldView extends _0x1fae0f{constructor(_0x52ee2d,_0x9796b9=''){const _0x4983a0=_0x599b35;super(_0x52ee2d),this[_0x4983a0(0x1f1)]=this[_0x4983a0(0x1f7)](),this[_0x4983a0(0x1e0)]({'tag':_0x4983a0(0x1e6),'attributes':{'class':['ck',_0x4983a0(0x226),_0x9796b9,_0x4983a0(0x20b),_0x4983a0(0x205)]}});}[_0x599b35(0x202)](_0x39bef1){const _0x495107=_0x599b35;this[_0x495107(0x1e2)][_0x495107(0x229)]=_0x39bef1;}[_0x599b35(0x1ff)](){const _0x38d997=_0x599b35;this[_0x38d997(0x1e2)][_0x38d997(0x1e4)](this[_0x38d997(0x1f1)][_0x38d997(0x1e2)]);}[_0x599b35(0x1f7)](){const _0x447412=_0x599b35,_0x1fc9bf=new _0x1fae0f(),_0x9ea283=this[_0x447412(0x1f3)],_0x1f8ab0=new _0x243624();return _0x1f8ab0[_0x447412(0x1f8)]=!0x0,_0x1fc9bf[_0x447412(0x1e0)]({'tag':_0x447412(0x1e6),'attributes':{'class':['ck',_0x447412(0x201)]},'children':[_0x1f8ab0,{'text':_0x49cb85(_0x9ea283,_0x447412(0x230))}]}),_0x1fc9bf[_0x447412(0x1ee)](),_0x1fc9bf;}}
23
+ const _0x253d5a=_0x7996;(function(_0x67710c,_0x51a205){const _0x509460=_0x7996,_0x15c3ac=_0x67710c();while(!![]){try{const _0x425cf9=parseInt(_0x509460(0x1fd))/0x1*(-parseInt(_0x509460(0x210))/0x2)+-parseInt(_0x509460(0x1c7))/0x3+parseInt(_0x509460(0x1cd))/0x4+-parseInt(_0x509460(0x1e8))/0x5+-parseInt(_0x509460(0x1e9))/0x6+parseInt(_0x509460(0x1d3))/0x7*(parseInt(_0x509460(0x1e2))/0x8)+parseInt(_0x509460(0x206))/0x9;if(_0x425cf9===_0x51a205)break;else _0x15c3ac['push'](_0x15c3ac['shift']());}catch(_0x136196){_0x15c3ac['push'](_0x15c3ac['shift']());}}}(_0x2be2,0x7999f));import{global as _0x6bed45}from'ckeditor5/src/utils.js';function _0x7996(_0x5e56f4,_0x1ffb79){const _0x2be297=_0x2be2();return _0x7996=function(_0x7996e2,_0x346424){_0x7996e2=_0x7996e2-0x1c1;let _0xe80324=_0x2be297[_0x7996e2];return _0xe80324;},_0x7996(_0x5e56f4,_0x1ffb79);}import{View as _0x5a73ba,ButtonView as _0x283c93,SpinnerView as _0x731bfd}from'ckeditor5/src/ui.js';function _0x2be2(){const _0x36c6e8=['value','body','absolute','change:value','change:isProcessing','element','text/html','createRange','removeAllRanges','.ck-ai-form__loader','16712WjsyyM','lastElementChild','ck-ai-form__copy-button-wrapper','appendLoader','ck-ai-form__content-field','clipboard','4269365RisUKa','1670676HPrPfz','ck-ai-form__content-area','appendChild','focus','<span>[</span>','set','position','createElement','copyButtonView','remove','\x20ck-ai-form__copy-button--copied','isEnabled','execCommand','ck-hidden','listenTo','ClipboardItem','innerHTML','setContent','loaderView','scrollHeight','13kiQRod','getSelection','setTemplate','Copy','isProcessing','copy','addRange','mousedown','querySelector','20473938lpsHNW','_createCopyButton','setStartAfter','smooth','check','left','class','write','-9999px','<span>]</span>','142382bRPMrM','render','ck-reset_all-excluded','AI\x20is\x20writing...','textContent','locale','bindTemplate','style','isVisible','bind','ck-ai-form__content-area-wrapper','ck-ai-form__copy-button','813228xhZTaV','_createLoader','text/plain','ck-content','div','ck-ai-form__content-area--processing','896408VmTUyl','contentFieldView','scrollTo','_copyHTMLToClipboard','ck-ai-form__loader','icon','1099goMYBy','setEndBefore','firstElementChild','wheel','execute'];_0x2be2=function(){return _0x36c6e8;};return _0x2be2();}import _0x1e69ec from'../../../theme/icons/copy.svg';import{getTranslation as _0x2c3d8f}from'../../utils/common-translations.js';import{icons as _0x1f5c1f}from'ckeditor5/src/core.js';export default class nt extends _0x5a73ba{constructor(_0x48cdc0,_0x5edf60=''){const _0x5f20c2=_0x7996;super(_0x48cdc0),this[_0x5f20c2(0x1ee)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x178dc8=this[_0x5f20c2(0x1c1)];this[_0x5f20c2(0x1ce)]=new ContentFieldView(_0x48cdc0,_0x5edf60),this[_0x5f20c2(0x1f1)]=this[_0x5f20c2(0x207)](),this[_0x5f20c2(0x1ff)]({'tag':_0x5f20c2(0x1cb),'attributes':{'class':['ck',_0x5f20c2(0x1c5),_0x178dc8['if'](_0x5f20c2(0x1c3),_0x5f20c2(0x1f6),_0x370826=>!_0x370826)],'tabindex':'-1'},'children':[{'tag':_0x5f20c2(0x1cb),'attributes':{'class':['ck',_0x5f20c2(0x1ea),_0x178dc8['if'](_0x5f20c2(0x201),_0x5f20c2(0x1cc))]},'children':[this[_0x5f20c2(0x1ce)],{'tag':_0x5f20c2(0x1cb),'attributes':{'class':['ck',_0x5f20c2(0x1e4)]},'children':[this[_0x5f20c2(0x1f1)]]}]}]});}[_0x253d5a(0x211)](){const _0x1900dd=_0x253d5a;super[_0x1900dd(0x211)](),this[_0x1900dd(0x1d8)]&&this[_0x1900dd(0x1ce)][_0x1900dd(0x1fa)](this[_0x1900dd(0x1d8)]);let _0x3e7afc=!0x1;this['on'](_0x1900dd(0x1db),(_0xdf4e45,_0x213243,_0x54a840)=>{const _0x54490f=_0x1900dd,_0x15f530=!this[_0x54490f(0x1ce)][_0x54490f(0x1dd)][_0x54490f(0x205)](_0x54490f(0x1e1));this[_0x54490f(0x1ce)][_0x54490f(0x1fa)](_0x54a840),this[_0x54490f(0x201)]&&_0x15f530&&!_0x3e7afc&&this[_0x54490f(0x1dd)][_0x54490f(0x1cf)]({'top':this[_0x54490f(0x1dd)][_0x54490f(0x1fc)],'behavior':_0x54490f(0x209)});}),this['on'](_0x1900dd(0x1dc),(_0x1022ad,_0x4bde6f,_0x3fd4aa)=>{const _0x55ef5d=_0x1900dd;_0x3e7afc=!0x1,_0x3fd4aa?(this[_0x55ef5d(0x1d8)]=null,this[_0x55ef5d(0x1ce)][_0x55ef5d(0x1e5)]()):this[_0x55ef5d(0x1d8)]||this[_0x55ef5d(0x1ce)][_0x55ef5d(0x1fa)]('');}),this[_0x1900dd(0x1f7)](this[_0x1900dd(0x1dd)],_0x1900dd(0x1d6),()=>{_0x3e7afc=!0x0;}),this[_0x1900dd(0x1f7)](this[_0x1900dd(0x1dd)],_0x1900dd(0x204),()=>{_0x3e7afc=!0x0;});}[_0x253d5a(0x1ec)](){const _0x30f609=_0x253d5a;this[_0x30f609(0x1dd)][_0x30f609(0x1ec)]();}[_0x253d5a(0x207)](){const _0x4c0654=_0x253d5a,_0x3967fb=this[_0x4c0654(0x215)],_0x5459bf=new _0x283c93(this[_0x4c0654(0x215)]),_0x46e8b4=_0x4c0654(0x1c6);return _0x5459bf[_0x4c0654(0x1ee)]({'label':_0x2c3d8f(_0x3967fb,_0x4c0654(0x200)),'icon':_0x1e69ec,'class':_0x46e8b4,'tooltip':!0x0}),_0x5459bf[_0x4c0654(0x1c4)](_0x4c0654(0x1c3))['to'](this,_0x4c0654(0x1d8),_0x1a6abb=>!!_0x1a6abb),_0x5459bf[_0x4c0654(0x1c4)](_0x4c0654(0x1f4))['to'](this,_0x4c0654(0x201),_0x5a21b8=>!_0x5a21b8),_0x5459bf['on'](_0x4c0654(0x1d7),()=>{const _0x4e01ef=_0x4c0654;this[_0x4e01ef(0x1d0)](this[_0x4e01ef(0x1ce)][_0x4e01ef(0x1dd)]),_0x5459bf[_0x4e01ef(0x1d2)]=_0x1f5c1f[_0x4e01ef(0x20a)],_0x5459bf[_0x4e01ef(0x20c)]=_0x46e8b4+_0x4e01ef(0x1f3),this[_0x4e01ef(0x1ec)](),setTimeout(()=>{const _0x599ffb=_0x4e01ef;_0x5459bf[_0x599ffb(0x1d2)]=_0x1e69ec,_0x5459bf[_0x599ffb(0x20c)]=_0x46e8b4;},0x3e8);}),_0x5459bf;}[_0x253d5a(0x1d0)](_0x42d821){const _0x5b9e96=_0x253d5a,{window:_0x1c447a,document:_0x4359e4}=_0x6bed45;if(_0x1c447a[_0x5b9e96(0x1f8)]){const {Blob:_0x39856f,ClipboardItem:_0x473beb}=_0x1c447a,_0x317d90=[new _0x473beb({'text/html':new _0x39856f([_0x42d821[_0x5b9e96(0x1f9)]],{'type':_0x5b9e96(0x1de)}),'text/plain':new _0x39856f([_0x42d821[_0x5b9e96(0x214)]||''],{'type':_0x5b9e96(0x1c9)})})];navigator[_0x5b9e96(0x1e7)][_0x5b9e96(0x20d)](_0x317d90);}else{const _0x110a10=_0x4359e4[_0x5b9e96(0x1f0)](_0x5b9e96(0x1cb));_0x110a10[_0x5b9e96(0x1c2)][_0x5b9e96(0x1ef)]=_0x5b9e96(0x1da),_0x110a10[_0x5b9e96(0x1c2)][_0x5b9e96(0x20b)]=_0x5b9e96(0x20e),_0x110a10[_0x5b9e96(0x1f9)]=_0x5b9e96(0x1ed)+_0x42d821[_0x5b9e96(0x1f9)]+_0x5b9e96(0x20f),_0x4359e4[_0x5b9e96(0x1d9)][_0x5b9e96(0x1eb)](_0x110a10);const _0x2e4a6f=_0x4359e4[_0x5b9e96(0x1df)]();_0x2e4a6f[_0x5b9e96(0x208)](_0x110a10[_0x5b9e96(0x1d5)]),_0x2e4a6f[_0x5b9e96(0x1d4)](_0x110a10[_0x5b9e96(0x1e3)]);const _0x3c2da0=_0x1c447a[_0x5b9e96(0x1fe)]();_0x3c2da0[_0x5b9e96(0x1e0)](),_0x3c2da0[_0x5b9e96(0x203)](_0x2e4a6f),_0x4359e4[_0x5b9e96(0x1f5)](_0x5b9e96(0x202)),_0x110a10[_0x5b9e96(0x1f2)]();}}}export class ContentFieldView extends _0x5a73ba{constructor(_0x49f3af,_0x239efa=''){const _0x78162d=_0x253d5a;super(_0x49f3af),this[_0x78162d(0x1fb)]=this[_0x78162d(0x1c8)](),this[_0x78162d(0x1ff)]({'tag':_0x78162d(0x1cb),'attributes':{'class':['ck',_0x78162d(0x1ca),_0x239efa,_0x78162d(0x212),_0x78162d(0x1e6)]}});}[_0x253d5a(0x1fa)](_0x24b8ba){const _0x44a42a=_0x253d5a;this[_0x44a42a(0x1dd)][_0x44a42a(0x1f9)]=_0x24b8ba;}[_0x253d5a(0x1e5)](){const _0x3743d9=_0x253d5a;this[_0x3743d9(0x1dd)][_0x3743d9(0x1eb)](this[_0x3743d9(0x1fb)][_0x3743d9(0x1dd)]);}[_0x253d5a(0x1c8)](){const _0x41ee9=_0x253d5a,_0x435bbe=new _0x5a73ba(),_0x1c2ec2=this[_0x41ee9(0x215)],_0x11eedb=new _0x731bfd();return _0x11eedb[_0x41ee9(0x1c3)]=!0x0,_0x435bbe[_0x41ee9(0x1ff)]({'tag':_0x41ee9(0x1cb),'attributes':{'class':['ck',_0x41ee9(0x1d1)]},'children':[_0x11eedb,{'text':_0x2c3d8f(_0x1c2ec2,_0x41ee9(0x213))}]}),_0x435bbe[_0x41ee9(0x211)](),_0x435bbe;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xf0c8(){const _0x190a13=['text','769197qxdArY','div','ck-ai-form__error','285216oWWKnN','1175690XYIlgL','6727NjcvFq','set','bindTemplate','25ujfnxs','177414rFTSDo','content','9trtdXU','19996vVnyXG','291844BaaLbL','5384ViSAWe','setTemplate'];_0xf0c8=function(){return _0x190a13;};return _0xf0c8();}function _0x5a64(_0x1ea159,_0x5b4ab7){const _0xf0c840=_0xf0c8();return _0x5a64=function(_0x5a6477,_0x26fb9d){_0x5a6477=_0x5a6477-0x19a;let _0x52954b=_0xf0c840[_0x5a6477];return _0x52954b;},_0x5a64(_0x1ea159,_0x5b4ab7);}(function(_0x36a282,_0x34880c){const _0x4b5456=_0x5a64,_0x1ba2a0=_0x36a282();while(!![]){try{const _0x47d7d5=-parseInt(_0x4b5456(0x1a9))/0x1+parseInt(_0x4b5456(0x1a2))/0x2+-parseInt(_0x4b5456(0x1a6))/0x3+parseInt(_0x4b5456(0x1a1))/0x4*(parseInt(_0x4b5456(0x19d))/0x5)+-parseInt(_0x4b5456(0x19e))/0x6+parseInt(_0x4b5456(0x19a))/0x7*(parseInt(_0x4b5456(0x1a3))/0x8)+parseInt(_0x4b5456(0x1a0))/0x9*(parseInt(_0x4b5456(0x1aa))/0xa);if(_0x47d7d5===_0x34880c)break;else _0x1ba2a0['push'](_0x1ba2a0['shift']());}catch(_0xeb605f){_0x1ba2a0['push'](_0x1ba2a0['shift']());}}}(_0xf0c8,0x58e17));import{View as _0x41b459,IconView as _0x4ea8e5}from'ckeditor5/src/ui.js';import _0x59200e from'../../../theme/icons/error.svg';export default class mt extends _0x41b459{constructor(_0x1f309f,_0xb8836f=''){const _0x4dcdff=_0x5a64;super(_0x1f309f);const _0x7e28eb=new _0x4ea8e5(),_0x1716ad=this[_0x4dcdff(0x19c)];this[_0x4dcdff(0x19b)](_0x4dcdff(0x1a5),_0xb8836f),_0x7e28eb[_0x4dcdff(0x19f)]=_0x59200e,this[_0x4dcdff(0x1a4)]({'tag':_0x4dcdff(0x1a7),'attributes':{'class':['ck',_0x4dcdff(0x1a8)]},'children':[_0x7e28eb,{'text':_0x1716ad['to'](_0x4dcdff(0x1a5))}]});}}
23
+ (function(_0x4198b6,_0x5ae79d){const _0x5912f8=_0x3099,_0x49d375=_0x4198b6();while(!![]){try{const _0x2db74c=-parseInt(_0x5912f8(0x1b4))/0x1+-parseInt(_0x5912f8(0x1b1))/0x2*(parseInt(_0x5912f8(0x1af))/0x3)+parseInt(_0x5912f8(0x1b7))/0x4+-parseInt(_0x5912f8(0x1ae))/0x5+-parseInt(_0x5912f8(0x1b3))/0x6+parseInt(_0x5912f8(0x1b5))/0x7+parseInt(_0x5912f8(0x1bb))/0x8;if(_0x2db74c===_0x5ae79d)break;else _0x49d375['push'](_0x49d375['shift']());}catch(_0x9cd0dc){_0x49d375['push'](_0x49d375['shift']());}}}(_0x2aee,0x5f958));function _0x3099(_0x411bca,_0x29fdce){const _0x2aee4a=_0x2aee();return _0x3099=function(_0x3099a6,_0x41e2e3){_0x3099a6=_0x3099a6-0x1ad;let _0x14eceb=_0x2aee4a[_0x3099a6];return _0x14eceb;},_0x3099(_0x411bca,_0x29fdce);}import{View as _0x150e16,IconView as _0x372711}from'ckeditor5/src/ui.js';import _0x3f02d8 from'../../../theme/icons/error.svg';function _0x2aee(){const _0x2dd87a=['1782067WzMjwb','bindTemplate','2318012QagnJv','ck-ai-form__error','content','set','8285832vzaYZQ','text','1666690nxhMHN','12171WliSZx','setTemplate','40pEMzQh','div','2931294SpliMO','575274UrmRHU'];_0x2aee=function(){return _0x2dd87a;};return _0x2aee();}export default class mt extends _0x150e16{constructor(_0x228e90,_0x40f56d=''){const _0x133d3a=_0x3099;super(_0x228e90);const _0x41cfd9=new _0x372711(),_0x4600c9=this[_0x133d3a(0x1b6)];this[_0x133d3a(0x1ba)](_0x133d3a(0x1ad),_0x40f56d),_0x41cfd9[_0x133d3a(0x1b9)]=_0x3f02d8,this[_0x133d3a(0x1b0)]({'tag':_0x133d3a(0x1b2),'attributes':{'class':['ck',_0x133d3a(0x1b8)]},'children':[_0x41cfd9,{'text':_0x4600c9['to'](_0x133d3a(0x1ad))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30929e=_0x474d;(function(_0x52cda1,_0x5b1e1b){const _0x4701a9=_0x474d,_0x2201d8=_0x52cda1();while(!![]){try{const _0x30a624=-parseInt(_0x4701a9(0x17a))/0x1+parseInt(_0x4701a9(0x17d))/0x2*(-parseInt(_0x4701a9(0x176))/0x3)+parseInt(_0x4701a9(0x170))/0x4*(parseInt(_0x4701a9(0x171))/0x5)+-parseInt(_0x4701a9(0x19c))/0x6*(-parseInt(_0x4701a9(0x19f))/0x7)+parseInt(_0x4701a9(0x17e))/0x8*(parseInt(_0x4701a9(0x18d))/0x9)+parseInt(_0x4701a9(0x17b))/0xa*(-parseInt(_0x4701a9(0x188))/0xb)+parseInt(_0x4701a9(0x17c))/0xc;if(_0x30a624===_0x5b1e1b)break;else _0x2201d8['push'](_0x2201d8['shift']());}catch(_0xdb1a1c){_0x2201d8['push'](_0x2201d8['shift']());}}}(_0x1cf9,0xb1849));import{Rect as _0x4014a3,global as _0x4801a3,isVisible as _0x504a40}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x21816d,ButtonView as _0xd46b8d}from'ckeditor5/src/ui.js';import{icons as _0x4c1f96}from'ckeditor5/src/core.js';import{getTranslation as _0x41cc1b}from'../../utils/common-translations.js';import _0x519fb6 from'../../../theme/icons/submit.svg';function _0x474d(_0x1b25cf,_0x34fce7){const _0x1cf9b=_0x1cf9();return _0x474d=function(_0x474dd0,_0xc822a5){_0x474dd0=_0x474dd0-0x16e;let _0x160bc3=_0x1cf9b[_0x474dd0];return _0x160bc3;},_0x474d(_0x1b25cf,_0x34fce7);}export default class pt extends _0x21816d{constructor(_0x89abf2,_0x940d8e){const _0x46cf73=_0x474d;super(_0x89abf2,_0x940d8e),this[_0x46cf73(0x190)][_0x46cf73(0x198)][_0x46cf73(0x17f)]=0x1,this[_0x46cf73(0x190)][_0x46cf73(0x198)][_0x46cf73(0x19e)]=0x3,this[_0x46cf73(0x181)]=this[_0x46cf73(0x179)](),this[_0x46cf73(0x19d)]=this[_0x46cf73(0x16f)](),this[_0x46cf73(0x189)][_0x46cf73(0x16e)](this[_0x46cf73(0x19d)],0x1),this[_0x46cf73(0x189)][_0x46cf73(0x16e)](this[_0x46cf73(0x181)]);}[_0x30929e(0x1a4)](){const _0x22eec5=_0x30929e;super[_0x22eec5(0x1a4)](),this[_0x22eec5(0x190)][_0x22eec5(0x172)][_0x22eec5(0x16e)](this[_0x22eec5(0x19d)]),this[_0x22eec5(0x18e)][_0x22eec5(0x16e)](this[_0x22eec5(0x181)]),this[_0x22eec5(0x1a6)][_0x22eec5(0x185)](_0x22eec5(0x1a7),(_0x1bbf5a,_0x49c54d)=>{const _0x308181=_0x22eec5;_0x1bbf5a[_0x308181(0x194)]==this[_0x308181(0x190)][_0x308181(0x198)][_0x308181(0x1aa)]&&(this[_0x308181(0x1a3)](),_0x49c54d());});}[_0x30929e(0x179)](){const _0x71ccd4=_0x30929e,_0xd309f5=new _0xd46b8d(this[_0x71ccd4(0x18a)]),_0x55cf68=this[_0x71ccd4(0x18a)];return _0xd309f5[_0x71ccd4(0x185)]({'icon':_0x519fb6,'label':_0x41cc1b(_0x55cf68,_0x71ccd4(0x193)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x71ccd4(0x174)}),_0xd309f5['on'](_0x71ccd4(0x19a),()=>{const _0x114f56=_0x71ccd4;this[_0x114f56(0x1a3)]();}),_0xd309f5[_0x71ccd4(0x175)](_0x71ccd4(0x182))['to'](this[_0x71ccd4(0x190)][_0x71ccd4(0x198)],_0x71ccd4(0x191),this,_0x71ccd4(0x182),(_0x23441a,_0x130650)=>!_0x23441a&&_0x130650),_0xd309f5;}[_0x30929e(0x16f)](){const _0x4f8c92=_0x30929e,_0x40fdc2=new _0xd46b8d(this[_0x4f8c92(0x18a)]),_0x5c7f50=this[_0x4f8c92(0x1a0)],_0x3396d8=this[_0x4f8c92(0x18a)];_0x40fdc2[_0x4f8c92(0x185)]({'label':_0x41cc1b(_0x3396d8,_0x4f8c92(0x186)),'withText':!0x1,'icon':_0x4c1f96[_0x4f8c92(0x1a5)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4f8c92(0x197)}),_0x40fdc2[_0x4f8c92(0x175)](_0x4f8c92(0x192))['to'](_0x5c7f50,_0x4f8c92(0x1a2)),_0x40fdc2[_0x4f8c92(0x175)](_0x4f8c92(0x182))['to'](this,_0x4f8c92(0x182)),_0x40fdc2['on'](_0x4f8c92(0x19a),()=>{const _0x45f4fd=_0x4f8c92;_0x5c7f50[_0x45f4fd(0x1a2)]=!_0x5c7f50[_0x45f4fd(0x1a2)],_0x5c7f50[_0x45f4fd(0x1a2)]?this[_0x45f4fd(0x196)][_0x45f4fd(0x19b)]():this[_0x45f4fd(0x19b)]();});const _0x77fa24=()=>{const _0x36e50d=_0x4f8c92;_0x4801a3[_0x36e50d(0x177)][_0x36e50d(0x173)](()=>{const _0x21c27f=_0x36e50d;if(_0x504a40(this[_0x21c27f(0x1aa)])){const _0x51d1fb=new _0x4014a3(this[_0x21c27f(0x190)][_0x21c27f(0x198)][_0x21c27f(0x1aa)]),_0xa6378f=_0x51d1fb[_0x21c27f(0x180)],_0x4184dd=_0x21c27f(0x187)===_0x3396d8[_0x21c27f(0x18b)]?_0x21c27f(0x1a8):_0x21c27f(0x18c);_0x51d1fb[_0x21c27f(0x18f)](),_0x40fdc2[_0x21c27f(0x1aa)][_0x21c27f(0x184)][_0x4184dd]=_0xa6378f-_0x51d1fb[_0x21c27f(0x180)]+0x1+'px';}});};return this[_0x4f8c92(0x190)][_0x4f8c92(0x198)]['on'](_0x4f8c92(0x1a1),_0x77fa24),this['on'](_0x4f8c92(0x1a4),_0x77fa24),_0x40fdc2;}[_0x30929e(0x1a3)](){const _0x2e72e9=_0x30929e,_0x5ad903=this[_0x2e72e9(0x190)][_0x2e72e9(0x198)][_0x2e72e9(0x1aa)][_0x2e72e9(0x1a9)];this[_0x2e72e9(0x195)](_0x2e72e9(0x1a3),_0x5ad903);}[_0x30929e(0x19b)](_0x24e3d2){const _0x32cb73=_0x30929e;-0x1===_0x24e3d2?this[_0x32cb73(0x199)][_0x32cb73(0x178)]():this[_0x32cb73(0x199)][_0x32cb73(0x183)]();}}function _0x1cf9(){const _0x1307a1=['fieldWrapperChildren','requestAnimationFrame','ck-ai-form__submit','bind','683187nfXeVE','window','focusLast','_createSubmitButton','673759HppEEH','11776270AJByIw','33447768tmbOaB','12EyJkWL','288rWUGTA','minRows','width','submitButtonView','isEnabled','focusFirst','style','set','History','rtl','11qQKJLU','focusableChildren','locale','uiLanguageDirection','right','5634JImSMZ','children','excludeScrollbarsAndBorders','queryView','isEmpty','isOn','Submit','target','fire','filteredView','ck-ai-form__toggle-history','fieldView','focusCycler','execute','focus','30xWOKqW','showHistoryButtonView','maxRows','141211uePRHa','resultsView','update','isVisible','submit','render','history','keystrokes','enter','left','value','element','add','_createShowHistoryButton','4136632HPwdAg','5mgyUjk'];_0x1cf9=function(){return _0x1307a1;};return _0x1cf9();}
23
+ function _0x3083(){const _0x347954=['5507568PqhvTd','33LAwTEw','element','requestAnimationFrame','1693712JGcTGD','left','fieldWrapperChildren','Submit','window','focusFirst','_createShowHistoryButton','ck-ai-form__submit','_createSubmitButton','history','3889470FxezGb','History','focusableChildren','focusLast','18uoeEzW','focusCycler','fieldView','fire','locale','filteredView','children','7818846qRLYcX','maxRows','add','update','excludeScrollbarsAndBorders','isEmpty','isVisible','697264cPmsCD','rtl','queryView','ck-ai-form__toggle-history','target','right','set','isOn','3350QzGdry','minRows','139FEIkAS','focus','3prmMmL','enter','keystrokes','execute','isEnabled','value','resultsView','width','uiLanguageDirection','bind','submitButtonView','showHistoryButtonView','style','submit','render','1523080WQlzec'];_0x3083=function(){return _0x347954;};return _0x3083();}function _0x40b8(_0x5c3065,_0x190280){const _0x3083d8=_0x3083();return _0x40b8=function(_0x40b8ff,_0x4f3f1c){_0x40b8ff=_0x40b8ff-0x122;let _0x31dd38=_0x3083d8[_0x40b8ff];return _0x31dd38;},_0x40b8(_0x5c3065,_0x190280);}const _0x5916a3=_0x40b8;(function(_0x3694f5,_0x3aa90d){const _0x45aa0d=_0x40b8,_0x5cf891=_0x3694f5();while(!![]){try{const _0x5bcaec=parseInt(_0x45aa0d(0x13d))/0x1*(parseInt(_0x45aa0d(0x13b))/0x2)+parseInt(_0x45aa0d(0x13f))/0x3*(parseInt(_0x45aa0d(0x133))/0x4)+-parseInt(_0x45aa0d(0x14e))/0x5+parseInt(_0x45aa0d(0x14f))/0x6+-parseInt(_0x45aa0d(0x12c))/0x7+parseInt(_0x45aa0d(0x153))/0x8*(-parseInt(_0x45aa0d(0x125))/0x9)+-parseInt(_0x45aa0d(0x15d))/0xa*(-parseInt(_0x45aa0d(0x150))/0xb);if(_0x5bcaec===_0x3aa90d)break;else _0x5cf891['push'](_0x5cf891['shift']());}catch(_0x112e66){_0x5cf891['push'](_0x5cf891['shift']());}}}(_0x3083,0x9dee8));import{Rect as _0x27f7f9,global as _0x4b3e3a,isVisible as _0x13ca62}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x4bd3fb,ButtonView as _0x1e974f}from'ckeditor5/src/ui.js';import{icons as _0x58785f}from'ckeditor5/src/core.js';import{getTranslation as _0x567fd8}from'../../utils/common-translations.js';import _0xaf3c40 from'../../../theme/icons/submit.svg';export default class pt extends _0x4bd3fb{constructor(_0x2a307d,_0x37afc1){const _0x1ec54c=_0x40b8;super(_0x2a307d,_0x37afc1),this[_0x1ec54c(0x135)][_0x1ec54c(0x127)][_0x1ec54c(0x13c)]=0x1,this[_0x1ec54c(0x135)][_0x1ec54c(0x127)][_0x1ec54c(0x12d)]=0x3,this[_0x1ec54c(0x149)]=this[_0x1ec54c(0x15b)](),this[_0x1ec54c(0x14a)]=this[_0x1ec54c(0x159)](),this[_0x1ec54c(0x123)][_0x1ec54c(0x12e)](this[_0x1ec54c(0x14a)],0x1),this[_0x1ec54c(0x123)][_0x1ec54c(0x12e)](this[_0x1ec54c(0x149)]);}[_0x5916a3(0x14d)](){const _0x2e2d1b=_0x5916a3;super[_0x2e2d1b(0x14d)](),this[_0x2e2d1b(0x135)][_0x2e2d1b(0x155)][_0x2e2d1b(0x12e)](this[_0x2e2d1b(0x14a)]),this[_0x2e2d1b(0x12b)][_0x2e2d1b(0x12e)](this[_0x2e2d1b(0x149)]),this[_0x2e2d1b(0x141)][_0x2e2d1b(0x139)](_0x2e2d1b(0x140),(_0x514604,_0x5e02b4)=>{const _0x151110=_0x2e2d1b;_0x514604[_0x151110(0x137)]==this[_0x151110(0x135)][_0x151110(0x127)][_0x151110(0x151)]&&(this[_0x151110(0x14c)](),_0x5e02b4());});}[_0x5916a3(0x15b)](){const _0x2ef663=_0x5916a3,_0x2b721b=new _0x1e974f(this[_0x2ef663(0x129)]),_0x516620=this[_0x2ef663(0x129)];return _0x2b721b[_0x2ef663(0x139)]({'icon':_0xaf3c40,'label':_0x567fd8(_0x516620,_0x2ef663(0x156)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2ef663(0x15a)}),_0x2b721b['on'](_0x2ef663(0x142),()=>{const _0x794851=_0x2ef663;this[_0x794851(0x14c)]();}),_0x2b721b[_0x2ef663(0x148)](_0x2ef663(0x143))['to'](this[_0x2ef663(0x135)][_0x2ef663(0x127)],_0x2ef663(0x131),this,_0x2ef663(0x143),(_0x45a30b,_0x37272a)=>!_0x45a30b&&_0x37272a),_0x2b721b;}[_0x5916a3(0x159)](){const _0x251fcb=_0x5916a3,_0xf7b434=new _0x1e974f(this[_0x251fcb(0x129)]),_0xee8b81=this[_0x251fcb(0x145)],_0x217d03=this[_0x251fcb(0x129)];_0xf7b434[_0x251fcb(0x139)]({'label':_0x567fd8(_0x217d03,_0x251fcb(0x122)),'withText':!0x1,'icon':_0x58785f[_0x251fcb(0x15c)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x251fcb(0x136)}),_0xf7b434[_0x251fcb(0x148)](_0x251fcb(0x13a))['to'](_0xee8b81,_0x251fcb(0x132)),_0xf7b434[_0x251fcb(0x148)](_0x251fcb(0x143))['to'](this,_0x251fcb(0x143)),_0xf7b434['on'](_0x251fcb(0x142),()=>{const _0x4db634=_0x251fcb;_0xee8b81[_0x4db634(0x132)]=!_0xee8b81[_0x4db634(0x132)],_0xee8b81[_0x4db634(0x132)]?this[_0x4db634(0x12a)][_0x4db634(0x13e)]():this[_0x4db634(0x13e)]();});const _0x67022a=()=>{const _0x85b314=_0x251fcb;_0x4b3e3a[_0x85b314(0x157)][_0x85b314(0x152)](()=>{const _0x39c2a3=_0x85b314;if(_0x13ca62(this[_0x39c2a3(0x151)])){const _0x2108f7=new _0x27f7f9(this[_0x39c2a3(0x135)][_0x39c2a3(0x127)][_0x39c2a3(0x151)]),_0x42e3f9=_0x2108f7[_0x39c2a3(0x146)],_0x3cd3e3=_0x39c2a3(0x134)===_0x217d03[_0x39c2a3(0x147)]?_0x39c2a3(0x154):_0x39c2a3(0x138);_0x2108f7[_0x39c2a3(0x130)](),_0xf7b434[_0x39c2a3(0x151)][_0x39c2a3(0x14b)][_0x3cd3e3]=_0x42e3f9-_0x2108f7[_0x39c2a3(0x146)]+0x1+'px';}});};return this[_0x251fcb(0x135)][_0x251fcb(0x127)]['on'](_0x251fcb(0x12f),_0x67022a),this['on'](_0x251fcb(0x14d),_0x67022a),_0xf7b434;}[_0x5916a3(0x14c)](){const _0x16dcd2=_0x5916a3,_0x1ce685=this[_0x16dcd2(0x135)][_0x16dcd2(0x127)][_0x16dcd2(0x151)][_0x16dcd2(0x144)];this[_0x16dcd2(0x128)](_0x16dcd2(0x14c),_0x1ce685);}[_0x5916a3(0x13e)](_0x4a5ad4){const _0x2156df=_0x5916a3;-0x1===_0x4a5ad4?this[_0x2156df(0x126)][_0x2156df(0x124)]():this[_0x2156df(0x126)][_0x2156df(0x158)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c14d8=_0x2c79;(function(_0x25ca4f,_0x5e1dbf){const _0x38b461=_0x2c79,_0x373d38=_0x25ca4f();while(!![]){try{const _0x1fe13e=parseInt(_0x38b461(0x1a0))/0x1*(parseInt(_0x38b461(0x189))/0x2)+parseInt(_0x38b461(0x18f))/0x3+-parseInt(_0x38b461(0x18b))/0x4+-parseInt(_0x38b461(0x183))/0x5+-parseInt(_0x38b461(0x1a4))/0x6+parseInt(_0x38b461(0x195))/0x7+-parseInt(_0x38b461(0x19f))/0x8*(-parseInt(_0x38b461(0x192))/0x9);if(_0x1fe13e===_0x5e1dbf)break;else _0x373d38['push'](_0x373d38['shift']());}catch(_0x20eac8){_0x373d38['push'](_0x373d38['shift']());}}}(_0x3a35,0xd1991));function _0x3a35(){const _0x3c7991=['addMany','mainAction','4583061mmhthm','set','locale','AI_','insertButton','_CONTENT','items','tryAgainButton','ck-button-action','Insert\x20below','15144WcLKqp','2pvbWbn','replace','replaceButton','Stop','9475974FmWAxA','Try\x20again','extendTemplate','8334580BncMuW','ck-ai-form__toolbar','ck-hidden','_createButton','isVisible','bindTemplate','598252HIezqv','insert','4640336TmCocA','REPLACE','stopButton','toUpperCase','2966238CDvKMX','label','bind','14373JeOAcz'];_0x3a35=function(){return _0x3c7991;};return _0x3a35();}import{ToolbarView as _0x2d9a09,ButtonView as _0x2fffb3}from'ckeditor5/src/ui.js';import{getTranslation as _0x176339}from'../../utils/common-translations.js';function _0x2c79(_0x169884,_0x116f34){const _0x3a3554=_0x3a35();return _0x2c79=function(_0x2c790e,_0x3789da){_0x2c790e=_0x2c790e-0x181;let _0x3d5522=_0x3a3554[_0x2c790e];return _0x3d5522;},_0x2c79(_0x169884,_0x116f34);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2c14d8(0x1a1),'INSERT':_0x2c14d8(0x18a)};export default class Tt extends _0x2d9a09{constructor(_0x31312b){const _0x4bf30e=_0x2c14d8;super(_0x31312b),this[_0x4bf30e(0x196)](_0x4bf30e(0x187),!0x1),this[_0x4bf30e(0x196)](_0x4bf30e(0x194),AIFormToolbarViewMainActionLabel[_0x4bf30e(0x18c)]),this[_0x4bf30e(0x1a2)]=this[_0x4bf30e(0x186)]('',_0x4bf30e(0x19d)),this[_0x4bf30e(0x1a2)][_0x4bf30e(0x191)](_0x4bf30e(0x190))['to'](this,_0x4bf30e(0x194),_0x347d34=>_0x176339(_0x31312b,_0x4bf30e(0x198)+_0x347d34[_0x4bf30e(0x18e)]()+_0x4bf30e(0x19a))),this[_0x4bf30e(0x199)]=this[_0x4bf30e(0x186)](_0x176339(_0x31312b,_0x4bf30e(0x19e))),this[_0x4bf30e(0x19c)]=this[_0x4bf30e(0x186)](_0x176339(_0x31312b,_0x4bf30e(0x181))),this[_0x4bf30e(0x18d)]=this[_0x4bf30e(0x186)](_0x176339(_0x31312b,_0x4bf30e(0x1a3)));const _0x1a8a3d=this[_0x4bf30e(0x188)];this[_0x4bf30e(0x182)]({'attributes':{'class':[_0x4bf30e(0x184),_0x1a8a3d['if'](_0x4bf30e(0x187),_0x4bf30e(0x185),_0x35cd42=>!_0x35cd42)]}}),this[_0x4bf30e(0x19b)][_0x4bf30e(0x193)]([this[_0x4bf30e(0x1a2)],this[_0x4bf30e(0x199)],this[_0x4bf30e(0x19c)],this[_0x4bf30e(0x18d)]]);}[_0x2c14d8(0x186)](_0x3993fe,_0x7638a5){const _0x4cdaea=_0x2c14d8,_0xeca56f=new _0x2fffb3(this[_0x4cdaea(0x197)]);return _0xeca56f[_0x4cdaea(0x196)]({'label':_0x3993fe,'class':_0x7638a5||'','isVisible':!0x0,'withText':!0x0}),_0xeca56f;}}
23
+ const _0x27afca=_0x5cf0;function _0x5cf0(_0xb8ab84,_0x369d01){const _0x1ac49d=_0x1ac4();return _0x5cf0=function(_0x5cf0c2,_0x3e7606){_0x5cf0c2=_0x5cf0c2-0x16a;let _0x4715d5=_0x1ac49d[_0x5cf0c2];return _0x4715d5;},_0x5cf0(_0xb8ab84,_0x369d01);}(function(_0x5279f0,_0x4894d5){const _0x47dc23=_0x5cf0,_0x3859d8=_0x5279f0();while(!![]){try{const _0x34b69b=parseInt(_0x47dc23(0x170))/0x1*(-parseInt(_0x47dc23(0x17f))/0x2)+parseInt(_0x47dc23(0x18c))/0x3+parseInt(_0x47dc23(0x182))/0x4*(-parseInt(_0x47dc23(0x185))/0x5)+-parseInt(_0x47dc23(0x16d))/0x6*(parseInt(_0x47dc23(0x16e))/0x7)+parseInt(_0x47dc23(0x171))/0x8+-parseInt(_0x47dc23(0x178))/0x9*(parseInt(_0x47dc23(0x179))/0xa)+parseInt(_0x47dc23(0x184))/0xb*(parseInt(_0x47dc23(0x16a))/0xc);if(_0x34b69b===_0x4894d5)break;else _0x3859d8['push'](_0x3859d8['shift']());}catch(_0x1225f6){_0x3859d8['push'](_0x3859d8['shift']());}}}(_0x1ac4,0xdb18d));import{ToolbarView as _0x9c0170,ButtonView as _0x2e9b39}from'ckeditor5/src/ui.js';import{getTranslation as _0x9e2881}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x27afca(0x17d),'INSERT':_0x27afca(0x17a)};function _0x1ac4(){const _0x955d40=['32588743DatGcG','35XGDazQ','Try\x20again','insertButton','items','REPLACE','Insert\x20below','isVisible','1772151fObdzd','locale','_createButton','_CONTENT','toUpperCase','12eElpOV','ck-ai-form__toolbar','addMany','7524192dJrDyb','7JEKjEl','set','2yGhvih','11160568xUoMTW','extendTemplate','AI_','tryAgainButton','label','replaceButton','Stop','684819bZDoah','150qJaFbO','insert','ck-hidden','ck-button-action','replace','mainAction','713390qEVRdm','bindTemplate','stopButton','538396GkTKrv','bind'];_0x1ac4=function(){return _0x955d40;};return _0x1ac4();}export default class Tt extends _0x9c0170{constructor(_0x459061){const _0x443115=_0x27afca;super(_0x459061),this[_0x443115(0x16f)](_0x443115(0x18b),!0x1),this[_0x443115(0x16f)](_0x443115(0x17e),AIFormToolbarViewMainActionLabel[_0x443115(0x189)]),this[_0x443115(0x176)]=this[_0x443115(0x18e)]('',_0x443115(0x17c)),this[_0x443115(0x176)][_0x443115(0x183)](_0x443115(0x175))['to'](this,_0x443115(0x17e),_0x4c745e=>_0x9e2881(_0x459061,_0x443115(0x173)+_0x4c745e[_0x443115(0x190)]()+_0x443115(0x18f))),this[_0x443115(0x187)]=this[_0x443115(0x18e)](_0x9e2881(_0x459061,_0x443115(0x18a))),this[_0x443115(0x174)]=this[_0x443115(0x18e)](_0x9e2881(_0x459061,_0x443115(0x186))),this[_0x443115(0x181)]=this[_0x443115(0x18e)](_0x9e2881(_0x459061,_0x443115(0x177)));const _0x348fdc=this[_0x443115(0x180)];this[_0x443115(0x172)]({'attributes':{'class':[_0x443115(0x16b),_0x348fdc['if'](_0x443115(0x18b),_0x443115(0x17b),_0x1bb9c4=>!_0x1bb9c4)]}}),this[_0x443115(0x188)][_0x443115(0x16c)]([this[_0x443115(0x176)],this[_0x443115(0x187)],this[_0x443115(0x174)],this[_0x443115(0x181)]]);}[_0x27afca(0x18e)](_0x28a27b,_0x3430e4){const _0xd1b3a1=_0x27afca,_0x309263=new _0x2e9b39(this[_0xd1b3a1(0x18d)]);return _0x309263[_0xd1b3a1(0x16f)]({'label':_0x28a27b,'class':_0x3430e4||'','isVisible':!0x0,'withText':!0x0}),_0x309263;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ad438=_0x4224;(function(_0x3f8df5,_0x1b112b){const _0xa0858e=_0x4224,_0x5c199a=_0x3f8df5();while(!![]){try{const _0x5ac0bb=-parseInt(_0xa0858e(0x190))/0x1+-parseInt(_0xa0858e(0x173))/0x2+-parseInt(_0xa0858e(0x192))/0x3+-parseInt(_0xa0858e(0x169))/0x4+-parseInt(_0xa0858e(0x17a))/0x5+-parseInt(_0xa0858e(0x152))/0x6*(-parseInt(_0xa0858e(0x191))/0x7)+parseInt(_0xa0858e(0x1a0))/0x8*(parseInt(_0xa0858e(0x19e))/0x9);if(_0x5ac0bb===_0x1b112b)break;else _0x5c199a['push'](_0x5c199a['shift']());}catch(_0x5c6382){_0x5c199a['push'](_0x5c199a['shift']());}}}(_0x55ae,0x8fdb3));import{FocusTracker as _0x33ee64,KeystrokeHandler as _0x4f59a1}from'ckeditor5/src/utils.js';function _0x4224(_0x5b2f48,_0x532e45){const _0x55ae21=_0x55ae();return _0x4224=function(_0x4224a8,_0x1e8f51){_0x4224a8=_0x4224a8-0x149;let _0x3713a5=_0x55ae21[_0x4224a8];return _0x3713a5;},_0x4224(_0x5b2f48,_0x532e45);}import{View as _0x61f75d,FocusCycler as _0x4660de,createLabeledTextarea as _0x666c26}from'ckeditor5/src/ui.js';import _0x1eecd0,{AIFormToolbarViewMainActionLabel as _0x16d070}from'./aiformtoolbarview.js';function _0x55ae(){const _0x28f316=['clearHistory','prompt','AI_ERROR_FAILED','tryAgainButton','shift\x20+\x20tab','isProcessing','isVisible','finishProcessing','focus','ck-ai-form','createCollection','18jChrQE','tryAgainEvent','11505840OsFpxC','fire','listenTo','_createToolbar','insertButton','setTemplate','mainAction','clear','focusTracker','insertContentBelow','3660FXKTXa','text','div','copyButtonView','Ask\x20AI\x20to\x20edit\x20or\x20generate','bindTemplate','focusCycler','focusNext','replaceContent','contentArea','render','value','_focusables','high','replaceButton','bindTo','errorView','startProcessing','keystrokes','backwardCycle','REPLACE','trim','items','1943748fynHNy','stopProcessing','promptView','add','_createPromptView','toolbar','tab','Empty\x20history','delegate','_promptHistory','402918Pwksxe','ck-ai-form-content','stop','handleError','stopButton','fieldView','_createHistoryView','5054210mWwqHa','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isError','reset','focusLast','element','forwardCycle','historyGroupView','queryView','set','bind','submitPrompt','submit','search','focusPrevious','label','Ask\x20AI\x20to\x20improve\x20generated\x20text','focusFirst','ck-hidden','isEnabled','execute','locale','339988QvCtor','9233RECUxB','3160767KUMWiC'];_0x55ae=function(){return _0x28f316;};return _0x55ae();}import _0x48dd1d from'./aiformcontentarea.js';import _0x16e259 from'./aiformerrorview.js';import _0x2e5b5c from'./aiformpromptview.js';import _0x274dcb from'./aihistorylistview.js';import _0x24110d from'./aihistorylistitemview.js';import _0x24492a from'./prompthistory.js';import{getTranslation as _0x4c0752}from'../../utils/common-translations.js';import{escape as _0x3a881a}from'lodash-es';export default class x extends _0x61f75d{constructor(_0x2b42d3,_0x32e668,_0x143b0f=''){const _0x2e7f97=_0x4224;super(_0x2b42d3),this[_0x2e7f97(0x183)](_0x2e7f97(0x18d),!0x0),this[_0x2e7f97(0x183)](_0x2e7f97(0x198),!0x1),this[_0x2e7f97(0x183)](_0x2e7f97(0x194),''),this[_0x2e7f97(0x183)](_0x2e7f97(0x15d),''),this[_0x2e7f97(0x183)](_0x2e7f97(0x17c),!0x1),this[_0x2e7f97(0x183)](_0x2e7f97(0x14e),_0x16d070[_0x2e7f97(0x166)]),this[_0x2e7f97(0x172)]=new _0x24492a(),this[_0x2e7f97(0x162)]=new _0x16e259(_0x2b42d3),this[_0x2e7f97(0x15b)]=new _0x48dd1d(_0x2b42d3,_0x143b0f),this[_0x2e7f97(0x15b)][_0x2e7f97(0x184)](_0x2e7f97(0x198))['to'](this),this[_0x2e7f97(0x15b)][_0x2e7f97(0x184)](_0x2e7f97(0x15d))['to'](this),this[_0x2e7f97(0x16e)]=this[_0x2e7f97(0x14b)](),this[_0x2e7f97(0x16e)][_0x2e7f97(0x184)](_0x2e7f97(0x14e))['to'](this),this[_0x2e7f97(0x16b)]=this[_0x2e7f97(0x16d)](),this[_0x2e7f97(0x150)]=new _0x33ee64(),this[_0x2e7f97(0x164)]=new _0x4f59a1(),this[_0x2e7f97(0x15e)]=this[_0x2e7f97(0x19d)]([this[_0x2e7f97(0x15b)],this[_0x2e7f97(0x15b)][_0x2e7f97(0x155)],this[_0x2e7f97(0x16e)],this[_0x2e7f97(0x16b)]]),this[_0x2e7f97(0x158)]=new _0x4660de({'focusables':this[_0x2e7f97(0x15e)],'focusTracker':this[_0x2e7f97(0x150)],'keystrokeHandler':this[_0x2e7f97(0x164)],'actions':{'focusPrevious':_0x2e7f97(0x197),'focusNext':_0x2e7f97(0x16f)}}),this[_0x2e7f97(0x16b)][_0x2e7f97(0x158)]['on'](_0x2e7f97(0x180),_0x37fbb6=>{const _0x3ca4f5=_0x2e7f97;this[_0x3ca4f5(0x158)][_0x3ca4f5(0x159)](),_0x37fbb6[_0x3ca4f5(0x175)]();}),this[_0x2e7f97(0x16b)][_0x2e7f97(0x158)]['on'](_0x2e7f97(0x165),_0x109511=>{const _0x2d9b07=_0x2e7f97;this[_0x2d9b07(0x158)][_0x2d9b07(0x188)](),_0x109511[_0x2d9b07(0x175)]();}),this[_0x2e7f97(0x16b)][_0x2e7f97(0x182)][_0x2e7f97(0x178)][_0x2e7f97(0x184)](_0x2e7f97(0x15d))['to'](this,_0x2e7f97(0x194));const _0x142248=this[_0x2e7f97(0x157)];this[_0x2e7f97(0x14d)]({'tag':_0x2e7f97(0x154),'attributes':{'class':['ck',_0x2e7f97(0x19c),_0x32e668],'tabindex':'-1'},'children':[{'tag':_0x2e7f97(0x154),'attributes':{'class':['ck',_0x2e7f97(0x174)]},'children':[{'tag':_0x2e7f97(0x154),'attributes':{'class':[_0x142248['if'](_0x2e7f97(0x17c),_0x2e7f97(0x18c),_0x458fe2=>!_0x458fe2)]},'children':[this[_0x2e7f97(0x162)]]},this[_0x2e7f97(0x15b)],this[_0x2e7f97(0x16e)],this[_0x2e7f97(0x16b)]]}]});}[_0x4ad438(0x15c)](){const _0x5f3ff1=_0x4ad438;super[_0x5f3ff1(0x15c)](),this[_0x5f3ff1(0x150)][_0x5f3ff1(0x16c)](this[_0x5f3ff1(0x15b)][_0x5f3ff1(0x17f)]),this[_0x5f3ff1(0x150)][_0x5f3ff1(0x16c)](this[_0x5f3ff1(0x15b)][_0x5f3ff1(0x155)][_0x5f3ff1(0x17f)]),this[_0x5f3ff1(0x150)][_0x5f3ff1(0x16c)](this[_0x5f3ff1(0x16e)][_0x5f3ff1(0x17f)]),this[_0x5f3ff1(0x150)][_0x5f3ff1(0x16c)](this[_0x5f3ff1(0x16b)][_0x5f3ff1(0x17f)]),this[_0x5f3ff1(0x164)][_0x5f3ff1(0x14a)](this[_0x5f3ff1(0x17f)]);}[_0x4ad438(0x19b)](_0x71a581=0x1){const _0x2a71fb=_0x4ad438;-0x1===_0x71a581?this[_0x2a71fb(0x158)][_0x2a71fb(0x17e)]():this[_0x2a71fb(0x158)][_0x2a71fb(0x18b)]();}[_0x4ad438(0x17d)](){const _0x22c909=_0x4ad438;this[_0x22c909(0x194)]='',this[_0x22c909(0x15d)]='',this[_0x22c909(0x17c)]=!0x1,this[_0x22c909(0x16b)][_0x22c909(0x17d)](),this[_0x22c909(0x15b)][_0x22c909(0x199)]=!0x1,this[_0x22c909(0x16e)][_0x22c909(0x199)]=!0x1;}[_0x4ad438(0x16d)](){const _0x12376b=_0x4ad438,_0x2a790d=this[_0x12376b(0x18f)],_0x151841=new _0x2e5b5c(_0x2a790d,{'queryView':{'label':_0x4c0752(_0x2a790d,_0x12376b(0x156)),'creator':_0x666c26,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4c0752(_0x2a790d,_0x12376b(0x170)),'secondary':_0x4c0752(_0x2a790d,_0x12376b(0x17b))}}},'filteredView':this[_0x12376b(0x179)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x151841[_0x12376b(0x184)](_0x12376b(0x18d))['to'](this,_0x12376b(0x18d),this,_0x12376b(0x198),(_0x2dacae,_0x141452)=>_0x2dacae&&!_0x141452),this[_0x12376b(0x14a)](_0x151841,_0x12376b(0x186),(_0x2f8adf,_0x2f9db2)=>{const _0x573d2e=_0x12376b;this[_0x573d2e(0x194)]=_0x2f9db2;const _0x558c6d=_0x3a881a(_0x2f9db2);this[_0x573d2e(0x149)](_0x573d2e(0x185),_0x558c6d),_0x2f9db2[_0x573d2e(0x167)]()&&this[_0x573d2e(0x172)][_0x573d2e(0x16c)]({'prompt':_0x558c6d},0x0);},{'priority':_0x12376b(0x15f)}),_0x151841;}[_0x4ad438(0x179)](){const _0xef822=_0x4ad438,_0x3cab68=new _0x274dcb(this[_0xef822(0x18f)]);return _0x3cab68[_0xef822(0x181)][_0xef822(0x168)][_0xef822(0x161)](this[_0xef822(0x172)])['as'](_0x24110d),_0x3cab68['on'](_0xef822(0x193),()=>{const _0xd660f8=_0xef822;this[_0xd660f8(0x172)][_0xd660f8(0x14f)](),this[_0xd660f8(0x16b)][_0xd660f8(0x187)](''),this[_0xd660f8(0x16b)][_0xd660f8(0x19b)]();}),_0x3cab68;}[_0x4ad438(0x14b)](){const _0x1e4eec=_0x4ad438,_0x433451=new _0x1eecd0(this[_0x1e4eec(0x18f)]);return _0x433451[_0x1e4eec(0x160)][_0x1e4eec(0x184)](_0x1e4eec(0x18d))['to'](this,_0x1e4eec(0x18d),this,_0x1e4eec(0x198),this,_0x1e4eec(0x15d),(_0x4bfcdf,_0x8df7d0,_0x1ffd89)=>_0x4bfcdf&&!_0x8df7d0&&!!_0x1ffd89),_0x433451[_0x1e4eec(0x160)][_0x1e4eec(0x171)](_0x1e4eec(0x18e))['to'](this,_0x1e4eec(0x15a)),_0x433451[_0x1e4eec(0x14c)][_0x1e4eec(0x184)](_0x1e4eec(0x18d))['to'](this,_0x1e4eec(0x18d),this,_0x1e4eec(0x198),this,_0x1e4eec(0x15d),(_0x4e6d2f,_0x5a9118,_0x527192)=>_0x4e6d2f&&!_0x5a9118&&!!_0x527192),_0x433451[_0x1e4eec(0x14c)][_0x1e4eec(0x171)](_0x1e4eec(0x18e))['to'](this,_0x1e4eec(0x151)),_0x433451[_0x1e4eec(0x196)][_0x1e4eec(0x184)](_0x1e4eec(0x18d))['to'](this,_0x1e4eec(0x18d),this,_0x1e4eec(0x198),(_0x1c3023,_0x11336d)=>_0x1c3023&&!_0x11336d),_0x433451[_0x1e4eec(0x196)][_0x1e4eec(0x171)](_0x1e4eec(0x18e))['to'](this,_0x1e4eec(0x19f)),_0x433451[_0x1e4eec(0x177)][_0x1e4eec(0x184)](_0x1e4eec(0x18d))['to'](this,_0x1e4eec(0x198)),_0x433451[_0x1e4eec(0x177)][_0x1e4eec(0x171)](_0x1e4eec(0x18e))['to'](this,_0x1e4eec(0x16a)),_0x433451;}[_0x4ad438(0x163)](){const _0x2216a1=_0x4ad438;this[_0x2216a1(0x15d)]='',this[_0x2216a1(0x17c)]=!0x1,this[_0x2216a1(0x198)]=!0x0,this[_0x2216a1(0x15b)][_0x2216a1(0x199)]=!0x0,this[_0x2216a1(0x16e)][_0x2216a1(0x199)]=!0x0,this[_0x2216a1(0x15b)][_0x2216a1(0x19b)]();}[_0x4ad438(0x19a)](){const _0x4d3a23=_0x4ad438,_0x40a3fc=this[_0x4d3a23(0x18f)];this[_0x4d3a23(0x198)]=!0x1,this[_0x4d3a23(0x194)]='',this[_0x4d3a23(0x16b)][_0x4d3a23(0x17d)](),this[_0x4d3a23(0x15d)]&&(this[_0x4d3a23(0x16b)][_0x4d3a23(0x182)][_0x4d3a23(0x189)]=_0x4c0752(_0x40a3fc,_0x4d3a23(0x18a)));}[_0x4ad438(0x176)](_0x2c0836){const _0x11b9f2=_0x4ad438,_0x31656b=this[_0x11b9f2(0x18f)];this[_0x11b9f2(0x19a)](),this[_0x11b9f2(0x17c)]=!0x0,this[_0x11b9f2(0x162)][_0x11b9f2(0x153)]=_0x2c0836||_0x4c0752(_0x31656b,_0x11b9f2(0x195)),this[_0x11b9f2(0x15d)]||(this[_0x11b9f2(0x15b)][_0x11b9f2(0x199)]=!0x1);}}
23
+ const _0x541a3b=_0x4cca;(function(_0x518076,_0x5a6d97){const _0x2a17c2=_0x4cca,_0x4c8b95=_0x518076();while(!![]){try{const _0x53ff74=parseInt(_0x2a17c2(0x22e))/0x1+parseInt(_0x2a17c2(0x1ea))/0x2+parseInt(_0x2a17c2(0x1e4))/0x3*(-parseInt(_0x2a17c2(0x1e0))/0x4)+-parseInt(_0x2a17c2(0x1dd))/0x5*(parseInt(_0x2a17c2(0x1ed))/0x6)+-parseInt(_0x2a17c2(0x210))/0x7*(parseInt(_0x2a17c2(0x1f6))/0x8)+-parseInt(_0x2a17c2(0x1fc))/0x9+parseInt(_0x2a17c2(0x21d))/0xa;if(_0x53ff74===_0x5a6d97)break;else _0x4c8b95['push'](_0x4c8b95['shift']());}catch(_0x5a6892){_0x4c8b95['push'](_0x4c8b95['shift']());}}}(_0x3397,0x4fd6c));function _0x4cca(_0x2a49ec,_0x38cb73){const _0x3397ae=_0x3397();return _0x4cca=function(_0x4cca4a,_0x178bc8){_0x4cca4a=_0x4cca4a-0x1da;let _0x524397=_0x3397ae[_0x4cca4a];return _0x524397;},_0x4cca(_0x2a49ec,_0x38cb73);}import{FocusTracker as _0x35a94d,KeystrokeHandler as _0x4a8a07}from'ckeditor5/src/utils.js';import{View as _0x11d026,FocusCycler as _0x1e20a4,createLabeledTextarea as _0x181399}from'ckeditor5/src/ui.js';import _0x5f26ba,{AIFormToolbarViewMainActionLabel as _0x1ea7a4}from'./aiformtoolbarview.js';import _0x49e1f1 from'./aiformcontentarea.js';import _0x35ccc5 from'./aiformerrorview.js';import _0x5e7a72 from'./aiformpromptview.js';import _0x5f5cbd from'./aihistorylistview.js';import _0x756b1a from'./aihistorylistitemview.js';import _0x104a0d from'./prompthistory.js';import{getTranslation as _0x267a3a}from'../../utils/common-translations.js';import{escape as _0x1f0bd9}from'lodash-es';function _0x3397(){const _0x14285e=['focusFirst','Ask\x20AI\x20to\x20improve\x20generated\x20text','isVisible','focusCycler','handleError','tryAgainButton','trim','453554tzgRzK','_createPromptView','label','insertButton','errorView','bindTemplate','focus','locale','4985EODAVt','isError','replaceContent','4RjDnxM','clear','shift\x20+\x20tab','queryView','1324437jXOkUf','backwardCycle','replaceButton','reset','stopProcessing','setTemplate','721940VxhMij','items','copyButtonView','1878XDXRLZ','fire','add','clearHistory','forwardCycle','startProcessing','tab','_createHistoryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','80LGCFrZ','stop','_focusables','insertContentBelow','_promptHistory','contentArea','3273507fXTfRA','Empty\x20history','tryAgainEvent','historyGroupView','isEnabled','fieldView','bind','ck-ai-form','delegate','mainAction','ck-ai-form-content','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','AI_ERROR_FAILED','execute','div','stopButton','bindTo','set','focusPrevious','finishProcessing','157129pKdbrU','submitPrompt','element','focusNext','high','createCollection','focusTracker','listenTo','_createToolbar','keystrokes','REPLACE','render','focusLast','8542290dguCPT','ck-hidden','promptView','prompt','text','toolbar','submit','search','isProcessing','value'];_0x3397=function(){return _0x14285e;};return _0x3397();}export default class x extends _0x11d026{constructor(_0x1051a3,_0x180370,_0x3dec17=''){const _0x575f8d=_0x4cca;super(_0x1051a3),this[_0x575f8d(0x20d)](_0x575f8d(0x200),!0x0),this[_0x575f8d(0x20d)](_0x575f8d(0x225),!0x1),this[_0x575f8d(0x20d)](_0x575f8d(0x220),''),this[_0x575f8d(0x20d)](_0x575f8d(0x226),''),this[_0x575f8d(0x20d)](_0x575f8d(0x1de),!0x1),this[_0x575f8d(0x20d)](_0x575f8d(0x205),_0x1ea7a4[_0x575f8d(0x21a)]),this[_0x575f8d(0x1fa)]=new _0x104a0d(),this[_0x575f8d(0x232)]=new _0x35ccc5(_0x1051a3),this[_0x575f8d(0x1fb)]=new _0x49e1f1(_0x1051a3,_0x3dec17),this[_0x575f8d(0x1fb)][_0x575f8d(0x202)](_0x575f8d(0x225))['to'](this),this[_0x575f8d(0x1fb)][_0x575f8d(0x202)](_0x575f8d(0x226))['to'](this),this[_0x575f8d(0x222)]=this[_0x575f8d(0x218)](),this[_0x575f8d(0x222)][_0x575f8d(0x202)](_0x575f8d(0x205))['to'](this),this[_0x575f8d(0x21f)]=this[_0x575f8d(0x22f)](),this[_0x575f8d(0x216)]=new _0x35a94d(),this[_0x575f8d(0x219)]=new _0x4a8a07(),this[_0x575f8d(0x1f8)]=this[_0x575f8d(0x215)]([this[_0x575f8d(0x1fb)],this[_0x575f8d(0x1fb)][_0x575f8d(0x1ec)],this[_0x575f8d(0x222)],this[_0x575f8d(0x21f)]]),this[_0x575f8d(0x22a)]=new _0x1e20a4({'focusables':this[_0x575f8d(0x1f8)],'focusTracker':this[_0x575f8d(0x216)],'keystrokeHandler':this[_0x575f8d(0x219)],'actions':{'focusPrevious':_0x575f8d(0x1e2),'focusNext':_0x575f8d(0x1f3)}}),this[_0x575f8d(0x21f)][_0x575f8d(0x22a)]['on'](_0x575f8d(0x1f1),_0x5b1298=>{const _0x1dda03=_0x575f8d;this[_0x1dda03(0x22a)][_0x1dda03(0x213)](),_0x5b1298[_0x1dda03(0x1f7)]();}),this[_0x575f8d(0x21f)][_0x575f8d(0x22a)]['on'](_0x575f8d(0x1e5),_0x2660ee=>{const _0x18f8da=_0x575f8d;this[_0x18f8da(0x22a)][_0x18f8da(0x20e)](),_0x2660ee[_0x18f8da(0x1f7)]();}),this[_0x575f8d(0x21f)][_0x575f8d(0x1e3)][_0x575f8d(0x201)][_0x575f8d(0x202)](_0x575f8d(0x226))['to'](this,_0x575f8d(0x220));const _0x2d440c=this[_0x575f8d(0x1da)];this[_0x575f8d(0x1e9)]({'tag':_0x575f8d(0x20a),'attributes':{'class':['ck',_0x575f8d(0x203),_0x180370],'tabindex':'-1'},'children':[{'tag':_0x575f8d(0x20a),'attributes':{'class':['ck',_0x575f8d(0x206)]},'children':[{'tag':_0x575f8d(0x20a),'attributes':{'class':[_0x2d440c['if'](_0x575f8d(0x1de),_0x575f8d(0x21e),_0x40f7dc=>!_0x40f7dc)]},'children':[this[_0x575f8d(0x232)]]},this[_0x575f8d(0x1fb)],this[_0x575f8d(0x222)],this[_0x575f8d(0x21f)]]}]});}[_0x541a3b(0x21b)](){const _0x5995d3=_0x541a3b;super[_0x5995d3(0x21b)](),this[_0x5995d3(0x216)][_0x5995d3(0x1ef)](this[_0x5995d3(0x1fb)][_0x5995d3(0x212)]),this[_0x5995d3(0x216)][_0x5995d3(0x1ef)](this[_0x5995d3(0x1fb)][_0x5995d3(0x1ec)][_0x5995d3(0x212)]),this[_0x5995d3(0x216)][_0x5995d3(0x1ef)](this[_0x5995d3(0x222)][_0x5995d3(0x212)]),this[_0x5995d3(0x216)][_0x5995d3(0x1ef)](this[_0x5995d3(0x21f)][_0x5995d3(0x212)]),this[_0x5995d3(0x219)][_0x5995d3(0x217)](this[_0x5995d3(0x212)]);}[_0x541a3b(0x1db)](_0x585e52=0x1){const _0x3738d0=_0x541a3b;-0x1===_0x585e52?this[_0x3738d0(0x22a)][_0x3738d0(0x21c)]():this[_0x3738d0(0x22a)][_0x3738d0(0x227)]();}[_0x541a3b(0x1e7)](){const _0x1bc8e1=_0x541a3b;this[_0x1bc8e1(0x220)]='',this[_0x1bc8e1(0x226)]='',this[_0x1bc8e1(0x1de)]=!0x1,this[_0x1bc8e1(0x21f)][_0x1bc8e1(0x1e7)](),this[_0x1bc8e1(0x1fb)][_0x1bc8e1(0x229)]=!0x1,this[_0x1bc8e1(0x222)][_0x1bc8e1(0x229)]=!0x1;}[_0x541a3b(0x22f)](){const _0x1a4d90=_0x541a3b,_0x2c40fd=this[_0x1a4d90(0x1dc)],_0x2fdd2b=new _0x5e7a72(_0x2c40fd,{'queryView':{'label':_0x267a3a(_0x2c40fd,_0x1a4d90(0x1f5)),'creator':_0x181399,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x267a3a(_0x2c40fd,_0x1a4d90(0x1fd)),'secondary':_0x267a3a(_0x2c40fd,_0x1a4d90(0x207))}}},'filteredView':this[_0x1a4d90(0x1f4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2fdd2b[_0x1a4d90(0x202)](_0x1a4d90(0x200))['to'](this,_0x1a4d90(0x200),this,_0x1a4d90(0x225),(_0x27d2c,_0x2424fd)=>_0x27d2c&&!_0x2424fd),this[_0x1a4d90(0x217)](_0x2fdd2b,_0x1a4d90(0x223),(_0x4824d5,_0x599cb2)=>{const _0x3faee2=_0x1a4d90;this[_0x3faee2(0x220)]=_0x599cb2;const _0xf78c9c=_0x1f0bd9(_0x599cb2);this[_0x3faee2(0x1ee)](_0x3faee2(0x211),_0xf78c9c),_0x599cb2[_0x3faee2(0x22d)]()&&this[_0x3faee2(0x1fa)][_0x3faee2(0x1ef)]({'prompt':_0xf78c9c},0x0);},{'priority':_0x1a4d90(0x214)}),_0x2fdd2b;}[_0x541a3b(0x1f4)](){const _0x291196=_0x541a3b,_0x49eb54=new _0x5f5cbd(this[_0x291196(0x1dc)]);return _0x49eb54[_0x291196(0x1ff)][_0x291196(0x1eb)][_0x291196(0x20c)](this[_0x291196(0x1fa)])['as'](_0x756b1a),_0x49eb54['on'](_0x291196(0x1f0),()=>{const _0x44276d=_0x291196;this[_0x44276d(0x1fa)][_0x44276d(0x1e1)](),this[_0x44276d(0x21f)][_0x44276d(0x224)](''),this[_0x44276d(0x21f)][_0x44276d(0x1db)]();}),_0x49eb54;}[_0x541a3b(0x218)](){const _0x5a5a61=_0x541a3b,_0x41fc54=new _0x5f26ba(this[_0x5a5a61(0x1dc)]);return _0x41fc54[_0x5a5a61(0x1e6)][_0x5a5a61(0x202)](_0x5a5a61(0x200))['to'](this,_0x5a5a61(0x200),this,_0x5a5a61(0x225),this,_0x5a5a61(0x226),(_0x369ee9,_0x73cf4a,_0x395a7d)=>_0x369ee9&&!_0x73cf4a&&!!_0x395a7d),_0x41fc54[_0x5a5a61(0x1e6)][_0x5a5a61(0x204)](_0x5a5a61(0x209))['to'](this,_0x5a5a61(0x1df)),_0x41fc54[_0x5a5a61(0x231)][_0x5a5a61(0x202)](_0x5a5a61(0x200))['to'](this,_0x5a5a61(0x200),this,_0x5a5a61(0x225),this,_0x5a5a61(0x226),(_0xdcc78f,_0x2476d3,_0x35d066)=>_0xdcc78f&&!_0x2476d3&&!!_0x35d066),_0x41fc54[_0x5a5a61(0x231)][_0x5a5a61(0x204)](_0x5a5a61(0x209))['to'](this,_0x5a5a61(0x1f9)),_0x41fc54[_0x5a5a61(0x22c)][_0x5a5a61(0x202)](_0x5a5a61(0x200))['to'](this,_0x5a5a61(0x200),this,_0x5a5a61(0x225),(_0x2a26e2,_0xd9e30f)=>_0x2a26e2&&!_0xd9e30f),_0x41fc54[_0x5a5a61(0x22c)][_0x5a5a61(0x204)](_0x5a5a61(0x209))['to'](this,_0x5a5a61(0x1fe)),_0x41fc54[_0x5a5a61(0x20b)][_0x5a5a61(0x202)](_0x5a5a61(0x200))['to'](this,_0x5a5a61(0x225)),_0x41fc54[_0x5a5a61(0x20b)][_0x5a5a61(0x204)](_0x5a5a61(0x209))['to'](this,_0x5a5a61(0x1e8)),_0x41fc54;}[_0x541a3b(0x1f2)](){const _0x4372e2=_0x541a3b;this[_0x4372e2(0x226)]='',this[_0x4372e2(0x1de)]=!0x1,this[_0x4372e2(0x225)]=!0x0,this[_0x4372e2(0x1fb)][_0x4372e2(0x229)]=!0x0,this[_0x4372e2(0x222)][_0x4372e2(0x229)]=!0x0,this[_0x4372e2(0x1fb)][_0x4372e2(0x1db)]();}[_0x541a3b(0x20f)](){const _0x36a3e8=_0x541a3b,_0x2693fd=this[_0x36a3e8(0x1dc)];this[_0x36a3e8(0x225)]=!0x1,this[_0x36a3e8(0x220)]='',this[_0x36a3e8(0x21f)][_0x36a3e8(0x1e7)](),this[_0x36a3e8(0x226)]&&(this[_0x36a3e8(0x21f)][_0x36a3e8(0x1e3)][_0x36a3e8(0x230)]=_0x267a3a(_0x2693fd,_0x36a3e8(0x228)));}[_0x541a3b(0x22b)](_0x450b94){const _0x27f574=_0x541a3b,_0x2111c6=this[_0x27f574(0x1dc)];this[_0x27f574(0x20f)](),this[_0x27f574(0x1de)]=!0x0,this[_0x27f574(0x232)][_0x27f574(0x221)]=_0x450b94||_0x267a3a(_0x2111c6,_0x27f574(0x208)),this[_0x27f574(0x226)]||(this[_0x27f574(0x1fb)][_0x27f574(0x229)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x709d98,_0x41c7ce){const _0xc7b0b6=_0x1464,_0xce0338=_0x709d98();while(!![]){try{const _0x22c94a=parseInt(_0xc7b0b6(0xf1))/0x1+-parseInt(_0xc7b0b6(0xf4))/0x2+parseInt(_0xc7b0b6(0xf8))/0x3+-parseInt(_0xc7b0b6(0xf6))/0x4+parseInt(_0xc7b0b6(0xf7))/0x5+-parseInt(_0xc7b0b6(0xf5))/0x6*(-parseInt(_0xc7b0b6(0xef))/0x7)+parseInt(_0xc7b0b6(0xec))/0x8*(-parseInt(_0xc7b0b6(0xed))/0x9);if(_0x22c94a===_0x41c7ce)break;else _0xce0338['push'](_0xce0338['shift']());}catch(_0xc5a065){_0xce0338['push'](_0xce0338['shift']());}}}(_0x1029,0xefa0a));import{ListItemView as _0x14937f,ButtonView as _0x276d4c}from'ckeditor5/src/ui.js';import _0x23cee6 from'../dropdown/buttonlabelwithhighlightview.js';function _0x1464(_0x2b887d,_0x183b65){const _0x102991=_0x1029();return _0x1464=function(_0x14647d,_0x15a62d){_0x14647d=_0x14647d-0xea;let _0x51fda1=_0x102991[_0x14647d];return _0x51fda1;},_0x1464(_0x2b887d,_0x183b65);}import{unescape as _0xce2c78}from'lodash-es';export default class hs extends _0x14937f{constructor(_0x47b437){const _0x2a66cd=_0x1464;super();const _0x3668e0=new _0x23cee6(),_0x58eac4=new _0x276d4c(this[_0x2a66cd(0xf2)],_0x3668e0);this[_0x2a66cd(0xf3)][_0x2a66cd(0xee)](_0x58eac4),_0x58eac4[_0x2a66cd(0xea)]({'label':_0x47b437[_0x2a66cd(0xeb)],'withText':!0x0}),_0x58eac4['on'](_0x2a66cd(0xf9),()=>{const _0x10beb3=_0x2a66cd;this[_0x10beb3(0xf0)](_0x10beb3(0xf9),{'value':_0xce2c78(_0x47b437[_0x10beb3(0xeb)])});});}}function _0x1029(){const _0x575661=['1303955hHbzeL','locale','children','797492haZGjr','982350mDQpbC','3991848FEzJwQ','6413490YmWkUo','1287966SrRgTv','execute','set','prompt','16vsPRZn','8027226uNgAGj','add','49kreWTG','fire'];_0x1029=function(){return _0x575661;};return _0x1029();}
23
+ function _0x11e4(){const _0x729719=['children','30eMzNjW','1576687jMACGO','locale','3tXyCdj','1225944NPHMqg','fire','execute','3393620Fkjilf','30864600nDUAOu','prompt','add','4792288FfMKLR','295018sJgfsR','set','9247136vbrKEl'];_0x11e4=function(){return _0x729719;};return _0x11e4();}(function(_0x191b84,_0x166fa7){const _0x400b00=_0x4da7,_0x2032ad=_0x191b84();while(!![]){try{const _0xfb785e=-parseInt(_0x400b00(0x19f))/0x1*(parseInt(_0x400b00(0x1a8))/0x2)+-parseInt(_0x400b00(0x1a0))/0x3+-parseInt(_0x400b00(0x1a7))/0x4+-parseInt(_0x400b00(0x1a3))/0x5+parseInt(_0x400b00(0x1ac))/0x6*(-parseInt(_0x400b00(0x1ad))/0x7)+parseInt(_0x400b00(0x1aa))/0x8+parseInt(_0x400b00(0x1a4))/0x9;if(_0xfb785e===_0x166fa7)break;else _0x2032ad['push'](_0x2032ad['shift']());}catch(_0x207cfd){_0x2032ad['push'](_0x2032ad['shift']());}}}(_0x11e4,0xb27ec));import{ListItemView as _0x256862,ButtonView as _0x3fda3b}from'ckeditor5/src/ui.js';import _0x418086 from'../dropdown/buttonlabelwithhighlightview.js';function _0x4da7(_0x13878c,_0x44e4ab){const _0x11e4b4=_0x11e4();return _0x4da7=function(_0x4da76e,_0x281afb){_0x4da76e=_0x4da76e-0x19e;let _0x2b0320=_0x11e4b4[_0x4da76e];return _0x2b0320;},_0x4da7(_0x13878c,_0x44e4ab);}import{unescape as _0x5cb7de}from'lodash-es';export default class hs extends _0x256862{constructor(_0x152bfe){const _0x314642=_0x4da7;super();const _0x515bc6=new _0x418086(),_0x6d26ac=new _0x3fda3b(this[_0x314642(0x19e)],_0x515bc6);this[_0x314642(0x1ab)][_0x314642(0x1a6)](_0x6d26ac),_0x6d26ac[_0x314642(0x1a9)]({'label':_0x152bfe[_0x314642(0x1a5)],'withText':!0x0}),_0x6d26ac['on'](_0x314642(0x1a2),()=>{const _0x96c386=_0x314642;this[_0x96c386(0x1a1)](_0x96c386(0x1a2),{'value':_0x5cb7de(_0x152bfe[_0x96c386(0x1a5)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fb892=_0x49b3;(function(_0x51c5f7,_0x14d1f9){const _0x2b6f7e=_0x49b3,_0x2539ed=_0x51c5f7();while(!![]){try{const _0x2ae54c=parseInt(_0x2b6f7e(0xb8))/0x1+parseInt(_0x2b6f7e(0xa4))/0x2+parseInt(_0x2b6f7e(0xb5))/0x3+parseInt(_0x2b6f7e(0xaf))/0x4+-parseInt(_0x2b6f7e(0xa2))/0x5*(-parseInt(_0x2b6f7e(0xb3))/0x6)+-parseInt(_0x2b6f7e(0xb2))/0x7*(parseInt(_0x2b6f7e(0xb0))/0x8)+parseInt(_0x2b6f7e(0xa9))/0x9*(-parseInt(_0x2b6f7e(0xbc))/0xa);if(_0x2ae54c===_0x14d1f9)break;else _0x2539ed['push'](_0x2539ed['shift']());}catch(_0x456c24){_0x2539ed['push'](_0x2539ed['shift']());}}}(_0xc91e,0x2fbd8));import{ListView as _0x1e2d33,ListItemGroupView as _0x1eed1a,ButtonView as _0x2db339}from'ckeditor5/src/ui.js';import{getTranslation as _0x1792eb}from'../../utils/common-translations.js';function _0xc91e(){const _0x12ddff=['Clear','1320431RtjYku','102CHchLL','add','347220aPYXMt','historyGroupView','label','242152xURGYS','clearHistory','Prompt\x20history','clearHistoryButton','2560210gTGpMS','1850EEYdml','fire','97036lzDnte','delegate','locale','set','filter','9suQngs','children','items','length','_createClearHistoryButton','execute','909992MXfDdd','8JSRDTH'];_0xc91e=function(){return _0x12ddff;};return _0xc91e();}function _0x49b3(_0xb4d76e,_0x599aaf){const _0xc91ea0=_0xc91e();return _0x49b3=function(_0x49b33a,_0x20f84d){_0x49b33a=_0x49b33a-0xa2;let _0x56b6cf=_0xc91ea0[_0x49b33a];return _0x56b6cf;},_0x49b3(_0xb4d76e,_0x599aaf);}export default class rs extends _0x1e2d33{constructor(_0x5be996){const _0x1d07d8=_0x49b3;super(_0x5be996),this[_0x1d07d8(0xbb)]=this[_0x1d07d8(0xad)](),this[_0x1d07d8(0xb6)]=new _0x1eed1a(),this[_0x1d07d8(0xb6)][_0x1d07d8(0xaa)][_0x1d07d8(0xb4)](this[_0x1d07d8(0xbb)],0x1),this[_0x1d07d8(0xb6)][_0x1d07d8(0xb7)]=_0x1792eb(_0x5be996,_0x1d07d8(0xba)),this[_0x1d07d8(0xb6)][_0x1d07d8(0xab)][_0x1d07d8(0xa5)](_0x1d07d8(0xae))['to'](this),this[_0x1d07d8(0xab)][_0x1d07d8(0xb4)](this[_0x1d07d8(0xb6)]);}[_0x1fb892(0xa8)](){const _0x3a8eee=_0x1fb892;let _0x59db07=0x0;for(const _0x120dca of this[_0x3a8eee(0xab)])_0x59db07+=_0x120dca[_0x3a8eee(0xab)][_0x3a8eee(0xac)];return{'resultsCount':_0x59db07,'totalItemsCount':_0x59db07};}[_0x1fb892(0xad)](){const _0x47e531=_0x1fb892,_0x17abd0=this[_0x47e531(0xa6)],_0x262d2e=new _0x2db339(this[_0x47e531(0xa6)]);return _0x262d2e[_0x47e531(0xa7)]({'label':'('+_0x1792eb(_0x17abd0,_0x47e531(0xb1))+')','withText':!0x0}),_0x262d2e['on'](_0x47e531(0xae),()=>this[_0x47e531(0xa3)](_0x47e531(0xb9))),_0x262d2e;}}
23
+ function _0x4255(){const _0x3ad1ed=['filter','label','_createClearHistoryButton','9gfaYdN','27461KdsrGg','Clear','historyGroupView','clearHistory','length','add','54351666kzyPaA','delegate','clearHistoryButton','execute','6250505MsAKhG','locale','children','set','items','fire','4258338LWESbu','9438192TOtoxK','174qFkQvV','6110708mIEGCJ','Prompt\x20history','42320ArBiyV'];_0x4255=function(){return _0x3ad1ed;};return _0x4255();}const _0x48bf83=_0x5dbc;(function(_0x449b46,_0x566155){const _0x165038=_0x5dbc,_0x205a08=_0x449b46();while(!![]){try{const _0x2d7227=parseInt(_0x165038(0x11c))/0x1*(parseInt(_0x165038(0x132))/0x2)+-parseInt(_0x165038(0x12d))/0x3+-parseInt(_0x165038(0x130))/0x4+-parseInt(_0x165038(0x127))/0x5+-parseInt(_0x165038(0x12f))/0x6*(-parseInt(_0x165038(0x11d))/0x7)+-parseInt(_0x165038(0x12e))/0x8+parseInt(_0x165038(0x123))/0x9;if(_0x2d7227===_0x566155)break;else _0x205a08['push'](_0x205a08['shift']());}catch(_0x215040){_0x205a08['push'](_0x205a08['shift']());}}}(_0x4255,0xebe8b));function _0x5dbc(_0x2c04ee,_0x24cfdc){const _0x42554b=_0x4255();return _0x5dbc=function(_0x5dbcac,_0x148224){_0x5dbcac=_0x5dbcac-0x119;let _0x4c18de=_0x42554b[_0x5dbcac];return _0x4c18de;},_0x5dbc(_0x2c04ee,_0x24cfdc);}import{ListView as _0x15b23e,ListItemGroupView as _0x4d1f5b,ButtonView as _0x2510e7}from'ckeditor5/src/ui.js';import{getTranslation as _0x5bb86a}from'../../utils/common-translations.js';export default class rs extends _0x15b23e{constructor(_0x4fcb49){const _0x33a011=_0x5dbc;super(_0x4fcb49),this[_0x33a011(0x125)]=this[_0x33a011(0x11b)](),this[_0x33a011(0x11f)]=new _0x4d1f5b(),this[_0x33a011(0x11f)][_0x33a011(0x129)][_0x33a011(0x122)](this[_0x33a011(0x125)],0x1),this[_0x33a011(0x11f)][_0x33a011(0x11a)]=_0x5bb86a(_0x4fcb49,_0x33a011(0x131)),this[_0x33a011(0x11f)][_0x33a011(0x12b)][_0x33a011(0x124)](_0x33a011(0x126))['to'](this),this[_0x33a011(0x12b)][_0x33a011(0x122)](this[_0x33a011(0x11f)]);}[_0x48bf83(0x119)](){const _0x51f81c=_0x48bf83;let _0x964367=0x0;for(const _0x458f65 of this[_0x51f81c(0x12b)])_0x964367+=_0x458f65[_0x51f81c(0x12b)][_0x51f81c(0x121)];return{'resultsCount':_0x964367,'totalItemsCount':_0x964367};}[_0x48bf83(0x11b)](){const _0x24cf80=_0x48bf83,_0x1f6615=this[_0x24cf80(0x128)],_0x1c0bae=new _0x2510e7(this[_0x24cf80(0x128)]);return _0x1c0bae[_0x24cf80(0x12a)]({'label':'('+_0x5bb86a(_0x1f6615,_0x24cf80(0x11e))+')','withText':!0x0}),_0x1c0bae['on'](_0x24cf80(0x126),()=>this[_0x24cf80(0x12c)](_0x24cf80(0x120))),_0x1c0bae;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x147906=_0x55a7;(function(_0x9f6d8d,_0x4345cd){const _0x5ecc78=_0x55a7,_0x2fda9a=_0x9f6d8d();while(!![]){try{const _0x577ecc=parseInt(_0x5ecc78(0x1d2))/0x1*(parseInt(_0x5ecc78(0x1bc))/0x2)+-parseInt(_0x5ecc78(0x1d0))/0x3*(-parseInt(_0x5ecc78(0x1c4))/0x4)+parseInt(_0x5ecc78(0x1cc))/0x5+parseInt(_0x5ecc78(0x1ce))/0x6+-parseInt(_0x5ecc78(0x1c0))/0x7+-parseInt(_0x5ecc78(0x1bd))/0x8*(parseInt(_0x5ecc78(0x1c2))/0x9)+-parseInt(_0x5ecc78(0x1c3))/0xa*(parseInt(_0x5ecc78(0x1c5))/0xb);if(_0x577ecc===_0x4345cd)break;else _0x2fda9a['push'](_0x2fda9a['shift']());}catch(_0x3ddf53){_0x2fda9a['push'](_0x2fda9a['shift']());}}}(_0x3de3,0x2809f));import{Collection as _0x4b49ac}from'ckeditor5/src/utils.js';function _0x55a7(_0x3b69b4,_0x1f880f){const _0x3de32a=_0x3de3();return _0x55a7=function(_0x55a708,_0x5ec71f){_0x55a708=_0x55a708-0x1bb;let _0x5b15ce=_0x3de32a[_0x55a708];return _0x5b15ce;},_0x55a7(_0x3b69b4,_0x1f880f);}const cs=_0x147906(0x1c6);function _0x3de3(){const _0x1b58aa=['addMany','length','setItem','26KDfjpq','8ATEMym','stringify','_loadFromSessionStorage','204743tThJCw','parse','665478BJeuiK','720gFTQOu','976424QESugm','57574wzfWGq','CKEditor/AIFormView/PromptHistory','trim','map','_saveToSessionStorage','add','last','1566600xMFYgV','remove','83106YHAHTH','getItem','3kMLYLv','prompt','5597oRMUmQ','toLowerCase'];_0x3de3=function(){return _0x1b58aa;};return _0x3de3();}export default class os extends _0x4b49ac{constructor(){const _0x1f7fcf=_0x147906;super(),this[_0x1f7fcf(0x1bf)](),this['on'](_0x1f7fcf(0x1ca),(_0x5e0871,_0x57c0cd)=>{const _0x5f1bf5=_0x1f7fcf,_0x2b3fd6=Ss(_0x57c0cd[_0x5f1bf5(0x1d1)]);for(const _0x3584ce of this)if(_0x3584ce!=_0x57c0cd&&Ss(_0x3584ce[_0x5f1bf5(0x1d1)])===_0x2b3fd6){this[_0x5f1bf5(0x1cd)](_0x3584ce);break;}this[_0x5f1bf5(0x1d5)]>0x14&&this[_0x5f1bf5(0x1cd)](this[_0x5f1bf5(0x1cb)]),this[_0x5f1bf5(0x1c9)]();}),this['on'](_0x1f7fcf(0x1cd),()=>{const _0x3c58ea=_0x1f7fcf;this[_0x3c58ea(0x1c9)]();});}[_0x147906(0x1bf)](){const _0x3e4ddf=_0x147906,_0x200892=sessionStorage[_0x3e4ddf(0x1cf)](cs)||'[]';this[_0x3e4ddf(0x1d4)](JSON[_0x3e4ddf(0x1c1)](_0x200892));}[_0x147906(0x1c9)](){const _0x21f33a=_0x147906;sessionStorage[_0x21f33a(0x1bb)](cs,JSON[_0x21f33a(0x1be)](this[_0x21f33a(0x1c8)](_0x230eb1=>_0x230eb1)));}}function Ss(_0x2346db){const _0x5538b0=_0x147906;return _0x2346db[_0x5538b0(0x1d3)]()[_0x5538b0(0x1c7)]();}
23
+ const _0x43ef3e=_0x1613;(function(_0x2161f5,_0x3abff2){const _0x46da6a=_0x1613,_0x14c46e=_0x2161f5();while(!![]){try{const _0x45bcf9=-parseInt(_0x46da6a(0x17b))/0x1*(-parseInt(_0x46da6a(0x191))/0x2)+parseInt(_0x46da6a(0x180))/0x3*(parseInt(_0x46da6a(0x18b))/0x4)+parseInt(_0x46da6a(0x17c))/0x5*(parseInt(_0x46da6a(0x187))/0x6)+-parseInt(_0x46da6a(0x17d))/0x7+-parseInt(_0x46da6a(0x181))/0x8*(parseInt(_0x46da6a(0x18e))/0x9)+-parseInt(_0x46da6a(0x186))/0xa+-parseInt(_0x46da6a(0x190))/0xb*(-parseInt(_0x46da6a(0x178))/0xc);if(_0x45bcf9===_0x3abff2)break;else _0x14c46e['push'](_0x14c46e['shift']());}catch(_0x2f746b){_0x14c46e['push'](_0x14c46e['shift']());}}}(_0x3bdb,0x5d35a));import{Collection as _0x665fed}from'ckeditor5/src/utils.js';const cs=_0x43ef3e(0x17f);function _0x3bdb(){const _0x303954=['4949196AIFgeE','stringify','CKEditor/AIFormView/PromptHistory','1093497bmxQFQ','7096MabeLv','map','prompt','_saveToSessionStorage','trim','2854600BZhOKE','144696bdzsiG','length','setItem','remove','4CQfifn','toLowerCase','add','2412qtYGmX','last','11bohJZX','171514hSiVYs','addMany','_loadFromSessionStorage','10274772vzjnLa','getItem','parse','4idKdpg','10EtitSh'];_0x3bdb=function(){return _0x303954;};return _0x3bdb();}function _0x1613(_0xb76f9c,_0x2d96f9){const _0x3bdb26=_0x3bdb();return _0x1613=function(_0x161325,_0x28c908){_0x161325=_0x161325-0x176;let _0x281945=_0x3bdb26[_0x161325];return _0x281945;},_0x1613(_0xb76f9c,_0x2d96f9);}export default class os extends _0x665fed{constructor(){const _0x3295b1=_0x43ef3e;super(),this[_0x3295b1(0x177)](),this['on'](_0x3295b1(0x18d),(_0x5a9c4e,_0x19c8a3)=>{const _0x4e35ae=_0x3295b1,_0x538d70=Ss(_0x19c8a3[_0x4e35ae(0x183)]);for(const _0x521d79 of this)if(_0x521d79!=_0x19c8a3&&Ss(_0x521d79[_0x4e35ae(0x183)])===_0x538d70){this[_0x4e35ae(0x18a)](_0x521d79);break;}this[_0x4e35ae(0x188)]>0x14&&this[_0x4e35ae(0x18a)](this[_0x4e35ae(0x18f)]),this[_0x4e35ae(0x184)]();}),this['on'](_0x3295b1(0x18a),()=>{const _0x4e71ac=_0x3295b1;this[_0x4e71ac(0x184)]();});}[_0x43ef3e(0x177)](){const _0x2efda4=_0x43ef3e,_0x49c760=sessionStorage[_0x2efda4(0x179)](cs)||'[]';this[_0x2efda4(0x176)](JSON[_0x2efda4(0x17a)](_0x49c760));}[_0x43ef3e(0x184)](){const _0x468c13=_0x43ef3e;sessionStorage[_0x468c13(0x189)](cs,JSON[_0x468c13(0x17e)](this[_0x468c13(0x182)](_0x5593d2=>_0x5593d2)));}}function Ss(_0x4a996c){const _0x123b08=_0x43ef3e;return _0x4a996c[_0x123b08(0x18c)]()[_0x123b08(0x185)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1825f6=_0x3d6a;(function(_0x46e487,_0x3d34d8){const _0x9278a1=_0x3d6a,_0x57d499=_0x46e487();while(!![]){try{const _0x57b8aa=-parseInt(_0x9278a1(0x19b))/0x1+-parseInt(_0x9278a1(0x174))/0x2+parseInt(_0x9278a1(0x195))/0x3+parseInt(_0x9278a1(0x191))/0x4*(-parseInt(_0x9278a1(0x18a))/0x5)+-parseInt(_0x9278a1(0x199))/0x6*(-parseInt(_0x9278a1(0x17a))/0x7)+parseInt(_0x9278a1(0x183))/0x8*(parseInt(_0x9278a1(0x178))/0x9)+-parseInt(_0x9278a1(0x182))/0xa*(-parseInt(_0x9278a1(0x17e))/0xb);if(_0x57b8aa===_0x3d34d8)break;else _0x57d499['push'](_0x57d499['shift']());}catch(_0x3a29ff){_0x57d499['push'](_0x57d499['shift']());}}}(_0x5e76,0xb153d));import{Command as _0x1ab490}from'ckeditor5/src/core.js';import _0x1f4306 from'../aiassistantui.js';export default class j extends _0x1ab490{constructor(_0x1c4404,_0x2deafc){const _0xee77d1=_0x3d6a;super(_0x1c4404),this[_0xee77d1(0x18d)]=_0x2deafc?_0x2deafc[_0xee77d1(0x19d)]((_0xbb49b7,_0x1d3e20)=>_0xbb49b7[_0xee77d1(0x18f)](_0x1d3e20[_0xee77d1(0x194)]),new Array()):[],this[_0xee77d1(0x19c)](_0xee77d1(0x180),[]),this['on'](_0xee77d1(0x193),(_0x96026,_0x2e4fc5,_0x279781)=>{const _0x509233=_0xee77d1;this[_0x509233(0x19f)]&&(this[_0x509233(0x180)]=K(this[_0x509233(0x18d)],_0x279781));}),this[_0xee77d1(0x19c)](_0xee77d1(0x18c),!0x1),this['on'](_0xee77d1(0x187),(_0x255d73,_0x363180,_0x434480)=>{const _0x5adf70=_0xee77d1;this[_0x5adf70(0x180)]=_0x434480?K(this[_0x5adf70(0x18d)],this[_0x5adf70(0x18c)]):[];});}[_0x1825f6(0x185)](){const _0x2d5bca=_0x1825f6,_0x33ca13=this[_0x2d5bca(0x186)][_0x2d5bca(0x19e)];this[_0x2d5bca(0x18c)]=function(_0x5efb62){const _0x541bbe=_0x2d5bca,_0x38a056=_0x5efb62[_0x541bbe(0x177)][_0x541bbe(0x175)];return _0x38a056[_0x541bbe(0x17c)]?0x0!==[..._0x38a056[_0x541bbe(0x192)]()][_0x541bbe(0x171)]&&![..._0x38a056[_0x541bbe(0x192)]()][0x0][_0x541bbe(0x17f)]:!!_0x5efb62[_0x541bbe(0x17d)](_0x38a056[_0x541bbe(0x172)]());}(_0x33ca13);const _0x542ae6=_0x33ca13[_0x2d5bca(0x177)][_0x2d5bca(0x175)],_0x5b5f37=this[_0x2d5bca(0x186)][_0x2d5bca(0x179)][_0x2d5bca(0x176)](_0x2d5bca(0x18e));for(const _0x19bfa9 of _0x542ae6[_0x2d5bca(0x197)]())for(const _0x2a902a of _0x19bfa9[_0x2d5bca(0x181)]())if(_0x2a902a['is'](_0x2d5bca(0x173))&&_0x5b5f37[_0x2d5bca(0x188)](_0x2a902a[_0x2d5bca(0x184)]))return void(this[_0x2d5bca(0x19f)]=!0x1);this[_0x2d5bca(0x19f)]=!0x0;}[_0x1825f6(0x190)](_0x232067='',_0x49da92='',_0x1749ae=_0x1825f6(0x19a)){const _0x409a86=_0x1825f6;this[_0x409a86(0x186)][_0x409a86(0x196)][_0x409a86(0x176)](_0x1f4306)[_0x409a86(0x189)](_0x232067,_0x49da92,_0x1749ae);}}function _0x3d6a(_0x5920b3,_0x2d2124){const _0x5e7647=_0x5e76();return _0x3d6a=function(_0x3d6a4c,_0x1a1157){_0x3d6a4c=_0x3d6a4c-0x171;let _0xb6a5c=_0x5e7647[_0x3d6a4c];return _0xb6a5c;},_0x3d6a(_0x5920b3,_0x2d2124);}function _0x5e76(){const _0x5da94f=['2587568DQLCin','selection','get','document','387MIagdY','config','28SmZdIK','requiresContent','isCollapsed','hasContent','25091bAegFy','isEmpty','enabledCommandsIds','getItems','3530ZmLdTZ','267752WUjjsU','name','refresh','editor','change:isEnabled','includes','showUI','2162855mFqcet','add','_hasContext','_commandDefinitions','ai.aiAssistant.disabledElements','concat','execute','4CEKfPa','getSelectedBlocks','change:_hasContext','commands','1344876NhOVXO','plugins','getRanges','from','940818tbTQQn','custom','867176eVXXMV','set','reduce','model','isEnabled','length','getFirstRange','element'];_0x5e76=function(){return _0x5da94f;};return _0x5e76();}function K(_0x2727ed,_0x2a988c){const _0x9603ea=_0x1825f6,_0x297f7f=new Set();for(const _0x575c48 of _0x2727ed)(_0x2a988c||!0x1===_0x575c48[_0x9603ea(0x17b)])&&_0x297f7f[_0x9603ea(0x18b)](_0x575c48['id']);return Array[_0x9603ea(0x198)](_0x297f7f);}
23
+ const _0x3af5fc=_0x549b;(function(_0x1d90d8,_0x19df75){const _0x3e4fb1=_0x549b,_0x492f89=_0x1d90d8();while(!![]){try{const _0x560e95=parseInt(_0x3e4fb1(0x15f))/0x1*(parseInt(_0x3e4fb1(0x169))/0x2)+parseInt(_0x3e4fb1(0x16a))/0x3*(parseInt(_0x3e4fb1(0x15d))/0x4)+parseInt(_0x3e4fb1(0x167))/0x5+parseInt(_0x3e4fb1(0x17f))/0x6+parseInt(_0x3e4fb1(0x166))/0x7+-parseInt(_0x3e4fb1(0x171))/0x8*(parseInt(_0x3e4fb1(0x17d))/0x9)+-parseInt(_0x3e4fb1(0x163))/0xa;if(_0x560e95===_0x19df75)break;else _0x492f89['push'](_0x492f89['shift']());}catch(_0xc6e245){_0x492f89['push'](_0x492f89['shift']());}}}(_0x1023,0x3eab3));import{Command as _0xaa8d08}from'ckeditor5/src/core.js';function _0x1023(){const _0x2a6374=['535664UozIyr','get','showUI','reduce','set','change:_hasContext','change:isEnabled','includes','commands','element','isEnabled','editor','63aSvWCe','_hasContext','2190660fakymn','_commandDefinitions','requiresContent','enabledCommandsIds','custom','refresh','length','getItems','model','plugins','execute','name','4dBBije','document','165WHGpaN','getRanges','from','getFirstRange','11787740YOWAzg','getSelectedBlocks','selection','2579927XGlbtO','2434080QINlAU','concat','3634hyszQC','1151637hxXvgf','isEmpty','config','isCollapsed','ai.aiAssistant.disabledElements','add','hasContent'];_0x1023=function(){return _0x2a6374;};return _0x1023();}function _0x549b(_0x2c5701,_0x129336){const _0x10233e=_0x1023();return _0x549b=function(_0x549b23,_0x297b80){_0x549b23=_0x549b23-0x152;let _0x306224=_0x10233e[_0x549b23];return _0x306224;},_0x549b(_0x2c5701,_0x129336);}import _0x4f2cc0 from'../aiassistantui.js';export default class j extends _0xaa8d08{constructor(_0x19c8ac,_0xb1321d){const _0xcd34b5=_0x549b;super(_0x19c8ac),this[_0xcd34b5(0x152)]=_0xb1321d?_0xb1321d[_0xcd34b5(0x174)]((_0x2902d9,_0x2739a2)=>_0x2902d9[_0xcd34b5(0x168)](_0x2739a2[_0xcd34b5(0x179)]),new Array()):[],this[_0xcd34b5(0x175)](_0xcd34b5(0x154),[]),this['on'](_0xcd34b5(0x176),(_0x332b90,_0x5d0a75,_0x4c30e5)=>{const _0x56b091=_0xcd34b5;this[_0x56b091(0x17b)]&&(this[_0x56b091(0x154)]=K(this[_0x56b091(0x152)],_0x4c30e5));}),this[_0xcd34b5(0x175)](_0xcd34b5(0x17e),!0x1),this['on'](_0xcd34b5(0x177),(_0x154ca2,_0x329406,_0x18b52a)=>{const _0x5671a=_0xcd34b5;this[_0x5671a(0x154)]=_0x18b52a?K(this[_0x5671a(0x152)],this[_0x5671a(0x17e)]):[];});}[_0x3af5fc(0x156)](){const _0x1526b4=_0x3af5fc,_0x8179f2=this[_0x1526b4(0x17c)][_0x1526b4(0x159)];this[_0x1526b4(0x17e)]=function(_0x41bbe0){const _0x2b8ced=_0x1526b4,_0x1049e6=_0x41bbe0[_0x2b8ced(0x15e)][_0x2b8ced(0x165)];return _0x1049e6[_0x2b8ced(0x16d)]?0x0!==[..._0x1049e6[_0x2b8ced(0x164)]()][_0x2b8ced(0x157)]&&![..._0x1049e6[_0x2b8ced(0x164)]()][0x0][_0x2b8ced(0x16b)]:!!_0x41bbe0[_0x2b8ced(0x170)](_0x1049e6[_0x2b8ced(0x162)]());}(_0x8179f2);const _0x3facb3=_0x8179f2[_0x1526b4(0x15e)][_0x1526b4(0x165)],_0x457a18=this[_0x1526b4(0x17c)][_0x1526b4(0x16c)][_0x1526b4(0x172)](_0x1526b4(0x16e));for(const _0x533a5e of _0x3facb3[_0x1526b4(0x160)]())for(const _0x53effd of _0x533a5e[_0x1526b4(0x158)]())if(_0x53effd['is'](_0x1526b4(0x17a))&&_0x457a18[_0x1526b4(0x178)](_0x53effd[_0x1526b4(0x15c)]))return void(this[_0x1526b4(0x17b)]=!0x1);this[_0x1526b4(0x17b)]=!0x0;}[_0x3af5fc(0x15b)](_0x554e4c='',_0x460219='',_0x2141cb=_0x3af5fc(0x155)){const _0x39a4ce=_0x3af5fc;this[_0x39a4ce(0x17c)][_0x39a4ce(0x15a)][_0x39a4ce(0x172)](_0x4f2cc0)[_0x39a4ce(0x173)](_0x554e4c,_0x460219,_0x2141cb);}}function K(_0xaa9170,_0x918cd1){const _0x41b54d=_0x3af5fc,_0x509353=new Set();for(const _0x4cbd4e of _0xaa9170)(_0x918cd1||!0x1===_0x4cbd4e[_0x41b54d(0x153)])&&_0x509353[_0x41b54d(0x16f)](_0x4cbd4e['id']);return Array[_0x41b54d(0x161)](_0x509353);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2cbe2a,_0x1e49a9,_0x536c6b){const t=_0x2cbe2a['t'];switch(_0x1e49a9){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'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x536c6b);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',_0x536c6b);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x536c6b);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'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');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'},_0x536c6b);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 _0x1e49a9;}}
23
+ export function getTranslation(_0x36855f,_0x8d6a9d,_0x38b0b5){const t=_0x36855f['t'];switch(_0x8d6a9d){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'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x38b0b5);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',_0x38b0b5);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x38b0b5);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'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');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'},_0x38b0b5);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 _0x8d6a9d;}}