@ckeditor/ckeditor5-ai 0.0.0-nightly-20240415.0 → 0.0.0-nightly-20240417.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.
- package/build/ai.js +6 -6
- package/lang/contexts.json +4 -0
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c3424=_0x5ed3;(function(_0x3b1e8e,_0x2e9753){const _0x9e5f84=_0x5ed3,_0x41500b=_0x3b1e8e();while(!![]){try{const _0x471c9b=-parseInt(_0x9e5f84(0x1b8))/0x1*(-parseInt(_0x9e5f84(0x1c1))/0x2)+-parseInt(_0x9e5f84(0x1ac))/0x3+parseInt(_0x9e5f84(0x1df))/0x4*(-parseInt(_0x9e5f84(0x1c0))/0x5)+-parseInt(_0x9e5f84(0x197))/0x6+parseInt(_0x9e5f84(0x1bc))/0x7+-parseInt(_0x9e5f84(0x19b))/0x8+parseInt(_0x9e5f84(0x19d))/0x9;if(_0x471c9b===_0x2e9753)break;else _0x41500b['push'](_0x41500b['shift']());}catch(_0x2fdbdc){_0x41500b['push'](_0x41500b['shift']());}}}(_0x35d5,0x3e74c));import{global as _0x21c4cf}from'ckeditor5/src/utils.js';function _0x35d5(){const _0x558944=['2QMgbzt','left','text/plain','appendChild','clipboard','lastElementChild','listenTo','focus','absolute','check','ClipboardItem','value','ck-ai-form__content-field','remove','scrollHeight','loaderView','set','isVisible','setContent','createElement','ck-ai-form__content-area-wrapper','addRange','getSelection','_copyHTMLToClipboard','ck-ai-form__content-area','change:value','setEndBefore','copyButtonView','ck-ai-form__loader','scrollTo','4doJqoy','ck-reset_all-excluded','ck-hidden','createRange','setTemplate','bindTemplate','AI\x20is\x20writing...','ck-ai-form__copy-button','position','ck-ai-form__content-area--processing','textContent','removeAllRanges','icon','1850700XUXxke','.ck-ai-form__loader','Copy','text/html','2654776IzxLwv','smooth','5181768ZnXeYj','_createCopyButton','locale','change:isProcessing','<span>]</span>','<span>[</span>','execute','isEnabled','write','innerHTML','\x20ck-ai-form__copy-button--copied','render','div','wheel','setStartAfter','712854qazVmW','body','firstElementChild','bind','ck-content','isProcessing','element','appendLoader','mousedown','-9999px','_createLoader','querySelector','323510zsDWRW','contentFieldView','class','style','2811032wPiHjl','copy','execCommand','ck-ai-form__copy-button-wrapper','835515aPotuq'];_0x35d5=function(){return _0x558944;};return _0x35d5();}import{View as _0x1ff269,ButtonView as _0xd0767c,SpinnerView as _0x5a2cb4}from'ckeditor5/src/ui.js';import _0x35c981 from'../../../theme/icons/copy.svg';import{getTranslation as _0x35f55f}from'../../utils/common-translations.js';import{icons as _0x358fad}from'ckeditor5/src/core.js';export default class nt extends _0x1ff269{constructor(_0x9cc491,_0x5b3b94=''){const _0x20ed23=_0x5ed3;super(_0x9cc491),this[_0x20ed23(0x1d1)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x2b9b28=this[_0x20ed23(0x1e4)];this[_0x20ed23(0x1b9)]=new ContentFieldView(_0x9cc491,_0x5b3b94),this[_0x20ed23(0x1dc)]=this[_0x20ed23(0x19e)](),this[_0x20ed23(0x1e3)]({'tag':_0x20ed23(0x1a9),'attributes':{'class':['ck',_0x20ed23(0x1d5),_0x2b9b28['if'](_0x20ed23(0x1d2),_0x20ed23(0x1e1),_0x12d77d=>!_0x12d77d)],'tabindex':'-1'},'children':[{'tag':_0x20ed23(0x1a9),'attributes':{'class':['ck',_0x20ed23(0x1d9),_0x2b9b28['if'](_0x20ed23(0x1b1),_0x20ed23(0x193))]},'children':[this[_0x20ed23(0x1b9)],{'tag':_0x20ed23(0x1a9),'attributes':{'class':['ck',_0x20ed23(0x1bf)]},'children':[this[_0x20ed23(0x1dc)]]}]}]});}[_0x4c3424(0x1a8)](){const _0x2b7b12=_0x4c3424;super[_0x2b7b12(0x1a8)](),this[_0x2b7b12(0x1cc)]&&this[_0x2b7b12(0x1b9)][_0x2b7b12(0x1d3)](this[_0x2b7b12(0x1cc)]);let _0x45cb53=!0x1;this['on'](_0x2b7b12(0x1da),(_0x378c68,_0x364927,_0x43032c)=>{const _0x394219=_0x2b7b12,_0x29b7a4=!this[_0x394219(0x1b9)][_0x394219(0x1b2)][_0x394219(0x1b7)](_0x394219(0x198));this[_0x394219(0x1b9)][_0x394219(0x1d3)](_0x43032c),this[_0x394219(0x1b1)]&&_0x29b7a4&&!_0x45cb53&&this[_0x394219(0x1b2)][_0x394219(0x1de)]({'top':this[_0x394219(0x1b2)][_0x394219(0x1cf)],'behavior':_0x394219(0x19c)});}),this['on'](_0x2b7b12(0x1a0),(_0x285596,_0x491666,_0x12b1e2)=>{const _0x3f8f23=_0x2b7b12;_0x45cb53=!0x1,_0x12b1e2?(this[_0x3f8f23(0x1cc)]=null,this[_0x3f8f23(0x1b9)][_0x3f8f23(0x1b3)]()):this[_0x3f8f23(0x1cc)]||this[_0x3f8f23(0x1b9)][_0x3f8f23(0x1d3)]('');}),this[_0x2b7b12(0x1c7)](this[_0x2b7b12(0x1b2)],_0x2b7b12(0x1aa),()=>{_0x45cb53=!0x0;}),this[_0x2b7b12(0x1c7)](this[_0x2b7b12(0x1b2)],_0x2b7b12(0x1b4),()=>{_0x45cb53=!0x0;});}[_0x4c3424(0x1c8)](){const _0x36e64f=_0x4c3424;this[_0x36e64f(0x1b2)][_0x36e64f(0x1c8)]();}[_0x4c3424(0x19e)](){const _0x11232=_0x4c3424,_0x1bed59=this[_0x11232(0x19f)],_0x5e5804=new _0xd0767c(this[_0x11232(0x19f)]),_0x837b6e=_0x11232(0x191);return _0x5e5804[_0x11232(0x1d1)]({'label':_0x35f55f(_0x1bed59,_0x11232(0x199)),'icon':_0x35c981,'class':_0x837b6e,'tooltip':!0x0}),_0x5e5804[_0x11232(0x1af)](_0x11232(0x1d2))['to'](this,_0x11232(0x1cc),_0x6f9258=>!!_0x6f9258),_0x5e5804[_0x11232(0x1af)](_0x11232(0x1a4))['to'](this,_0x11232(0x1b1),_0x45db01=>!_0x45db01),_0x5e5804['on'](_0x11232(0x1a3),()=>{const _0x5ec4b8=_0x11232;this[_0x5ec4b8(0x1d8)](this[_0x5ec4b8(0x1b9)][_0x5ec4b8(0x1b2)]),_0x5e5804[_0x5ec4b8(0x196)]=_0x358fad[_0x5ec4b8(0x1ca)],_0x5e5804[_0x5ec4b8(0x1ba)]=_0x837b6e+_0x5ec4b8(0x1a7),this[_0x5ec4b8(0x1c8)](),setTimeout(()=>{const _0x33eeb3=_0x5ec4b8;_0x5e5804[_0x33eeb3(0x196)]=_0x35c981,_0x5e5804[_0x33eeb3(0x1ba)]=_0x837b6e;},0x3e8);}),_0x5e5804;}[_0x4c3424(0x1d8)](_0x4248e1){const _0x31fbc9=_0x4c3424,{window:_0x592f38,document:_0x1b8b44}=_0x21c4cf;if(_0x592f38[_0x31fbc9(0x1cb)]){const {Blob:_0x51576f,ClipboardItem:_0xdcac6a}=_0x592f38,_0x5570eb=[new _0xdcac6a({'text/html':new _0x51576f([_0x4248e1[_0x31fbc9(0x1a6)]],{'type':_0x31fbc9(0x19a)}),'text/plain':new _0x51576f([_0x4248e1[_0x31fbc9(0x194)]||''],{'type':_0x31fbc9(0x1c3)})})];navigator[_0x31fbc9(0x1c5)][_0x31fbc9(0x1a5)](_0x5570eb);}else{const _0x4e89ac=_0x1b8b44[_0x31fbc9(0x1d4)](_0x31fbc9(0x1a9));_0x4e89ac[_0x31fbc9(0x1bb)][_0x31fbc9(0x192)]=_0x31fbc9(0x1c9),_0x4e89ac[_0x31fbc9(0x1bb)][_0x31fbc9(0x1c2)]=_0x31fbc9(0x1b5),_0x4e89ac[_0x31fbc9(0x1a6)]=_0x31fbc9(0x1a2)+_0x4248e1[_0x31fbc9(0x1a6)]+_0x31fbc9(0x1a1),_0x1b8b44[_0x31fbc9(0x1ad)][_0x31fbc9(0x1c4)](_0x4e89ac);const _0x5add2a=_0x1b8b44[_0x31fbc9(0x1e2)]();_0x5add2a[_0x31fbc9(0x1ab)](_0x4e89ac[_0x31fbc9(0x1ae)]),_0x5add2a[_0x31fbc9(0x1db)](_0x4e89ac[_0x31fbc9(0x1c6)]);const _0xeed04f=_0x592f38[_0x31fbc9(0x1d7)]();_0xeed04f[_0x31fbc9(0x195)](),_0xeed04f[_0x31fbc9(0x1d6)](_0x5add2a),_0x1b8b44[_0x31fbc9(0x1be)](_0x31fbc9(0x1bd)),_0x4e89ac[_0x31fbc9(0x1ce)]();}}}function _0x5ed3(_0x21ffab,_0x37112b){const _0x35d527=_0x35d5();return _0x5ed3=function(_0x5ed3f2,_0x1d9751){_0x5ed3f2=_0x5ed3f2-0x191;let _0x3a7064=_0x35d527[_0x5ed3f2];return _0x3a7064;},_0x5ed3(_0x21ffab,_0x37112b);}export class ContentFieldView extends _0x1ff269{constructor(_0x194210,_0x11f442=''){const _0x2cc3c3=_0x4c3424;super(_0x194210),this[_0x2cc3c3(0x1d0)]=this[_0x2cc3c3(0x1b6)](),this[_0x2cc3c3(0x1e3)]({'tag':_0x2cc3c3(0x1a9),'attributes':{'class':['ck',_0x2cc3c3(0x1b0),_0x11f442,_0x2cc3c3(0x1e0),_0x2cc3c3(0x1cd)]}});}[_0x4c3424(0x1d3)](_0x20168d){const _0x1ed2da=_0x4c3424;this[_0x1ed2da(0x1b2)][_0x1ed2da(0x1a6)]=_0x20168d;}[_0x4c3424(0x1b3)](){const _0x3e80e6=_0x4c3424;this[_0x3e80e6(0x1b2)][_0x3e80e6(0x1c4)](this[_0x3e80e6(0x1d0)][_0x3e80e6(0x1b2)]);}[_0x4c3424(0x1b6)](){const _0xca0fe1=_0x4c3424,_0x5163cd=new _0x1ff269(),_0x31da08=this[_0xca0fe1(0x19f)],_0x46cdda=new _0x5a2cb4();return _0x46cdda[_0xca0fe1(0x1d2)]=!0x0,_0x5163cd[_0xca0fe1(0x1e3)]({'tag':_0xca0fe1(0x1a9),'attributes':{'class':['ck',_0xca0fe1(0x1dd)]},'children':[_0x46cdda,{'text':_0x35f55f(_0x31da08,_0xca0fe1(0x1e5))}]}),_0x5163cd[_0xca0fe1(0x1a8)](),_0x5163cd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x29bc7c,_0x2c2691){const _0x10c282=_0x1286,_0x56af16=_0x29bc7c();while(!![]){try{const _0x4bce68=-parseInt(_0x10c282(0x160))/0x1+-parseInt(_0x10c282(0x15d))/0x2+parseInt(_0x10c282(0x161))/0x3+parseInt(_0x10c282(0x15c))/0x4+-parseInt(_0x10c282(0x15e))/0x5*(-parseInt(_0x10c282(0x159))/0x6)+parseInt(_0x10c282(0x155))/0x7+-parseInt(_0x10c282(0x156))/0x8*(parseInt(_0x10c282(0x15b))/0x9);if(_0x4bce68===_0x2c2691)break;else _0x56af16['push'](_0x56af16['shift']());}catch(_0x5d0db3){_0x56af16['push'](_0x56af16['shift']());}}}(_0x2836,0x760cb));import{View as _0x17a37d,IconView as _0x12f49c}from'ckeditor5/src/ui.js';function _0x1286(_0x51c290,_0x30b494){const _0x28369e=_0x2836();return _0x1286=function(_0x128661,_0x172203){_0x128661=_0x128661-0x154;let _0x34d26f=_0x28369e[_0x128661];return _0x34d26f;},_0x1286(_0x51c290,_0x30b494);}import _0x1dafe0 from'../../../theme/icons/error.svg';export default class mt extends _0x17a37d{constructor(_0x1204e6,_0x482312=''){const _0x1e3002=_0x1286;super(_0x1204e6);const _0x35fc18=new _0x12f49c(),_0x504769=this[_0x1e3002(0x157)];this[_0x1e3002(0x15f)](_0x1e3002(0x15a),_0x482312),_0x35fc18[_0x1e3002(0x163)]=_0x1dafe0,this[_0x1e3002(0x158)]({'tag':_0x1e3002(0x162),'attributes':{'class':['ck',_0x1e3002(0x154)]},'children':[_0x35fc18,{'text':_0x504769['to'](_0x1e3002(0x15a))}]});}}function _0x2836(){const _0x5aa5cc=['bindTemplate','setTemplate','737376oaWGHy','text','545193SBEahD','713520EQKTiy','987492sHauGK','15raitFQ','set','627335hslnlv','1816404JHJDPn','div','content','ck-ai-form__error','4436649IWxXbx','24nJcUXY'];_0x2836=function(){return _0x5aa5cc;};return _0x2836();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3d23(_0xa25c62,_0x4e4e95){const _0x4015ce=_0x4015();return _0x3d23=function(_0x3d23b5,_0x17d1e4){_0x3d23b5=_0x3d23b5-0xb2;let _0x22d5b0=_0x4015ce[_0x3d23b5];return _0x22d5b0;},_0x3d23(_0xa25c62,_0x4e4e95);}function _0x4015(){const _0x7cea9f=['399745JGfWOu','width','update','_createShowHistoryButton','left','render','enter','target','value','submit','maxRows','6061016raQJxz','showHistoryButtonView','element','ck-ai-form__toggle-history','6600414mBocdd','children','4380nBWuHJ','window','rtl','set','focusableChildren','queryView','uiLanguageDirection','keystrokes','History','163612uTtQOh','submitButtonView','excludeScrollbarsAndBorders','isVisible','focusCycler','history','filteredView','style','5868bhkzlw','Submit','isOn','27pINeID','764soeOCp','execute','fieldView','isEnabled','minRows','focus','fire','7886312vqhrmH','isEmpty','right','fieldWrapperChildren','requestAnimationFrame','bind','add','focusLast','19210kkourZ','resultsView','ck-ai-form__submit','_createSubmitButton','locale','focusFirst'];_0x4015=function(){return _0x7cea9f;};return _0x4015();}const _0x10f593=_0x3d23;(function(_0x4e7f92,_0x23375b){const _0x3deefd=_0x3d23,_0x566a02=_0x4e7f92();while(!![]){try{const _0x1fee0e=parseInt(_0x3deefd(0xdb))/0x1+parseInt(_0x3deefd(0xba))/0x2*(-parseInt(_0x3deefd(0xc5))/0x3)+-parseInt(_0x3deefd(0xc6))/0x4*(-parseInt(_0x3deefd(0xd5))/0x5)+-parseInt(_0x3deefd(0xea))/0x6+parseInt(_0x3deefd(0xcd))/0x7+parseInt(_0x3deefd(0xe6))/0x8+parseInt(_0x3deefd(0xc2))/0x9*(-parseInt(_0x3deefd(0xec))/0xa);if(_0x1fee0e===_0x23375b)break;else _0x566a02['push'](_0x566a02['shift']());}catch(_0x177f81){_0x566a02['push'](_0x566a02['shift']());}}}(_0x4015,0xdaba7));import{Rect as _0x2811db,global as _0x49dbf0,isVisible as _0x2a573f}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x5b35f1,ButtonView as _0x270d3c}from'ckeditor5/src/ui.js';import{icons as _0x3eb757}from'ckeditor5/src/core.js';import{getTranslation as _0x487390}from'../../utils/common-translations.js';import _0x3a16c5 from'../../../theme/icons/submit.svg';export default class pt extends _0x5b35f1{constructor(_0x5994ef,_0xba9c54){const _0x4d9efb=_0x3d23;super(_0x5994ef,_0xba9c54),this[_0x4d9efb(0xb6)][_0x4d9efb(0xc8)][_0x4d9efb(0xca)]=0x1,this[_0x4d9efb(0xb6)][_0x4d9efb(0xc8)][_0x4d9efb(0xe5)]=0x3,this[_0x4d9efb(0xbb)]=this[_0x4d9efb(0xd8)](),this[_0x4d9efb(0xe7)]=this[_0x4d9efb(0xde)](),this[_0x4d9efb(0xb5)][_0x4d9efb(0xd3)](this[_0x4d9efb(0xe7)],0x1),this[_0x4d9efb(0xb5)][_0x4d9efb(0xd3)](this[_0x4d9efb(0xbb)]);}[_0x10f593(0xe0)](){const _0x518e1b=_0x10f593;super[_0x518e1b(0xe0)](),this[_0x518e1b(0xb6)][_0x518e1b(0xd0)][_0x518e1b(0xd3)](this[_0x518e1b(0xe7)]),this[_0x518e1b(0xeb)][_0x518e1b(0xd3)](this[_0x518e1b(0xbb)]),this[_0x518e1b(0xb8)][_0x518e1b(0xb4)](_0x518e1b(0xe1),(_0x5a2a0e,_0x47f642)=>{const _0x2cdbdf=_0x518e1b;_0x5a2a0e[_0x2cdbdf(0xe2)]==this[_0x2cdbdf(0xb6)][_0x2cdbdf(0xc8)][_0x2cdbdf(0xe8)]&&(this[_0x2cdbdf(0xe4)](),_0x47f642());});}[_0x10f593(0xd8)](){const _0x110857=_0x10f593,_0x1c0b00=new _0x270d3c(this[_0x110857(0xd9)]),_0x7d08e7=this[_0x110857(0xd9)];return _0x1c0b00[_0x110857(0xb4)]({'icon':_0x3a16c5,'label':_0x487390(_0x7d08e7,_0x110857(0xc3)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x110857(0xd7)}),_0x1c0b00['on'](_0x110857(0xc7),()=>{const _0x150a1b=_0x110857;this[_0x150a1b(0xe4)]();}),_0x1c0b00[_0x110857(0xd2)](_0x110857(0xc9))['to'](this[_0x110857(0xb6)][_0x110857(0xc8)],_0x110857(0xce),this,_0x110857(0xc9),(_0x3e9cbc,_0x4e0f5b)=>!_0x3e9cbc&&_0x4e0f5b),_0x1c0b00;}[_0x10f593(0xde)](){const _0x52abaf=_0x10f593,_0x153d90=new _0x270d3c(this[_0x52abaf(0xd9)]),_0x3d1720=this[_0x52abaf(0xd6)],_0x228d83=this[_0x52abaf(0xd9)];_0x153d90[_0x52abaf(0xb4)]({'label':_0x487390(_0x228d83,_0x52abaf(0xb9)),'withText':!0x1,'icon':_0x3eb757[_0x52abaf(0xbf)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x52abaf(0xe9)}),_0x153d90[_0x52abaf(0xd2)](_0x52abaf(0xc4))['to'](_0x3d1720,_0x52abaf(0xbd)),_0x153d90[_0x52abaf(0xd2)](_0x52abaf(0xc9))['to'](this,_0x52abaf(0xc9)),_0x153d90['on'](_0x52abaf(0xc7),()=>{const _0x1ccd89=_0x52abaf;_0x3d1720[_0x1ccd89(0xbd)]=!_0x3d1720[_0x1ccd89(0xbd)],_0x3d1720[_0x1ccd89(0xbd)]?this[_0x1ccd89(0xc0)][_0x1ccd89(0xcb)]():this[_0x1ccd89(0xcb)]();});const _0x41a50a=()=>{const _0x5df106=_0x52abaf;_0x49dbf0[_0x5df106(0xb2)][_0x5df106(0xd1)](()=>{const _0x21a9ad=_0x5df106;if(_0x2a573f(this[_0x21a9ad(0xe8)])){const _0xddec25=new _0x2811db(this[_0x21a9ad(0xb6)][_0x21a9ad(0xc8)][_0x21a9ad(0xe8)]),_0x43570c=_0xddec25[_0x21a9ad(0xdc)],_0x8d7af7=_0x21a9ad(0xb3)===_0x228d83[_0x21a9ad(0xb7)]?_0x21a9ad(0xdf):_0x21a9ad(0xcf);_0xddec25[_0x21a9ad(0xbc)](),_0x153d90[_0x21a9ad(0xe8)][_0x21a9ad(0xc1)][_0x8d7af7]=_0x43570c-_0xddec25[_0x21a9ad(0xdc)]+0x1+'px';}});};return this[_0x52abaf(0xb6)][_0x52abaf(0xc8)]['on'](_0x52abaf(0xdd),_0x41a50a),this['on'](_0x52abaf(0xe0),_0x41a50a),_0x153d90;}[_0x10f593(0xe4)](){const _0x2a2afc=_0x10f593,_0x570233=this[_0x2a2afc(0xb6)][_0x2a2afc(0xc8)][_0x2a2afc(0xe8)][_0x2a2afc(0xe3)];this[_0x2a2afc(0xcc)](_0x2a2afc(0xe4),_0x570233);}[_0x10f593(0xcb)](_0x50d935){const _0x45e8ad=_0x10f593;-0x1===_0x50d935?this[_0x45e8ad(0xbe)][_0x45e8ad(0xd4)]():this[_0x45e8ad(0xbe)][_0x45e8ad(0xda)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51b81d=_0x4936;function _0x4936(_0x1f8382,_0x8957d1){const _0x581225=_0x5812();return _0x4936=function(_0x4936cf,_0x9b1325){_0x4936cf=_0x4936cf-0x170;let _0x5abbd2=_0x581225[_0x4936cf];return _0x5abbd2;},_0x4936(_0x1f8382,_0x8957d1);}(function(_0x460317,_0x9fc120){const _0x2f9bb1=_0x4936,_0x453489=_0x460317();while(!![]){try{const _0x48d15c=parseInt(_0x2f9bb1(0x187))/0x1+-parseInt(_0x2f9bb1(0x174))/0x2*(-parseInt(_0x2f9bb1(0x189))/0x3)+parseInt(_0x2f9bb1(0x18b))/0x4*(-parseInt(_0x2f9bb1(0x173))/0x5)+-parseInt(_0x2f9bb1(0x193))/0x6+-parseInt(_0x2f9bb1(0x183))/0x7+parseInt(_0x2f9bb1(0x179))/0x8+-parseInt(_0x2f9bb1(0x185))/0x9;if(_0x48d15c===_0x9fc120)break;else _0x453489['push'](_0x453489['shift']());}catch(_0x49f2d7){_0x453489['push'](_0x453489['shift']());}}}(_0x5812,0xa9dd7));function _0x5812(){const _0x44a31f=['AI_','label','isVisible','locale','4770PnTyiD','_createButton','Try\x20again','extendTemplate','20755AabQJh','2UHHlrx','ck-hidden','tryAgainButton','_CONTENT','Stop','8512992ypoOJc','ck-ai-form__toolbar','replace','toUpperCase','bind','REPLACE','bindTemplate','set','insertButton','addMany','3397723nrZUSn','items','18445446DiUjJf','replaceButton','1385683ZXTUnV','ck-button-action','2855487lMYgsq','stopButton','164ahcprT','insert','mainAction','Insert\x20below'];_0x5812=function(){return _0x44a31f;};return _0x5812();}import{ToolbarView as _0x1691b7,ButtonView as _0x4d43e1}from'ckeditor5/src/ui.js';import{getTranslation as _0x2192d8}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x51b81d(0x17b),'INSERT':_0x51b81d(0x18c)};export default class Tt extends _0x1691b7{constructor(_0x49f903){const _0x4cac2f=_0x51b81d;super(_0x49f903),this[_0x4cac2f(0x180)](_0x4cac2f(0x191),!0x1),this[_0x4cac2f(0x180)](_0x4cac2f(0x18d),AIFormToolbarViewMainActionLabel[_0x4cac2f(0x17e)]),this[_0x4cac2f(0x186)]=this[_0x4cac2f(0x170)]('',_0x4cac2f(0x188)),this[_0x4cac2f(0x186)][_0x4cac2f(0x17d)](_0x4cac2f(0x190))['to'](this,_0x4cac2f(0x18d),_0x124712=>_0x2192d8(_0x49f903,_0x4cac2f(0x18f)+_0x124712[_0x4cac2f(0x17c)]()+_0x4cac2f(0x177))),this[_0x4cac2f(0x181)]=this[_0x4cac2f(0x170)](_0x2192d8(_0x49f903,_0x4cac2f(0x18e))),this[_0x4cac2f(0x176)]=this[_0x4cac2f(0x170)](_0x2192d8(_0x49f903,_0x4cac2f(0x171))),this[_0x4cac2f(0x18a)]=this[_0x4cac2f(0x170)](_0x2192d8(_0x49f903,_0x4cac2f(0x178)));const _0x4ae5c7=this[_0x4cac2f(0x17f)];this[_0x4cac2f(0x172)]({'attributes':{'class':[_0x4cac2f(0x17a),_0x4ae5c7['if'](_0x4cac2f(0x191),_0x4cac2f(0x175),_0xb0d8df=>!_0xb0d8df)]}}),this[_0x4cac2f(0x184)][_0x4cac2f(0x182)]([this[_0x4cac2f(0x186)],this[_0x4cac2f(0x181)],this[_0x4cac2f(0x176)],this[_0x4cac2f(0x18a)]]);}[_0x51b81d(0x170)](_0x266ac7,_0x93d77b){const _0x23df7e=_0x51b81d,_0x510fa1=new _0x4d43e1(this[_0x23df7e(0x192)]);return _0x510fa1[_0x23df7e(0x180)]({'label':_0x266ac7,'class':_0x93d77b||'','isVisible':!0x0,'withText':!0x0}),_0x510fa1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e8160=_0x34cd;(function(_0x5e271e,_0x4f41cd){const _0x41d74e=_0x34cd,_0x31258f=_0x5e271e();while(!![]){try{const _0x56baaf=parseInt(_0x41d74e(0x1e7))/0x1*(parseInt(_0x41d74e(0x218))/0x2)+parseInt(_0x41d74e(0x235))/0x3*(parseInt(_0x41d74e(0x1e2))/0x4)+parseInt(_0x41d74e(0x209))/0x5*(parseInt(_0x41d74e(0x1f9))/0x6)+parseInt(_0x41d74e(0x1e6))/0x7*(-parseInt(_0x41d74e(0x230))/0x8)+-parseInt(_0x41d74e(0x224))/0x9+-parseInt(_0x41d74e(0x21d))/0xa+parseInt(_0x41d74e(0x201))/0xb;if(_0x56baaf===_0x4f41cd)break;else _0x31258f['push'](_0x31258f['shift']());}catch(_0x676c78){_0x31258f['push'](_0x31258f['shift']());}}}(_0x3cc4,0x5cdb8));import{FocusTracker as _0x40ef90,KeystrokeHandler as _0x55703c}from'ckeditor5/src/utils.js';import{View as _0xeb792c,FocusCycler as _0x1394db,createLabeledTextarea as _0x1eacee}from'ckeditor5/src/ui.js';import _0x255b46,{AIFormToolbarViewMainActionLabel as _0xf5a778}from'./aiformtoolbarview.js';import _0x5037a3 from'./aiformcontentarea.js';function _0x3cc4(){const _0x27c8da=['isVisible','div','insertContentBelow','ck-ai-form','64OSVDlc','set','bindTemplate','_createToolbar','1106OSqQZN','2qaHzyU','shift\x20+\x20tab','bind','stopButton','_createPromptView','focusFirst','startProcessing','contentArea','setTemplate','replaceButton','backwardCycle','stopProcessing','submitPrompt','clear','isError','insertButton','_focusables','render','1919382rYSTwG','_promptHistory','isProcessing','label','delegate','queryView','REPLACE','submit','11492745nckVnM','prompt','keystrokes','mainAction','trim','tab','Ask\x20AI\x20to\x20edit\x20or\x20generate','forwardCycle','5PMgvYv','fire','execute','errorView','reset','tryAgainButton','tryAgainEvent','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','locale','toolbar','focusPrevious','element','promptView','historyGroupView','focusLast','170276uUzHPA','_createHistoryView','createCollection','search','value','4901240DmnoPn','high','listenTo','text','focusTracker','items','Empty\x20history','6112602ZyEDRD','add','Ask\x20AI\x20to\x20improve\x20generated\x20text','stop','AI_ERROR_FAILED','finishProcessing','focus','replaceContent','fieldView','copyButtonView','focusCycler','isEnabled','31256BzHhpE','clearHistory','ck-ai-form-content','bindTo','ck-hidden','118497PJIQuL','handleError','focusNext'];_0x3cc4=function(){return _0x27c8da;};return _0x3cc4();}import _0x2b96ff from'./aiformerrorview.js';import _0x54ec4a from'./aiformpromptview.js';import _0x88dc15 from'./aihistorylistview.js';import _0x114ed6 from'./aihistorylistitemview.js';import _0x1e51a3 from'./prompthistory.js';import{getTranslation as _0x138f7b}from'../../utils/common-translations.js';import{escape as _0x28f6ae}from'lodash-es';function _0x34cd(_0x13ffad,_0x4c8016){const _0x3cc452=_0x3cc4();return _0x34cd=function(_0x34cd24,_0xb71795){_0x34cd24=_0x34cd24-0x1e2;let _0x1003ec=_0x3cc452[_0x34cd24];return _0x1003ec;},_0x34cd(_0x13ffad,_0x4c8016);}export default class x extends _0xeb792c{constructor(_0xfd66bd,_0x17a086,_0x4485f2=''){const _0x4e1d3f=_0x34cd;super(_0xfd66bd),this[_0x4e1d3f(0x1e3)](_0x4e1d3f(0x22f),!0x0),this[_0x4e1d3f(0x1e3)](_0x4e1d3f(0x1fb),!0x1),this[_0x4e1d3f(0x1e3)](_0x4e1d3f(0x202),''),this[_0x4e1d3f(0x1e3)](_0x4e1d3f(0x21c),''),this[_0x4e1d3f(0x1e3)](_0x4e1d3f(0x1f5),!0x1),this[_0x4e1d3f(0x1e3)](_0x4e1d3f(0x204),_0xf5a778[_0x4e1d3f(0x1ff)]),this[_0x4e1d3f(0x1fa)]=new _0x1e51a3(),this[_0x4e1d3f(0x20c)]=new _0x2b96ff(_0xfd66bd),this[_0x4e1d3f(0x1ee)]=new _0x5037a3(_0xfd66bd,_0x4485f2),this[_0x4e1d3f(0x1ee)][_0x4e1d3f(0x1e9)](_0x4e1d3f(0x1fb))['to'](this),this[_0x4e1d3f(0x1ee)][_0x4e1d3f(0x1e9)](_0x4e1d3f(0x21c))['to'](this),this[_0x4e1d3f(0x212)]=this[_0x4e1d3f(0x1e5)](),this[_0x4e1d3f(0x212)][_0x4e1d3f(0x1e9)](_0x4e1d3f(0x204))['to'](this),this[_0x4e1d3f(0x215)]=this[_0x4e1d3f(0x1eb)](),this[_0x4e1d3f(0x221)]=new _0x40ef90(),this[_0x4e1d3f(0x203)]=new _0x55703c(),this[_0x4e1d3f(0x1f7)]=this[_0x4e1d3f(0x21a)]([this[_0x4e1d3f(0x1ee)],this[_0x4e1d3f(0x1ee)][_0x4e1d3f(0x22d)],this[_0x4e1d3f(0x212)],this[_0x4e1d3f(0x215)]]),this[_0x4e1d3f(0x22e)]=new _0x1394db({'focusables':this[_0x4e1d3f(0x1f7)],'focusTracker':this[_0x4e1d3f(0x221)],'keystrokeHandler':this[_0x4e1d3f(0x203)],'actions':{'focusPrevious':_0x4e1d3f(0x1e8),'focusNext':_0x4e1d3f(0x206)}}),this[_0x4e1d3f(0x215)][_0x4e1d3f(0x22e)]['on'](_0x4e1d3f(0x208),_0x39e881=>{const _0x516452=_0x4e1d3f;this[_0x516452(0x22e)][_0x516452(0x237)](),_0x39e881[_0x516452(0x227)]();}),this[_0x4e1d3f(0x215)][_0x4e1d3f(0x22e)]['on'](_0x4e1d3f(0x1f1),_0xf41a5f=>{const _0x5a0e9e=_0x4e1d3f;this[_0x5a0e9e(0x22e)][_0x5a0e9e(0x213)](),_0xf41a5f[_0x5a0e9e(0x227)]();}),this[_0x4e1d3f(0x215)][_0x4e1d3f(0x1fe)][_0x4e1d3f(0x22c)][_0x4e1d3f(0x1e9)](_0x4e1d3f(0x21c))['to'](this,_0x4e1d3f(0x202));const _0x2169ba=this[_0x4e1d3f(0x1e4)];this[_0x4e1d3f(0x1ef)]({'tag':_0x4e1d3f(0x239),'attributes':{'class':['ck',_0x4e1d3f(0x23b),_0x17a086],'tabindex':'-1'},'children':[{'tag':_0x4e1d3f(0x239),'attributes':{'class':['ck',_0x4e1d3f(0x232)]},'children':[{'tag':_0x4e1d3f(0x239),'attributes':{'class':[_0x2169ba['if'](_0x4e1d3f(0x1f5),_0x4e1d3f(0x234),_0x28c238=>!_0x28c238)]},'children':[this[_0x4e1d3f(0x20c)]]},this[_0x4e1d3f(0x1ee)],this[_0x4e1d3f(0x212)],this[_0x4e1d3f(0x215)]]}]});}[_0x5e8160(0x1f8)](){const _0x3eb25c=_0x5e8160;super[_0x3eb25c(0x1f8)](),this[_0x3eb25c(0x221)][_0x3eb25c(0x225)](this[_0x3eb25c(0x1ee)][_0x3eb25c(0x214)]),this[_0x3eb25c(0x221)][_0x3eb25c(0x225)](this[_0x3eb25c(0x1ee)][_0x3eb25c(0x22d)][_0x3eb25c(0x214)]),this[_0x3eb25c(0x221)][_0x3eb25c(0x225)](this[_0x3eb25c(0x212)][_0x3eb25c(0x214)]),this[_0x3eb25c(0x221)][_0x3eb25c(0x225)](this[_0x3eb25c(0x215)][_0x3eb25c(0x214)]),this[_0x3eb25c(0x203)][_0x3eb25c(0x21f)](this[_0x3eb25c(0x214)]);}[_0x5e8160(0x22a)](_0x5df509=0x1){const _0x5731b5=_0x5e8160;-0x1===_0x5df509?this[_0x5731b5(0x22e)][_0x5731b5(0x217)]():this[_0x5731b5(0x22e)][_0x5731b5(0x1ec)]();}[_0x5e8160(0x20d)](){const _0x222490=_0x5e8160;this[_0x222490(0x202)]='',this[_0x222490(0x21c)]='',this[_0x222490(0x1f5)]=!0x1,this[_0x222490(0x215)][_0x222490(0x20d)](),this[_0x222490(0x1ee)][_0x222490(0x238)]=!0x1,this[_0x222490(0x212)][_0x222490(0x238)]=!0x1;}[_0x5e8160(0x1eb)](){const _0x413c4b=_0x5e8160,_0xa094ac=this[_0x413c4b(0x211)],_0x2d27f2=new _0x54ec4a(_0xa094ac,{'queryView':{'label':_0x138f7b(_0xa094ac,_0x413c4b(0x207)),'creator':_0x1eacee,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x138f7b(_0xa094ac,_0x413c4b(0x223)),'secondary':_0x138f7b(_0xa094ac,_0x413c4b(0x210))}}},'filteredView':this[_0x413c4b(0x219)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2d27f2[_0x413c4b(0x1e9)](_0x413c4b(0x22f))['to'](this,_0x413c4b(0x22f),this,_0x413c4b(0x1fb),(_0x15f75a,_0x53999a)=>_0x15f75a&&!_0x53999a),this[_0x413c4b(0x21f)](_0x2d27f2,_0x413c4b(0x200),(_0x4450b6,_0x5e1e7e)=>{const _0x59ed47=_0x413c4b;this[_0x59ed47(0x202)]=_0x5e1e7e;const _0x5f5749=_0x28f6ae(_0x5e1e7e);this[_0x59ed47(0x20a)](_0x59ed47(0x1f3),_0x5f5749),_0x5e1e7e[_0x59ed47(0x205)]()&&this[_0x59ed47(0x1fa)][_0x59ed47(0x225)]({'prompt':_0x5f5749},0x0);},{'priority':_0x413c4b(0x21e)}),_0x2d27f2;}[_0x5e8160(0x219)](){const _0x4c2c9c=_0x5e8160,_0x4f69b5=new _0x88dc15(this[_0x4c2c9c(0x211)]);return _0x4f69b5[_0x4c2c9c(0x216)][_0x4c2c9c(0x222)][_0x4c2c9c(0x233)](this[_0x4c2c9c(0x1fa)])['as'](_0x114ed6),_0x4f69b5['on'](_0x4c2c9c(0x231),()=>{const _0x3c8995=_0x4c2c9c;this[_0x3c8995(0x1fa)][_0x3c8995(0x1f4)](),this[_0x3c8995(0x215)][_0x3c8995(0x21b)](''),this[_0x3c8995(0x215)][_0x3c8995(0x22a)]();}),_0x4f69b5;}[_0x5e8160(0x1e5)](){const _0x326946=_0x5e8160,_0x3853f2=new _0x255b46(this[_0x326946(0x211)]);return _0x3853f2[_0x326946(0x1f0)][_0x326946(0x1e9)](_0x326946(0x22f))['to'](this,_0x326946(0x22f),this,_0x326946(0x1fb),this,_0x326946(0x21c),(_0x29a189,_0x2b4309,_0x1eebcb)=>_0x29a189&&!_0x2b4309&&!!_0x1eebcb),_0x3853f2[_0x326946(0x1f0)][_0x326946(0x1fd)](_0x326946(0x20b))['to'](this,_0x326946(0x22b)),_0x3853f2[_0x326946(0x1f6)][_0x326946(0x1e9)](_0x326946(0x22f))['to'](this,_0x326946(0x22f),this,_0x326946(0x1fb),this,_0x326946(0x21c),(_0x33b1b0,_0x4b7224,_0x3b61c5)=>_0x33b1b0&&!_0x4b7224&&!!_0x3b61c5),_0x3853f2[_0x326946(0x1f6)][_0x326946(0x1fd)](_0x326946(0x20b))['to'](this,_0x326946(0x23a)),_0x3853f2[_0x326946(0x20e)][_0x326946(0x1e9)](_0x326946(0x22f))['to'](this,_0x326946(0x22f),this,_0x326946(0x1fb),(_0xbc7d70,_0x174979)=>_0xbc7d70&&!_0x174979),_0x3853f2[_0x326946(0x20e)][_0x326946(0x1fd)](_0x326946(0x20b))['to'](this,_0x326946(0x20f)),_0x3853f2[_0x326946(0x1ea)][_0x326946(0x1e9)](_0x326946(0x22f))['to'](this,_0x326946(0x1fb)),_0x3853f2[_0x326946(0x1ea)][_0x326946(0x1fd)](_0x326946(0x20b))['to'](this,_0x326946(0x1f2)),_0x3853f2;}[_0x5e8160(0x1ed)](){const _0x6edb0b=_0x5e8160;this[_0x6edb0b(0x21c)]='',this[_0x6edb0b(0x1f5)]=!0x1,this[_0x6edb0b(0x1fb)]=!0x0,this[_0x6edb0b(0x1ee)][_0x6edb0b(0x238)]=!0x0,this[_0x6edb0b(0x212)][_0x6edb0b(0x238)]=!0x0,this[_0x6edb0b(0x1ee)][_0x6edb0b(0x22a)]();}[_0x5e8160(0x229)](){const _0x47e871=_0x5e8160,_0x333f5e=this[_0x47e871(0x211)];this[_0x47e871(0x1fb)]=!0x1,this[_0x47e871(0x202)]='',this[_0x47e871(0x215)][_0x47e871(0x20d)](),this[_0x47e871(0x21c)]&&(this[_0x47e871(0x215)][_0x47e871(0x1fe)][_0x47e871(0x1fc)]=_0x138f7b(_0x333f5e,_0x47e871(0x226)));}[_0x5e8160(0x236)](_0x4cbbb3){const _0x13281c=_0x5e8160,_0x31b14b=this[_0x13281c(0x211)];this[_0x13281c(0x229)](),this[_0x13281c(0x1f5)]=!0x0,this[_0x13281c(0x20c)][_0x13281c(0x220)]=_0x4cbbb3||_0x138f7b(_0x31b14b,_0x13281c(0x228)),this[_0x13281c(0x21c)]||(this[_0x13281c(0x1ee)][_0x13281c(0x238)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3b4b6f,_0x49e0b8){const _0x144454=_0x2a42,_0x479b83=_0x3b4b6f();while(!![]){try{const _0x87cb78=-parseInt(_0x144454(0x1d6))/0x1+parseInt(_0x144454(0x1da))/0x2*(-parseInt(_0x144454(0x1e1))/0x3)+parseInt(_0x144454(0x1e4))/0x4+-parseInt(_0x144454(0x1d9))/0x5+parseInt(_0x144454(0x1e3))/0x6*(parseInt(_0x144454(0x1d8))/0x7)+-parseInt(_0x144454(0x1d5))/0x8+parseInt(_0x144454(0x1d4))/0x9*(parseInt(_0x144454(0x1de))/0xa);if(_0x87cb78===_0x49e0b8)break;else _0x479b83['push'](_0x479b83['shift']());}catch(_0x3a47d0){_0x479b83['push'](_0x479b83['shift']());}}}(_0x14e6,0xc0e92));import{ListItemView as _0x184576,ButtonView as _0x14f1e4}from'ckeditor5/src/ui.js';import _0x47217e from'../dropdown/buttonlabelwithhighlightview.js';function _0x2a42(_0x433482,_0x35cbbf){const _0x14e630=_0x14e6();return _0x2a42=function(_0x2a42d0,_0x4ab522){_0x2a42d0=_0x2a42d0-0x1d4;let _0xb046d0=_0x14e630[_0x2a42d0];return _0xb046d0;},_0x2a42(_0x433482,_0x35cbbf);}import{unescape as _0x3f6018}from'lodash-es';export default class hs extends _0x184576{constructor(_0x51aa5a){const _0x3e13d1=_0x2a42;super();const _0x3f6b9c=new _0x47217e(),_0x4f3e52=new _0x14f1e4(this[_0x3e13d1(0x1dc)],_0x3f6b9c);this[_0x3e13d1(0x1df)][_0x3e13d1(0x1e2)](_0x4f3e52),_0x4f3e52[_0x3e13d1(0x1db)]({'label':_0x51aa5a[_0x3e13d1(0x1e0)],'withText':!0x0}),_0x4f3e52['on'](_0x3e13d1(0x1d7),()=>{const _0x35c521=_0x3e13d1;this[_0x35c521(0x1dd)](_0x35c521(0x1d7),{'value':_0x3f6018(_0x51aa5a[_0x35c521(0x1e0)])});});}}function _0x14e6(){const _0x18cca2=['children','prompt','73995Wvoabu','add','519222BSJQke','3108384mNGRWG','45vqcvoj','8003400aILZYb','590311gBOSHf','execute','7mASAmt','3849725Eijsqi','46PblRsa','set','locale','fire','5709010NmiXvV'];_0x14e6=function(){return _0x18cca2;};return _0x14e6();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5242b0=_0x4c4b;(function(_0x556d86,_0x3a743a){const _0x22a450=_0x4c4b,_0x2560b4=_0x556d86();while(!![]){try{const _0x446cef=-parseInt(_0x22a450(0x7c))/0x1+-parseInt(_0x22a450(0x81))/0x2+-parseInt(_0x22a450(0x6c))/0x3+-parseInt(_0x22a450(0x79))/0x4+-parseInt(_0x22a450(0x7a))/0x5+parseInt(_0x22a450(0x7d))/0x6+parseInt(_0x22a450(0x82))/0x7;if(_0x446cef===_0x3a743a)break;else _0x2560b4['push'](_0x2560b4['shift']());}catch(_0x50b88c){_0x2560b4['push'](_0x2560b4['shift']());}}}(_0x4d55,0xee4b3));function _0x4c4b(_0x4aa2b3,_0x536128){const _0x4d5582=_0x4d55();return _0x4c4b=function(_0x4c4b3a,_0x4bd5b8){_0x4c4b3a=_0x4c4b3a-0x6b;let _0x4c7b72=_0x4d5582[_0x4c4b3a];return _0x4c7b72;},_0x4c4b(_0x4aa2b3,_0x536128);}function _0x4d55(){const _0x354e36=['9198760ryFgWz','children','319946qQAjEU','3706146npdJes','fire','locale','filter','498864vIFCRu','32184558LUZkHw','Prompt\x20history','4351548TgsOzG','Clear','_createClearHistoryButton','set','clearHistory','length','add','delegate','execute','label','historyGroupView','clearHistoryButton','items','1519152qfUFrW'];_0x4d55=function(){return _0x354e36;};return _0x4d55();}import{ListView as _0x170673,ListItemGroupView as _0x491f3e,ButtonView as _0x31a439}from'ckeditor5/src/ui.js';import{getTranslation as _0x5b04c9}from'../../utils/common-translations.js';export default class rs extends _0x170673{constructor(_0x1a8c10){const _0x5abefc=_0x4c4b;super(_0x1a8c10),this[_0x5abefc(0x77)]=this[_0x5abefc(0x6e)](),this[_0x5abefc(0x76)]=new _0x491f3e(),this[_0x5abefc(0x76)][_0x5abefc(0x7b)][_0x5abefc(0x72)](this[_0x5abefc(0x77)],0x1),this[_0x5abefc(0x76)][_0x5abefc(0x75)]=_0x5b04c9(_0x1a8c10,_0x5abefc(0x6b)),this[_0x5abefc(0x76)][_0x5abefc(0x78)][_0x5abefc(0x73)](_0x5abefc(0x74))['to'](this),this[_0x5abefc(0x78)][_0x5abefc(0x72)](this[_0x5abefc(0x76)]);}[_0x5242b0(0x80)](){const _0x2c7b42=_0x5242b0;let _0x346aa1=0x0;for(const _0x17aefc of this[_0x2c7b42(0x78)])_0x346aa1+=_0x17aefc[_0x2c7b42(0x78)][_0x2c7b42(0x71)];return{'resultsCount':_0x346aa1,'totalItemsCount':_0x346aa1};}[_0x5242b0(0x6e)](){const _0x4b0c54=_0x5242b0,_0x116f38=this[_0x4b0c54(0x7f)],_0x9b77c8=new _0x31a439(this[_0x4b0c54(0x7f)]);return _0x9b77c8[_0x4b0c54(0x6f)]({'label':'('+_0x5b04c9(_0x116f38,_0x4b0c54(0x6d))+')','withText':!0x0}),_0x9b77c8['on'](_0x4b0c54(0x74),()=>this[_0x4b0c54(0x7e)](_0x4b0c54(0x70))),_0x9b77c8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4954(_0x2feb99,_0x4e6840){const _0x518325=_0x5183();return _0x4954=function(_0x4954e2,_0xf7267b){_0x4954e2=_0x4954e2-0x12d;let _0x6491f4=_0x518325[_0x4954e2];return _0x6491f4;},_0x4954(_0x2feb99,_0x4e6840);}const _0x3ad570=_0x4954;(function(_0x239eed,_0x63b3d7){const _0x578684=_0x4954,_0x88427e=_0x239eed();while(!![]){try{const _0xbf25bb=parseInt(_0x578684(0x13d))/0x1+-parseInt(_0x578684(0x138))/0x2+parseInt(_0x578684(0x141))/0x3*(-parseInt(_0x578684(0x13f))/0x4)+-parseInt(_0x578684(0x143))/0x5+parseInt(_0x578684(0x12e))/0x6+parseInt(_0x578684(0x12d))/0x7+parseInt(_0x578684(0x131))/0x8*(parseInt(_0x578684(0x13a))/0x9);if(_0xbf25bb===_0x63b3d7)break;else _0x88427e['push'](_0x88427e['shift']());}catch(_0x4b8bab){_0x88427e['push'](_0x88427e['shift']());}}}(_0x5183,0x95d1d));import{Collection as _0x2bdba8}from'ckeditor5/src/utils.js';const cs=_0x3ad570(0x13b);function _0x5183(){const _0x1df03d=['last','add','_saveToSessionStorage','prompt','length','266944jQCMKy','trim','2358pDswab','CKEditor/AIFormView/PromptHistory','parse','429318pROkyE','remove','12butNUR','addMany','373017KLxixD','stringify','3145160FFfRqS','setItem','map','7964950fLKxKl','401976WaWiuf','_loadFromSessionStorage','toLowerCase','3512PAkejy','getItem'];_0x5183=function(){return _0x1df03d;};return _0x5183();}export default class os extends _0x2bdba8{constructor(){const _0x540850=_0x3ad570;super(),this[_0x540850(0x12f)](),this['on'](_0x540850(0x134),(_0x282342,_0x5dec98)=>{const _0x5871eb=_0x540850,_0x411971=Ss(_0x5dec98[_0x5871eb(0x136)]);for(const _0x1d514d of this)if(_0x1d514d!=_0x5dec98&&Ss(_0x1d514d[_0x5871eb(0x136)])===_0x411971){this[_0x5871eb(0x13e)](_0x1d514d);break;}this[_0x5871eb(0x137)]>0x14&&this[_0x5871eb(0x13e)](this[_0x5871eb(0x133)]),this[_0x5871eb(0x135)]();}),this['on'](_0x540850(0x13e),()=>{const _0x4b9d14=_0x540850;this[_0x4b9d14(0x135)]();});}[_0x3ad570(0x12f)](){const _0xf719f2=_0x3ad570,_0x4f79c3=sessionStorage[_0xf719f2(0x132)](cs)||'[]';this[_0xf719f2(0x140)](JSON[_0xf719f2(0x13c)](_0x4f79c3));}[_0x3ad570(0x135)](){const _0x2e84db=_0x3ad570;sessionStorage[_0x2e84db(0x144)](cs,JSON[_0x2e84db(0x142)](this[_0x2e84db(0x145)](_0x26e59a=>_0x26e59a)));}}function Ss(_0x989339){const _0x22e51e=_0x3ad570;return _0x989339[_0x22e51e(0x130)]()[_0x22e51e(0x139)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2bad(_0x3f22ec,_0x5f1843){const _0xb67fe4=_0xb67f();return _0x2bad=function(_0x2badff,_0x2b50a4){_0x2badff=_0x2badff-0xca;let _0x3deb77=_0xb67fe4[_0x2badff];return _0x3deb77;},_0x2bad(_0x3f22ec,_0x5f1843);}const _0x81cff7=_0x2bad;function _0xb67f(){const _0x5d1df0=['2130360UbNtmH','isEnabled','7fNDUDA','editor','from','execute','getFirstRange','plugins','13335170FSRJsN','add','isEmpty','324952MuNeCm','concat','320163xqPzHV','set','requiresContent','element','3174688hoqCSN','14HPVCuu','getRanges','includes','name','change:_hasContext','model','getItems','getSelectedBlocks','config','4156098VEZToC','740890TfumFw','showUI','length','isCollapsed','enabledCommandsIds','hasContent','ai.aiAssistant.disabledElements','18aLZjTJ','change:isEnabled','custom','reduce','refresh','document','_commandDefinitions','commands','_hasContext','selection','get'];_0xb67f=function(){return _0x5d1df0;};return _0xb67f();}(function(_0x2c7232,_0xc9ff55){const _0x147946=_0x2bad,_0x1ffec8=_0x2c7232();while(!![]){try{const _0x315e2b=parseInt(_0x147946(0xf3))/0x1+-parseInt(_0x147946(0xcc))/0x2*(-parseInt(_0x147946(0xf5))/0x3)+parseInt(_0x147946(0xcb))/0x4+parseInt(_0x147946(0xd6))/0x5+parseInt(_0x147946(0xd5))/0x6*(-parseInt(_0x147946(0xea))/0x7)+parseInt(_0x147946(0xe8))/0x8*(parseInt(_0x147946(0xdd))/0x9)+-parseInt(_0x147946(0xf0))/0xa;if(_0x315e2b===_0xc9ff55)break;else _0x1ffec8['push'](_0x1ffec8['shift']());}catch(_0x3f7436){_0x1ffec8['push'](_0x1ffec8['shift']());}}}(_0xb67f,0x7f02f));import{Command as _0x4d6b5c}from'ckeditor5/src/core.js';import _0x3b4dd9 from'../aiassistantui.js';export default class j extends _0x4d6b5c{constructor(_0x508303,_0x10785b){const _0x1d8e94=_0x2bad;super(_0x508303),this[_0x1d8e94(0xe3)]=_0x10785b?_0x10785b[_0x1d8e94(0xe0)]((_0x48f106,_0xfcd1ef)=>_0x48f106[_0x1d8e94(0xf4)](_0xfcd1ef[_0x1d8e94(0xe4)]),new Array()):[],this[_0x1d8e94(0xf6)](_0x1d8e94(0xda),[]),this['on'](_0x1d8e94(0xd0),(_0x3e382d,_0xb89327,_0x4b74e6)=>{const _0x24fbf7=_0x1d8e94;this[_0x24fbf7(0xe9)]&&(this[_0x24fbf7(0xda)]=K(this[_0x24fbf7(0xe3)],_0x4b74e6));}),this[_0x1d8e94(0xf6)](_0x1d8e94(0xe5),!0x1),this['on'](_0x1d8e94(0xde),(_0x48cf77,_0x56a281,_0x15f235)=>{const _0x5d132d=_0x1d8e94;this[_0x5d132d(0xda)]=_0x15f235?K(this[_0x5d132d(0xe3)],this[_0x5d132d(0xe5)]):[];});}[_0x81cff7(0xe1)](){const _0x24db04=_0x81cff7,_0x4452aa=this[_0x24db04(0xeb)][_0x24db04(0xd1)];this[_0x24db04(0xe5)]=function(_0x3ab1e6){const _0x81a593=_0x24db04,_0x510b2e=_0x3ab1e6[_0x81a593(0xe2)][_0x81a593(0xe6)];return _0x510b2e[_0x81a593(0xd9)]?0x0!==[..._0x510b2e[_0x81a593(0xd3)]()][_0x81a593(0xd8)]&&![..._0x510b2e[_0x81a593(0xd3)]()][0x0][_0x81a593(0xf2)]:!!_0x3ab1e6[_0x81a593(0xdb)](_0x510b2e[_0x81a593(0xee)]());}(_0x4452aa);const _0xc4f5a4=_0x4452aa[_0x24db04(0xe2)][_0x24db04(0xe6)],_0x34ada9=this[_0x24db04(0xeb)][_0x24db04(0xd4)][_0x24db04(0xe7)](_0x24db04(0xdc));for(const _0x128614 of _0xc4f5a4[_0x24db04(0xcd)]())for(const _0x5d6195 of _0x128614[_0x24db04(0xd2)]())if(_0x5d6195['is'](_0x24db04(0xca))&&_0x34ada9[_0x24db04(0xce)](_0x5d6195[_0x24db04(0xcf)]))return void(this[_0x24db04(0xe9)]=!0x1);this[_0x24db04(0xe9)]=!0x0;}[_0x81cff7(0xed)](_0x1b536f='',_0x2e5b32='',_0x41f6c0=_0x81cff7(0xdf)){const _0x404fa3=_0x81cff7;this[_0x404fa3(0xeb)][_0x404fa3(0xef)][_0x404fa3(0xe7)](_0x3b4dd9)[_0x404fa3(0xd7)](_0x1b536f,_0x2e5b32,_0x41f6c0);}}function K(_0xf0d4e6,_0x883160){const _0x349c81=_0x81cff7,_0x159dba=new Set();for(const _0x5040e3 of _0xf0d4e6)(_0x883160||!0x1===_0x5040e3[_0x349c81(0xf7)])&&_0x159dba[_0x349c81(0xf1)](_0x5040e3['id']);return Array[_0x349c81(0xec)](_0x159dba);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3169f1,_0x123774,_0x5debc1){const t=_0x3169f1['t'];switch(_0x123774){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',_0x5debc1);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',_0x5debc1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x5debc1);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'},_0x5debc1);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 _0x123774;}}
|