@ckeditor/ckeditor5-ai 0.0.0-nightly-20240319.1 → 0.0.0-nightly-20240321.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 +1 -1
- 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 _0x4d87f4=_0x1c72;(function(_0x29292c,_0x359a18){const _0x13d5bc=_0x1c72,_0x287411=_0x29292c();while(!![]){try{const _0x2bfdf3=parseInt(_0x13d5bc(0x189))/0x1+-parseInt(_0x13d5bc(0x177))/0x2+parseInt(_0x13d5bc(0x182))/0x3+parseInt(_0x13d5bc(0x176))/0x4+parseInt(_0x13d5bc(0x180))/0x5*(parseInt(_0x13d5bc(0x186))/0x6)+parseInt(_0x13d5bc(0x18a))/0x7*(parseInt(_0x13d5bc(0x17c))/0x8)+-parseInt(_0x13d5bc(0x15f))/0x9;if(_0x2bfdf3===_0x359a18)break;else _0x287411['push'](_0x287411['shift']());}catch(_0x69dda7){_0x287411['push'](_0x287411['shift']());}}}(_0x4446,0xd1f37));function _0x1c72(_0xbbd805,_0x797c6d){const _0x444685=_0x4446();return _0x1c72=function(_0x1c72ae,_0x482972){_0x1c72ae=_0x1c72ae-0x13d;let _0x25015d=_0x444685[_0x1c72ae];return _0x25015d;},_0x1c72(_0xbbd805,_0x797c6d);}import{global as _0x10d233}from'ckeditor5/src/utils.js';import{View as _0x3d9ec8,ButtonView as _0x39f21c,SpinnerView as _0x231705}from'ckeditor5/src/ui.js';import _0x4a7d1b from'../../../theme/icons/copy.svg';import{getTranslation as _0x3a1738}from'../../utils/common-translations.js';import{icons as _0x3583c9}from'ckeditor5/src/core.js';export default class st extends _0x3d9ec8{constructor(_0x49f34a,_0x206a77=''){const _0x1aa76e=_0x1c72;super(_0x49f34a),this[_0x1aa76e(0x150)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5f45c1=this[_0x1aa76e(0x17d)];this[_0x1aa76e(0x18e)]=new ContentFieldView(_0x49f34a,_0x206a77),this[_0x1aa76e(0x144)]=this[_0x1aa76e(0x171)](),this[_0x1aa76e(0x169)]({'tag':_0x1aa76e(0x16a),'attributes':{'class':['ck',_0x1aa76e(0x164),_0x5f45c1['if'](_0x1aa76e(0x13d),_0x1aa76e(0x17e),_0x48fb42=>!_0x48fb42)],'tabindex':'-1'},'children':[{'tag':_0x1aa76e(0x16a),'attributes':{'class':['ck',_0x1aa76e(0x159),_0x5f45c1['if'](_0x1aa76e(0x18f),_0x1aa76e(0x156))]},'children':[this[_0x1aa76e(0x18e)],{'tag':_0x1aa76e(0x16a),'attributes':{'class':['ck',_0x1aa76e(0x163)]},'children':[this[_0x1aa76e(0x144)]]}]}]});}[_0x4d87f4(0x141)](){const _0x52f8d5=_0x4d87f4;super[_0x52f8d5(0x141)](),this[_0x52f8d5(0x155)]&&this[_0x52f8d5(0x18e)][_0x52f8d5(0x13e)](this[_0x52f8d5(0x155)]);let _0x48ac80=!0x1;this['on'](_0x52f8d5(0x143),(_0xf24c30,_0x2e891f,_0x3080cc)=>{const _0x5457a8=_0x52f8d5,_0x4d07b3=!this[_0x5457a8(0x18e)][_0x5457a8(0x14b)][_0x5457a8(0x16b)](_0x5457a8(0x18b));this[_0x5457a8(0x18e)][_0x5457a8(0x13e)](_0x3080cc),this[_0x5457a8(0x18f)]&&_0x4d07b3&&!_0x48ac80&&this[_0x5457a8(0x14b)][_0x5457a8(0x187)]({'top':this[_0x5457a8(0x14b)][_0x5457a8(0x17f)],'behavior':_0x5457a8(0x161)});}),this['on'](_0x52f8d5(0x14a),(_0x1afb35,_0x542f52,_0xce39fd)=>{const _0x20c8d0=_0x52f8d5;_0x48ac80=!0x1,_0xce39fd?(this[_0x20c8d0(0x155)]=null,this[_0x20c8d0(0x18e)][_0x20c8d0(0x15b)]()):this[_0x20c8d0(0x155)]||this[_0x20c8d0(0x18e)][_0x20c8d0(0x13e)]('');}),this[_0x52f8d5(0x15a)](this[_0x52f8d5(0x14b)],_0x52f8d5(0x17b),()=>{_0x48ac80=!0x0;}),this[_0x52f8d5(0x15a)](this[_0x52f8d5(0x14b)],_0x52f8d5(0x146),()=>{_0x48ac80=!0x0;});}[_0x4d87f4(0x152)](){const _0x242c54=_0x4d87f4;this[_0x242c54(0x14b)][_0x242c54(0x152)]();}[_0x4d87f4(0x171)](){const _0x5eb5b4=_0x4d87f4,_0x1a5cc3=this[_0x5eb5b4(0x18c)],_0x3b62bd=new _0x39f21c(this[_0x5eb5b4(0x18c)]),_0x27fbf3=_0x5eb5b4(0x14c);return _0x3b62bd[_0x5eb5b4(0x150)]({'label':_0x3a1738(_0x1a5cc3,_0x5eb5b4(0x188)),'icon':_0x4a7d1b,'class':_0x27fbf3,'tooltip':!0x0}),_0x3b62bd[_0x5eb5b4(0x16f)](_0x5eb5b4(0x13d))['to'](this,_0x5eb5b4(0x155),_0x548209=>!!_0x548209),_0x3b62bd[_0x5eb5b4(0x16f)](_0x5eb5b4(0x151))['to'](this,_0x5eb5b4(0x18f),_0x239d42=>!_0x239d42),_0x3b62bd['on'](_0x5eb5b4(0x174),()=>{const _0x1dee76=_0x5eb5b4;this[_0x1dee76(0x14d)](this[_0x1dee76(0x18e)][_0x1dee76(0x14b)]),_0x3b62bd[_0x1dee76(0x148)]=_0x3583c9[_0x1dee76(0x184)],_0x3b62bd[_0x1dee76(0x172)]=_0x27fbf3+_0x1dee76(0x16d),this[_0x1dee76(0x152)](),setTimeout(()=>{const _0x231dec=_0x1dee76;_0x3b62bd[_0x231dec(0x148)]=_0x4a7d1b,_0x3b62bd[_0x231dec(0x172)]=_0x27fbf3;},0x3e8);}),_0x3b62bd;}[_0x4d87f4(0x14d)](_0x550dcc){const _0x242470=_0x4d87f4,{window:_0x431e39,document:_0x399aee}=_0x10d233;if(_0x431e39[_0x242470(0x15d)]){const {Blob:_0x235281,ClipboardItem:_0x5d1a71}=_0x431e39,_0x19d677=[new _0x5d1a71({'text/html':new _0x235281([_0x550dcc[_0x242470(0x157)]],{'type':_0x242470(0x13f)}),'text/plain':new _0x235281([_0x550dcc[_0x242470(0x140)]||''],{'type':_0x242470(0x15c)})})];navigator[_0x242470(0x14e)][_0x242470(0x167)](_0x19d677);}else{const _0x1cdd19=_0x399aee[_0x242470(0x149)](_0x242470(0x16a));_0x1cdd19[_0x242470(0x168)][_0x242470(0x14f)]=_0x242470(0x145),_0x1cdd19[_0x242470(0x168)][_0x242470(0x166)]=_0x242470(0x191),_0x1cdd19[_0x242470(0x157)]=_0x242470(0x18d)+_0x550dcc[_0x242470(0x157)]+_0x242470(0x190),_0x399aee[_0x242470(0x162)][_0x242470(0x15e)](_0x1cdd19);const _0x1110f1=_0x399aee[_0x242470(0x183)]();_0x1110f1[_0x242470(0x142)](_0x1cdd19[_0x242470(0x175)]),_0x1110f1[_0x242470(0x181)](_0x1cdd19[_0x242470(0x153)]);const _0xa64560=_0x431e39[_0x242470(0x158)]();_0xa64560[_0x242470(0x170)](),_0xa64560[_0x242470(0x179)](_0x1110f1),_0x399aee[_0x242470(0x160)](_0x242470(0x17a)),_0x1cdd19[_0x242470(0x147)]();}}}function _0x4446(){const _0xef5f83=['focus','lastElementChild','ck-reset_all-excluded','value','ck-ai-form__content-area--processing','innerHTML','getSelection','ck-ai-form__content-area','listenTo','appendLoader','text/plain','ClipboardItem','appendChild','39924072ANyESu','execCommand','smooth','body','ck-ai-form__copy-button-wrapper','ck-ai-form__content-area-wrapper','AI\x20is\x20writing...','left','write','style','setTemplate','div','querySelector','loaderView','\x20ck-ai-form__copy-button--copied','_createLoader','bind','removeAllRanges','_createCopyButton','class','ck-content','execute','firstElementChild','716924MnCYKZ','699838GWfplh','ck-ai-form__loader','addRange','copy','wheel','11727608uHxZWY','bindTemplate','ck-hidden','scrollHeight','10VfCWCb','setEndBefore','5035647KAEoQl','createRange','check','ck-ai-form__content-field','5033724IUcFbP','scrollTo','Copy','644247ADAJWZ','7tMEdBr','.ck-ai-form__loader','locale','<span>[</span>','contentFieldView','isProcessing','<span>]</span>','-9999px','isVisible','setContent','text/html','textContent','render','setStartAfter','change:value','copyButtonView','absolute','mousedown','remove','icon','createElement','change:isProcessing','element','ck-ai-form__copy-button','_copyHTMLToClipboard','clipboard','position','set','isEnabled'];_0x4446=function(){return _0xef5f83;};return _0x4446();}export class ContentFieldView extends _0x3d9ec8{constructor(_0x3394a9,_0xcfb65f=''){const _0x10b6bb=_0x4d87f4;super(_0x3394a9),this[_0x10b6bb(0x16c)]=this[_0x10b6bb(0x16e)](),this[_0x10b6bb(0x169)]({'tag':_0x10b6bb(0x16a),'attributes':{'class':['ck',_0x10b6bb(0x173),_0xcfb65f,_0x10b6bb(0x154),_0x10b6bb(0x185)]}});}[_0x4d87f4(0x13e)](_0x3bb306){const _0x3064c1=_0x4d87f4;this[_0x3064c1(0x14b)][_0x3064c1(0x157)]=_0x3bb306;}[_0x4d87f4(0x15b)](){const _0x5ac6dc=_0x4d87f4;this[_0x5ac6dc(0x14b)][_0x5ac6dc(0x15e)](this[_0x5ac6dc(0x16c)][_0x5ac6dc(0x14b)]);}[_0x4d87f4(0x16e)](){const _0x458073=_0x4d87f4,_0x2d5af4=new _0x3d9ec8(),_0x27288c=this[_0x458073(0x18c)],_0x4f6ae8=new _0x231705();return _0x4f6ae8[_0x458073(0x13d)]=!0x0,_0x2d5af4[_0x458073(0x169)]({'tag':_0x458073(0x16a),'attributes':{'class':['ck',_0x458073(0x178)]},'children':[_0x4f6ae8,{'text':_0x3a1738(_0x27288c,_0x458073(0x165))}]}),_0x2d5af4[_0x458073(0x141)](),_0x2d5af4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x57cae3,_0x258ec8){const _0x5503b4=_0x532a,_0x3c908b=_0x57cae3();while(!![]){try{const _0x2fc368=-parseInt(_0x5503b4(0x114))/0x1*(parseInt(_0x5503b4(0x110))/0x2)+-parseInt(_0x5503b4(0x115))/0x3*(parseInt(_0x5503b4(0x107))/0x4)+-parseInt(_0x5503b4(0x10e))/0x5*(parseInt(_0x5503b4(0x108))/0x6)+-parseInt(_0x5503b4(0x117))/0x7*(parseInt(_0x5503b4(0x11a))/0x8)+parseInt(_0x5503b4(0x10c))/0x9*(-parseInt(_0x5503b4(0x111))/0xa)+parseInt(_0x5503b4(0x116))/0xb*(-parseInt(_0x5503b4(0x118))/0xc)+parseInt(_0x5503b4(0x109))/0xd*(parseInt(_0x5503b4(0x10a))/0xe);if(_0x2fc368===_0x258ec8)break;else _0x3c908b['push'](_0x3c908b['shift']());}catch(_0x37c78a){_0x3c908b['push'](_0x3c908b['shift']());}}}(_0x1cd6,0x18ec5));import{View as _0x3258fd,IconView as _0x1706ec}from'ckeditor5/src/ui.js';function _0x1cd6(){const _0x26bc43=['ck-ai-form__error','9esEjCU','content','405120ogrEYD','text','2NdFbdh','1729850YLYeEY','set','setTemplate','193255sKYMVF','150777uPPsJy','11DOByrB','518QyTFEC','1825464szDkjj','div','11216mDHmul','bindTemplate','12KPasNj','12dmHiKw','65gJJohA','2903656KmkdhV'];_0x1cd6=function(){return _0x26bc43;};return _0x1cd6();}import _0x1d59a7 from'../../../theme/icons/error.svg';function _0x532a(_0x1b9100,_0x3ed76d){const _0x1cd625=_0x1cd6();return _0x532a=function(_0x532ad1,_0x4fa5ca){_0x532ad1=_0x532ad1-0x107;let _0x483262=_0x1cd625[_0x532ad1];return _0x483262;},_0x532a(_0x1b9100,_0x3ed76d);}export default class ot extends _0x3258fd{constructor(_0xe46889,_0x1881fe=''){const _0x1f980f=_0x532a;super(_0xe46889);const _0x51b161=new _0x1706ec(),_0x1b1964=this[_0x1f980f(0x11b)];this[_0x1f980f(0x112)](_0x1f980f(0x10f),_0x1881fe),_0x51b161[_0x1f980f(0x10d)]=_0x1d59a7,this[_0x1f980f(0x113)]({'tag':_0x1f980f(0x119),'attributes':{'class':['ck',_0x1f980f(0x10b)]},'children':[_0x51b161,{'text':_0x1b1964['to'](_0x1f980f(0x10f))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xaec738=_0x55ca;function _0x170f(){const _0x35cd22=['requestAnimationFrame','focus','submit','render','uiLanguageDirection','update','element','ck-ai-form__toggle-history','execute','history','target','isEmpty','9078475NWzqSE','resultsView','submitButtonView','children','fire','259951ATfFfZ','27deHfUz','queryView','_createSubmitButton','focusLast','focusableChildren','4lQpcGJ','keystrokes','ck-ai-form__submit','fieldView','add','focusCycler','left','enter','set','rtl','fieldWrapperChildren','4424800FXEXHu','_createShowHistoryButton','minRows','180OQsGPb','window','style','isEnabled','excludeScrollbarsAndBorders','347848lTkLKW','value','width','Submit','1804056wZvwTa','maxRows','right','isOn','focusFirst','bind','History','isVisible','showHistoryButtonView','locale','5336696iPdlPD','filteredView','453920eQHqCb'];_0x170f=function(){return _0x35cd22;};return _0x170f();}(function(_0x3f7dde,_0x49fda6){const _0x2789ca=_0x55ca,_0x1583d5=_0x3f7dde();while(!![]){try{const _0x167b49=parseInt(_0x2789ca(0x13e))/0x1+parseInt(_0x2789ca(0x11c))/0x2*(-parseInt(_0x2789ca(0x13f))/0x3)+parseInt(_0x2789ca(0x144))/0x4*(-parseInt(_0x2789ca(0x114))/0x5)+parseInt(_0x2789ca(0x120))/0x6+parseInt(_0x2789ca(0x139))/0x7+parseInt(_0x2789ca(0x12a))/0x8+parseInt(_0x2789ca(0x117))/0x9*(parseInt(_0x2789ca(0x12c))/0xa);if(_0x167b49===_0x49fda6)break;else _0x1583d5['push'](_0x1583d5['shift']());}catch(_0x459c02){_0x1583d5['push'](_0x1583d5['shift']());}}}(_0x170f,0xefcbb));function _0x55ca(_0x3e82c8,_0x3513b2){const _0x170f6e=_0x170f();return _0x55ca=function(_0x55ca17,_0x40fabb){_0x55ca17=_0x55ca17-0x110;let _0x3dd756=_0x170f6e[_0x55ca17];return _0x3dd756;},_0x55ca(_0x3e82c8,_0x3513b2);}import{Rect as _0x4fbec7,global as _0x2c740e,isVisible as _0x197314}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x5a57f1,ButtonView as _0x586819}from'ckeditor5/src/ui.js';import{icons as _0x22f033}from'ckeditor5/src/core.js';import{getTranslation as _0x204a44}from'../../utils/common-translations.js';import _0x3973ab from'../../../theme/icons/submit.svg';export default class lt extends _0x5a57f1{constructor(_0x39633f,_0x4d4587){const _0x52f405=_0x55ca;super(_0x39633f,_0x4d4587),this[_0x52f405(0x140)][_0x52f405(0x147)][_0x52f405(0x116)]=0x1,this[_0x52f405(0x140)][_0x52f405(0x147)][_0x52f405(0x121)]=0x3,this[_0x52f405(0x13b)]=this[_0x52f405(0x141)](),this[_0x52f405(0x128)]=this[_0x52f405(0x115)](),this[_0x52f405(0x143)][_0x52f405(0x148)](this[_0x52f405(0x128)],0x1),this[_0x52f405(0x143)][_0x52f405(0x148)](this[_0x52f405(0x13b)]);}[_0xaec738(0x130)](){const _0x4eaf57=_0xaec738;super[_0x4eaf57(0x130)](),this[_0x4eaf57(0x140)][_0x4eaf57(0x113)][_0x4eaf57(0x148)](this[_0x4eaf57(0x128)]),this[_0x4eaf57(0x13c)][_0x4eaf57(0x148)](this[_0x4eaf57(0x13b)]),this[_0x4eaf57(0x145)][_0x4eaf57(0x111)](_0x4eaf57(0x110),(_0x1f0d86,_0x117d11)=>{const _0x31148b=_0x4eaf57;_0x1f0d86[_0x31148b(0x137)]==this[_0x31148b(0x140)][_0x31148b(0x147)][_0x31148b(0x133)]&&(this[_0x31148b(0x12f)](),_0x117d11());});}[_0xaec738(0x141)](){const _0xeb4ff0=_0xaec738,_0x4abba3=new _0x586819(this[_0xeb4ff0(0x129)]),_0x2c9f47=this[_0xeb4ff0(0x129)];return _0x4abba3[_0xeb4ff0(0x111)]({'icon':_0x3973ab,'label':_0x204a44(_0x2c9f47,_0xeb4ff0(0x11f)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xeb4ff0(0x146)}),_0x4abba3['on'](_0xeb4ff0(0x135),()=>{const _0x1939cd=_0xeb4ff0;this[_0x1939cd(0x12f)]();}),_0x4abba3[_0xeb4ff0(0x125)](_0xeb4ff0(0x11a))['to'](this[_0xeb4ff0(0x140)][_0xeb4ff0(0x147)],_0xeb4ff0(0x138),this,_0xeb4ff0(0x11a),(_0x39cd40,_0x1e1e96)=>!_0x39cd40&&_0x1e1e96),_0x4abba3;}[_0xaec738(0x115)](){const _0x3fe9b8=_0xaec738,_0x1dfca9=new _0x586819(this[_0x3fe9b8(0x129)]),_0x1bf414=this[_0x3fe9b8(0x13a)],_0x2fd321=this[_0x3fe9b8(0x129)];_0x1dfca9[_0x3fe9b8(0x111)]({'label':_0x204a44(_0x2fd321,_0x3fe9b8(0x126)),'withText':!0x1,'icon':_0x22f033[_0x3fe9b8(0x136)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x3fe9b8(0x134)}),_0x1dfca9[_0x3fe9b8(0x125)](_0x3fe9b8(0x123))['to'](_0x1bf414,_0x3fe9b8(0x127)),_0x1dfca9[_0x3fe9b8(0x125)](_0x3fe9b8(0x11a))['to'](this,_0x3fe9b8(0x11a)),_0x1dfca9['on'](_0x3fe9b8(0x135),()=>{const _0x5f5db3=_0x3fe9b8;_0x1bf414[_0x5f5db3(0x127)]=!_0x1bf414[_0x5f5db3(0x127)],_0x1bf414[_0x5f5db3(0x127)]?this[_0x5f5db3(0x12b)][_0x5f5db3(0x12e)]():this[_0x5f5db3(0x12e)]();});const _0x2e319d=()=>{const _0xdae635=_0x3fe9b8;_0x2c740e[_0xdae635(0x118)][_0xdae635(0x12d)](()=>{const _0x7b1def=_0xdae635;if(_0x197314(this[_0x7b1def(0x133)])){const _0x41c89d=new _0x4fbec7(this[_0x7b1def(0x140)][_0x7b1def(0x147)][_0x7b1def(0x133)]),_0x321e14=_0x41c89d[_0x7b1def(0x11e)],_0x17d343=_0x7b1def(0x112)===_0x2fd321[_0x7b1def(0x131)]?_0x7b1def(0x14a):_0x7b1def(0x122);_0x41c89d[_0x7b1def(0x11b)](),_0x1dfca9[_0x7b1def(0x133)][_0x7b1def(0x119)][_0x17d343]=_0x321e14-_0x41c89d[_0x7b1def(0x11e)]+0x1+'px';}});};return this[_0x3fe9b8(0x140)][_0x3fe9b8(0x147)]['on'](_0x3fe9b8(0x132),_0x2e319d),this['on'](_0x3fe9b8(0x130),_0x2e319d),_0x1dfca9;}[_0xaec738(0x12f)](){const _0x25de2d=_0xaec738,_0x369f7e=this[_0x25de2d(0x140)][_0x25de2d(0x147)][_0x25de2d(0x133)][_0x25de2d(0x11d)];this[_0x25de2d(0x13d)](_0x25de2d(0x12f),_0x369f7e);}[_0xaec738(0x12e)](_0x4654f0){const _0x1281ea=_0xaec738;-0x1===_0x4654f0?this[_0x1281ea(0x149)][_0x1281ea(0x142)]():this[_0x1281ea(0x149)][_0x1281ea(0x124)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x380584=_0x6fe0;(function(_0x49b5cf,_0x4ac1c1){const _0x3347f8=_0x6fe0,_0x542314=_0x49b5cf();while(!![]){try{const _0x267905=-parseInt(_0x3347f8(0x83))/0x1+-parseInt(_0x3347f8(0x91))/0x2*(-parseInt(_0x3347f8(0x99))/0x3)+-parseInt(_0x3347f8(0x9b))/0x4*(-parseInt(_0x3347f8(0x85))/0x5)+-parseInt(_0x3347f8(0x88))/0x6*(parseInt(_0x3347f8(0x7d))/0x7)+parseInt(_0x3347f8(0x78))/0x8+-parseInt(_0x3347f8(0x92))/0x9*(-parseInt(_0x3347f8(0x8e))/0xa)+parseInt(_0x3347f8(0x8a))/0xb*(-parseInt(_0x3347f8(0x9a))/0xc);if(_0x267905===_0x4ac1c1)break;else _0x542314['push'](_0x542314['shift']());}catch(_0x4cd2e1){_0x542314['push'](_0x542314['shift']());}}}(_0x4c77,0x48a25));function _0x4c77(){const _0x33681e=['mainAction','ck-hidden','145523rovVLM','replace','bindTemplate','stopButton','AI_','Stop','411701BUdcJk','Insert\x20below','5XytYCb','toUpperCase','Try\x20again','30SXMkAP','label','6655PlDSuW','locale','ck-button-action','items','44630pwJvss','extendTemplate','insert','18566sVcTTI','1017DtAlxT','_createButton','insertButton','addMany','replaceButton','tryAgainButton','ck-ai-form__toolbar','105Etfqnw','17112YmNztl','1349396wCtXdC','_CONTENT','isVisible','bind','4074496VxlVfJ','set','REPLACE'];_0x4c77=function(){return _0x33681e;};return _0x4c77();}import{ToolbarView as _0x55f335,ButtonView as _0x3cbeec}from'ckeditor5/src/ui.js';import{getTranslation as _0x4e862b}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x380584(0x7e),'INSERT':_0x380584(0x90)};function _0x6fe0(_0x287c91,_0x80cbb9){const _0x4c7715=_0x4c77();return _0x6fe0=function(_0x6fe031,_0x377ca9){_0x6fe031=_0x6fe031-0x76;let _0x2f3109=_0x4c7715[_0x6fe031];return _0x2f3109;},_0x6fe0(_0x287c91,_0x80cbb9);}export default class bt extends _0x55f335{constructor(_0x397b97){const _0x23900f=_0x380584;super(_0x397b97),this[_0x23900f(0x79)](_0x23900f(0x76),!0x1),this[_0x23900f(0x79)](_0x23900f(0x7b),AIFormToolbarViewMainActionLabel[_0x23900f(0x7a)]),this[_0x23900f(0x96)]=this[_0x23900f(0x93)]('',_0x23900f(0x8c)),this[_0x23900f(0x96)][_0x23900f(0x77)](_0x23900f(0x89))['to'](this,_0x23900f(0x7b),_0x448087=>_0x4e862b(_0x397b97,_0x23900f(0x81)+_0x448087[_0x23900f(0x86)]()+_0x23900f(0x9c))),this[_0x23900f(0x94)]=this[_0x23900f(0x93)](_0x4e862b(_0x397b97,_0x23900f(0x84))),this[_0x23900f(0x97)]=this[_0x23900f(0x93)](_0x4e862b(_0x397b97,_0x23900f(0x87))),this[_0x23900f(0x80)]=this[_0x23900f(0x93)](_0x4e862b(_0x397b97,_0x23900f(0x82)));const _0x2ff03c=this[_0x23900f(0x7f)];this[_0x23900f(0x8f)]({'attributes':{'class':[_0x23900f(0x98),_0x2ff03c['if'](_0x23900f(0x76),_0x23900f(0x7c),_0x30a696=>!_0x30a696)]}}),this[_0x23900f(0x8d)][_0x23900f(0x95)]([this[_0x23900f(0x96)],this[_0x23900f(0x94)],this[_0x23900f(0x97)],this[_0x23900f(0x80)]]);}[_0x380584(0x93)](_0x1b3057,_0x1762f9){const _0x3d169a=_0x380584,_0x136d7f=new _0x3cbeec(this[_0x3d169a(0x8b)]);return _0x136d7f[_0x3d169a(0x79)]({'label':_0x1b3057,'class':_0x1762f9||'','isVisible':!0x0,'withText':!0x0}),_0x136d7f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14f816=_0x3f79;(function(_0x1ce13f,_0x2cd562){const _0x1d41b1=_0x3f79,_0x24b7b8=_0x1ce13f();while(!![]){try{const _0x4c6086=parseInt(_0x1d41b1(0xf5))/0x1+parseInt(_0x1d41b1(0x100))/0x2+-parseInt(_0x1d41b1(0xe3))/0x3+parseInt(_0x1d41b1(0x10e))/0x4*(parseInt(_0x1d41b1(0xc5))/0x5)+parseInt(_0x1d41b1(0xfe))/0x6*(parseInt(_0x1d41b1(0xd6))/0x7)+-parseInt(_0x1d41b1(0x10b))/0x8*(-parseInt(_0x1d41b1(0xf1))/0x9)+-parseInt(_0x1d41b1(0xcc))/0xa*(parseInt(_0x1d41b1(0xe5))/0xb);if(_0x4c6086===_0x2cd562)break;else _0x24b7b8['push'](_0x24b7b8['shift']());}catch(_0xc4ec85){_0x24b7b8['push'](_0x24b7b8['shift']());}}}(_0x2c5b,0xb250e));function _0x3f79(_0x8b796f,_0x8af24e){const _0x2c5bf2=_0x2c5b();return _0x3f79=function(_0x3f79dc,_0x1c9d3a){_0x3f79dc=_0x3f79dc-0xc5;let _0x26d914=_0x2c5bf2[_0x3f79dc];return _0x26d914;},_0x3f79(_0x8b796f,_0x8af24e);}import{FocusTracker as _0x47e377,KeystrokeHandler as _0x59c780}from'ckeditor5/src/utils.js';import{View as _0x5b4d4e,FocusCycler as _0x295e8c,createLabeledTextarea as _0x55a342}from'ckeditor5/src/ui.js';import _0x9d2979,{AIFormToolbarViewMainActionLabel as _0x395334}from'./aiformtoolbarview.js';import _0xa9c6cc from'./aiformcontentarea.js';import _0x3601aa from'./aiformerrorview.js';import _0x4b4dea from'./aiformpromptview.js';import _0x2f5600 from'./aihistorylistview.js';function _0x2c5b(){const _0x12e76c=['contentArea','toolbar','20plopYi','items','bind','tryAgainEvent','label','fire','_promptHistory','focusFirst','_createToolbar','tryAgainButton','337281mFKWmK','forwardCycle','REPLACE','high','AI_ERROR_FAILED','stopButton','_focusables','promptView','bindTo','focusNext','locale','focusCycler','handleError','1667586gjkppA','bindTemplate','8358823JDCmmS','execute','ck-ai-form','set','reset','add','stop','render','Ask\x20AI\x20to\x20edit\x20or\x20generate','errorView','div','finishProcessing','400581InbLlL','focusTracker','replaceContent','clear','1022187WOiOfg','stopProcessing','queryView','prompt','_createHistoryView','value','ck-ai-form-content','copyButtonView','ck-hidden','36zcrdLa','isEnabled','359086DdzXiw','_createPromptView','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertButton','tab','replaceButton','backwardCycle','clearHistory','text','focus','startProcessing','8PIUQJi','setTemplate','focusLast','175268vGCUyY','createCollection','isProcessing','delegate','submit','trim','shift\x20+\x20tab','search','isVisible','fieldView','historyGroupView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','listenTo','Empty\x20history','isError','element','insertContentBelow','145JNZsmE','focusPrevious','keystrokes','submitPrompt','mainAction'];_0x2c5b=function(){return _0x12e76c;};return _0x2c5b();}import _0x1ff3a8 from'./aihistorylistitemview.js';import _0x2b67c1 from'./prompthistory.js';import{getTranslation as _0x5369a5}from'../../utils/common-translations.js';import{escape as _0x15ef99}from'lodash-es';export default class j extends _0x5b4d4e{constructor(_0x5c9332,_0xfd7dc9,_0x40c8bc=''){const _0x6c125=_0x3f79;super(_0x5c9332),this[_0x6c125(0xe8)](_0x6c125(0xff),!0x0),this[_0x6c125(0xe8)](_0x6c125(0x110),!0x1),this[_0x6c125(0xe8)](_0x6c125(0xf8),''),this[_0x6c125(0xe8)](_0x6c125(0xfa),''),this[_0x6c125(0xe8)](_0x6c125(0x11c),!0x1),this[_0x6c125(0xe8)](_0x6c125(0xc9),_0x395334[_0x6c125(0xd8)]),this[_0x6c125(0xd2)]=new _0x2b67c1(),this[_0x6c125(0xee)]=new _0x3601aa(_0x5c9332),this[_0x6c125(0xca)]=new _0xa9c6cc(_0x5c9332,_0x40c8bc),this[_0x6c125(0xca)][_0x6c125(0xce)](_0x6c125(0x110))['to'](this),this[_0x6c125(0xca)][_0x6c125(0xce)](_0x6c125(0xfa))['to'](this),this[_0x6c125(0xcb)]=this[_0x6c125(0xd4)](),this[_0x6c125(0xcb)][_0x6c125(0xce)](_0x6c125(0xc9))['to'](this),this[_0x6c125(0xdd)]=this[_0x6c125(0x101)](),this[_0x6c125(0xf2)]=new _0x47e377(),this[_0x6c125(0xc7)]=new _0x59c780(),this[_0x6c125(0xdc)]=this[_0x6c125(0x10f)]([this[_0x6c125(0xca)],this[_0x6c125(0xca)][_0x6c125(0xfc)],this[_0x6c125(0xcb)],this[_0x6c125(0xdd)]]),this[_0x6c125(0xe1)]=new _0x295e8c({'focusables':this[_0x6c125(0xdc)],'focusTracker':this[_0x6c125(0xf2)],'keystrokeHandler':this[_0x6c125(0xc7)],'actions':{'focusPrevious':_0x6c125(0x114),'focusNext':_0x6c125(0x104)}}),this[_0x6c125(0xdd)][_0x6c125(0xe1)]['on'](_0x6c125(0xd7),_0x2dfee1=>{const _0x3ee6b1=_0x6c125;this[_0x3ee6b1(0xe1)][_0x3ee6b1(0xdf)](),_0x2dfee1[_0x3ee6b1(0xeb)]();}),this[_0x6c125(0xdd)][_0x6c125(0xe1)]['on'](_0x6c125(0x106),_0x5510e2=>{const _0x130ef4=_0x6c125;this[_0x130ef4(0xe1)][_0x130ef4(0xc6)](),_0x5510e2[_0x130ef4(0xeb)]();}),this[_0x6c125(0xdd)][_0x6c125(0xf7)][_0x6c125(0x117)][_0x6c125(0xce)](_0x6c125(0xfa))['to'](this,_0x6c125(0xf8));const _0x117e60=this[_0x6c125(0xe4)];this[_0x6c125(0x10c)]({'tag':_0x6c125(0xef),'attributes':{'class':['ck',_0x6c125(0xe7),_0xfd7dc9],'tabindex':'-1'},'children':[{'tag':_0x6c125(0xef),'attributes':{'class':['ck',_0x6c125(0xfb)]},'children':[{'tag':_0x6c125(0xef),'attributes':{'class':[_0x117e60['if'](_0x6c125(0x11c),_0x6c125(0xfd),_0x4e423e=>!_0x4e423e)]},'children':[this[_0x6c125(0xee)]]},this[_0x6c125(0xca)],this[_0x6c125(0xcb)],this[_0x6c125(0xdd)]]}]});}[_0x14f816(0xec)](){const _0x33f02d=_0x14f816;super[_0x33f02d(0xec)](),this[_0x33f02d(0xf2)][_0x33f02d(0xea)](this[_0x33f02d(0xca)][_0x33f02d(0x11d)]),this[_0x33f02d(0xf2)][_0x33f02d(0xea)](this[_0x33f02d(0xca)][_0x33f02d(0xfc)][_0x33f02d(0x11d)]),this[_0x33f02d(0xf2)][_0x33f02d(0xea)](this[_0x33f02d(0xcb)][_0x33f02d(0x11d)]),this[_0x33f02d(0xf2)][_0x33f02d(0xea)](this[_0x33f02d(0xdd)][_0x33f02d(0x11d)]),this[_0x33f02d(0xc7)][_0x33f02d(0x11a)](this[_0x33f02d(0x11d)]);}[_0x14f816(0x109)](_0x4159a6=0x1){const _0x390724=_0x14f816;-0x1===_0x4159a6?this[_0x390724(0xe1)][_0x390724(0x10d)]():this[_0x390724(0xe1)][_0x390724(0xd3)]();}[_0x14f816(0xe9)](){const _0x3fe04c=_0x14f816;this[_0x3fe04c(0xf8)]='',this[_0x3fe04c(0xfa)]='',this[_0x3fe04c(0x11c)]=!0x1,this[_0x3fe04c(0xdd)][_0x3fe04c(0xe9)](),this[_0x3fe04c(0xca)][_0x3fe04c(0x116)]=!0x1,this[_0x3fe04c(0xcb)][_0x3fe04c(0x116)]=!0x1;}[_0x14f816(0x101)](){const _0xd4da9=_0x14f816,_0x39667c=this[_0xd4da9(0xe0)],_0x43bca1=new _0x4b4dea(_0x39667c,{'queryView':{'label':_0x5369a5(_0x39667c,_0xd4da9(0xed)),'creator':_0x55a342,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5369a5(_0x39667c,_0xd4da9(0x11b)),'secondary':_0x5369a5(_0x39667c,_0xd4da9(0x119))}}},'filteredView':this[_0xd4da9(0xf9)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x43bca1[_0xd4da9(0xce)](_0xd4da9(0xff))['to'](this,_0xd4da9(0xff),this,_0xd4da9(0x110),(_0x33c9ce,_0x3bd51a)=>_0x33c9ce&&!_0x3bd51a),this[_0xd4da9(0x11a)](_0x43bca1,_0xd4da9(0x112),(_0x391349,_0x55bef6)=>{const _0x59b871=_0xd4da9;this[_0x59b871(0xf8)]=_0x55bef6;const _0x338067=_0x15ef99(_0x55bef6);this[_0x59b871(0xd1)](_0x59b871(0xc8),_0x338067),_0x55bef6[_0x59b871(0x113)]()&&this[_0x59b871(0xd2)][_0x59b871(0xea)]({'prompt':_0x338067},0x0);},{'priority':_0xd4da9(0xd9)}),_0x43bca1;}[_0x14f816(0xf9)](){const _0x2c652c=_0x14f816,_0x24cba0=new _0x2f5600(this[_0x2c652c(0xe0)]);return _0x24cba0[_0x2c652c(0x118)][_0x2c652c(0xcd)][_0x2c652c(0xde)](this[_0x2c652c(0xd2)])['as'](_0x1ff3a8),_0x24cba0['on'](_0x2c652c(0x107),()=>{const _0x332b66=_0x2c652c;this[_0x332b66(0xd2)][_0x332b66(0xf4)](),this[_0x332b66(0xdd)][_0x332b66(0x115)](''),this[_0x332b66(0xdd)][_0x332b66(0x109)]();}),_0x24cba0;}[_0x14f816(0xd4)](){const _0x5bd2d4=_0x14f816,_0x58293b=new _0x9d2979(this[_0x5bd2d4(0xe0)]);return _0x58293b[_0x5bd2d4(0x105)][_0x5bd2d4(0xce)](_0x5bd2d4(0xff))['to'](this,_0x5bd2d4(0xff),this,_0x5bd2d4(0x110),this,_0x5bd2d4(0xfa),(_0x65b1a5,_0x366d38,_0x5cdec9)=>_0x65b1a5&&!_0x366d38&&!!_0x5cdec9),_0x58293b[_0x5bd2d4(0x105)][_0x5bd2d4(0x111)](_0x5bd2d4(0xe6))['to'](this,_0x5bd2d4(0xf3)),_0x58293b[_0x5bd2d4(0x103)][_0x5bd2d4(0xce)](_0x5bd2d4(0xff))['to'](this,_0x5bd2d4(0xff),this,_0x5bd2d4(0x110),this,_0x5bd2d4(0xfa),(_0x48797c,_0x37d6a7,_0x368737)=>_0x48797c&&!_0x37d6a7&&!!_0x368737),_0x58293b[_0x5bd2d4(0x103)][_0x5bd2d4(0x111)](_0x5bd2d4(0xe6))['to'](this,_0x5bd2d4(0x11e)),_0x58293b[_0x5bd2d4(0xd5)][_0x5bd2d4(0xce)](_0x5bd2d4(0xff))['to'](this,_0x5bd2d4(0xff),this,_0x5bd2d4(0x110),(_0x3b3df0,_0x5bac8c)=>_0x3b3df0&&!_0x5bac8c),_0x58293b[_0x5bd2d4(0xd5)][_0x5bd2d4(0x111)](_0x5bd2d4(0xe6))['to'](this,_0x5bd2d4(0xcf)),_0x58293b[_0x5bd2d4(0xdb)][_0x5bd2d4(0xce)](_0x5bd2d4(0xff))['to'](this,_0x5bd2d4(0x110)),_0x58293b[_0x5bd2d4(0xdb)][_0x5bd2d4(0x111)](_0x5bd2d4(0xe6))['to'](this,_0x5bd2d4(0xf6)),_0x58293b;}[_0x14f816(0x10a)](){const _0x4a6271=_0x14f816;this[_0x4a6271(0xfa)]='',this[_0x4a6271(0x11c)]=!0x1,this[_0x4a6271(0x110)]=!0x0,this[_0x4a6271(0xca)][_0x4a6271(0x116)]=!0x0,this[_0x4a6271(0xcb)][_0x4a6271(0x116)]=!0x0,this[_0x4a6271(0xca)][_0x4a6271(0x109)]();}[_0x14f816(0xf0)](){const _0x31b901=_0x14f816,_0x13cc51=this[_0x31b901(0xe0)];this[_0x31b901(0x110)]=!0x1,this[_0x31b901(0xf8)]='',this[_0x31b901(0xdd)][_0x31b901(0xe9)](),this[_0x31b901(0xfa)]&&(this[_0x31b901(0xdd)][_0x31b901(0xf7)][_0x31b901(0xd0)]=_0x5369a5(_0x13cc51,_0x31b901(0x102)));}[_0x14f816(0xe2)](_0x1f784e){const _0x45a6e9=_0x14f816,_0x26392d=this[_0x45a6e9(0xe0)];this[_0x45a6e9(0xf0)](),this[_0x45a6e9(0x11c)]=!0x0,this[_0x45a6e9(0xee)][_0x45a6e9(0x108)]=_0x1f784e||_0x5369a5(_0x26392d,_0x45a6e9(0xda)),this[_0x45a6e9(0xfa)]||(this[_0x45a6e9(0xca)][_0x45a6e9(0x116)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x28f48f,_0x1f3378){const _0x2be38a=_0x2f4b,_0x45cdc9=_0x28f48f();while(!![]){try{const _0x32bf9b=-parseInt(_0x2be38a(0xec))/0x1+parseInt(_0x2be38a(0xef))/0x2+parseInt(_0x2be38a(0xee))/0x3*(parseInt(_0x2be38a(0xe1))/0x4)+parseInt(_0x2be38a(0xf0))/0x5*(-parseInt(_0x2be38a(0xea))/0x6)+parseInt(_0x2be38a(0xe7))/0x7+-parseInt(_0x2be38a(0xe5))/0x8+parseInt(_0x2be38a(0xeb))/0x9*(parseInt(_0x2be38a(0xe0))/0xa);if(_0x32bf9b===_0x1f3378)break;else _0x45cdc9['push'](_0x45cdc9['shift']());}catch(_0x50f3d1){_0x45cdc9['push'](_0x45cdc9['shift']());}}}(_0x1fb5,0xd93dc));import{ListItemView as _0xb562bb,ButtonView as _0x313c3e}from'ckeditor5/src/ui.js';import _0x3d0517 from'../dropdown/buttonlabelwithhighlightview.js';function _0x2f4b(_0x3a10f,_0x1cdb03){const _0x1fb57c=_0x1fb5();return _0x2f4b=function(_0x2f4b0a,_0x569adb){_0x2f4b0a=_0x2f4b0a-0xe0;let _0x5ebe86=_0x1fb57c[_0x2f4b0a];return _0x5ebe86;},_0x2f4b(_0x3a10f,_0x1cdb03);}function _0x1fb5(){const _0x24c74b=['1192688eJgrfD','locale','7873551WPYIZM','fire','add','198DMNQFc','5157bKLpNx','821671maajMo','prompt','12OvlYOO','3260288cylPbL','205215ZoZdxq','950rxPBYC','405624OUIGjh','set','children','execute'];_0x1fb5=function(){return _0x24c74b;};return _0x1fb5();}import{unescape as _0x3243de}from'lodash-es';export default class hs extends _0xb562bb{constructor(_0x1533a5){const _0x3ecc5e=_0x2f4b;super();const _0x5a91ea=new _0x3d0517(),_0x567061=new _0x313c3e(this[_0x3ecc5e(0xe6)],_0x5a91ea);this[_0x3ecc5e(0xe3)][_0x3ecc5e(0xe9)](_0x567061),_0x567061[_0x3ecc5e(0xe2)]({'label':_0x1533a5[_0x3ecc5e(0xed)],'withText':!0x0}),_0x567061['on'](_0x3ecc5e(0xe4),()=>{const _0x483593=_0x3ecc5e;this[_0x483593(0xe8)](_0x483593(0xe4),{'value':_0x3243de(_0x1533a5[_0x483593(0xed)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31a345=_0x4b33;(function(_0x1a2ce0,_0xf74567){const _0x5d1823=_0x4b33,_0x526b6c=_0x1a2ce0();while(!![]){try{const _0x8c6a10=-parseInt(_0x5d1823(0x1ad))/0x1+-parseInt(_0x5d1823(0x19a))/0x2+-parseInt(_0x5d1823(0x1ab))/0x3*(-parseInt(_0x5d1823(0x198))/0x4)+-parseInt(_0x5d1823(0x195))/0x5+parseInt(_0x5d1823(0x1a0))/0x6*(parseInt(_0x5d1823(0x196))/0x7)+parseInt(_0x5d1823(0x19d))/0x8*(parseInt(_0x5d1823(0x1aa))/0x9)+parseInt(_0x5d1823(0x197))/0xa*(parseInt(_0x5d1823(0x194))/0xb);if(_0x8c6a10===_0xf74567)break;else _0x526b6c['push'](_0x526b6c['shift']());}catch(_0x38a8b4){_0x526b6c['push'](_0x526b6c['shift']());}}}(_0x27da,0x4121a));function _0x4b33(_0x45d7a4,_0x2eebdb){const _0x27da84=_0x27da();return _0x4b33=function(_0x4b333a,_0x362d05){_0x4b333a=_0x4b333a-0x194;let _0x2b7b2a=_0x27da84[_0x4b333a];return _0x2b7b2a;},_0x4b33(_0x45d7a4,_0x2eebdb);}function _0x27da(){const _0x1ee00f=['6912JMtXmx','historyGroupView','label','66bLwEkc','clearHistoryButton','locale','filter','length','clearHistory','_createClearHistoryButton','items','add','children','1332UNtkKg','1229463ZAlPVN','fire','200285NZpmvI','execute','delegate','76395jpKeHt','346350peczEQ','224693HoXneS','150OkjJpK','4dteYpg','Clear','917248qqAYyK','set','Prompt\x20history'];_0x27da=function(){return _0x1ee00f;};return _0x27da();}import{ListView as _0x5e55fe,ListItemGroupView as _0x253756,ButtonView as _0x329862}from'ckeditor5/src/ui.js';import{getTranslation as _0x3d81ed}from'../../utils/common-translations.js';export default class rs extends _0x5e55fe{constructor(_0x1ed599){const _0x5901e3=_0x4b33;super(_0x1ed599),this[_0x5901e3(0x1a1)]=this[_0x5901e3(0x1a6)](),this[_0x5901e3(0x19e)]=new _0x253756(),this[_0x5901e3(0x19e)][_0x5901e3(0x1a9)][_0x5901e3(0x1a8)](this[_0x5901e3(0x1a1)],0x1),this[_0x5901e3(0x19e)][_0x5901e3(0x19f)]=_0x3d81ed(_0x1ed599,_0x5901e3(0x19c)),this[_0x5901e3(0x19e)][_0x5901e3(0x1a7)][_0x5901e3(0x1af)](_0x5901e3(0x1ae))['to'](this),this[_0x5901e3(0x1a7)][_0x5901e3(0x1a8)](this[_0x5901e3(0x19e)]);}[_0x31a345(0x1a3)](){const _0x536530=_0x31a345;let _0x2ba460=0x0;for(const _0x498c9c of this[_0x536530(0x1a7)])_0x2ba460+=_0x498c9c[_0x536530(0x1a7)][_0x536530(0x1a4)];return{'resultsCount':_0x2ba460,'totalItemsCount':_0x2ba460};}[_0x31a345(0x1a6)](){const _0x685d15=_0x31a345,_0x4c1b89=this[_0x685d15(0x1a2)],_0x1801c2=new _0x329862(this[_0x685d15(0x1a2)]);return _0x1801c2[_0x685d15(0x19b)]({'label':'('+_0x3d81ed(_0x4c1b89,_0x685d15(0x199))+')','withText':!0x0}),_0x1801c2['on'](_0x685d15(0x1ae),()=>this[_0x685d15(0x1ac)](_0x685d15(0x1a5))),_0x1801c2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x23065d=_0x2a53;function _0x5ad6(){const _0x1ba66b=['197641XVztar','add','map','30TTwfGi','parse','prompt','toLowerCase','379267ZtSKre','length','remove','512eiEXtS','CKEditor/AIFormView/PromptHistory','3900159cUIYvw','1176GdJgHQ','setItem','trim','207996hQQYDE','526730BZakSB','addMany','_saveToSessionStorage','stringify','last','_loadFromSessionStorage','1222464pDSajW','getItem'];_0x5ad6=function(){return _0x1ba66b;};return _0x5ad6();}(function(_0x1ada3f,_0x5eedbb){const _0x497e9a=_0x2a53,_0x39adb5=_0x1ada3f();while(!![]){try{const _0x2bb72b=parseInt(_0x497e9a(0x1d8))/0x1+parseInt(_0x497e9a(0x1cf))/0x2+parseInt(_0x497e9a(0x1cc))/0x3*(parseInt(_0x497e9a(0x1c9))/0x4)+-parseInt(_0x497e9a(0x1d0))/0x5+parseInt(_0x497e9a(0x1db))/0x6*(parseInt(_0x497e9a(0x1c6))/0x7)+parseInt(_0x497e9a(0x1d6))/0x8+-parseInt(_0x497e9a(0x1cb))/0x9;if(_0x2bb72b===_0x5eedbb)break;else _0x39adb5['push'](_0x39adb5['shift']());}catch(_0x48a5ec){_0x39adb5['push'](_0x39adb5['shift']());}}}(_0x5ad6,0x39d1f));import{Collection as _0x29f3e2}from'ckeditor5/src/utils.js';const cs=_0x23065d(0x1ca);export default class os extends _0x29f3e2{constructor(){const _0x3dddce=_0x23065d;super(),this[_0x3dddce(0x1d5)](),this['on'](_0x3dddce(0x1d9),(_0x19b034,_0x26a0c8)=>{const _0x1c3169=_0x3dddce,_0x6f731c=Ss(_0x26a0c8[_0x1c3169(0x1dd)]);for(const _0x4859ad of this)if(_0x4859ad!=_0x26a0c8&&Ss(_0x4859ad[_0x1c3169(0x1dd)])===_0x6f731c){this[_0x1c3169(0x1c8)](_0x4859ad);break;}this[_0x1c3169(0x1c7)]>0x14&&this[_0x1c3169(0x1c8)](this[_0x1c3169(0x1d4)]),this[_0x1c3169(0x1d2)]();}),this['on'](_0x3dddce(0x1c8),()=>{const _0x826cdc=_0x3dddce;this[_0x826cdc(0x1d2)]();});}[_0x23065d(0x1d5)](){const _0x9f35f7=_0x23065d,_0x39c9b0=sessionStorage[_0x9f35f7(0x1d7)](cs)||'[]';this[_0x9f35f7(0x1d1)](JSON[_0x9f35f7(0x1dc)](_0x39c9b0));}[_0x23065d(0x1d2)](){const _0x21d7e7=_0x23065d;sessionStorage[_0x21d7e7(0x1cd)](cs,JSON[_0x21d7e7(0x1d3)](this[_0x21d7e7(0x1da)](_0x38ecf0=>_0x38ecf0)));}}function _0x2a53(_0xe67415,_0x5c1413){const _0x5ad636=_0x5ad6();return _0x2a53=function(_0x2a53dc,_0x28d806){_0x2a53dc=_0x2a53dc-0x1c6;let _0x188b32=_0x5ad636[_0x2a53dc];return _0x188b32;},_0x2a53(_0xe67415,_0x5c1413);}function Ss(_0x3fc079){const _0x2e6539=_0x23065d;return _0x3fc079[_0x2e6539(0x1de)]()[_0x2e6539(0x1ce)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x429c35=_0x20a3;(function(_0x15d362,_0x372e76){const _0x4d89ec=_0x20a3,_0x1b86b2=_0x15d362();while(!![]){try{const _0x4d1d4c=parseInt(_0x4d89ec(0x122))/0x1*(parseInt(_0x4d89ec(0x120))/0x2)+parseInt(_0x4d89ec(0x126))/0x3+-parseInt(_0x4d89ec(0x145))/0x4+parseInt(_0x4d89ec(0x137))/0x5*(parseInt(_0x4d89ec(0x143))/0x6)+parseInt(_0x4d89ec(0x123))/0x7+-parseInt(_0x4d89ec(0x136))/0x8+parseInt(_0x4d89ec(0x127))/0x9;if(_0x4d1d4c===_0x372e76)break;else _0x1b86b2['push'](_0x1b86b2['shift']());}catch(_0x5728bd){_0x1b86b2['push'](_0x1b86b2['shift']());}}}(_0x5d5c,0x36e9e));import{Command as _0x21dfaf}from'ckeditor5/src/core.js';import _0x2f0740 from'../aiassistantui.js';function _0x5d5c(){const _0x4b7af8=['3205144ALiapp','1885IeFlbg','set','change:_hasContext','add','getItems','isEmpty','concat','requiresContent','ai.aiAssistant.disabledElements','execute','document','refresh','1206ZouTdP','showUI','690972GeHbXK','includes','model','getSelectedBlocks','isEnabled','isCollapsed','enabledCommandsIds','change:isEnabled','265346GQQoxV','selection','1nbFFxB','1910888qVGuzD','getFirstRange','get','891636kvtQSE','176994wCoGgz','element','name','_commandDefinitions','hasContent','custom','_hasContext','editor','from','config','getRanges','plugins','commands','reduce','length'];_0x5d5c=function(){return _0x4b7af8;};return _0x5d5c();}function _0x20a3(_0x1f80a0,_0x397a3f){const _0x5d5ce5=_0x5d5c();return _0x20a3=function(_0x20a36f,_0x468331){_0x20a36f=_0x20a36f-0x11f;let _0x5ecc31=_0x5d5ce5[_0x20a36f];return _0x5ecc31;},_0x20a3(_0x1f80a0,_0x397a3f);}export default class y extends _0x21dfaf{constructor(_0x38f283,_0x595cfb){const _0x1051b0=_0x20a3;super(_0x38f283),this[_0x1051b0(0x12a)]=_0x595cfb?_0x595cfb[_0x1051b0(0x134)]((_0x1a852d,_0x4a2c10)=>_0x1a852d[_0x1051b0(0x13d)](_0x4a2c10[_0x1051b0(0x133)]),new Array()):[],this[_0x1051b0(0x138)](_0x1051b0(0x14b),[]),this['on'](_0x1051b0(0x139),(_0x14c29e,_0x270828,_0x2984f2)=>{const _0x12f541=_0x1051b0;this[_0x12f541(0x149)]&&(this[_0x12f541(0x14b)]=F(this[_0x12f541(0x12a)],_0x2984f2));}),this[_0x1051b0(0x138)](_0x1051b0(0x12d),!0x1),this['on'](_0x1051b0(0x11f),(_0x1f0bb9,_0x5c854d,_0x416e50)=>{const _0x400283=_0x1051b0;this[_0x400283(0x14b)]=_0x416e50?F(this[_0x400283(0x12a)],this[_0x400283(0x12d)]):[];});}[_0x429c35(0x142)](){const _0x533de3=_0x429c35,_0x391b5a=this[_0x533de3(0x12e)][_0x533de3(0x147)];this[_0x533de3(0x12d)]=function(_0x1c9c66){const _0x4ffca6=_0x533de3,_0x29e75a=_0x1c9c66[_0x4ffca6(0x141)][_0x4ffca6(0x121)];return _0x29e75a[_0x4ffca6(0x14a)]?0x0!==[..._0x29e75a[_0x4ffca6(0x148)]()][_0x4ffca6(0x135)]&&![..._0x29e75a[_0x4ffca6(0x148)]()][0x0][_0x4ffca6(0x13c)]:!!_0x1c9c66[_0x4ffca6(0x12b)](_0x29e75a[_0x4ffca6(0x124)]());}(_0x391b5a);const _0x421036=_0x391b5a[_0x533de3(0x141)][_0x533de3(0x121)],_0x1c2d95=this[_0x533de3(0x12e)][_0x533de3(0x130)][_0x533de3(0x125)](_0x533de3(0x13f));for(const _0x1c9cde of _0x421036[_0x533de3(0x131)]())for(const _0xc06ec5 of _0x1c9cde[_0x533de3(0x13b)]())if(_0xc06ec5['is'](_0x533de3(0x128))&&_0x1c2d95[_0x533de3(0x146)](_0xc06ec5[_0x533de3(0x129)]))return void(this[_0x533de3(0x149)]=!0x1);this[_0x533de3(0x149)]=!0x0;}[_0x429c35(0x140)](_0xce854a='',_0x3cc5f3='',_0x2191c8=_0x429c35(0x12c)){const _0x359c50=_0x429c35;this[_0x359c50(0x12e)][_0x359c50(0x132)][_0x359c50(0x125)](_0x2f0740)[_0x359c50(0x144)](_0xce854a,_0x3cc5f3,_0x2191c8);}}function F(_0x5dc463,_0x3d4c57){const _0x4574a8=_0x429c35,_0x1b5920=new Set();for(const _0x378593 of _0x5dc463)(_0x3d4c57||!0x1===_0x378593[_0x4574a8(0x13e)])&&_0x1b5920[_0x4574a8(0x13a)](_0x378593['id']);return Array[_0x4574a8(0x12f)](_0x1b5920);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2188aa,_0x5b82b7,_0xe9fa4e){const t=_0x2188aa['t'];switch(_0x5b82b7){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',_0xe9fa4e);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'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'},_0xe9fa4e);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 _0x5b82b7;}}
|