@ckeditor/ckeditor5-ai 0.0.0-nightly-20240418.0 → 0.0.0-nightly-20240419.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/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 _0xe00e8c=_0xc404;function _0xedf1(){const _0x36b7fd=['left','setStartAfter','render','execute','addRange','setContent','ck-reset_all-excluded','copyButtonView','ck-ai-form__copy-button','ck-ai-form__loader','<span>[</span>','set','ck-ai-form__copy-button-wrapper','<span>]</span>','isEnabled','1075120NWLEOB','text/plain','div','appendChild','scrollHeight','ck-ai-form__content-area--processing','createElement','Copy','removeAllRanges','icon','focus','getSelection','position','_createCopyButton','execCommand','scrollTo','querySelector','130301ysPIDa','mousedown','locale','createRange','\x20ck-ai-form__copy-button--copied','body','listenTo','isVisible','13156199xPvBHc','761925SllZab','wheel','ck-hidden','8650448KTBekh','lastElementChild','ck-ai-form__content-area-wrapper','AI\x20is\x20writing...','12200JaiWfF','.ck-ai-form__loader','remove','appendLoader','-9999px','_copyHTMLToClipboard','element','value','change:isProcessing','setEndBefore','absolute','innerHTML','check','ck-ai-form__content-field','2762712lQMuTl','class','text/html','6yKFiea','loaderView','bind','change:value','textContent','bindTemplate','_createLoader','isProcessing','style','smooth','setTemplate','copy','clipboard','ck-ai-form__content-area','ClipboardItem','firstElementChild','contentFieldView','ck-content','write'];_0xedf1=function(){return _0x36b7fd;};return _0xedf1();}(function(_0x273792,_0x1e552d){const _0x9f932e=_0xc404,_0x25db69=_0x273792();while(!![]){try{const _0x2ab491=parseInt(_0x9f932e(0xee))/0x1+parseInt(_0x9f932e(0xdd))/0x2+parseInt(_0x9f932e(0xb8))/0x3+parseInt(_0x9f932e(0xfe))/0x4+parseInt(_0x9f932e(0xf7))/0x5*(parseInt(_0x9f932e(0xbb))/0x6)+-parseInt(_0x9f932e(0xf6))/0x7+parseInt(_0x9f932e(0xfa))/0x8;if(_0x2ab491===_0x1e552d)break;else _0x25db69['push'](_0x25db69['shift']());}catch(_0x1d93ff){_0x25db69['push'](_0x25db69['shift']());}}}(_0xedf1,0xe6f81));import{global as _0x367b43}from'ckeditor5/src/utils.js';import{View as _0x1bd3b1,ButtonView as _0x21d397,SpinnerView as _0x2650d}from'ckeditor5/src/ui.js';function _0xc404(_0x4c02dd,_0x1cac50){const _0xedf1e2=_0xedf1();return _0xc404=function(_0xc404de,_0x3c8ff4){_0xc404de=_0xc404de-0xaf;let _0x4ae627=_0xedf1e2[_0xc404de];return _0x4ae627;},_0xc404(_0x4c02dd,_0x1cac50);}import _0x2e37fd from'../../../theme/icons/copy.svg';import{getTranslation as _0x268cdf}from'../../utils/common-translations.js';import{icons as _0x35f330}from'ckeditor5/src/core.js';export default class nt extends _0x1bd3b1{constructor(_0x3d6c87,_0x1ab6a2=''){const _0x190cae=_0xc404;super(_0x3d6c87),this[_0x190cae(0xd9)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x352d9b=this[_0x190cae(0xc0)];this[_0x190cae(0xcb)]=new ContentFieldView(_0x3d6c87,_0x1ab6a2),this[_0x190cae(0xd5)]=this[_0x190cae(0xea)](),this[_0x190cae(0xc5)]({'tag':_0x190cae(0xdf),'attributes':{'class':['ck',_0x190cae(0xfc),_0x352d9b['if'](_0x190cae(0xf5),_0x190cae(0xf9),_0x21532f=>!_0x21532f)],'tabindex':'-1'},'children':[{'tag':_0x190cae(0xdf),'attributes':{'class':['ck',_0x190cae(0xc8),_0x352d9b['if'](_0x190cae(0xc2),_0x190cae(0xe2))]},'children':[this[_0x190cae(0xcb)],{'tag':_0x190cae(0xdf),'attributes':{'class':['ck',_0x190cae(0xda)]},'children':[this[_0x190cae(0xd5)]]}]}]});}[_0xe00e8c(0xd0)](){const _0xb9cf90=_0xe00e8c;super[_0xb9cf90(0xd0)](),this[_0xb9cf90(0xb1)]&&this[_0xb9cf90(0xcb)][_0xb9cf90(0xd3)](this[_0xb9cf90(0xb1)]);let _0x2af85a=!0x1;this['on'](_0xb9cf90(0xbe),(_0x1c4508,_0x17753e,_0x4562b7)=>{const _0x387ce6=_0xb9cf90,_0x47a625=!this[_0x387ce6(0xcb)][_0x387ce6(0xb0)][_0x387ce6(0xed)](_0x387ce6(0xff));this[_0x387ce6(0xcb)][_0x387ce6(0xd3)](_0x4562b7),this[_0x387ce6(0xc2)]&&_0x47a625&&!_0x2af85a&&this[_0x387ce6(0xb0)][_0x387ce6(0xec)]({'top':this[_0x387ce6(0xb0)][_0x387ce6(0xe1)],'behavior':_0x387ce6(0xc4)});}),this['on'](_0xb9cf90(0xb2),(_0x1ce536,_0x2d02d8,_0x4e2718)=>{const _0x3f000b=_0xb9cf90;_0x2af85a=!0x1,_0x4e2718?(this[_0x3f000b(0xb1)]=null,this[_0x3f000b(0xcb)][_0x3f000b(0x101)]()):this[_0x3f000b(0xb1)]||this[_0x3f000b(0xcb)][_0x3f000b(0xd3)]('');}),this[_0xb9cf90(0xf4)](this[_0xb9cf90(0xb0)],_0xb9cf90(0xf8),()=>{_0x2af85a=!0x0;}),this[_0xb9cf90(0xf4)](this[_0xb9cf90(0xb0)],_0xb9cf90(0xef),()=>{_0x2af85a=!0x0;});}[_0xe00e8c(0xe7)](){const _0x1405cd=_0xe00e8c;this[_0x1405cd(0xb0)][_0x1405cd(0xe7)]();}[_0xe00e8c(0xea)](){const _0x3f970b=_0xe00e8c,_0x5472c8=this[_0x3f970b(0xf0)],_0x32f29b=new _0x21d397(this[_0x3f970b(0xf0)]),_0x39b0b5=_0x3f970b(0xd6);return _0x32f29b[_0x3f970b(0xd9)]({'label':_0x268cdf(_0x5472c8,_0x3f970b(0xe4)),'icon':_0x2e37fd,'class':_0x39b0b5,'tooltip':!0x0}),_0x32f29b[_0x3f970b(0xbd)](_0x3f970b(0xf5))['to'](this,_0x3f970b(0xb1),_0x9561e=>!!_0x9561e),_0x32f29b[_0x3f970b(0xbd)](_0x3f970b(0xdc))['to'](this,_0x3f970b(0xc2),_0x3e2a5c=>!_0x3e2a5c),_0x32f29b['on'](_0x3f970b(0xd1),()=>{const _0x29c16f=_0x3f970b;this[_0x29c16f(0xaf)](this[_0x29c16f(0xcb)][_0x29c16f(0xb0)]),_0x32f29b[_0x29c16f(0xe6)]=_0x35f330[_0x29c16f(0xb6)],_0x32f29b[_0x29c16f(0xb9)]=_0x39b0b5+_0x29c16f(0xf2),this[_0x29c16f(0xe7)](),setTimeout(()=>{const _0x235645=_0x29c16f;_0x32f29b[_0x235645(0xe6)]=_0x2e37fd,_0x32f29b[_0x235645(0xb9)]=_0x39b0b5;},0x3e8);}),_0x32f29b;}[_0xe00e8c(0xaf)](_0x24957f){const _0x57d489=_0xe00e8c,{window:_0xaad918,document:_0x194529}=_0x367b43;if(_0xaad918[_0x57d489(0xc9)]){const {Blob:_0x1a0a2f,ClipboardItem:_0x4bcdf6}=_0xaad918,_0x50f0ea=[new _0x4bcdf6({'text/html':new _0x1a0a2f([_0x24957f[_0x57d489(0xb5)]],{'type':_0x57d489(0xba)}),'text/plain':new _0x1a0a2f([_0x24957f[_0x57d489(0xbf)]||''],{'type':_0x57d489(0xde)})})];navigator[_0x57d489(0xc7)][_0x57d489(0xcd)](_0x50f0ea);}else{const _0x4baf09=_0x194529[_0x57d489(0xe3)](_0x57d489(0xdf));_0x4baf09[_0x57d489(0xc3)][_0x57d489(0xe9)]=_0x57d489(0xb4),_0x4baf09[_0x57d489(0xc3)][_0x57d489(0xce)]=_0x57d489(0x102),_0x4baf09[_0x57d489(0xb5)]=_0x57d489(0xd8)+_0x24957f[_0x57d489(0xb5)]+_0x57d489(0xdb),_0x194529[_0x57d489(0xf3)][_0x57d489(0xe0)](_0x4baf09);const _0x159f5d=_0x194529[_0x57d489(0xf1)]();_0x159f5d[_0x57d489(0xcf)](_0x4baf09[_0x57d489(0xca)]),_0x159f5d[_0x57d489(0xb3)](_0x4baf09[_0x57d489(0xfb)]);const _0x2b7c99=_0xaad918[_0x57d489(0xe8)]();_0x2b7c99[_0x57d489(0xe5)](),_0x2b7c99[_0x57d489(0xd2)](_0x159f5d),_0x194529[_0x57d489(0xeb)](_0x57d489(0xc6)),_0x4baf09[_0x57d489(0x100)]();}}}export class ContentFieldView extends _0x1bd3b1{constructor(_0x23f19b,_0xbe043c=''){const _0x5aef7d=_0xe00e8c;super(_0x23f19b),this[_0x5aef7d(0xbc)]=this[_0x5aef7d(0xc1)](),this[_0x5aef7d(0xc5)]({'tag':_0x5aef7d(0xdf),'attributes':{'class':['ck',_0x5aef7d(0xcc),_0xbe043c,_0x5aef7d(0xd4),_0x5aef7d(0xb7)]}});}[_0xe00e8c(0xd3)](_0xc81f7c){const _0x3b5e33=_0xe00e8c;this[_0x3b5e33(0xb0)][_0x3b5e33(0xb5)]=_0xc81f7c;}[_0xe00e8c(0x101)](){const _0x11510=_0xe00e8c;this[_0x11510(0xb0)][_0x11510(0xe0)](this[_0x11510(0xbc)][_0x11510(0xb0)]);}[_0xe00e8c(0xc1)](){const _0x568ce4=_0xe00e8c,_0x3797e6=new _0x1bd3b1(),_0x444d7c=this[_0x568ce4(0xf0)],_0x465e6e=new _0x2650d();return _0x465e6e[_0x568ce4(0xf5)]=!0x0,_0x3797e6[_0x568ce4(0xc5)]({'tag':_0x568ce4(0xdf),'attributes':{'class':['ck',_0x568ce4(0xd7)]},'children':[_0x465e6e,{'text':_0x268cdf(_0x444d7c,_0x568ce4(0xfd))}]}),_0x3797e6[_0x568ce4(0xd0)](),_0x3797e6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xef81e0,_0x5220a2){const _0x5f5240=_0x4dde,_0x59f5eb=_0xef81e0();while(!![]){try{const _0x2588db=parseInt(_0x5f5240(0x1da))/0x1*(parseInt(_0x5f5240(0x1d5))/0x2)+parseInt(_0x5f5240(0x1cd))/0x3*(-parseInt(_0x5f5240(0x1d7))/0x4)+-parseInt(_0x5f5240(0x1d8))/0x5*(parseInt(_0x5f5240(0x1cc))/0x6)+parseInt(_0x5f5240(0x1d1))/0x7+-parseInt(_0x5f5240(0x1cb))/0x8*(-parseInt(_0x5f5240(0x1d4))/0x9)+-parseInt(_0x5f5240(0x1cf))/0xa+-parseInt(_0x5f5240(0x1d0))/0xb;if(_0x2588db===_0x5220a2)break;else _0x59f5eb['push'](_0x59f5eb['shift']());}catch(_0x5590d0){_0x59f5eb['push'](_0x59f5eb['shift']());}}}(_0x1b41,0x69c89));function _0x4dde(_0x15673b,_0x18a4a7){const _0x1b4157=_0x1b41();return _0x4dde=function(_0x4dde6b,_0xbe37ad){_0x4dde6b=_0x4dde6b-0x1c9;let _0x1e0490=_0x1b4157[_0x4dde6b];return _0x1e0490;},_0x4dde(_0x15673b,_0x18a4a7);}import{View as _0x376444,IconView as _0x1080af}from'ckeditor5/src/ui.js';import _0x53d7c9 from'../../../theme/icons/error.svg';export default class mt extends _0x376444{constructor(_0x410630,_0x3f00ff=''){const _0x13a1c9=_0x4dde;super(_0x410630);const _0x2b440a=new _0x1080af(),_0xa921d7=this[_0x13a1c9(0x1d6)];this[_0x13a1c9(0x1d3)](_0x13a1c9(0x1d2),_0x3f00ff),_0x2b440a[_0x13a1c9(0x1ca)]=_0x53d7c9,this[_0x13a1c9(0x1d9)]({'tag':_0x13a1c9(0x1ce),'attributes':{'class':['ck',_0x13a1c9(0x1c9)]},'children':[_0x2b440a,{'text':_0xa921d7['to'](_0x13a1c9(0x1d2))}]});}}function _0x1b41(){const _0x2e2643=['76jAIxAv','14870xqabJp','setTemplate','665029GSfnXF','ck-ai-form__error','content','17992EgWgEk','648kRVvqF','57396XIDyOn','div','1518970EjSwRt','2978107RlgybJ','5389237QcKMBe','text','set','423vjfjyF','2CbzfRZ','bindTemplate'];_0x1b41=function(){return _0x2e2643;};return _0x1b41();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bae87=_0x324e;(function(_0x33c62e,_0xf8f07a){const _0x1d8018=_0x324e,_0x13eb1e=_0x33c62e();while(!![]){try{const _0xfb5ffe=parseInt(_0x1d8018(0x11a))/0x1*(parseInt(_0x1d8018(0x11f))/0x2)+parseInt(_0x1d8018(0x123))/0x3*(parseInt(_0x1d8018(0x136))/0x4)+-parseInt(_0x1d8018(0x11e))/0x5*(-parseInt(_0x1d8018(0x130))/0x6)+parseInt(_0x1d8018(0x11b))/0x7*(-parseInt(_0x1d8018(0x135))/0x8)+-parseInt(_0x1d8018(0x12e))/0x9+-parseInt(_0x1d8018(0x128))/0xa+-parseInt(_0x1d8018(0x126))/0xb*(-parseInt(_0x1d8018(0x12b))/0xc);if(_0xfb5ffe===_0xf8f07a)break;else _0x13eb1e['push'](_0x13eb1e['shift']());}catch(_0x3cd916){_0x13eb1e['push'](_0x13eb1e['shift']());}}}(_0x19af,0x87ac5));function _0x19af(){const _0x5326f8=['isEnabled','11027360YybgRl','fieldView','focusFirst','5484324dVigfJ','fire','children','4579524mLHKBD','add','180hwjrUI','focus','update','execute','_createSubmitButton','425864ihBbzO','12212JDNfYy','rtl','style','render','uiLanguageDirection','History','window','resultsView','Submit','isOn','element','maxRows','focusableChildren','focusLast','target','queryView','submit','ck-ai-form__submit','requestAnimationFrame','excludeScrollbarsAndBorders','submitButtonView','keystrokes','width','enter','isVisible','set','showHistoryButtonView','fieldWrapperChildren','isEmpty','minRows','history','focusCycler','locale','667025UJAjks','105LTzxBH','ck-ai-form__toggle-history','_createShowHistoryButton','75235ADnjRO','2RzdfyQ','bind','value','filteredView','468hzzIii','right','left','33uhhtoA'];_0x19af=function(){return _0x5326f8;};return _0x19af();}import{Rect as _0x3131ef,global as _0x58d065,isVisible as _0x3ba1ee}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x1bb7e2,ButtonView as _0x54118b}from'ckeditor5/src/ui.js';import{icons as _0x4ff5b4}from'ckeditor5/src/core.js';import{getTranslation as _0x704cf9}from'../../utils/common-translations.js';function _0x324e(_0xff1eae,_0x3043cb){const _0x19affd=_0x19af();return _0x324e=function(_0x324e31,_0x2a7cf6){_0x324e31=_0x324e31-0xff;let _0x498702=_0x19affd[_0x324e31];return _0x498702;},_0x324e(_0xff1eae,_0x3043cb);}import _0x2107b6 from'../../../theme/icons/submit.svg';export default class pt extends _0x1bb7e2{constructor(_0x16d2ae,_0x4f278b){const _0x1be9b9=_0x324e;super(_0x16d2ae,_0x4f278b),this[_0x1be9b9(0x108)][_0x1be9b9(0x129)][_0x1be9b9(0x116)]=0x1,this[_0x1be9b9(0x108)][_0x1be9b9(0x129)][_0x1be9b9(0x104)]=0x3,this[_0x1be9b9(0x10d)]=this[_0x1be9b9(0x134)](),this[_0x1be9b9(0x113)]=this[_0x1be9b9(0x11d)](),this[_0x1be9b9(0x105)][_0x1be9b9(0x12f)](this[_0x1be9b9(0x113)],0x1),this[_0x1be9b9(0x105)][_0x1be9b9(0x12f)](this[_0x1be9b9(0x10d)]);}[_0x4bae87(0x139)](){const _0x584f10=_0x4bae87;super[_0x584f10(0x139)](),this[_0x584f10(0x108)][_0x584f10(0x114)][_0x584f10(0x12f)](this[_0x584f10(0x113)]),this[_0x584f10(0x12d)][_0x584f10(0x12f)](this[_0x584f10(0x10d)]),this[_0x584f10(0x10e)][_0x584f10(0x112)](_0x584f10(0x110),(_0x4cf9fe,_0x297c98)=>{const _0x11007c=_0x584f10;_0x4cf9fe[_0x11007c(0x107)]==this[_0x11007c(0x108)][_0x11007c(0x129)][_0x11007c(0x103)]&&(this[_0x11007c(0x109)](),_0x297c98());});}[_0x4bae87(0x134)](){const _0x4d04a3=_0x4bae87,_0x16804a=new _0x54118b(this[_0x4d04a3(0x119)]),_0x3b048a=this[_0x4d04a3(0x119)];return _0x16804a[_0x4d04a3(0x112)]({'icon':_0x2107b6,'label':_0x704cf9(_0x3b048a,_0x4d04a3(0x101)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4d04a3(0x10a)}),_0x16804a['on'](_0x4d04a3(0x133),()=>{const _0x145851=_0x4d04a3;this[_0x145851(0x109)]();}),_0x16804a[_0x4d04a3(0x120)](_0x4d04a3(0x127))['to'](this[_0x4d04a3(0x108)][_0x4d04a3(0x129)],_0x4d04a3(0x115),this,_0x4d04a3(0x127),(_0x4c657e,_0x263d28)=>!_0x4c657e&&_0x263d28),_0x16804a;}[_0x4bae87(0x11d)](){const _0xed66ce=_0x4bae87,_0x5a53b8=new _0x54118b(this[_0xed66ce(0x119)]),_0x462385=this[_0xed66ce(0x100)],_0x194487=this[_0xed66ce(0x119)];_0x5a53b8[_0xed66ce(0x112)]({'label':_0x704cf9(_0x194487,_0xed66ce(0x13b)),'withText':!0x1,'icon':_0x4ff5b4[_0xed66ce(0x117)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0xed66ce(0x11c)}),_0x5a53b8[_0xed66ce(0x120)](_0xed66ce(0x102))['to'](_0x462385,_0xed66ce(0x111)),_0x5a53b8[_0xed66ce(0x120)](_0xed66ce(0x127))['to'](this,_0xed66ce(0x127)),_0x5a53b8['on'](_0xed66ce(0x133),()=>{const _0x4f3ad3=_0xed66ce;_0x462385[_0x4f3ad3(0x111)]=!_0x462385[_0x4f3ad3(0x111)],_0x462385[_0x4f3ad3(0x111)]?this[_0x4f3ad3(0x122)][_0x4f3ad3(0x131)]():this[_0x4f3ad3(0x131)]();});const _0x3ad9bc=()=>{const _0x4b506e=_0xed66ce;_0x58d065[_0x4b506e(0xff)][_0x4b506e(0x10b)](()=>{const _0x544627=_0x4b506e;if(_0x3ba1ee(this[_0x544627(0x103)])){const _0x114b78=new _0x3131ef(this[_0x544627(0x108)][_0x544627(0x129)][_0x544627(0x103)]),_0x149bff=_0x114b78[_0x544627(0x10f)],_0x298b1b=_0x544627(0x137)===_0x194487[_0x544627(0x13a)]?_0x544627(0x125):_0x544627(0x124);_0x114b78[_0x544627(0x10c)](),_0x5a53b8[_0x544627(0x103)][_0x544627(0x138)][_0x298b1b]=_0x149bff-_0x114b78[_0x544627(0x10f)]+0x1+'px';}});};return this[_0xed66ce(0x108)][_0xed66ce(0x129)]['on'](_0xed66ce(0x132),_0x3ad9bc),this['on'](_0xed66ce(0x139),_0x3ad9bc),_0x5a53b8;}[_0x4bae87(0x109)](){const _0x4ba83d=_0x4bae87,_0x1a83b5=this[_0x4ba83d(0x108)][_0x4ba83d(0x129)][_0x4ba83d(0x103)][_0x4ba83d(0x121)];this[_0x4ba83d(0x12c)](_0x4ba83d(0x109),_0x1a83b5);}[_0x4bae87(0x131)](_0x16c09b){const _0x3b794c=_0x4bae87;-0x1===_0x16c09b?this[_0x3b794c(0x118)][_0x3b794c(0x106)]():this[_0x3b794c(0x118)][_0x3b794c(0x12a)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5ba4(){const _0x391201=['mainAction','items','310725bTMKiI','Try\x20again','addMany','Insert\x20below','10998huMlxF','REPLACE','locale','stopButton','replace','replaceButton','200596lcQZxk','label','bind','set','_createButton','bindTemplate','Stop','2454998GWhKxN','724464FcjWPO','_CONTENT','tryAgainButton','extendTemplate','ck-button-action','4297070UsdwWw','AI_','8YEeIHg','insertButton','isVisible','toUpperCase','ck-ai-form__toolbar','7094200JoepDO','ck-hidden','insert'];_0x5ba4=function(){return _0x391201;};return _0x5ba4();}const _0x56e047=_0x3420;(function(_0x2f840d,_0x26e9d6){const _0x25708d=_0x3420,_0x268cea=_0x2f840d();while(!![]){try{const _0x2f4978=-parseInt(_0x25708d(0x6d))/0x1*(parseInt(_0x25708d(0x7b))/0x2)+parseInt(_0x25708d(0x77))/0x3+parseInt(_0x25708d(0x81))/0x4+parseInt(_0x25708d(0x6b))/0x5+parseInt(_0x25708d(0x89))/0x6+parseInt(_0x25708d(0x88))/0x7+-parseInt(_0x25708d(0x72))/0x8;if(_0x2f4978===_0x26e9d6)break;else _0x268cea['push'](_0x268cea['shift']());}catch(_0x417759){_0x268cea['push'](_0x268cea['shift']());}}}(_0x5ba4,0x87365));import{ToolbarView as _0x1e6bd6,ButtonView as _0x5b6878}from'ckeditor5/src/ui.js';function _0x3420(_0x1ab1ea,_0x743ee4){const _0x5ba47c=_0x5ba4();return _0x3420=function(_0x342021,_0x4081f6){_0x342021=_0x342021-0x6b;let _0x5b7089=_0x5ba47c[_0x342021];return _0x5b7089;},_0x3420(_0x1ab1ea,_0x743ee4);}import{getTranslation as _0x51a5b3}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x56e047(0x7f),'INSERT':_0x56e047(0x74)};export default class Tt extends _0x1e6bd6{constructor(_0x4fef00){const _0x3f6b90=_0x56e047;super(_0x4fef00),this[_0x3f6b90(0x84)](_0x3f6b90(0x6f),!0x1),this[_0x3f6b90(0x84)](_0x3f6b90(0x75),AIFormToolbarViewMainActionLabel[_0x3f6b90(0x7c)]),this[_0x3f6b90(0x80)]=this[_0x3f6b90(0x85)]('',_0x3f6b90(0x8d)),this[_0x3f6b90(0x80)][_0x3f6b90(0x83)](_0x3f6b90(0x82))['to'](this,_0x3f6b90(0x75),_0x4b9c43=>_0x51a5b3(_0x4fef00,_0x3f6b90(0x6c)+_0x4b9c43[_0x3f6b90(0x70)]()+_0x3f6b90(0x8a))),this[_0x3f6b90(0x6e)]=this[_0x3f6b90(0x85)](_0x51a5b3(_0x4fef00,_0x3f6b90(0x7a))),this[_0x3f6b90(0x8b)]=this[_0x3f6b90(0x85)](_0x51a5b3(_0x4fef00,_0x3f6b90(0x78))),this[_0x3f6b90(0x7e)]=this[_0x3f6b90(0x85)](_0x51a5b3(_0x4fef00,_0x3f6b90(0x87)));const _0x2128be=this[_0x3f6b90(0x86)];this[_0x3f6b90(0x8c)]({'attributes':{'class':[_0x3f6b90(0x71),_0x2128be['if'](_0x3f6b90(0x6f),_0x3f6b90(0x73),_0x1653ec=>!_0x1653ec)]}}),this[_0x3f6b90(0x76)][_0x3f6b90(0x79)]([this[_0x3f6b90(0x80)],this[_0x3f6b90(0x6e)],this[_0x3f6b90(0x8b)],this[_0x3f6b90(0x7e)]]);}[_0x56e047(0x85)](_0x14442a,_0x3cb6b){const _0x2377eb=_0x56e047,_0x138c6a=new _0x5b6878(this[_0x2377eb(0x7d)]);return _0x138c6a[_0x2377eb(0x84)]({'label':_0x14442a,'class':_0x3cb6b||'','isVisible':!0x0,'withText':!0x0}),_0x138c6a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x280022=_0x1471;(function(_0x392350,_0x54db40){const _0x13ff8f=_0x1471,_0x1b35b2=_0x392350();while(!![]){try{const _0x2df478=-parseInt(_0x13ff8f(0xcc))/0x1+parseInt(_0x13ff8f(0xd3))/0x2+-parseInt(_0x13ff8f(0xae))/0x3*(parseInt(_0x13ff8f(0xbd))/0x4)+-parseInt(_0x13ff8f(0xb7))/0x5*(parseInt(_0x13ff8f(0x95))/0x6)+-parseInt(_0x13ff8f(0xc4))/0x7*(-parseInt(_0x13ff8f(0x93))/0x8)+parseInt(_0x13ff8f(0x8c))/0x9*(-parseInt(_0x13ff8f(0xc3))/0xa)+parseInt(_0x13ff8f(0x7c))/0xb;if(_0x2df478===_0x54db40)break;else _0x1b35b2['push'](_0x1b35b2['shift']());}catch(_0x1e0ad9){_0x1b35b2['push'](_0x1b35b2['shift']());}}}(_0x2fc1,0xaf1f4));import{FocusTracker as _0x19d3a3,KeystrokeHandler as _0x4f64c7}from'ckeditor5/src/utils.js';import{View as _0x3d052f,FocusCycler as _0x57ef31,createLabeledTextarea as _0x40b176}from'ckeditor5/src/ui.js';import _0x590134,{AIFormToolbarViewMainActionLabel as _0x129540}from'./aiformtoolbarview.js';import _0x1f262e from'./aiformcontentarea.js';function _0x2fc1(){const _0x3eb05c=['errorView','startProcessing','15SRUdet','isError','_createHistoryView','trim','finishProcessing','text','ck-ai-form','focusTracker','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','5SQwZvl','Ask\x20AI\x20to\x20improve\x20generated\x20text','focus','isProcessing','items','contentArea','245224ZMlBGO','stopProcessing','_createPromptView','high','add','clearHistory','252970KdInVq','2833628YzANtY','element','backwardCycle','submit','mainAction','tab','insertButton','handleError','632428JvNWAT','fire','AI_ERROR_FAILED','keystrokes','replaceButton','reset','stop','45688xypgqq','toolbar','value','19111697dgNOFr','label','Ask\x20AI\x20to\x20edit\x20or\x20generate','focusPrevious','promptView','tryAgainEvent','replaceContent','setTemplate','historyGroupView','set','isVisible','delegate','shift\x20+\x20tab','listenTo','copyButtonView','bindTo','198VUNTFV','stopButton','isEnabled','locale','focusCycler','createCollection','tryAgainButton','24CCowoc','focusNext','4571346vKuNlh','prompt','Empty\x20history','focusLast','fieldView','ck-ai-form-content','forwardCycle','bind','div','REPLACE','_focusables','_createToolbar','search','clear','bindTemplate','execute','queryView','focusFirst','_promptHistory','ck-hidden','render','insertContentBelow','submitPrompt'];_0x2fc1=function(){return _0x3eb05c;};return _0x2fc1();}import _0x58035a from'./aiformerrorview.js';import _0x8d0633 from'./aiformpromptview.js';import _0x3ae403 from'./aihistorylistview.js';import _0xa6d26d from'./aihistorylistitemview.js';import _0x3b3371 from'./prompthistory.js';import{getTranslation as _0x307172}from'../../utils/common-translations.js';function _0x1471(_0x441a5e,_0x1d2073){const _0x2fc148=_0x2fc1();return _0x1471=function(_0x1471b8,_0x3ec45c){_0x1471b8=_0x1471b8-0x7b;let _0x243aaf=_0x2fc148[_0x1471b8];return _0x243aaf;},_0x1471(_0x441a5e,_0x1d2073);}import{escape as _0xd44b1e}from'lodash-es';export default class x extends _0x3d052f{constructor(_0x4b81a2,_0x3642f5,_0x4412bd=''){const _0x33e338=_0x1471;super(_0x4b81a2),this[_0x33e338(0x85)](_0x33e338(0x8e),!0x0),this[_0x33e338(0x85)](_0x33e338(0xba),!0x1),this[_0x33e338(0x85)](_0x33e338(0x96),''),this[_0x33e338(0x85)](_0x33e338(0x7b),''),this[_0x33e338(0x85)](_0x33e338(0xaf),!0x1),this[_0x33e338(0x85)](_0x33e338(0xc8),_0x129540[_0x33e338(0x9e)]),this[_0x33e338(0xa7)]=new _0x3b3371(),this[_0x33e338(0xac)]=new _0x58035a(_0x4b81a2),this[_0x33e338(0xbc)]=new _0x1f262e(_0x4b81a2,_0x4412bd),this[_0x33e338(0xbc)][_0x33e338(0x9c)](_0x33e338(0xba))['to'](this),this[_0x33e338(0xbc)][_0x33e338(0x9c)](_0x33e338(0x7b))['to'](this),this[_0x33e338(0xd4)]=this[_0x33e338(0xa0)](),this[_0x33e338(0xd4)][_0x33e338(0x9c)](_0x33e338(0xc8))['to'](this),this[_0x33e338(0x80)]=this[_0x33e338(0xbf)](),this[_0x33e338(0xb5)]=new _0x19d3a3(),this[_0x33e338(0xcf)]=new _0x4f64c7(),this[_0x33e338(0x9f)]=this[_0x33e338(0x91)]([this[_0x33e338(0xbc)],this[_0x33e338(0xbc)][_0x33e338(0x8a)],this[_0x33e338(0xd4)],this[_0x33e338(0x80)]]),this[_0x33e338(0x90)]=new _0x57ef31({'focusables':this[_0x33e338(0x9f)],'focusTracker':this[_0x33e338(0xb5)],'keystrokeHandler':this[_0x33e338(0xcf)],'actions':{'focusPrevious':_0x33e338(0x88),'focusNext':_0x33e338(0xc9)}}),this[_0x33e338(0x80)][_0x33e338(0x90)]['on'](_0x33e338(0x9b),_0x13665b=>{const _0x227fcc=_0x33e338;this[_0x227fcc(0x90)][_0x227fcc(0x94)](),_0x13665b[_0x227fcc(0xd2)]();}),this[_0x33e338(0x80)][_0x33e338(0x90)]['on'](_0x33e338(0xc6),_0x4169ed=>{const _0x18d370=_0x33e338;this[_0x18d370(0x90)][_0x18d370(0x7f)](),_0x4169ed[_0x18d370(0xd2)]();}),this[_0x33e338(0x80)][_0x33e338(0xa5)][_0x33e338(0x99)][_0x33e338(0x9c)](_0x33e338(0x7b))['to'](this,_0x33e338(0x96));const _0x37e66a=this[_0x33e338(0xa3)];this[_0x33e338(0x83)]({'tag':_0x33e338(0x9d),'attributes':{'class':['ck',_0x33e338(0xb4),_0x3642f5],'tabindex':'-1'},'children':[{'tag':_0x33e338(0x9d),'attributes':{'class':['ck',_0x33e338(0x9a)]},'children':[{'tag':_0x33e338(0x9d),'attributes':{'class':[_0x37e66a['if'](_0x33e338(0xaf),_0x33e338(0xa8),_0x529123=>!_0x529123)]},'children':[this[_0x33e338(0xac)]]},this[_0x33e338(0xbc)],this[_0x33e338(0xd4)],this[_0x33e338(0x80)]]}]});}[_0x280022(0xa9)](){const _0x51ad3f=_0x280022;super[_0x51ad3f(0xa9)](),this[_0x51ad3f(0xb5)][_0x51ad3f(0xc1)](this[_0x51ad3f(0xbc)][_0x51ad3f(0xc5)]),this[_0x51ad3f(0xb5)][_0x51ad3f(0xc1)](this[_0x51ad3f(0xbc)][_0x51ad3f(0x8a)][_0x51ad3f(0xc5)]),this[_0x51ad3f(0xb5)][_0x51ad3f(0xc1)](this[_0x51ad3f(0xd4)][_0x51ad3f(0xc5)]),this[_0x51ad3f(0xb5)][_0x51ad3f(0xc1)](this[_0x51ad3f(0x80)][_0x51ad3f(0xc5)]),this[_0x51ad3f(0xcf)][_0x51ad3f(0x89)](this[_0x51ad3f(0xc5)]);}[_0x280022(0xb9)](_0x14fb8a=0x1){const _0x277f0c=_0x280022;-0x1===_0x14fb8a?this[_0x277f0c(0x90)][_0x277f0c(0x98)]():this[_0x277f0c(0x90)][_0x277f0c(0xa6)]();}[_0x280022(0xd1)](){const _0x493a6c=_0x280022;this[_0x493a6c(0x96)]='',this[_0x493a6c(0x7b)]='',this[_0x493a6c(0xaf)]=!0x1,this[_0x493a6c(0x80)][_0x493a6c(0xd1)](),this[_0x493a6c(0xbc)][_0x493a6c(0x86)]=!0x1,this[_0x493a6c(0xd4)][_0x493a6c(0x86)]=!0x1;}[_0x280022(0xbf)](){const _0x12ad5b=_0x280022,_0x179047=this[_0x12ad5b(0x8f)],_0x3208bd=new _0x8d0633(_0x179047,{'queryView':{'label':_0x307172(_0x179047,_0x12ad5b(0x7e)),'creator':_0x40b176,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x307172(_0x179047,_0x12ad5b(0x97)),'secondary':_0x307172(_0x179047,_0x12ad5b(0xb6))}}},'filteredView':this[_0x12ad5b(0xb0)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x3208bd[_0x12ad5b(0x9c)](_0x12ad5b(0x8e))['to'](this,_0x12ad5b(0x8e),this,_0x12ad5b(0xba),(_0x270a46,_0x7b556a)=>_0x270a46&&!_0x7b556a),this[_0x12ad5b(0x89)](_0x3208bd,_0x12ad5b(0xc7),(_0x1c1496,_0x15ab1f)=>{const _0x555189=_0x12ad5b;this[_0x555189(0x96)]=_0x15ab1f;const _0x46f92c=_0xd44b1e(_0x15ab1f);this[_0x555189(0xcd)](_0x555189(0xab),_0x46f92c),_0x15ab1f[_0x555189(0xb1)]()&&this[_0x555189(0xa7)][_0x555189(0xc1)]({'prompt':_0x46f92c},0x0);},{'priority':_0x12ad5b(0xc0)}),_0x3208bd;}[_0x280022(0xb0)](){const _0xf781b0=_0x280022,_0x45e879=new _0x3ae403(this[_0xf781b0(0x8f)]);return _0x45e879[_0xf781b0(0x84)][_0xf781b0(0xbb)][_0xf781b0(0x8b)](this[_0xf781b0(0xa7)])['as'](_0xa6d26d),_0x45e879['on'](_0xf781b0(0xc2),()=>{const _0x2bd7ba=_0xf781b0;this[_0x2bd7ba(0xa7)][_0x2bd7ba(0xa2)](),this[_0x2bd7ba(0x80)][_0x2bd7ba(0xa1)](''),this[_0x2bd7ba(0x80)][_0x2bd7ba(0xb9)]();}),_0x45e879;}[_0x280022(0xa0)](){const _0x57227a=_0x280022,_0x57d85b=new _0x590134(this[_0x57227a(0x8f)]);return _0x57d85b[_0x57227a(0xd0)][_0x57227a(0x9c)](_0x57227a(0x8e))['to'](this,_0x57227a(0x8e),this,_0x57227a(0xba),this,_0x57227a(0x7b),(_0x40291d,_0x486d8e,_0x4abef4)=>_0x40291d&&!_0x486d8e&&!!_0x4abef4),_0x57d85b[_0x57227a(0xd0)][_0x57227a(0x87)](_0x57227a(0xa4))['to'](this,_0x57227a(0x82)),_0x57d85b[_0x57227a(0xca)][_0x57227a(0x9c)](_0x57227a(0x8e))['to'](this,_0x57227a(0x8e),this,_0x57227a(0xba),this,_0x57227a(0x7b),(_0xae58ea,_0x35d1c3,_0x44cdb5)=>_0xae58ea&&!_0x35d1c3&&!!_0x44cdb5),_0x57d85b[_0x57227a(0xca)][_0x57227a(0x87)](_0x57227a(0xa4))['to'](this,_0x57227a(0xaa)),_0x57d85b[_0x57227a(0x92)][_0x57227a(0x9c)](_0x57227a(0x8e))['to'](this,_0x57227a(0x8e),this,_0x57227a(0xba),(_0x466399,_0x32b1c1)=>_0x466399&&!_0x32b1c1),_0x57d85b[_0x57227a(0x92)][_0x57227a(0x87)](_0x57227a(0xa4))['to'](this,_0x57227a(0x81)),_0x57d85b[_0x57227a(0x8d)][_0x57227a(0x9c)](_0x57227a(0x8e))['to'](this,_0x57227a(0xba)),_0x57d85b[_0x57227a(0x8d)][_0x57227a(0x87)](_0x57227a(0xa4))['to'](this,_0x57227a(0xbe)),_0x57d85b;}[_0x280022(0xad)](){const _0x4b5ba8=_0x280022;this[_0x4b5ba8(0x7b)]='',this[_0x4b5ba8(0xaf)]=!0x1,this[_0x4b5ba8(0xba)]=!0x0,this[_0x4b5ba8(0xbc)][_0x4b5ba8(0x86)]=!0x0,this[_0x4b5ba8(0xd4)][_0x4b5ba8(0x86)]=!0x0,this[_0x4b5ba8(0xbc)][_0x4b5ba8(0xb9)]();}[_0x280022(0xb2)](){const _0x5009a9=_0x280022,_0x3b5dc3=this[_0x5009a9(0x8f)];this[_0x5009a9(0xba)]=!0x1,this[_0x5009a9(0x96)]='',this[_0x5009a9(0x80)][_0x5009a9(0xd1)](),this[_0x5009a9(0x7b)]&&(this[_0x5009a9(0x80)][_0x5009a9(0xa5)][_0x5009a9(0x7d)]=_0x307172(_0x3b5dc3,_0x5009a9(0xb8)));}[_0x280022(0xcb)](_0x2bda07){const _0xb0b060=_0x280022,_0x5bc60a=this[_0xb0b060(0x8f)];this[_0xb0b060(0xb2)](),this[_0xb0b060(0xaf)]=!0x0,this[_0xb0b060(0xac)][_0xb0b060(0xb3)]=_0x2bda07||_0x307172(_0x5bc60a,_0xb0b060(0xce)),this[_0xb0b060(0x7b)]||(this[_0xb0b060(0xbc)][_0xb0b060(0x86)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x7e0445,_0x224bf2){const _0x272b68=_0x18c3,_0x111df0=_0x7e0445();while(!![]){try{const _0x577d3f=-parseInt(_0x272b68(0x162))/0x1*(parseInt(_0x272b68(0x167))/0x2)+-parseInt(_0x272b68(0x158))/0x3+-parseInt(_0x272b68(0x159))/0x4*(-parseInt(_0x272b68(0x163))/0x5)+-parseInt(_0x272b68(0x15a))/0x6*(-parseInt(_0x272b68(0x165))/0x7)+-parseInt(_0x272b68(0x166))/0x8+parseInt(_0x272b68(0x161))/0x9+parseInt(_0x272b68(0x15d))/0xa;if(_0x577d3f===_0x224bf2)break;else _0x111df0['push'](_0x111df0['shift']());}catch(_0xafa25e){_0x111df0['push'](_0x111df0['shift']());}}}(_0xf5a8,0x231ed));function _0x18c3(_0x2107d6,_0xacd39f){const _0xf5a87e=_0xf5a8();return _0x18c3=function(_0x18c311,_0x193355){_0x18c311=_0x18c311-0x158;let _0x2f939b=_0xf5a87e[_0x18c311];return _0x2f939b;},_0x18c3(_0x2107d6,_0xacd39f);}import{ListItemView as _0xab84b,ButtonView as _0x164076}from'ckeditor5/src/ui.js';function _0xf5a8(){const _0x2209ee=['execute','fire','add','488979wQxUDQ','5914sdghqa','5RwrpWw','locale','207613sLdHuD','1925008CYJcrl','32dqxPCj','prompt','824634UwjAiN','510184JfLknt','48GqFUzz','children','set','3348320qRAVbp'];_0xf5a8=function(){return _0x2209ee;};return _0xf5a8();}import _0x44c51b from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x522e2d}from'lodash-es';export default class hs extends _0xab84b{constructor(_0x192644){const _0x54294a=_0x18c3;super();const _0x2ad3af=new _0x44c51b(),_0xbad3ed=new _0x164076(this[_0x54294a(0x164)],_0x2ad3af);this[_0x54294a(0x15b)][_0x54294a(0x160)](_0xbad3ed),_0xbad3ed[_0x54294a(0x15c)]({'label':_0x192644[_0x54294a(0x168)],'withText':!0x0}),_0xbad3ed['on'](_0x54294a(0x15e),()=>{const _0x15e0ca=_0x54294a;this[_0x15e0ca(0x15f)](_0x15e0ca(0x15e),{'value':_0x522e2d(_0x192644[_0x15e0ca(0x168)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1142(_0x267fc2,_0x74c3e4){const _0x42342a=_0x4234();return _0x1142=function(_0x11420b,_0x15be3d){_0x11420b=_0x11420b-0x18a;let _0x1f42ae=_0x42342a[_0x11420b];return _0x1f42ae;},_0x1142(_0x267fc2,_0x74c3e4);}const _0x270ed7=_0x1142;function _0x4234(){const _0x452832=['label','add','5143808UyxLFb','Clear','_createClearHistoryButton','set','33400BsIcac','Prompt\x20history','144qDOpYc','fire','filter','clearHistoryButton','237430GkIsJc','children','historyGroupView','2016UysSUj','execute','delegate','clearHistory','2689110duSkcm','25238SNNvLH','29834ZJVuQw','1086hoaOVQ','length','locale','1048386EncSxp','items'];_0x4234=function(){return _0x452832;};return _0x4234();}(function(_0x52f516,_0x13a3a2){const _0xa64f20=_0x1142,_0x57f577=_0x52f516();while(!![]){try{const _0x9491ae=parseInt(_0xa64f20(0x192))/0x1+-parseInt(_0xa64f20(0x18d))/0x2+parseInt(_0xa64f20(0x18c))/0x3+-parseInt(_0xa64f20(0x196))/0x4+-parseInt(_0xa64f20(0x19a))/0x5*(parseInt(_0xa64f20(0x18f))/0x6)+parseInt(_0xa64f20(0x18e))/0x7*(parseInt(_0xa64f20(0x1a3))/0x8)+parseInt(_0xa64f20(0x19c))/0x9*(parseInt(_0xa64f20(0x1a0))/0xa);if(_0x9491ae===_0x13a3a2)break;else _0x57f577['push'](_0x57f577['shift']());}catch(_0x56ebf3){_0x57f577['push'](_0x57f577['shift']());}}}(_0x4234,0xd9889));import{ListView as _0x91bb2,ListItemGroupView as _0x147bf4,ButtonView as _0x286b6c}from'ckeditor5/src/ui.js';import{getTranslation as _0x209a1e}from'../../utils/common-translations.js';export default class rs extends _0x91bb2{constructor(_0x4e2bb6){const _0x5deb15=_0x1142;super(_0x4e2bb6),this[_0x5deb15(0x19f)]=this[_0x5deb15(0x198)](),this[_0x5deb15(0x1a2)]=new _0x147bf4(),this[_0x5deb15(0x1a2)][_0x5deb15(0x1a1)][_0x5deb15(0x195)](this[_0x5deb15(0x19f)],0x1),this[_0x5deb15(0x1a2)][_0x5deb15(0x194)]=_0x209a1e(_0x4e2bb6,_0x5deb15(0x19b)),this[_0x5deb15(0x1a2)][_0x5deb15(0x193)][_0x5deb15(0x18a)](_0x5deb15(0x1a4))['to'](this),this[_0x5deb15(0x193)][_0x5deb15(0x195)](this[_0x5deb15(0x1a2)]);}[_0x270ed7(0x19e)](){const _0x31fdf9=_0x270ed7;let _0x28edf4=0x0;for(const _0x17f57c of this[_0x31fdf9(0x193)])_0x28edf4+=_0x17f57c[_0x31fdf9(0x193)][_0x31fdf9(0x190)];return{'resultsCount':_0x28edf4,'totalItemsCount':_0x28edf4};}[_0x270ed7(0x198)](){const _0x3a40f7=_0x270ed7,_0xfde888=this[_0x3a40f7(0x191)],_0x58b974=new _0x286b6c(this[_0x3a40f7(0x191)]);return _0x58b974[_0x3a40f7(0x199)]({'label':'('+_0x209a1e(_0xfde888,_0x3a40f7(0x197))+')','withText':!0x0}),_0x58b974['on'](_0x3a40f7(0x1a4),()=>this[_0x3a40f7(0x19d)](_0x3a40f7(0x18b))),_0x58b974;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f59c1=_0x4182;(function(_0x240430,_0x47d425){const _0x570dee=_0x4182,_0x266156=_0x240430();while(!![]){try{const _0x5c7fd2=parseInt(_0x570dee(0x1e1))/0x1*(parseInt(_0x570dee(0x1e6))/0x2)+-parseInt(_0x570dee(0x1e9))/0x3+parseInt(_0x570dee(0x1e3))/0x4*(-parseInt(_0x570dee(0x1e7))/0x5)+-parseInt(_0x570dee(0x1eb))/0x6*(parseInt(_0x570dee(0x1d6))/0x7)+-parseInt(_0x570dee(0x1e4))/0x8+-parseInt(_0x570dee(0x1d7))/0x9*(-parseInt(_0x570dee(0x1ee))/0xa)+parseInt(_0x570dee(0x1de))/0xb*(parseInt(_0x570dee(0x1e5))/0xc);if(_0x5c7fd2===_0x47d425)break;else _0x266156['push'](_0x266156['shift']());}catch(_0x678f91){_0x266156['push'](_0x266156['shift']());}}}(_0x4a12,0xa4211));function _0x4a12(){const _0x2a75af=['getItem','addMany','38983qyvlnQ','556659moFhsD','last','map','CKEditor/AIFormView/PromptHistory','stringify','toLowerCase','trim','263824ZhZAhw','setItem','remove','1zODapp','length','4nSQiyp','5307712PcfNAZ','876Pwafns','1212374iBhqwg','908555rgQkHc','add','3441480VFonhV','_loadFromSessionStorage','1068oGqLfc','_saveToSessionStorage','parse','210teExMH','prompt'];_0x4a12=function(){return _0x2a75af;};return _0x4a12();}import{Collection as _0x268657}from'ckeditor5/src/utils.js';const cs=_0x2f59c1(0x1da);function _0x4182(_0x251be6,_0x39cbbb){const _0x4a1270=_0x4a12();return _0x4182=function(_0x41825c,_0x5e190e){_0x41825c=_0x41825c-0x1d5;let _0x3389a2=_0x4a1270[_0x41825c];return _0x3389a2;},_0x4182(_0x251be6,_0x39cbbb);}export default class os extends _0x268657{constructor(){const _0xad10e3=_0x2f59c1;super(),this[_0xad10e3(0x1ea)](),this['on'](_0xad10e3(0x1e8),(_0x444f32,_0x470fc1)=>{const _0x144cbe=_0xad10e3,_0x54e03c=Ss(_0x470fc1[_0x144cbe(0x1ef)]);for(const _0x508162 of this)if(_0x508162!=_0x470fc1&&Ss(_0x508162[_0x144cbe(0x1ef)])===_0x54e03c){this[_0x144cbe(0x1e0)](_0x508162);break;}this[_0x144cbe(0x1e2)]>0x14&&this[_0x144cbe(0x1e0)](this[_0x144cbe(0x1d8)]),this[_0x144cbe(0x1ec)]();}),this['on'](_0xad10e3(0x1e0),()=>{const _0x3271bc=_0xad10e3;this[_0x3271bc(0x1ec)]();});}[_0x2f59c1(0x1ea)](){const _0x3f3680=_0x2f59c1,_0x9c202b=sessionStorage[_0x3f3680(0x1f0)](cs)||'[]';this[_0x3f3680(0x1d5)](JSON[_0x3f3680(0x1ed)](_0x9c202b));}[_0x2f59c1(0x1ec)](){const _0x4b1d74=_0x2f59c1;sessionStorage[_0x4b1d74(0x1df)](cs,JSON[_0x4b1d74(0x1db)](this[_0x4b1d74(0x1d9)](_0x3f9577=>_0x3f9577)));}}function Ss(_0x5dac89){const _0x2b61d0=_0x2f59c1;return _0x5dac89[_0x2b61d0(0x1dc)]()[_0x2b61d0(0x1dd)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3217(){const _0x2f8306=['plugins','getItems','selection','document','24QXgukn','1120516DsoDRP','reduce','ai.aiAssistant.disabledElements','isEmpty','from','getRanges','getSelectedBlocks','1587075fGYKCj','showUI','getFirstRange','23236nxZDCm','execute','concat','change:_hasContext','enabledCommandsIds','element','8015790IJmakJ','change:isEnabled','isCollapsed','length','144765bpXrwm','728391IQCrjk','6570505hHNPUc','add','hasContent','model','isEnabled','commands','_commandDefinitions','set','includes','refresh','94eWbfIU','editor','get','name','custom','requiresContent','config','1850lKrqJp','_hasContext'];_0x3217=function(){return _0x2f8306;};return _0x3217();}const _0x2aee62=_0xd5f1;(function(_0x16d005,_0x508332){const _0x5bb595=_0xd5f1,_0x332b94=_0x16d005();while(!![]){try{const _0x2f54f8=-parseInt(_0x5bb595(0x1e9))/0x1*(parseInt(_0x5bb595(0x201))/0x2)+-parseInt(_0x5bb595(0x1de))/0x3+-parseInt(_0x5bb595(0x1f7))/0x4+-parseInt(_0x5bb595(0x1df))/0x5+parseInt(_0x5bb595(0x207))/0x6+parseInt(_0x5bb595(0x1fe))/0x7*(-parseInt(_0x5bb595(0x1f6))/0x8)+parseInt(_0x5bb595(0x20b))/0x9*(parseInt(_0x5bb595(0x1f0))/0xa);if(_0x2f54f8===_0x508332)break;else _0x332b94['push'](_0x332b94['shift']());}catch(_0x3a1e92){_0x332b94['push'](_0x332b94['shift']());}}}(_0x3217,0xab7bc));import{Command as _0x57aac5}from'ckeditor5/src/core.js';import _0xad8b16 from'../aiassistantui.js';function _0xd5f1(_0x47e83e,_0x17f165){const _0x3217a3=_0x3217();return _0xd5f1=function(_0xd5f15e,_0x491403){_0xd5f15e=_0xd5f15e-0x1de;let _0x27a663=_0x3217a3[_0xd5f15e];return _0x27a663;},_0xd5f1(_0x47e83e,_0x17f165);}export default class j extends _0x57aac5{constructor(_0x27d58b,_0x2bcb36){const _0x15e9a5=_0xd5f1;super(_0x27d58b),this[_0x15e9a5(0x1e5)]=_0x2bcb36?_0x2bcb36[_0x15e9a5(0x1f8)]((_0x19d785,_0x3a8138)=>_0x19d785[_0x15e9a5(0x203)](_0x3a8138[_0x15e9a5(0x1e4)]),new Array()):[],this[_0x15e9a5(0x1e6)](_0x15e9a5(0x205),[]),this['on'](_0x15e9a5(0x204),(_0x5bfb43,_0x4e43ae,_0x2af8a4)=>{const _0x11e0f1=_0x15e9a5;this[_0x11e0f1(0x1e3)]&&(this[_0x11e0f1(0x205)]=K(this[_0x11e0f1(0x1e5)],_0x2af8a4));}),this[_0x15e9a5(0x1e6)](_0x15e9a5(0x1f1),!0x1),this['on'](_0x15e9a5(0x208),(_0x3c42bf,_0x576975,_0x165e85)=>{const _0x547bf7=_0x15e9a5;this[_0x547bf7(0x205)]=_0x165e85?K(this[_0x547bf7(0x1e5)],this[_0x547bf7(0x1f1)]):[];});}[_0x2aee62(0x1e8)](){const _0x1ac074=_0x2aee62,_0x35fb05=this[_0x1ac074(0x1ea)][_0x1ac074(0x1e2)];this[_0x1ac074(0x1f1)]=function(_0x4a97aa){const _0x8c1704=_0x1ac074,_0x24bdcc=_0x4a97aa[_0x8c1704(0x1f5)][_0x8c1704(0x1f4)];return _0x24bdcc[_0x8c1704(0x209)]?0x0!==[..._0x24bdcc[_0x8c1704(0x1fd)]()][_0x8c1704(0x20a)]&&![..._0x24bdcc[_0x8c1704(0x1fd)]()][0x0][_0x8c1704(0x1fa)]:!!_0x4a97aa[_0x8c1704(0x1e1)](_0x24bdcc[_0x8c1704(0x200)]());}(_0x35fb05);const _0x36cb28=_0x35fb05[_0x1ac074(0x1f5)][_0x1ac074(0x1f4)],_0x2fe978=this[_0x1ac074(0x1ea)][_0x1ac074(0x1ef)][_0x1ac074(0x1eb)](_0x1ac074(0x1f9));for(const _0x535395 of _0x36cb28[_0x1ac074(0x1fc)]())for(const _0x223d0b of _0x535395[_0x1ac074(0x1f3)]())if(_0x223d0b['is'](_0x1ac074(0x206))&&_0x2fe978[_0x1ac074(0x1e7)](_0x223d0b[_0x1ac074(0x1ec)]))return void(this[_0x1ac074(0x1e3)]=!0x1);this[_0x1ac074(0x1e3)]=!0x0;}[_0x2aee62(0x202)](_0x137e0e='',_0x478665='',_0x4edd29=_0x2aee62(0x1ed)){const _0x3e3e2f=_0x2aee62;this[_0x3e3e2f(0x1ea)][_0x3e3e2f(0x1f2)][_0x3e3e2f(0x1eb)](_0xad8b16)[_0x3e3e2f(0x1ff)](_0x137e0e,_0x478665,_0x4edd29);}}function K(_0x53abc8,_0x1b953a){const _0x5655ec=_0x2aee62,_0x40eae3=new Set();for(const _0xe9a408 of _0x53abc8)(_0x1b953a||!0x1===_0xe9a408[_0x5655ec(0x1ee)])&&_0x40eae3[_0x5655ec(0x1e0)](_0xe9a408['id']);return Array[_0x5655ec(0x1fb)](_0x40eae3);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x17add6,_0x3c1d75,_0x1e9e65){const t=_0x17add6['t'];switch(_0x3c1d75){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',_0x1e9e65);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',_0x1e9e65);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1e9e65);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'},_0x1e9e65);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 _0x3c1d75;}}
|