@ckeditor/ckeditor5-ai 0.0.0-nightly-20240411.0 → 0.0.0-nightly-20240413.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 _0x2fde6f=_0x3cf4;(function(_0x162da2,_0x1da849){const _0x54520a=_0x3cf4,_0x4dd467=_0x162da2();while(!![]){try{const _0x4a0772=parseInt(_0x54520a(0x15a))/0x1+-parseInt(_0x54520a(0x12c))/0x2*(-parseInt(_0x54520a(0x14c))/0x3)+parseInt(_0x54520a(0x12d))/0x4+-parseInt(_0x54520a(0x140))/0x5+parseInt(_0x54520a(0x124))/0x6+-parseInt(_0x54520a(0x139))/0x7*(parseInt(_0x54520a(0x158))/0x8)+parseInt(_0x54520a(0x125))/0x9;if(_0x4a0772===_0x1da849)break;else _0x4dd467['push'](_0x4dd467['shift']());}catch(_0x3d9295){_0x4dd467['push'](_0x4dd467['shift']());}}}(_0x186e,0x97e27));import{global as _0x2f635b}from'ckeditor5/src/utils.js';import{View as _0x457f8c,ButtonView as _0x57275,SpinnerView as _0x32bb5d}from'ckeditor5/src/ui.js';import _0x36ddcc from'../../../theme/icons/copy.svg';function _0x3cf4(_0x5360ba,_0x320cd4){const _0x186e64=_0x186e();return _0x3cf4=function(_0x3cf4cb,_0x222fec){_0x3cf4cb=_0x3cf4cb-0x111;let _0x5c095f=_0x186e64[_0x3cf4cb];return _0x5c095f;},_0x3cf4(_0x5360ba,_0x320cd4);}import{getTranslation as _0x20a76c}from'../../utils/common-translations.js';function _0x186e(){const _0x9dd3dd=['bind','wheel','24qkGHCf','3619176wmahzi','ck-ai-form__content-area-wrapper','div','isEnabled','scrollHeight','_createLoader','ClipboardItem','ck-ai-form__content-area','getSelection','clipboard','check','set','179711pUTqpu','contentFieldView','text/html','style','-9999px','locale','listenTo','6067900UeOhOH','ck-ai-form__copy-button','ck-ai-form__content-area--processing','setEndBefore','setTemplate','_copyHTMLToClipboard','appendChild','copyButtonView','position','removeAllRanges','.ck-ai-form__loader','body','38889liqvzM','Copy','change:isProcessing','querySelector','innerHTML','execute','lastElementChild','smooth','addRange','isVisible','focus','scrollTo','152vdSiuR','write','789969cNhjoh','<span>]</span>','text/plain','left','ck-ai-form__content-field','render','element','createElement','change:value','textContent','setStartAfter','copy','appendLoader','value','ck-ai-form__loader','bindTemplate','AI\x20is\x20writing...','ck-hidden','mousedown','firstElementChild','remove','ck-reset_all-excluded','<span>[</span>','createRange','execCommand','isProcessing','ck-content','setContent','loaderView','\x20ck-ai-form__copy-button--copied','icon','2488980afgEzQ','525033xHKXMg','class','ck-ai-form__copy-button-wrapper','absolute','_createCopyButton'];_0x186e=function(){return _0x9dd3dd;};return _0x186e();}import{icons as _0x27e3b2}from'ckeditor5/src/core.js';export default class nt extends _0x457f8c{constructor(_0x36fa33,_0x10dee5=''){const _0x252d9a=_0x3cf4;super(_0x36fa33),this[_0x252d9a(0x138)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x43cf28=this[_0x252d9a(0x114)];this[_0x252d9a(0x13a)]=new ContentFieldView(_0x36fa33,_0x10dee5),this[_0x252d9a(0x147)]=this[_0x252d9a(0x129)](),this[_0x252d9a(0x144)]({'tag':_0x252d9a(0x12f),'attributes':{'class':['ck',_0x252d9a(0x12e),_0x43cf28['if'](_0x252d9a(0x155),_0x252d9a(0x116),_0x573a37=>!_0x573a37)],'tabindex':'-1'},'children':[{'tag':_0x252d9a(0x12f),'attributes':{'class':['ck',_0x252d9a(0x134),_0x43cf28['if'](_0x252d9a(0x11e),_0x252d9a(0x142))]},'children':[this[_0x252d9a(0x13a)],{'tag':_0x252d9a(0x12f),'attributes':{'class':['ck',_0x252d9a(0x127)]},'children':[this[_0x252d9a(0x147)]]}]}]});}[_0x2fde6f(0x15f)](){const _0x54b504=_0x2fde6f;super[_0x54b504(0x15f)](),this[_0x54b504(0x112)]&&this[_0x54b504(0x13a)][_0x54b504(0x120)](this[_0x54b504(0x112)]);let _0x5d9b7b=!0x1;this['on'](_0x54b504(0x162),(_0x15e13a,_0xf9d5c3,_0x1db275)=>{const _0x4c9c05=_0x54b504,_0xc317f8=!this[_0x4c9c05(0x13a)][_0x4c9c05(0x160)][_0x4c9c05(0x14f)](_0x4c9c05(0x14a));this[_0x4c9c05(0x13a)][_0x4c9c05(0x120)](_0x1db275),this[_0x4c9c05(0x11e)]&&_0xc317f8&&!_0x5d9b7b&&this[_0x4c9c05(0x160)][_0x4c9c05(0x157)]({'top':this[_0x4c9c05(0x160)][_0x4c9c05(0x131)],'behavior':_0x4c9c05(0x153)});}),this['on'](_0x54b504(0x14e),(_0x254ac9,_0x281356,_0x7ea55d)=>{const _0x25baa3=_0x54b504;_0x5d9b7b=!0x1,_0x7ea55d?(this[_0x25baa3(0x112)]=null,this[_0x25baa3(0x13a)][_0x25baa3(0x111)]()):this[_0x25baa3(0x112)]||this[_0x25baa3(0x13a)][_0x25baa3(0x120)]('');}),this[_0x54b504(0x13f)](this[_0x54b504(0x160)],_0x54b504(0x12b),()=>{_0x5d9b7b=!0x0;}),this[_0x54b504(0x13f)](this[_0x54b504(0x160)],_0x54b504(0x117),()=>{_0x5d9b7b=!0x0;});}[_0x2fde6f(0x156)](){const _0x2f5a32=_0x2fde6f;this[_0x2f5a32(0x160)][_0x2f5a32(0x156)]();}[_0x2fde6f(0x129)](){const _0xacf76a=_0x2fde6f,_0x77bbf0=this[_0xacf76a(0x13e)],_0x226dc4=new _0x57275(this[_0xacf76a(0x13e)]),_0x5af515=_0xacf76a(0x141);return _0x226dc4[_0xacf76a(0x138)]({'label':_0x20a76c(_0x77bbf0,_0xacf76a(0x14d)),'icon':_0x36ddcc,'class':_0x5af515,'tooltip':!0x0}),_0x226dc4[_0xacf76a(0x12a)](_0xacf76a(0x155))['to'](this,_0xacf76a(0x112),_0x421250=>!!_0x421250),_0x226dc4[_0xacf76a(0x12a)](_0xacf76a(0x130))['to'](this,_0xacf76a(0x11e),_0x30a631=>!_0x30a631),_0x226dc4['on'](_0xacf76a(0x151),()=>{const _0x121464=_0xacf76a;this[_0x121464(0x145)](this[_0x121464(0x13a)][_0x121464(0x160)]),_0x226dc4[_0x121464(0x123)]=_0x27e3b2[_0x121464(0x137)],_0x226dc4[_0x121464(0x126)]=_0x5af515+_0x121464(0x122),this[_0x121464(0x156)](),setTimeout(()=>{const _0x16572c=_0x121464;_0x226dc4[_0x16572c(0x123)]=_0x36ddcc,_0x226dc4[_0x16572c(0x126)]=_0x5af515;},0x3e8);}),_0x226dc4;}[_0x2fde6f(0x145)](_0x6d456e){const _0x1d43cd=_0x2fde6f,{window:_0x447dfa,document:_0x4101f6}=_0x2f635b;if(_0x447dfa[_0x1d43cd(0x133)]){const {Blob:_0x31bbba,ClipboardItem:_0x93c02d}=_0x447dfa,_0x13ccf3=[new _0x93c02d({'text/html':new _0x31bbba([_0x6d456e[_0x1d43cd(0x150)]],{'type':_0x1d43cd(0x13b)}),'text/plain':new _0x31bbba([_0x6d456e[_0x1d43cd(0x163)]||''],{'type':_0x1d43cd(0x15c)})})];navigator[_0x1d43cd(0x136)][_0x1d43cd(0x159)](_0x13ccf3);}else{const _0x1ae2d6=_0x4101f6[_0x1d43cd(0x161)](_0x1d43cd(0x12f));_0x1ae2d6[_0x1d43cd(0x13c)][_0x1d43cd(0x148)]=_0x1d43cd(0x128),_0x1ae2d6[_0x1d43cd(0x13c)][_0x1d43cd(0x15d)]=_0x1d43cd(0x13d),_0x1ae2d6[_0x1d43cd(0x150)]=_0x1d43cd(0x11b)+_0x6d456e[_0x1d43cd(0x150)]+_0x1d43cd(0x15b),_0x4101f6[_0x1d43cd(0x14b)][_0x1d43cd(0x146)](_0x1ae2d6);const _0x241dbc=_0x4101f6[_0x1d43cd(0x11c)]();_0x241dbc[_0x1d43cd(0x164)](_0x1ae2d6[_0x1d43cd(0x118)]),_0x241dbc[_0x1d43cd(0x143)](_0x1ae2d6[_0x1d43cd(0x152)]);const _0x44f906=_0x447dfa[_0x1d43cd(0x135)]();_0x44f906[_0x1d43cd(0x149)](),_0x44f906[_0x1d43cd(0x154)](_0x241dbc),_0x4101f6[_0x1d43cd(0x11d)](_0x1d43cd(0x165)),_0x1ae2d6[_0x1d43cd(0x119)]();}}}export class ContentFieldView extends _0x457f8c{constructor(_0x42cfba,_0x5d1070=''){const _0x180ef4=_0x2fde6f;super(_0x42cfba),this[_0x180ef4(0x121)]=this[_0x180ef4(0x132)](),this[_0x180ef4(0x144)]({'tag':_0x180ef4(0x12f),'attributes':{'class':['ck',_0x180ef4(0x11f),_0x5d1070,_0x180ef4(0x11a),_0x180ef4(0x15e)]}});}[_0x2fde6f(0x120)](_0x117004){const _0x3e6d8b=_0x2fde6f;this[_0x3e6d8b(0x160)][_0x3e6d8b(0x150)]=_0x117004;}[_0x2fde6f(0x111)](){const _0x1abe27=_0x2fde6f;this[_0x1abe27(0x160)][_0x1abe27(0x146)](this[_0x1abe27(0x121)][_0x1abe27(0x160)]);}[_0x2fde6f(0x132)](){const _0x78c318=_0x2fde6f,_0x4e66d7=new _0x457f8c(),_0x56dd80=this[_0x78c318(0x13e)],_0x322152=new _0x32bb5d();return _0x322152[_0x78c318(0x155)]=!0x0,_0x4e66d7[_0x78c318(0x144)]({'tag':_0x78c318(0x12f),'attributes':{'class':['ck',_0x78c318(0x113)]},'children':[_0x322152,{'text':_0x20a76c(_0x56dd80,_0x78c318(0x115))}]}),_0x4e66d7[_0x78c318(0x15f)](),_0x4e66d7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x48c858,_0x26e429){const _0x2b558e=_0x1450,_0x106f61=_0x48c858();while(!![]){try{const _0x5a88c7=-parseInt(_0x2b558e(0x1cf))/0x1*(parseInt(_0x2b558e(0x1d1))/0x2)+-parseInt(_0x2b558e(0x1cc))/0x3*(-parseInt(_0x2b558e(0x1ca))/0x4)+parseInt(_0x2b558e(0x1ce))/0x5*(-parseInt(_0x2b558e(0x1d7))/0x6)+parseInt(_0x2b558e(0x1c9))/0x7+-parseInt(_0x2b558e(0x1d0))/0x8+parseInt(_0x2b558e(0x1d5))/0x9*(parseInt(_0x2b558e(0x1d6))/0xa)+-parseInt(_0x2b558e(0x1d4))/0xb*(-parseInt(_0x2b558e(0x1c8))/0xc);if(_0x5a88c7===_0x26e429)break;else _0x106f61['push'](_0x106f61['shift']());}catch(_0x360b4c){_0x106f61['push'](_0x106f61['shift']());}}}(_0x3c52,0x3d73e));import{View as _0x37145e,IconView as _0x449792}from'ckeditor5/src/ui.js';function _0x3c52(){const _0x3e8d8c=['1621780jdxTee','66GMdoqa','2167256cTjltm','9152PIHHhc','div','bindTemplate','132DwUfiw','335682WbKoSQ','10sLQMbj','6QJipNQ','setTemplate','text','ck-ai-form__error','934584Mteyak','555492sBthmm','391004krUMms','content','3hfqDPH','set'];_0x3c52=function(){return _0x3e8d8c;};return _0x3c52();}import _0x4a2062 from'../../../theme/icons/error.svg';function _0x1450(_0x4639d0,_0x555750){const _0x3c5225=_0x3c52();return _0x1450=function(_0x145068,_0x68c393){_0x145068=_0x145068-0x1c5;let _0x229339=_0x3c5225[_0x145068];return _0x229339;},_0x1450(_0x4639d0,_0x555750);}export default class mt extends _0x37145e{constructor(_0x1d3d76,_0x547291=''){const _0x42a178=_0x1450;super(_0x1d3d76);const _0x488be0=new _0x449792(),_0x4c3628=this[_0x42a178(0x1d3)];this[_0x42a178(0x1cd)](_0x42a178(0x1c6),_0x547291),_0x488be0[_0x42a178(0x1cb)]=_0x4a2062,this[_0x42a178(0x1c5)]({'tag':_0x42a178(0x1d2),'attributes':{'class':['ck',_0x42a178(0x1c7)]},'children':[_0x488be0,{'text':_0x4c3628['to'](_0x42a178(0x1c6))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1adb(_0x50ebe7,_0x42e969){const _0x385315=_0x3853();return _0x1adb=function(_0x1adb01,_0xacd6da){_0x1adb01=_0x1adb01-0x18a;let _0x5eff71=_0x385315[_0x1adb01];return _0x5eff71;},_0x1adb(_0x50ebe7,_0x42e969);}const _0x3371fb=_0x1adb;(function(_0x1806b3,_0x91afa){const _0x50c928=_0x1adb,_0x3277db=_0x1806b3();while(!![]){try{const _0x5931ba=-parseInt(_0x50c928(0x1aa))/0x1+-parseInt(_0x50c928(0x191))/0x2+-parseInt(_0x50c928(0x18a))/0x3*(-parseInt(_0x50c928(0x1a9))/0x4)+-parseInt(_0x50c928(0x1b7))/0x5*(-parseInt(_0x50c928(0x1a2))/0x6)+-parseInt(_0x50c928(0x1a3))/0x7*(-parseInt(_0x50c928(0x1a0))/0x8)+-parseInt(_0x50c928(0x199))/0x9+-parseInt(_0x50c928(0x1ab))/0xa;if(_0x5931ba===_0x91afa)break;else _0x3277db['push'](_0x3277db['shift']());}catch(_0x3dd231){_0x3277db['push'](_0x3277db['shift']());}}}(_0x3853,0x2b04d));import{Rect as _0x58f6a0,global as _0x48a14c,isVisible as _0x48dcc8}from'ckeditor5/src/utils.js';function _0x3853(){const _0x4aa6a4=['49600TXWbse','isEmpty','style','resultsView','children','excludeScrollbarsAndBorders','rtl','fire','isVisible','left','requestAnimationFrame','_createSubmitButton','50IiejhD','Submit','fieldView','window','history','fieldWrapperChildren','focusCycler','maxRows','minRows','uiLanguageDirection','element','focusFirst','focusableChildren','filteredView','452463qWrjnK','enter','add','locale','submitButtonView','set','ck-ai-form__toggle-history','372982huEeDt','isEnabled','update','bind','showHistoryButtonView','target','_createShowHistoryButton','width','3066192SUrmdM','History','submit','execute','focusLast','keystrokes','isOn','1839584TYjiQO','focus','171648RsdkEz','7nzvPoy','value','queryView','right','render','ck-ai-form__submit','8susyYn','109326IqfHcE'];_0x3853=function(){return _0x4aa6a4;};return _0x3853();}import{AutocompleteView as _0x18901b,ButtonView as _0x5d0d7f}from'ckeditor5/src/ui.js';import{icons as _0x4cbff0}from'ckeditor5/src/core.js';import{getTranslation as _0x23876a}from'../../utils/common-translations.js';import _0x3b00c0 from'../../../theme/icons/submit.svg';export default class pt extends _0x18901b{constructor(_0x5cb3e5,_0x46ea1e){const _0x3e1d76=_0x1adb;super(_0x5cb3e5,_0x46ea1e),this[_0x3e1d76(0x1a5)][_0x3e1d76(0x1b9)][_0x3e1d76(0x1bf)]=0x1,this[_0x3e1d76(0x1a5)][_0x3e1d76(0x1b9)][_0x3e1d76(0x1be)]=0x3,this[_0x3e1d76(0x18e)]=this[_0x3e1d76(0x1b6)](),this[_0x3e1d76(0x195)]=this[_0x3e1d76(0x197)](),this[_0x3e1d76(0x1c3)][_0x3e1d76(0x18c)](this[_0x3e1d76(0x195)],0x1),this[_0x3e1d76(0x1c3)][_0x3e1d76(0x18c)](this[_0x3e1d76(0x18e)]);}[_0x3371fb(0x1a7)](){const _0xa0ded2=_0x3371fb;super[_0xa0ded2(0x1a7)](),this[_0xa0ded2(0x1a5)][_0xa0ded2(0x1bc)][_0xa0ded2(0x18c)](this[_0xa0ded2(0x195)]),this[_0xa0ded2(0x1af)][_0xa0ded2(0x18c)](this[_0xa0ded2(0x18e)]),this[_0xa0ded2(0x19e)][_0xa0ded2(0x18f)](_0xa0ded2(0x18b),(_0x5bc71d,_0xe45368)=>{const _0x31e3ca=_0xa0ded2;_0x5bc71d[_0x31e3ca(0x196)]==this[_0x31e3ca(0x1a5)][_0x31e3ca(0x1b9)][_0x31e3ca(0x1c1)]&&(this[_0x31e3ca(0x19b)](),_0xe45368());});}[_0x3371fb(0x1b6)](){const _0x112b8a=_0x3371fb,_0x3d16de=new _0x5d0d7f(this[_0x112b8a(0x18d)]),_0x461ac2=this[_0x112b8a(0x18d)];return _0x3d16de[_0x112b8a(0x18f)]({'icon':_0x3b00c0,'label':_0x23876a(_0x461ac2,_0x112b8a(0x1b8)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x112b8a(0x1a8)}),_0x3d16de['on'](_0x112b8a(0x19c),()=>{const _0x11b2b3=_0x112b8a;this[_0x11b2b3(0x19b)]();}),_0x3d16de[_0x112b8a(0x194)](_0x112b8a(0x192))['to'](this[_0x112b8a(0x1a5)][_0x112b8a(0x1b9)],_0x112b8a(0x1ac),this,_0x112b8a(0x192),(_0x4d915c,_0x456284)=>!_0x4d915c&&_0x456284),_0x3d16de;}[_0x3371fb(0x197)](){const _0x523d36=_0x3371fb,_0x56077f=new _0x5d0d7f(this[_0x523d36(0x18d)]),_0x483cf1=this[_0x523d36(0x1ae)],_0x14a676=this[_0x523d36(0x18d)];_0x56077f[_0x523d36(0x18f)]({'label':_0x23876a(_0x14a676,_0x523d36(0x19a)),'withText':!0x1,'icon':_0x4cbff0[_0x523d36(0x1bb)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x523d36(0x190)}),_0x56077f[_0x523d36(0x194)](_0x523d36(0x19f))['to'](_0x483cf1,_0x523d36(0x1b3)),_0x56077f[_0x523d36(0x194)](_0x523d36(0x192))['to'](this,_0x523d36(0x192)),_0x56077f['on'](_0x523d36(0x19c),()=>{const _0x374f10=_0x523d36;_0x483cf1[_0x374f10(0x1b3)]=!_0x483cf1[_0x374f10(0x1b3)],_0x483cf1[_0x374f10(0x1b3)]?this[_0x374f10(0x1c4)][_0x374f10(0x1a1)]():this[_0x374f10(0x1a1)]();});const _0x5845a8=()=>{const _0x39b9b4=_0x523d36;_0x48a14c[_0x39b9b4(0x1ba)][_0x39b9b4(0x1b5)](()=>{const _0x28287a=_0x39b9b4;if(_0x48dcc8(this[_0x28287a(0x1c1)])){const _0x102c48=new _0x58f6a0(this[_0x28287a(0x1a5)][_0x28287a(0x1b9)][_0x28287a(0x1c1)]),_0x29ed74=_0x102c48[_0x28287a(0x198)],_0x3f0d21=_0x28287a(0x1b1)===_0x14a676[_0x28287a(0x1c0)]?_0x28287a(0x1b4):_0x28287a(0x1a6);_0x102c48[_0x28287a(0x1b0)](),_0x56077f[_0x28287a(0x1c1)][_0x28287a(0x1ad)][_0x3f0d21]=_0x29ed74-_0x102c48[_0x28287a(0x198)]+0x1+'px';}});};return this[_0x523d36(0x1a5)][_0x523d36(0x1b9)]['on'](_0x523d36(0x193),_0x5845a8),this['on'](_0x523d36(0x1a7),_0x5845a8),_0x56077f;}[_0x3371fb(0x19b)](){const _0x541725=_0x3371fb,_0x752fea=this[_0x541725(0x1a5)][_0x541725(0x1b9)][_0x541725(0x1c1)][_0x541725(0x1a4)];this[_0x541725(0x1b2)](_0x541725(0x19b),_0x752fea);}[_0x3371fb(0x1a1)](_0x4bd0b3){const _0xf1fcd4=_0x3371fb;-0x1===_0x4bd0b3?this[_0xf1fcd4(0x1bd)][_0xf1fcd4(0x19d)]():this[_0xf1fcd4(0x1bd)][_0xf1fcd4(0x1c2)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20101e=_0x23fd;function _0x23fd(_0x22067a,_0x244ac7){const _0x3b4b0f=_0x3b4b();return _0x23fd=function(_0x23fdc1,_0x1469f8){_0x23fdc1=_0x23fdc1-0xe1;let _0x414727=_0x3b4b0f[_0x23fdc1];return _0x414727;},_0x23fd(_0x22067a,_0x244ac7);}(function(_0x12611a,_0x26961b){const _0x4406e6=_0x23fd,_0x2cc909=_0x12611a();while(!![]){try{const _0x7bdc7a=-parseInt(_0x4406e6(0xf6))/0x1+parseInt(_0x4406e6(0x103))/0x2*(parseInt(_0x4406e6(0xfb))/0x3)+-parseInt(_0x4406e6(0xea))/0x4*(-parseInt(_0x4406e6(0xff))/0x5)+parseInt(_0x4406e6(0xfd))/0x6*(parseInt(_0x4406e6(0xf3))/0x7)+parseInt(_0x4406e6(0x105))/0x8+parseInt(_0x4406e6(0xed))/0x9+-parseInt(_0x4406e6(0xf8))/0xa;if(_0x7bdc7a===_0x26961b)break;else _0x2cc909['push'](_0x2cc909['shift']());}catch(_0x45d8cb){_0x2cc909['push'](_0x2cc909['shift']());}}}(_0x3b4b,0xbd8d3));import{ToolbarView as _0x4441a1,ButtonView as _0x4fecd2}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c37a1}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x20101e(0xfa),'INSERT':_0x20101e(0x104)};function _0x3b4b(){const _0x3ee36e=['mainAction','ck-ai-form__toolbar','AI_','locale','bind','bindTemplate','ck-hidden','Insert\x20below','Try\x20again','84HndkEk','tryAgainButton','toUpperCase','8386956KSvcql','replaceButton','set','REPLACE','_CONTENT','items','7bAAJDI','insertButton','isVisible','767421LxPDcE','Stop','12043020aiYDOK','label','replace','1422645tAGUFS','ck-button-action','3271668KbuaRM','stopButton','130695kBEkVG','extendTemplate','_createButton','addMany','2hhzsdI','insert','1982640DGOLAu'];_0x3b4b=function(){return _0x3ee36e;};return _0x3b4b();}export default class Tt extends _0x4441a1{constructor(_0x1dfd96){const _0x5e4737=_0x20101e;super(_0x1dfd96),this[_0x5e4737(0xef)](_0x5e4737(0xf5),!0x1),this[_0x5e4737(0xef)](_0x5e4737(0xe1),AIFormToolbarViewMainActionLabel[_0x5e4737(0xf0)]),this[_0x5e4737(0xee)]=this[_0x5e4737(0x101)]('',_0x5e4737(0xfc)),this[_0x5e4737(0xee)][_0x5e4737(0xe5)](_0x5e4737(0xf9))['to'](this,_0x5e4737(0xe1),_0x1581d7=>_0x1c37a1(_0x1dfd96,_0x5e4737(0xe3)+_0x1581d7[_0x5e4737(0xec)]()+_0x5e4737(0xf1))),this[_0x5e4737(0xf4)]=this[_0x5e4737(0x101)](_0x1c37a1(_0x1dfd96,_0x5e4737(0xe8))),this[_0x5e4737(0xeb)]=this[_0x5e4737(0x101)](_0x1c37a1(_0x1dfd96,_0x5e4737(0xe9))),this[_0x5e4737(0xfe)]=this[_0x5e4737(0x101)](_0x1c37a1(_0x1dfd96,_0x5e4737(0xf7)));const _0x448524=this[_0x5e4737(0xe6)];this[_0x5e4737(0x100)]({'attributes':{'class':[_0x5e4737(0xe2),_0x448524['if'](_0x5e4737(0xf5),_0x5e4737(0xe7),_0x26d807=>!_0x26d807)]}}),this[_0x5e4737(0xf2)][_0x5e4737(0x102)]([this[_0x5e4737(0xee)],this[_0x5e4737(0xf4)],this[_0x5e4737(0xeb)],this[_0x5e4737(0xfe)]]);}[_0x20101e(0x101)](_0xfd92b7,_0x45ba86){const _0x39c97f=_0x20101e,_0x12f60c=new _0x4fecd2(this[_0x39c97f(0xe4)]);return _0x12f60c[_0x39c97f(0xef)]({'label':_0xfd92b7,'class':_0x45ba86||'','isVisible':!0x0,'withText':!0x0}),_0x12f60c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x751eb8=_0x82ce;(function(_0x1f986e,_0x317ce1){const _0x52266a=_0x82ce,_0x288d28=_0x1f986e();while(!![]){try{const _0x4e464f=-parseInt(_0x52266a(0xc4))/0x1*(parseInt(_0x52266a(0xb2))/0x2)+parseInt(_0x52266a(0x97))/0x3*(parseInt(_0x52266a(0xca))/0x4)+-parseInt(_0x52266a(0xaa))/0x5+parseInt(_0x52266a(0xd8))/0x6*(-parseInt(_0x52266a(0xb9))/0x7)+-parseInt(_0x52266a(0xaf))/0x8*(parseInt(_0x52266a(0xcc))/0x9)+-parseInt(_0x52266a(0xbb))/0xa+-parseInt(_0x52266a(0x88))/0xb*(-parseInt(_0x52266a(0xd4))/0xc);if(_0x4e464f===_0x317ce1)break;else _0x288d28['push'](_0x288d28['shift']());}catch(_0x4a744b){_0x288d28['push'](_0x288d28['shift']());}}}(_0x246a,0x3839e));function _0x246a(){const _0x177a76=['tab','insertButton','tryAgainEvent','focus','708vOBoTX','_focusables','promptView','stop','756798sVwCoU','replaceButton','toolbar','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusCycler','_createPromptView','value','submitPrompt','Ask\x20AI\x20to\x20edit\x20or\x20generate','trim','focusTracker','246741qMzCeW','backwardCycle','execute','AI_ERROR_FAILED','_createToolbar','text','listenTo','errorView','handleError','delegate','REPLACE','bind','focusPrevious','label','setTemplate','6rHHijW','_promptHistory','queryView','render','bindTemplate','replaceContent','isEnabled','Empty\x20history','high','stopProcessing','element','ck-ai-form-content','_createHistoryView','focusNext','historyGroupView','ck-hidden','copyButtonView','stopButton','clear','1803800SNnHiH','clearHistory','startProcessing','add','set','1681904BYdCVh','div','submit','34XtEOVW','isError','fieldView','finishProcessing','search','focusLast','isProcessing','14CLDqbK','reset','3716910AjubWL','shift\x20+\x20tab','fire','focusFirst','locale','Ask\x20AI\x20to\x20improve\x20generated\x20text','keystrokes','tryAgainButton','contentArea','12352fXZVSv','items','createCollection','forwardCycle','insertContentBelow','mainAction','623624saNPud','isVisible','9wvMNtZ','ck-ai-form','prompt','bindTo'];_0x246a=function(){return _0x177a76;};return _0x246a();}import{FocusTracker as _0x5025f8,KeystrokeHandler as _0x976fff}from'ckeditor5/src/utils.js';import{View as _0x2bd9c2,FocusCycler as _0x51877c,createLabeledTextarea as _0x103136}from'ckeditor5/src/ui.js';function _0x82ce(_0x218eb7,_0x40d381){const _0x246abe=_0x246a();return _0x82ce=function(_0x82ce58,_0x2e4870){_0x82ce58=_0x82ce58-0x84;let _0x56b4eb=_0x246abe[_0x82ce58];return _0x56b4eb;},_0x82ce(_0x218eb7,_0x40d381);}import _0x19f2d5,{AIFormToolbarViewMainActionLabel as _0x1a6293}from'./aiformtoolbarview.js';import _0x23acf3 from'./aiformcontentarea.js';import _0x2dc830 from'./aiformerrorview.js';import _0x5ce18c from'./aiformpromptview.js';import _0x5bce52 from'./aihistorylistview.js';import _0x1eb9a8 from'./aihistorylistitemview.js';import _0x282810 from'./prompthistory.js';import{getTranslation as _0x423b22}from'../../utils/common-translations.js';import{escape as _0x5b5869}from'lodash-es';export default class x extends _0x2bd9c2{constructor(_0x40538e,_0x4c05a3,_0x752396=''){const _0x105356=_0x82ce;super(_0x40538e),this[_0x105356(0xae)](_0x105356(0x9d),!0x0),this[_0x105356(0xae)](_0x105356(0xb8),!0x1),this[_0x105356(0xae)](_0x105356(0xce),''),this[_0x105356(0xae)](_0x105356(0xde),''),this[_0x105356(0xae)](_0x105356(0xb3),!0x1),this[_0x105356(0xae)](_0x105356(0xc9),_0x1a6293[_0x105356(0x92)]),this[_0x105356(0x98)]=new _0x282810(),this[_0x105356(0x8f)]=new _0x2dc830(_0x40538e),this[_0x105356(0xc3)]=new _0x23acf3(_0x40538e,_0x752396),this[_0x105356(0xc3)][_0x105356(0x93)](_0x105356(0xb8))['to'](this),this[_0x105356(0xc3)][_0x105356(0x93)](_0x105356(0xde))['to'](this),this[_0x105356(0xda)]=this[_0x105356(0x8c)](),this[_0x105356(0xda)][_0x105356(0x93)](_0x105356(0xc9))['to'](this),this[_0x105356(0xd6)]=this[_0x105356(0xdd)](),this[_0x105356(0x87)]=new _0x5025f8(),this[_0x105356(0xc1)]=new _0x976fff(),this[_0x105356(0xd5)]=this[_0x105356(0xc6)]([this[_0x105356(0xc3)],this[_0x105356(0xc3)][_0x105356(0xa7)],this[_0x105356(0xda)],this[_0x105356(0xd6)]]),this[_0x105356(0xdc)]=new _0x51877c({'focusables':this[_0x105356(0xd5)],'focusTracker':this[_0x105356(0x87)],'keystrokeHandler':this[_0x105356(0xc1)],'actions':{'focusPrevious':_0x105356(0xbc),'focusNext':_0x105356(0xd0)}}),this[_0x105356(0xd6)][_0x105356(0xdc)]['on'](_0x105356(0xc7),_0xec8abf=>{const _0x171800=_0x105356;this[_0x171800(0xdc)][_0x171800(0xa4)](),_0xec8abf[_0x171800(0xd7)]();}),this[_0x105356(0xd6)][_0x105356(0xdc)]['on'](_0x105356(0x89),_0x1e2087=>{const _0x5abb0d=_0x105356;this[_0x5abb0d(0xdc)][_0x5abb0d(0x94)](),_0x1e2087[_0x5abb0d(0xd7)]();}),this[_0x105356(0xd6)][_0x105356(0x99)][_0x105356(0xb4)][_0x105356(0x93)](_0x105356(0xde))['to'](this,_0x105356(0xce));const _0x2b00a0=this[_0x105356(0x9b)];this[_0x105356(0x96)]({'tag':_0x105356(0xb0),'attributes':{'class':['ck',_0x105356(0xcd),_0x4c05a3],'tabindex':'-1'},'children':[{'tag':_0x105356(0xb0),'attributes':{'class':['ck',_0x105356(0xa2)]},'children':[{'tag':_0x105356(0xb0),'attributes':{'class':[_0x2b00a0['if'](_0x105356(0xb3),_0x105356(0xa6),_0x29d1f6=>!_0x29d1f6)]},'children':[this[_0x105356(0x8f)]]},this[_0x105356(0xc3)],this[_0x105356(0xda)],this[_0x105356(0xd6)]]}]});}[_0x751eb8(0x9a)](){const _0x5baa80=_0x751eb8;super[_0x5baa80(0x9a)](),this[_0x5baa80(0x87)][_0x5baa80(0xad)](this[_0x5baa80(0xc3)][_0x5baa80(0xa1)]),this[_0x5baa80(0x87)][_0x5baa80(0xad)](this[_0x5baa80(0xc3)][_0x5baa80(0xa7)][_0x5baa80(0xa1)]),this[_0x5baa80(0x87)][_0x5baa80(0xad)](this[_0x5baa80(0xda)][_0x5baa80(0xa1)]),this[_0x5baa80(0x87)][_0x5baa80(0xad)](this[_0x5baa80(0xd6)][_0x5baa80(0xa1)]),this[_0x5baa80(0xc1)][_0x5baa80(0x8e)](this[_0x5baa80(0xa1)]);}[_0x751eb8(0xd3)](_0x744fb6=0x1){const _0xa00c93=_0x751eb8;-0x1===_0x744fb6?this[_0xa00c93(0xdc)][_0xa00c93(0xb7)]():this[_0xa00c93(0xdc)][_0xa00c93(0xbe)]();}[_0x751eb8(0xba)](){const _0x174d30=_0x751eb8;this[_0x174d30(0xce)]='',this[_0x174d30(0xde)]='',this[_0x174d30(0xb3)]=!0x1,this[_0x174d30(0xd6)][_0x174d30(0xba)](),this[_0x174d30(0xc3)][_0x174d30(0xcb)]=!0x1,this[_0x174d30(0xda)][_0x174d30(0xcb)]=!0x1;}[_0x751eb8(0xdd)](){const _0x2ea837=_0x751eb8,_0xd59668=this[_0x2ea837(0xbf)],_0x7f1157=new _0x5ce18c(_0xd59668,{'queryView':{'label':_0x423b22(_0xd59668,_0x2ea837(0x85)),'creator':_0x103136,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x423b22(_0xd59668,_0x2ea837(0x9e)),'secondary':_0x423b22(_0xd59668,_0x2ea837(0xdb))}}},'filteredView':this[_0x2ea837(0xa3)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x7f1157[_0x2ea837(0x93)](_0x2ea837(0x9d))['to'](this,_0x2ea837(0x9d),this,_0x2ea837(0xb8),(_0x42560d,_0xcde7f)=>_0x42560d&&!_0xcde7f),this[_0x2ea837(0x8e)](_0x7f1157,_0x2ea837(0xb1),(_0x15e0d6,_0x5ea5fd)=>{const _0x2bcfe8=_0x2ea837;this[_0x2bcfe8(0xce)]=_0x5ea5fd;const _0x975024=_0x5b5869(_0x5ea5fd);this[_0x2bcfe8(0xbd)](_0x2bcfe8(0x84),_0x975024),_0x5ea5fd[_0x2bcfe8(0x86)]()&&this[_0x2bcfe8(0x98)][_0x2bcfe8(0xad)]({'prompt':_0x975024},0x0);},{'priority':_0x2ea837(0x9f)}),_0x7f1157;}[_0x751eb8(0xa3)](){const _0x2abd0e=_0x751eb8,_0xc73723=new _0x5bce52(this[_0x2abd0e(0xbf)]);return _0xc73723[_0x2abd0e(0xa5)][_0x2abd0e(0xc5)][_0x2abd0e(0xcf)](this[_0x2abd0e(0x98)])['as'](_0x1eb9a8),_0xc73723['on'](_0x2abd0e(0xab),()=>{const _0x5a7b68=_0x2abd0e;this[_0x5a7b68(0x98)][_0x5a7b68(0xa9)](),this[_0x5a7b68(0xd6)][_0x5a7b68(0xb6)](''),this[_0x5a7b68(0xd6)][_0x5a7b68(0xd3)]();}),_0xc73723;}[_0x751eb8(0x8c)](){const _0x2b4a6e=_0x751eb8,_0x5e2572=new _0x19f2d5(this[_0x2b4a6e(0xbf)]);return _0x5e2572[_0x2b4a6e(0xd9)][_0x2b4a6e(0x93)](_0x2b4a6e(0x9d))['to'](this,_0x2b4a6e(0x9d),this,_0x2b4a6e(0xb8),this,_0x2b4a6e(0xde),(_0x25dd89,_0x21b655,_0x3a1167)=>_0x25dd89&&!_0x21b655&&!!_0x3a1167),_0x5e2572[_0x2b4a6e(0xd9)][_0x2b4a6e(0x91)](_0x2b4a6e(0x8a))['to'](this,_0x2b4a6e(0x9c)),_0x5e2572[_0x2b4a6e(0xd1)][_0x2b4a6e(0x93)](_0x2b4a6e(0x9d))['to'](this,_0x2b4a6e(0x9d),this,_0x2b4a6e(0xb8),this,_0x2b4a6e(0xde),(_0x3e2ef5,_0xc78e57,_0x41a34a)=>_0x3e2ef5&&!_0xc78e57&&!!_0x41a34a),_0x5e2572[_0x2b4a6e(0xd1)][_0x2b4a6e(0x91)](_0x2b4a6e(0x8a))['to'](this,_0x2b4a6e(0xc8)),_0x5e2572[_0x2b4a6e(0xc2)][_0x2b4a6e(0x93)](_0x2b4a6e(0x9d))['to'](this,_0x2b4a6e(0x9d),this,_0x2b4a6e(0xb8),(_0x3d246a,_0x41261f)=>_0x3d246a&&!_0x41261f),_0x5e2572[_0x2b4a6e(0xc2)][_0x2b4a6e(0x91)](_0x2b4a6e(0x8a))['to'](this,_0x2b4a6e(0xd2)),_0x5e2572[_0x2b4a6e(0xa8)][_0x2b4a6e(0x93)](_0x2b4a6e(0x9d))['to'](this,_0x2b4a6e(0xb8)),_0x5e2572[_0x2b4a6e(0xa8)][_0x2b4a6e(0x91)](_0x2b4a6e(0x8a))['to'](this,_0x2b4a6e(0xa0)),_0x5e2572;}[_0x751eb8(0xac)](){const _0x1e6543=_0x751eb8;this[_0x1e6543(0xde)]='',this[_0x1e6543(0xb3)]=!0x1,this[_0x1e6543(0xb8)]=!0x0,this[_0x1e6543(0xc3)][_0x1e6543(0xcb)]=!0x0,this[_0x1e6543(0xda)][_0x1e6543(0xcb)]=!0x0,this[_0x1e6543(0xc3)][_0x1e6543(0xd3)]();}[_0x751eb8(0xb5)](){const _0x36c60c=_0x751eb8,_0x409bfe=this[_0x36c60c(0xbf)];this[_0x36c60c(0xb8)]=!0x1,this[_0x36c60c(0xce)]='',this[_0x36c60c(0xd6)][_0x36c60c(0xba)](),this[_0x36c60c(0xde)]&&(this[_0x36c60c(0xd6)][_0x36c60c(0x99)][_0x36c60c(0x95)]=_0x423b22(_0x409bfe,_0x36c60c(0xc0)));}[_0x751eb8(0x90)](_0x185e66){const _0x31720e=_0x751eb8,_0x252d38=this[_0x31720e(0xbf)];this[_0x31720e(0xb5)](),this[_0x31720e(0xb3)]=!0x0,this[_0x31720e(0x8f)][_0x31720e(0x8d)]=_0x185e66||_0x423b22(_0x252d38,_0x31720e(0x8b)),this[_0x31720e(0xde)]||(this[_0x31720e(0xc3)][_0x31720e(0xcb)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2531(){const _0x4a717e=['prompt','787752xSrFWr','1512012rwTRyF','12959091NNsPEm','children','locale','10onYhGP','36055NowRyA','651322vvnGLK','set','21168yGeByq','execute','40tBDjuK','744MUSwsO','add','858036umgbwO','fire'];_0x2531=function(){return _0x4a717e;};return _0x2531();}function _0x3871(_0x4aa484,_0x41b960){const _0x2531c9=_0x2531();return _0x3871=function(_0x387101,_0x29d3e5){_0x387101=_0x387101-0x104;let _0x446b4f=_0x2531c9[_0x387101];return _0x446b4f;},_0x3871(_0x4aa484,_0x41b960);}(function(_0x4468bf,_0x7d1b8d){const _0x3afc24=_0x3871,_0x249f4d=_0x4468bf();while(!![]){try{const _0x530b6e=parseInt(_0x3afc24(0x110))/0x1+-parseInt(_0x3afc24(0x112))/0x2+parseInt(_0x3afc24(0x106))/0x3+-parseInt(_0x3afc24(0x10a))/0x4+-parseInt(_0x3afc24(0x10f))/0x5*(-parseInt(_0x3afc24(0x104))/0x6)+parseInt(_0x3afc24(0x109))/0x7*(parseInt(_0x3afc24(0x114))/0x8)+parseInt(_0x3afc24(0x10b))/0x9*(-parseInt(_0x3afc24(0x10e))/0xa);if(_0x530b6e===_0x7d1b8d)break;else _0x249f4d['push'](_0x249f4d['shift']());}catch(_0x22406d){_0x249f4d['push'](_0x249f4d['shift']());}}}(_0x2531,0x8a1bc));import{ListItemView as _0x56f679,ButtonView as _0x859b6a}from'ckeditor5/src/ui.js';import _0x24f04c from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x55aa18}from'lodash-es';export default class hs extends _0x56f679{constructor(_0x463cf9){const _0x7b4f03=_0x3871;super();const _0x1ccea2=new _0x24f04c(),_0x124adf=new _0x859b6a(this[_0x7b4f03(0x10d)],_0x1ccea2);this[_0x7b4f03(0x10c)][_0x7b4f03(0x105)](_0x124adf),_0x124adf[_0x7b4f03(0x111)]({'label':_0x463cf9[_0x7b4f03(0x108)],'withText':!0x0}),_0x124adf['on'](_0x7b4f03(0x113),()=>{const _0x5d1f41=_0x7b4f03;this[_0x5d1f41(0x107)](_0x5d1f41(0x113),{'value':_0x55aa18(_0x463cf9[_0x5d1f41(0x108)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x246ddc=_0x2933;(function(_0x5c7c35,_0x572e6c){const _0x1c3471=_0x2933,_0x53b301=_0x5c7c35();while(!![]){try{const _0x374ae3=parseInt(_0x1c3471(0x170))/0x1+parseInt(_0x1c3471(0x16b))/0x2*(parseInt(_0x1c3471(0x15f))/0x3)+-parseInt(_0x1c3471(0x162))/0x4+parseInt(_0x1c3471(0x171))/0x5+parseInt(_0x1c3471(0x15c))/0x6+parseInt(_0x1c3471(0x16e))/0x7+-parseInt(_0x1c3471(0x166))/0x8;if(_0x374ae3===_0x572e6c)break;else _0x53b301['push'](_0x53b301['shift']());}catch(_0x1d6614){_0x53b301['push'](_0x53b301['shift']());}}}(_0x2f3d,0x44cf1));function _0x2f3d(){const _0x469327=['add','88099APEqRQ','2102665LQmXsB','_createClearHistoryButton','delegate','set','1914468WSjgax','fire','execute','33oMHQBb','label','locale','1440700bLKeDx','filter','historyGroupView','clearHistory','6883000TiOugv','children','Prompt\x20history','length','items','82322kZGEeh','clearHistoryButton','Clear','1553370PPDvXk'];_0x2f3d=function(){return _0x469327;};return _0x2f3d();}import{ListView as _0x1ace63,ListItemGroupView as _0x31efd4,ButtonView as _0x4fdffb}from'ckeditor5/src/ui.js';function _0x2933(_0x4d140e,_0x420f6e){const _0x2f3d0b=_0x2f3d();return _0x2933=function(_0x29334b,_0x1e33f3){_0x29334b=_0x29334b-0x15b;let _0x36c5ab=_0x2f3d0b[_0x29334b];return _0x36c5ab;},_0x2933(_0x4d140e,_0x420f6e);}import{getTranslation as _0xfb57bb}from'../../utils/common-translations.js';export default class rs extends _0x1ace63{constructor(_0x46e990){const _0x22c273=_0x2933;super(_0x46e990),this[_0x22c273(0x16c)]=this[_0x22c273(0x172)](),this[_0x22c273(0x164)]=new _0x31efd4(),this[_0x22c273(0x164)][_0x22c273(0x167)][_0x22c273(0x16f)](this[_0x22c273(0x16c)],0x1),this[_0x22c273(0x164)][_0x22c273(0x160)]=_0xfb57bb(_0x46e990,_0x22c273(0x168)),this[_0x22c273(0x164)][_0x22c273(0x16a)][_0x22c273(0x173)](_0x22c273(0x15e))['to'](this),this[_0x22c273(0x16a)][_0x22c273(0x16f)](this[_0x22c273(0x164)]);}[_0x246ddc(0x163)](){const _0x1b4caa=_0x246ddc;let _0x3e2a1b=0x0;for(const _0x3d62f2 of this[_0x1b4caa(0x16a)])_0x3e2a1b+=_0x3d62f2[_0x1b4caa(0x16a)][_0x1b4caa(0x169)];return{'resultsCount':_0x3e2a1b,'totalItemsCount':_0x3e2a1b};}[_0x246ddc(0x172)](){const _0xb198c=_0x246ddc,_0x125ea5=this[_0xb198c(0x161)],_0xa22bbf=new _0x4fdffb(this[_0xb198c(0x161)]);return _0xa22bbf[_0xb198c(0x15b)]({'label':'('+_0xfb57bb(_0x125ea5,_0xb198c(0x16d))+')','withText':!0x0}),_0xa22bbf['on'](_0xb198c(0x15e),()=>this[_0xb198c(0x15d)](_0xb198c(0x165))),_0xa22bbf;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x121f9f=_0x1b3c;function _0x1b3c(_0x5c95cc,_0x55b010){const _0x493d07=_0x493d();return _0x1b3c=function(_0x1b3cee,_0x361299){_0x1b3cee=_0x1b3cee-0x67;let _0x3e1053=_0x493d07[_0x1b3cee];return _0x3e1053;},_0x1b3c(_0x5c95cc,_0x55b010);}(function(_0xb2a41c,_0x164dd3){const _0x1cc51d=_0x1b3c,_0x1a3ac0=_0xb2a41c();while(!![]){try{const _0x1db1e7=-parseInt(_0x1cc51d(0x69))/0x1+parseInt(_0x1cc51d(0x75))/0x2+-parseInt(_0x1cc51d(0x7a))/0x3+-parseInt(_0x1cc51d(0x76))/0x4+parseInt(_0x1cc51d(0x71))/0x5+-parseInt(_0x1cc51d(0x6c))/0x6+-parseInt(_0x1cc51d(0x67))/0x7*(-parseInt(_0x1cc51d(0x6d))/0x8);if(_0x1db1e7===_0x164dd3)break;else _0x1a3ac0['push'](_0x1a3ac0['shift']());}catch(_0x9c08ea){_0x1a3ac0['push'](_0x1a3ac0['shift']());}}}(_0x493d,0x6e224));import{Collection as _0x2efe05}from'ckeditor5/src/utils.js';const cs=_0x121f9f(0x7b);function _0x493d(){const _0x5a4955=['parse','last','946790sZOPQd','220088NUgHkN','length','trim','getItem','1541499CjHuHC','CKEditor/AIFormView/PromptHistory','_saveToSessionStorage','_loadFromSessionStorage','setItem','7ZVsfRO','prompt','774426ARTufY','toLowerCase','stringify','1722960EgUDEB','6052096TaOBGY','map','add','addMany','4258210puvKaU','remove'];_0x493d=function(){return _0x5a4955;};return _0x493d();}export default class os extends _0x2efe05{constructor(){const _0x41f84d=_0x121f9f;super(),this[_0x41f84d(0x7d)](),this['on'](_0x41f84d(0x6f),(_0x23cbc7,_0x2234eb)=>{const _0xbfc2f=_0x41f84d,_0x5d037c=Ss(_0x2234eb[_0xbfc2f(0x68)]);for(const _0xa621c5 of this)if(_0xa621c5!=_0x2234eb&&Ss(_0xa621c5[_0xbfc2f(0x68)])===_0x5d037c){this[_0xbfc2f(0x72)](_0xa621c5);break;}this[_0xbfc2f(0x77)]>0x14&&this[_0xbfc2f(0x72)](this[_0xbfc2f(0x74)]),this[_0xbfc2f(0x7c)]();}),this['on'](_0x41f84d(0x72),()=>{const _0x2651a0=_0x41f84d;this[_0x2651a0(0x7c)]();});}[_0x121f9f(0x7d)](){const _0x516e26=_0x121f9f,_0x29c2a3=sessionStorage[_0x516e26(0x79)](cs)||'[]';this[_0x516e26(0x70)](JSON[_0x516e26(0x73)](_0x29c2a3));}[_0x121f9f(0x7c)](){const _0x24f65a=_0x121f9f;sessionStorage[_0x24f65a(0x7e)](cs,JSON[_0x24f65a(0x6b)](this[_0x24f65a(0x6e)](_0x64ab8b=>_0x64ab8b)));}}function Ss(_0x3d764d){const _0x4d8723=_0x121f9f;return _0x3d764d[_0x4d8723(0x6a)]()[_0x4d8723(0x78)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37cf5c=_0x3fc6;function _0x59ae(){const _0x59e3f8=['plugins','92NkGtSt','set','reduce','235955XyArUy','ai.aiAssistant.disabledElements','isEnabled','286qwgXaF','10108143KlYcjz','35sCFUMD','get','getRanges','execute','1787268XEYTnk','getSelectedBlocks','8QVvnBx','add','getFirstRange','isEmpty','requiresContent','hasContent','getItems','change:_hasContext','length','commands','isCollapsed','concat','name','change:isEnabled','model','refresh','editor','17624160QCiXjo','showUI','custom','selection','from','_hasContext','267933RfuIZw','includes','element','document','_commandDefinitions','enabledCommandsIds','config','2bAjiir','1040591KCbTxx','638124NnoerG'];_0x59ae=function(){return _0x59e3f8;};return _0x59ae();}(function(_0x2b297d,_0x445f28){const _0x212658=_0x3fc6,_0x2dea25=_0x2b297d();while(!![]){try{const _0x3bb89d=-parseInt(_0x212658(0x19b))/0x1+parseInt(_0x212658(0x19a))/0x2*(parseInt(_0x212658(0x193))/0x3)+-parseInt(_0x212658(0x19e))/0x4*(parseInt(_0x212658(0x1a1))/0x5)+-parseInt(_0x212658(0x1aa))/0x6*(-parseInt(_0x212658(0x1a6))/0x7)+parseInt(_0x212658(0x1ac))/0x8*(parseInt(_0x212658(0x1a5))/0x9)+parseInt(_0x212658(0x18d))/0xa+-parseInt(_0x212658(0x1a4))/0xb*(parseInt(_0x212658(0x19c))/0xc);if(_0x3bb89d===_0x445f28)break;else _0x2dea25['push'](_0x2dea25['shift']());}catch(_0xb967ca){_0x2dea25['push'](_0x2dea25['shift']());}}}(_0x59ae,0xe950a));import{Command as _0x36d9fe}from'ckeditor5/src/core.js';import _0x3e7fbd from'../aiassistantui.js';function _0x3fc6(_0x3f9606,_0x3bce55){const _0x59aefa=_0x59ae();return _0x3fc6=function(_0x3fc6c1,_0x5a790e){_0x3fc6c1=_0x3fc6c1-0x180;let _0x599e52=_0x59aefa[_0x3fc6c1];return _0x599e52;},_0x3fc6(_0x3f9606,_0x3bce55);}export default class j extends _0x36d9fe{constructor(_0x30ca41,_0x25fa36){const _0x299a9b=_0x3fc6;super(_0x30ca41),this[_0x299a9b(0x197)]=_0x25fa36?_0x25fa36[_0x299a9b(0x1a0)]((_0x46f8e9,_0x5adb30)=>_0x46f8e9[_0x299a9b(0x187)](_0x5adb30[_0x299a9b(0x185)]),new Array()):[],this[_0x299a9b(0x19f)](_0x299a9b(0x198),[]),this['on'](_0x299a9b(0x183),(_0x1cce76,_0x241396,_0x474c35)=>{const _0x5c8500=_0x299a9b;this[_0x5c8500(0x1a3)]&&(this[_0x5c8500(0x198)]=G(this[_0x5c8500(0x197)],_0x474c35));}),this[_0x299a9b(0x19f)](_0x299a9b(0x192),!0x1),this['on'](_0x299a9b(0x189),(_0x19c1fe,_0x2e2c6f,_0x9cd866)=>{const _0x5e6cf0=_0x299a9b;this[_0x5e6cf0(0x198)]=_0x9cd866?G(this[_0x5e6cf0(0x197)],this[_0x5e6cf0(0x192)]):[];});}[_0x37cf5c(0x18b)](){const _0x4af16c=_0x37cf5c,_0x601146=this[_0x4af16c(0x18c)][_0x4af16c(0x18a)];this[_0x4af16c(0x192)]=function(_0x358e7f){const _0x31e4c0=_0x4af16c,_0x554a80=_0x358e7f[_0x31e4c0(0x196)][_0x31e4c0(0x190)];return _0x554a80[_0x31e4c0(0x186)]?0x0!==[..._0x554a80[_0x31e4c0(0x1ab)]()][_0x31e4c0(0x184)]&&![..._0x554a80[_0x31e4c0(0x1ab)]()][0x0][_0x31e4c0(0x1af)]:!!_0x358e7f[_0x31e4c0(0x181)](_0x554a80[_0x31e4c0(0x1ae)]());}(_0x601146);const _0x2e050e=_0x601146[_0x4af16c(0x196)][_0x4af16c(0x190)],_0xed788a=this[_0x4af16c(0x18c)][_0x4af16c(0x199)][_0x4af16c(0x1a7)](_0x4af16c(0x1a2));for(const _0x306efc of _0x2e050e[_0x4af16c(0x1a8)]())for(const _0x164eaa of _0x306efc[_0x4af16c(0x182)]())if(_0x164eaa['is'](_0x4af16c(0x195))&&_0xed788a[_0x4af16c(0x194)](_0x164eaa[_0x4af16c(0x188)]))return void(this[_0x4af16c(0x1a3)]=!0x1);this[_0x4af16c(0x1a3)]=!0x0;}[_0x37cf5c(0x1a9)](_0x36d9ba='',_0x3bdb60='',_0x5dd05b=_0x37cf5c(0x18f)){const _0x199d42=_0x37cf5c;this[_0x199d42(0x18c)][_0x199d42(0x19d)][_0x199d42(0x1a7)](_0x3e7fbd)[_0x199d42(0x18e)](_0x36d9ba,_0x3bdb60,_0x5dd05b);}}function G(_0x4c19c1,_0x47b724){const _0x1d6350=_0x37cf5c,_0x13ed29=new Set();for(const _0x3d4a66 of _0x4c19c1)(_0x47b724||!0x1===_0x3d4a66[_0x1d6350(0x180)])&&_0x13ed29[_0x1d6350(0x1ad)](_0x3d4a66['id']);return Array[_0x1d6350(0x191)](_0x13ed29);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x1bf322,_0x460590,_0x2e3636){const t=_0x1bf322['t'];switch(_0x460590){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',_0x2e3636);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'},_0x2e3636);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 _0x460590;}}
|