@ckeditor/ckeditor5-ai 42.0.1-alpha.2 → 42.0.1
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/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.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 +2 -2
- 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,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x6413(){const _0x33321b=['custom','currentContext','previousActionId','startsWith','3002985gjuqMI','endsWith','22fhNUaa','_xmlSerializer','catch','finally','previousLabel','mainAction','nodeType','view','querySelector','length','startProcessing','handleError','tryAgainEvent','push','makeRequest','exec','isRendered','document','remove','5465285AZpTgJ','childNodes','processor','message','13694879vAUfiT','_sanitizationContainer','<h1></h1>','editing','toView','stopListening','reset','_handleQuery','set','editor','from','submitPrompt','_stripMarkdownSyntax','name','createElement','set:currentContext','ELEMENT_NODE','match','innerHTML','stopProcessing','value','stringify','once','5008080iywchE','finishProcessing','listenTo','parseFromString','reverse','viewToDom','5857638qoiEwr','substring','```html','_domParser','prompt','_parseAndNormalizeContent','8klaQuP','10FYNxKH','_sanitizeHTML','htmlProcessor','_isH1TagSupportEnabled','body','textAdapter','trim','destroy','element','3uXnZCo','rename','serializeToString','render','domConverter','data','_normalizeResponseHeadings','toModel','2292644DHPROu','div','text/html','updateView','```','previousContext','isProcessing','currentResponse','abort','then','initialContext','setContentOf','previousQuery','32768ZuRbGZ'];_0x6413=function(){return _0x33321b;};return _0x6413();}const _0x55afd1=_0x4af0;(function(_0xc62114,_0x3bb8b0){const _0x4af98c=_0x4af0,_0x4514a6=_0xc62114();while(!![]){try{const _0x5c8799=-parseInt(_0x4af98c(0x160))/0x1*(-parseInt(_0x4af98c(0x159))/0x2)+-parseInt(_0x4af98c(0x144))/0x3*(-parseInt(_0x4af98c(0x14c))/0x4)+parseInt(_0x4af98c(0x12e))/0x5+-parseInt(_0x4af98c(0x134))/0x6+parseInt(_0x4af98c(0x173))/0x7+-parseInt(_0x4af98c(0x13a))/0x8*(-parseInt(_0x4af98c(0x15e))/0x9)+parseInt(_0x4af98c(0x13b))/0xa*(-parseInt(_0x4af98c(0x177))/0xb);if(_0x5c8799===_0x3bb8b0)break;else _0x4514a6['push'](_0x4514a6['shift']());}catch(_0x671a6f){_0x4514a6['push'](_0x4514a6['shift']());}}}(_0x6413,0xca3df));function _0x4af0(_0x202d07,_0x4df524){const _0x641385=_0x6413();return _0x4af0=function(_0x4af0f1,_0x31d038){_0x4af0f1=_0x4af0f1-0x11c;let _0x47fbda=_0x641385[_0x4af0f1];return _0x47fbda;},_0x4af0(_0x202d07,_0x4df524);}import{ObservableMixin as _0x501064}from'ckeditor5/src/utils.js';import{AIRequestError as _0x19000e}from'../adapters/aiadapter.js';import{Matcher as _0x1caef4,UpcastWriter as _0x1b71c0}from'ckeditor5/src/engine.js';const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x501064(){constructor(_0x4da980,_0x22c88c,_0x1d9a71){const _0x30b65a=_0x4af0;super(),this[_0x30b65a(0x120)]=_0x4da980,this[_0x30b65a(0x140)]=_0x22c88c,this[_0x30b65a(0x178)]=document[_0x30b65a(0x125)](_0x30b65a(0x14d)),this[_0x30b65a(0x137)]=new DOMParser(),this[_0x30b65a(0x161)]=new XMLSerializer(),this[_0x30b65a(0x167)]=_0x1d9a71,this[_0x30b65a(0x11f)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x30b65a(0x126),(_0x1b094c,_0x3ad3e3,_0x560b05)=>{const _0x552cf4=_0x30b65a;this[_0x552cf4(0x167)][_0x552cf4(0x12b)]=this[_0x552cf4(0x13c)](_0x560b05);}),this[_0x30b65a(0x130)](this[_0x30b65a(0x167)],_0x30b65a(0x122),(_0x309156,_0x21e612)=>{const _0x3c68e3=_0x30b65a,_0x171604=this[_0x3c68e3(0x15b)]||this[_0x3c68e3(0x156)];this[_0x3c68e3(0x11e)](_0x21e612,_0x171604,_0x3c68e3(0x15a));}),this[_0x30b65a(0x130)](this[_0x30b65a(0x167)],_0x30b65a(0x16c),()=>{const _0x4cbbdf=_0x30b65a;this[_0x4cbbdf(0x167)][_0x4cbbdf(0x138)]=this[_0x4cbbdf(0x164)],this[_0x4cbbdf(0x11e)](this[_0x4cbbdf(0x158)],this[_0x4cbbdf(0x151)],this[_0x4cbbdf(0x15c)],this[_0x4cbbdf(0x164)]);}),this[_0x30b65a(0x130)](this[_0x30b65a(0x167)],_0x30b65a(0x12a),()=>{const _0x260e4c=_0x30b65a;this[_0x260e4c(0x12a)]();});}[_0x55afd1(0x142)](){const _0x3a5127=_0x55afd1;this[_0x3a5127(0x11c)]();}async[_0x55afd1(0x14f)]({actionId:_0x59405a,query:_0x4520e4,htmlContent:_0x44bc73,label:_0x3864bf,mainActionLabel:_0x2c7495}){const _0x40b5fc=_0x55afd1;this[_0x40b5fc(0x167)][_0x40b5fc(0x138)]=_0x3864bf,this[_0x40b5fc(0x167)][_0x40b5fc(0x165)]=_0x2c7495,this[_0x40b5fc(0x156)]=_0x44bc73,_0x4520e4&&(this[_0x40b5fc(0x167)][_0x40b5fc(0x170)]?this[_0x40b5fc(0x11e)](_0x4520e4,_0x44bc73,_0x59405a,_0x3864bf):this[_0x40b5fc(0x167)][_0x40b5fc(0x12d)](_0x40b5fc(0x147),()=>{const _0x44c3de=_0x40b5fc;this[_0x44c3de(0x11e)](_0x4520e4,_0x44bc73,_0x59405a,_0x3864bf);}));}[_0x55afd1(0x12a)](){const _0x2f391b=_0x55afd1;this[_0x2f391b(0x152)]&&(this[_0x2f391b(0x152)]=!0x1,this[_0x2f391b(0x167)][_0x2f391b(0x12f)](),this[_0x2f391b(0x140)][_0x2f391b(0x154)]());}[_0x55afd1(0x11d)](){const _0x3f99fd=_0x55afd1;this[_0x3f99fd(0x156)]='',this[_0x3f99fd(0x15b)]='',this[_0x3f99fd(0x153)]='',this[_0x3f99fd(0x151)]='',this[_0x3f99fd(0x158)]='',this[_0x3f99fd(0x164)]='',this[_0x3f99fd(0x15c)]=void 0x0,this[_0x3f99fd(0x167)][_0x3f99fd(0x11d)](),this[_0x3f99fd(0x12a)]();}async[_0x55afd1(0x11e)](_0x177c15,_0x3cf444,_0x696252,_0x39ddd4){const _0x1098f6=_0x55afd1;return this[_0x1098f6(0x152)]=!0x0,this[_0x1098f6(0x167)][_0x1098f6(0x16a)](),this[_0x1098f6(0x151)]=_0x3cf444,this[_0x1098f6(0x158)]=_0x177c15,this[_0x1098f6(0x164)]=_0x39ddd4||_0x177c15,this[_0x1098f6(0x15c)]=_0x696252,new Promise(_0xd6c4ef=>{const _0x2f1492=_0x1098f6;this[_0x2f1492(0x140)][_0x2f1492(0x16e)]({'query':_0x177c15,'context':_0x3cf444,'onData':_0x25e65e=>{const _0x4ab2c7=_0x2f1492;this[_0x4ab2c7(0x153)]=_0x25e65e,this[_0x4ab2c7(0x15b)]=this[_0x4ab2c7(0x139)](this[_0x4ab2c7(0x153)]);},'actionId':_0x696252})[_0x2f1492(0x155)](()=>{const _0x18b21f=_0x2f1492;!this[_0x18b21f(0x15b)]&&this[_0x18b21f(0x153)]&&(this[_0x18b21f(0x15b)]=this[_0x18b21f(0x139)](this[_0x18b21f(0x153)],!0x0));})[_0x2f1492(0x162)](_0x4d5181=>{const _0x2e123c=_0x2f1492;_0x4d5181 instanceof _0x19000e?this[_0x2e123c(0x167)][_0x2e123c(0x16b)](_0x4d5181[_0x2e123c(0x176)]):this[_0x2e123c(0x167)][_0x2e123c(0x16b)](),_0xd6c4ef();})[_0x2f1492(0x163)](()=>{const _0x4be2e2=_0x2f1492;this[_0x4be2e2(0x12a)](),_0xd6c4ef();});});}[_0x55afd1(0x139)](_0x126191,_0x3742d4=!0x1){const _0x5f080a=_0x55afd1,_0x161e7a=X[_0x5f080a(0x16f)](_0x126191);_0x126191=_0x161e7a?_0x126191[_0x5f080a(0x135)](_0x161e7a[0x1][_0x5f080a(0x169)]):_0x126191[_0x5f080a(0x169)]<0x64&&!_0x3742d4?'':this[_0x5f080a(0x123)](_0x126191);const _0x126cd5=this[_0x5f080a(0x137)][_0x5f080a(0x131)](_0x126191,_0x5f080a(0x14e));if(_0x161e7a){const _0x289539=Array[_0x5f080a(0x121)](_0x126cd5[_0x5f080a(0x13f)][_0x5f080a(0x174)]);_0x289539[_0x5f080a(0x132)]();for(const _0x588ef8 of _0x289539){if(_0x588ef8[_0x5f080a(0x166)]==Node[_0x5f080a(0x127)])break;_0x588ef8[_0x5f080a(0x172)]();}}const _0x225b11=this[_0x5f080a(0x120)][_0x5f080a(0x149)][_0x5f080a(0x175)][_0x5f080a(0x17b)](this[_0x5f080a(0x161)][_0x5f080a(0x146)](_0x126cd5[_0x5f080a(0x13f)]));return this[_0x5f080a(0x13e)]()||this[_0x5f080a(0x14a)](_0x225b11),this[_0x5f080a(0x120)][_0x5f080a(0x149)][_0x5f080a(0x12c)](this[_0x5f080a(0x120)][_0x5f080a(0x149)][_0x5f080a(0x14b)](_0x225b11));}[_0x55afd1(0x14a)](_0x5e2f60){const _0x298dad=_0x55afd1,_0x388b30=new _0x1b71c0(this[_0x298dad(0x120)][_0x298dad(0x17a)][_0x298dad(0x167)][_0x298dad(0x171)]),_0x58a2d2=new _0x1caef4({'name':/^h[1-5]$/}),_0x53f2d1=[];let _0x539767=!0x1;for(const _0xec9b3c of _0x5e2f60)_0xec9b3c['is'](_0x298dad(0x143))&&_0x58a2d2[_0x298dad(0x128)](_0xec9b3c)&&(_0x53f2d1[_0x298dad(0x16d)](_0xec9b3c),'h1'==_0xec9b3c[_0x298dad(0x124)]&&(_0x539767=!0x0));if(_0x539767){for(const _0x27159a of _0x53f2d1)_0x388b30[_0x298dad(0x145)]('h'+(parseInt(_0x27159a[_0x298dad(0x124)][0x1])+0x1),_0x27159a);}}[_0x55afd1(0x13e)](){const _0x36e6a3=_0x55afd1,{data:_0x4fe59e,editing:_0x45ec37}=this[_0x36e6a3(0x120)],_0x2980c2=_0x4fe59e[_0x36e6a3(0x13d)][_0x36e6a3(0x17b)](_0x36e6a3(0x179)),_0x364361=_0x4fe59e[_0x36e6a3(0x17b)](_0x4fe59e[_0x36e6a3(0x14b)](_0x2980c2));return!!_0x45ec37[_0x36e6a3(0x167)][_0x36e6a3(0x148)][_0x36e6a3(0x133)](_0x364361)[_0x36e6a3(0x168)]('h1');}[_0x55afd1(0x13c)](_0x577afb){const _0x227223=_0x55afd1;return this[_0x227223(0x120)][_0x227223(0x17a)][_0x227223(0x167)][_0x227223(0x148)][_0x227223(0x157)](this[_0x227223(0x178)],_0x577afb),this[_0x227223(0x178)][_0x227223(0x129)];}[_0x55afd1(0x123)](_0x49862d){const _0x2380d3=_0x55afd1,_0x42aadb=_0x49862d[_0x2380d3(0x141)]();return _0x42aadb[_0x2380d3(0x15d)](_0x2380d3(0x136))?_0x42aadb[_0x2380d3(0x15f)](_0x2380d3(0x150))?_0x42aadb[_0x2380d3(0x135)](0x7,_0x42aadb[_0x2380d3(0x169)]-0x3):_0x42aadb[_0x2380d3(0x135)](0x7):_0x49862d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3281(){const _0x6631c9=['8HSOTDr','commandDefinition','includes','role','change:enabledCommandsIds','3179290RvUnLN','first','filter','set','listbox','9594747EddhGo','label','items','enabledCommandsIds','37235Bngwiz','10GxMAMV','highlightText','21893553PNtCiK','children','labelView','52926olSmua','6416144nkFgYA','get','isEnabled','match','164IzVToI','1081129SJquhE','72pGtLmv','length','isVisible'];_0x3281=function(){return _0x6631c9;};return _0x3281();}const _0x518cf2=_0x1786;(function(_0x3b0aa0,_0x119787){const _0xf1cbc2=_0x1786,_0x21e2f1=_0x3b0aa0();while(!![]){try{const _0x55a7e9=parseInt(_0xf1cbc2(0xa4))/0x1+-parseInt(_0xf1cbc2(0xad))/0x2+-parseInt(_0xf1cbc2(0x9e))/0x3*(parseInt(_0xf1cbc2(0xa3))/0x4)+parseInt(_0xf1cbc2(0xb6))/0x5*(-parseInt(_0xf1cbc2(0xa5))/0x6)+-parseInt(_0xf1cbc2(0x9f))/0x7+-parseInt(_0xf1cbc2(0xa8))/0x8*(-parseInt(_0xf1cbc2(0xb2))/0x9)+parseInt(_0xf1cbc2(0xb7))/0xa*(parseInt(_0xf1cbc2(0xb9))/0xb);if(_0x55a7e9===_0x119787)break;else _0x21e2f1['push'](_0x21e2f1['shift']());}catch(_0x24c8ed){_0x21e2f1['push'](_0x21e2f1['shift']());}}}(_0x3281,0xc7db4));import{ListView as _0xcc09ca,ListItemGroupView as _0x5d9a7a}from'ckeditor5/src/ui.js';function _0x1786(_0x5c59f7,_0x285b5e){const _0x328131=_0x3281();return _0x1786=function(_0x17862b,_0xa7d57f){_0x17862b=_0x17862b-0x9c;let _0x3f4c4d=_0x328131[_0x17862b];return _0x3f4c4d;},_0x1786(_0x5c59f7,_0x285b5e);}import{AICommandsListItemView as _0x205029}from'../../aiassistantui.js';export default class U extends _0xcc09ca{constructor(_0x32d210){const _0x4347b7=_0x1786;super(_0x32d210),this[_0x4347b7(0xab)]=_0x4347b7(0xb1),this[_0x4347b7(0xb0)](_0x4347b7(0xb5),[]),this['on'](_0x4347b7(0xac),()=>{const _0x1d3c0f=_0x4347b7;for(const _0x57ff43 of this[_0x1d3c0f(0xb4)])if(_0x57ff43 instanceof _0x5d9a7a){for(const _0x2c09a1 of _0x57ff43[_0x1d3c0f(0xb4)])if(_0x2c09a1 instanceof _0x205029){const _0x17cbc=_0x2c09a1[_0x1d3c0f(0x9c)][_0x1d3c0f(0xa0)](0x0);this[_0x1d3c0f(0xb5)][_0x1d3c0f(0xaa)](_0x2c09a1[_0x1d3c0f(0xa9)]['id'])?_0x17cbc[_0x1d3c0f(0xa1)]=!0x0:_0x17cbc[_0x1d3c0f(0xa1)]=!0x1;}}});}[_0x518cf2(0xaf)](_0x1e4ad4){const _0x5c51bf=_0x518cf2;let _0x457583=0x0,_0x5734f1=0x0;for(const _0x456cb4 of this[_0x5c51bf(0xb4)]){const _0x29e731=_0x456cb4,_0x4ea616=_0x29e731[_0x5c51bf(0xb4)],_0x58d818=_0x1e4ad4&&!!_0x29e731[_0x5c51bf(0xb3)][_0x5c51bf(0xa2)](_0x1e4ad4);_0x29e731[_0x5c51bf(0x9d)][_0x5c51bf(0xb8)](_0x58d818?_0x1e4ad4:null);for(const _0x3cc72d of _0x4ea616){const _0x14c965=_0x3cc72d[_0x5c51bf(0x9c)][_0x5c51bf(0xae)],_0x3198d9=_0x14c965[_0x5c51bf(0x9d)];if(_0x1e4ad4){const _0x1f5185=!!_0x14c965[_0x5c51bf(0xb3)][_0x5c51bf(0xa2)](_0x1e4ad4);_0x3198d9[_0x5c51bf(0xb8)](_0x1f5185?_0x1e4ad4:null),_0x3cc72d[_0x5c51bf(0xa7)]=_0x58d818||_0x1f5185;}else _0x3cc72d[_0x5c51bf(0xa7)]=!0x0,_0x3198d9[_0x5c51bf(0xb8)](null);}const _0x6f9cd1=_0x4ea616[_0x5c51bf(0xaf)](_0x232309=>_0x232309[_0x5c51bf(0xa7)])[_0x5c51bf(0xa6)];_0x457583+=_0x29e731[_0x5c51bf(0xb4)][_0x5c51bf(0xa6)],_0x5734f1+=_0x58d818?_0x29e731[_0x5c51bf(0xb4)][_0x5c51bf(0xa6)]:_0x6f9cd1,_0x29e731[_0x5c51bf(0xa7)]=_0x58d818||!!_0x6f9cd1;}return{'resultsCount':_0x5734f1,'totalItemsCount':_0x457583};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xb39fb8,_0xb4195d){const _0x1a50a5=_0x45f4,_0x12a8ea=_0xb39fb8();while(!![]){try{const _0x4ea124=parseInt(_0x1a50a5(0x1d0))/0x1*(-parseInt(_0x1a50a5(0x1d9))/0x2)+-parseInt(_0x1a50a5(0x1d6))/0x3*(parseInt(_0x1a50a5(0x1d1))/0x4)+-parseInt(_0x1a50a5(0x1cf))/0x5*(-parseInt(_0x1a50a5(0x1d7))/0x6)+parseInt(_0x1a50a5(0x1ce))/0x7*(parseInt(_0x1a50a5(0x1d2))/0x8)+parseInt(_0x1a50a5(0x1cc))/0x9*(parseInt(_0x1a50a5(0x1ca))/0xa)+parseInt(_0x1a50a5(0x1d3))/0xb*(-parseInt(_0x1a50a5(0x1d8))/0xc)+-parseInt(_0x1a50a5(0x1d5))/0xd*(-parseInt(_0x1a50a5(0x1c8))/0xe);if(_0x4ea124===_0xb4195d)break;else _0x12a8ea['push'](_0x12a8ea['shift']());}catch(_0x53d2de){_0x12a8ea['push'](_0x12a8ea['shift']());}}}(_0xf357,0x51915));function _0x45f4(_0x65fbb7,_0xc06499){const _0xf3571c=_0xf357();return _0x45f4=function(_0x45f401,_0x51f249){_0x45f401=_0x45f401-0x1c8;let _0x3a3d91=_0xf3571c[_0x45f401];return _0x3a3d91;},_0x45f4(_0x65fbb7,_0xc06499);}function _0xf357(){const _0xd948dc=['2015135VouEcq','1oXHfmp','1248540ldDbtV','27112sqmZrn','55inVWyQ','bindTemplate','5947214YsSxQD','6sICVnV','6zbdJKZ','439440kAGWZL','1100362MgxWHg','style','14vKtNXz','set','2342620SFkdyf','ck-button__label','18rQdzLO','extendTemplate','749ElsUFG'];_0xf357=function(){return _0xd948dc;};return _0xf357();}import{HighlightedTextView as _0x354c93}from'ckeditor5/src/ui.js';export default class N extends _0x354c93{constructor(){const _0x509750=_0x45f4;super(),this[_0x509750(0x1c9)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x58747e=this[_0x509750(0x1d4)];this[_0x509750(0x1cd)]({'attributes':{'class':[_0x509750(0x1cb)],'style':_0x58747e['to'](_0x509750(0x1da)),'id':_0x58747e['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x172e50,_0x42b752){const _0x2adcac=_0xecd0,_0x160af2=_0x172e50();while(!![]){try{const _0x4af518=parseInt(_0x2adcac(0xf2))/0x1+parseInt(_0x2adcac(0xf0))/0x2+-parseInt(_0x2adcac(0xf5))/0x3*(parseInt(_0x2adcac(0xf7))/0x4)+parseInt(_0x2adcac(0xea))/0x5+-parseInt(_0x2adcac(0xf6))/0x6+-parseInt(_0x2adcac(0xee))/0x7+-parseInt(_0x2adcac(0xf1))/0x8*(parseInt(_0x2adcac(0xed))/0x9);if(_0x4af518===_0x42b752)break;else _0x160af2['push'](_0x160af2['shift']());}catch(_0x35b556){_0x160af2['push'](_0x160af2['shift']());}}}(_0x3c7c,0x3ca51));import{HighlightedTextView as _0x4a42b6}from'ckeditor5/src/ui.js';function _0x3c7c(){const _0x1bb742=['set','33VEgHti','383700ScBpXc','76764ldICtz','for','1419295LEZBDf','ck-editor__label_','bindTemplate','261OtlATN','1173207pahZmr','extendTemplate','840434kDMxAb','87304kewOlx','303454EGcQTK','ck-label'];_0x3c7c=function(){return _0x1bb742;};return _0x3c7c();}function _0xecd0(_0x336618,_0x147cda){const _0x3c7c7f=_0x3c7c();return _0xecd0=function(_0xecd09e,_0x8601c3){_0xecd09e=_0xecd09e-0xea;let _0x1f2c1e=_0x3c7c7f[_0xecd09e];return _0x1f2c1e;},_0xecd0(_0x336618,_0x147cda);}import{uid as _0x50bc5d}from'ckeditor5/src/utils.js';export default class S extends _0x4a42b6{constructor(){const _0x22aa3f=_0xecd0;super(),this[_0x22aa3f(0xf4)](_0x22aa3f(0xf8),void 0x0);const _0x469945=this[_0x22aa3f(0xec)];this['id']=_0x22aa3f(0xeb)+_0x50bc5d(),this[_0x22aa3f(0xef)]({'attributes':{'class':['ck',_0x22aa3f(0xf3)],'id':this['id'],'for':_0x469945['to'](_0x22aa3f(0xf8))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2b9ca8=_0x215f;(function(_0x32e73a,_0x51cf60){const _0x38077a=_0x215f,_0x379383=_0x32e73a();while(!![]){try{const _0x16067c=-parseInt(_0x38077a(0xc3))/0x1*(-parseInt(_0x38077a(0xda))/0x2)+-parseInt(_0x38077a(0xe9))/0x3+-parseInt(_0x38077a(0xe7))/0x4+parseInt(_0x38077a(0xd6))/0x5*(-parseInt(_0x38077a(0xab))/0x6)+-parseInt(_0x38077a(0xf0))/0x7*(parseInt(_0x38077a(0xbb))/0x8)+parseInt(_0x38077a(0xb5))/0x9*(-parseInt(_0x38077a(0xb1))/0xa)+parseInt(_0x38077a(0xd8))/0xb*(parseInt(_0x38077a(0xaa))/0xc);if(_0x16067c===_0x51cf60)break;else _0x379383['push'](_0x379383['shift']());}catch(_0x963af8){_0x379383['push'](_0x379383['shift']());}}}(_0xdab7,0x27ebc));import{global as _0x558b2d}from'ckeditor5/src/utils.js';import{View as _0x62f851,ButtonView as _0x18d314,SpinnerView as _0x2e4449}from'ckeditor5/src/ui.js';import _0x4aec2b from'../../../theme/icons/copy.svg';function _0xdab7(){const _0xbda151=['change:isProcessing','check','AI\x20is\x20writing...','getSelection','Copy','addRange','10YvEGVF','text/html','264671qlGOUD','lastElementChild','6EBZspc','setTemplate','ck-ai-form__copy-button-wrapper','ck-hidden','_copyHTMLToClipboard','<span>[</span>','removeAllRanges','focus','isVisible','smooth','scrollHeight','listenTo','setStartAfter','1117220rMkKeY','textContent','173871OOBMrK','position','querySelector','ck-ai-form__content-field','write','locale','setEndBefore','7770FhmhMw','icon','ck-ai-form__content-area--processing','render','ck-ai-form__loader','element','body','left','wheel','ck-ai-form__content-area','execCommand','_createCopyButton','change:value','bind','innerHTML','setContent','createRange','appendChild','324uTIrXp','717072PqroIK','loaderView','ck-reset_all-excluded','value','_createLoader','copyButtonView','10zWtnQb','contentFieldView','ClipboardItem','isEnabled','1313721NSObPM','text/plain','execute','absolute','mousedown','ck-ai-form__copy-button','16PRDNOl','style','.ck-ai-form__loader','scrollTo','isProcessing','firstElementChild','ck-ai-form__content-area-wrapper','div','79448RUqUyG','<span>]</span>','class','\x20ck-ai-form__copy-button--copied','set','createElement','appendLoader','remove','ck-content','copy','clipboard','bindTemplate','-9999px'];_0xdab7=function(){return _0xbda151;};return _0xdab7();}function _0x215f(_0x5e1654,_0xe104cf){const _0xdab788=_0xdab7();return _0x215f=function(_0x215ff7,_0x7fdb1a){_0x215ff7=_0x215ff7-0xa7;let _0x1888ae=_0xdab788[_0x215ff7];return _0x1888ae;},_0x215f(_0x5e1654,_0xe104cf);}import{getTranslation as _0x51e73b}from'../../utils/common-translations.js';import{icons as _0x409aac}from'ckeditor5/src/core.js';export default class nt extends _0x62f851{constructor(_0x4a0281,_0x5799ea=''){const _0x18d538=_0x215f;super(_0x4a0281),this[_0x18d538(0xc7)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x1b0f88=this[_0x18d538(0xce)];this[_0x18d538(0xb2)]=new ContentFieldView(_0x4a0281,_0x5799ea),this[_0x18d538(0xb0)]=this[_0x18d538(0xfb)](),this[_0x18d538(0xdb)]({'tag':_0x18d538(0xc2),'attributes':{'class':['ck',_0x18d538(0xc1),_0x1b0f88['if'](_0x18d538(0xe2),_0x18d538(0xdd),_0x1a3899=>!_0x1a3899)],'tabindex':'-1'},'children':[{'tag':_0x18d538(0xc2),'attributes':{'class':['ck',_0x18d538(0xf9),_0x1b0f88['if'](_0x18d538(0xbf),_0x18d538(0xf2))]},'children':[this[_0x18d538(0xb2)],{'tag':_0x18d538(0xc2),'attributes':{'class':['ck',_0x18d538(0xdc)]},'children':[this[_0x18d538(0xb0)]]}]}]});}[_0x2b9ca8(0xf3)](){const _0x101dee=_0x2b9ca8;super[_0x101dee(0xf3)](),this[_0x101dee(0xae)]&&this[_0x101dee(0xb2)][_0x101dee(0xa7)](this[_0x101dee(0xae)]);let _0xd6578a=!0x1;this['on'](_0x101dee(0xfc),(_0x465265,_0x2315ce,_0x35f106)=>{const _0xd9b4fb=_0x101dee,_0x2a9db3=!this[_0xd9b4fb(0xb2)][_0xd9b4fb(0xf5)][_0xd9b4fb(0xeb)](_0xd9b4fb(0xbd));this[_0xd9b4fb(0xb2)][_0xd9b4fb(0xa7)](_0x35f106),this[_0xd9b4fb(0xbf)]&&_0x2a9db3&&!_0xd6578a&&this[_0xd9b4fb(0xf5)][_0xd9b4fb(0xbe)]({'top':this[_0xd9b4fb(0xf5)][_0xd9b4fb(0xe4)],'behavior':_0xd9b4fb(0xe3)});}),this['on'](_0x101dee(0xd0),(_0x3faf6d,_0x1a2216,_0x5e9064)=>{const _0x180687=_0x101dee;_0xd6578a=!0x1,_0x5e9064?(this[_0x180687(0xae)]=null,this[_0x180687(0xb2)][_0x180687(0xc9)]()):this[_0x180687(0xae)]||this[_0x180687(0xb2)][_0x180687(0xa7)]('');}),this[_0x101dee(0xe5)](this[_0x101dee(0xf5)],_0x101dee(0xf8),()=>{_0xd6578a=!0x0;}),this[_0x101dee(0xe5)](this[_0x101dee(0xf5)],_0x101dee(0xb9),()=>{_0xd6578a=!0x0;});}[_0x2b9ca8(0xe1)](){const _0x321d6b=_0x2b9ca8;this[_0x321d6b(0xf5)][_0x321d6b(0xe1)]();}[_0x2b9ca8(0xfb)](){const _0x52ad80=_0x2b9ca8,_0x1d1c5d=this[_0x52ad80(0xee)],_0x49d320=new _0x18d314(this[_0x52ad80(0xee)]),_0x2ce847=_0x52ad80(0xba);return _0x49d320[_0x52ad80(0xc7)]({'label':_0x51e73b(_0x1d1c5d,_0x52ad80(0xd4)),'icon':_0x4aec2b,'class':_0x2ce847,'tooltip':!0x0}),_0x49d320[_0x52ad80(0xfd)](_0x52ad80(0xe2))['to'](this,_0x52ad80(0xae),_0x46837e=>!!_0x46837e),_0x49d320[_0x52ad80(0xfd)](_0x52ad80(0xb4))['to'](this,_0x52ad80(0xbf),_0xbee8f2=>!_0xbee8f2),_0x49d320['on'](_0x52ad80(0xb7),()=>{const _0x2fa409=_0x52ad80;this[_0x2fa409(0xde)](this[_0x2fa409(0xb2)][_0x2fa409(0xf5)]),_0x49d320[_0x2fa409(0xf1)]=_0x409aac[_0x2fa409(0xd1)],_0x49d320[_0x2fa409(0xc5)]=_0x2ce847+_0x2fa409(0xc6),this[_0x2fa409(0xe1)](),setTimeout(()=>{const _0x209562=_0x2fa409;_0x49d320[_0x209562(0xf1)]=_0x4aec2b,_0x49d320[_0x209562(0xc5)]=_0x2ce847;},0x3e8);}),_0x49d320;}[_0x2b9ca8(0xde)](_0x4e6b22){const _0x30ea84=_0x2b9ca8,{window:_0x46af14,document:_0x4aa0dc}=_0x558b2d;if(_0x46af14[_0x30ea84(0xb3)]){const {Blob:_0xfc5ef7,ClipboardItem:_0x2cfcca}=_0x46af14,_0x386b89=[new _0x2cfcca({'text/html':new _0xfc5ef7([_0x4e6b22[_0x30ea84(0xfe)]],{'type':_0x30ea84(0xd7)}),'text/plain':new _0xfc5ef7([_0x4e6b22[_0x30ea84(0xe8)]||''],{'type':_0x30ea84(0xb6)})})];navigator[_0x30ea84(0xcd)][_0x30ea84(0xed)](_0x386b89);}else{const _0x923444=_0x4aa0dc[_0x30ea84(0xc8)](_0x30ea84(0xc2));_0x923444[_0x30ea84(0xbc)][_0x30ea84(0xea)]=_0x30ea84(0xb8),_0x923444[_0x30ea84(0xbc)][_0x30ea84(0xf7)]=_0x30ea84(0xcf),_0x923444[_0x30ea84(0xfe)]=_0x30ea84(0xdf)+_0x4e6b22[_0x30ea84(0xfe)]+_0x30ea84(0xc4),_0x4aa0dc[_0x30ea84(0xf6)][_0x30ea84(0xa9)](_0x923444);const _0x31e0ad=_0x4aa0dc[_0x30ea84(0xa8)]();_0x31e0ad[_0x30ea84(0xe6)](_0x923444[_0x30ea84(0xc0)]),_0x31e0ad[_0x30ea84(0xef)](_0x923444[_0x30ea84(0xd9)]);const _0xc110ff=_0x46af14[_0x30ea84(0xd3)]();_0xc110ff[_0x30ea84(0xe0)](),_0xc110ff[_0x30ea84(0xd5)](_0x31e0ad),_0x4aa0dc[_0x30ea84(0xfa)](_0x30ea84(0xcc)),_0x923444[_0x30ea84(0xca)]();}}}export class ContentFieldView extends _0x62f851{constructor(_0x4a7825,_0x3e861d=''){const _0xae2308=_0x2b9ca8;super(_0x4a7825),this[_0xae2308(0xac)]=this[_0xae2308(0xaf)](),this[_0xae2308(0xdb)]({'tag':_0xae2308(0xc2),'attributes':{'class':['ck',_0xae2308(0xcb),_0x3e861d,_0xae2308(0xad),_0xae2308(0xec)]}});}[_0x2b9ca8(0xa7)](_0x4e6ee3){const _0x26644b=_0x2b9ca8;this[_0x26644b(0xf5)][_0x26644b(0xfe)]=_0x4e6ee3;}[_0x2b9ca8(0xc9)](){const _0x4d3fad=_0x2b9ca8;this[_0x4d3fad(0xf5)][_0x4d3fad(0xa9)](this[_0x4d3fad(0xac)][_0x4d3fad(0xf5)]);}[_0x2b9ca8(0xaf)](){const _0xa09aae=_0x2b9ca8,_0x57e517=new _0x62f851(),_0x3b1b17=this[_0xa09aae(0xee)],_0x2a462a=new _0x2e4449();return _0x2a462a[_0xa09aae(0xe2)]=!0x0,_0x57e517[_0xa09aae(0xdb)]({'tag':_0xa09aae(0xc2),'attributes':{'class':['ck',_0xa09aae(0xf4)]},'children':[_0x2a462a,{'text':_0x51e73b(_0x3b1b17,_0xa09aae(0xd2))}]}),_0x57e517[_0xa09aae(0xf3)](),_0x57e517;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5c22(_0x3ff9e7,_0x36417e){const _0x3d426d=_0x3d42();return _0x5c22=function(_0x5c2222,_0x338550){_0x5c2222=_0x5c2222-0x170;let _0x5b860b=_0x3d426d[_0x5c2222];return _0x5b860b;},_0x5c22(_0x3ff9e7,_0x36417e);}(function(_0x1b0bf7,_0x12f5b3){const _0x2db039=_0x5c22,_0x96ddac=_0x1b0bf7();while(!![]){try{const _0x3f7268=parseInt(_0x2db039(0x174))/0x1*(parseInt(_0x2db039(0x17b))/0x2)+-parseInt(_0x2db039(0x171))/0x3+-parseInt(_0x2db039(0x17e))/0x4+parseInt(_0x2db039(0x175))/0x5*(parseInt(_0x2db039(0x178))/0x6)+parseInt(_0x2db039(0x177))/0x7*(parseInt(_0x2db039(0x17f))/0x8)+parseInt(_0x2db039(0x172))/0x9*(-parseInt(_0x2db039(0x182))/0xa)+parseInt(_0x2db039(0x17c))/0xb*(-parseInt(_0x2db039(0x179))/0xc);if(_0x3f7268===_0x12f5b3)break;else _0x96ddac['push'](_0x96ddac['shift']());}catch(_0x43832a){_0x96ddac['push'](_0x96ddac['shift']());}}}(_0x3d42,0x70b26));import{View as _0x11120a,IconView as _0x2f63ac}from'ckeditor5/src/ui.js';import _0x151197 from'../../../theme/icons/error.svg';function _0x3d42(){const _0x11416a=['div','1066uhWXvZ','427471rolvUQ','setTemplate','1572852aflWMG','40FLRHKb','content','ck-ai-form__error','10CzITBd','set','2015163GQxyvy','410796plaXSn','bindTemplate','681dZSUQw','5nJgmZr','text','821576GvwZpg','5133222bUPULX','72pMnoem'];_0x3d42=function(){return _0x11416a;};return _0x3d42();}export default class mt extends _0x11120a{constructor(_0x45e053,_0x226299=''){const _0x558578=_0x5c22;super(_0x45e053);const _0x559322=new _0x2f63ac(),_0x2461e6=this[_0x558578(0x173)];this[_0x558578(0x170)](_0x558578(0x176),_0x226299),_0x559322[_0x558578(0x180)]=_0x151197,this[_0x558578(0x17d)]({'tag':_0x558578(0x17a),'attributes':{'class':['ck',_0x558578(0x181)]},'children':[_0x559322,{'text':_0x2461e6['to'](_0x558578(0x176))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x476f8e=_0x4022;(function(_0x50c0f3,_0x3cc38a){const _0x127da1=_0x4022,_0x98ae39=_0x50c0f3();while(!![]){try{const _0x47a3a4=-parseInt(_0x127da1(0x214))/0x1*(-parseInt(_0x127da1(0x212))/0x2)+parseInt(_0x127da1(0x1f4))/0x3*(-parseInt(_0x127da1(0x226))/0x4)+-parseInt(_0x127da1(0x217))/0x5+parseInt(_0x127da1(0x209))/0x6+-parseInt(_0x127da1(0x203))/0x7*(-parseInt(_0x127da1(0x215))/0x8)+-parseInt(_0x127da1(0x20b))/0x9*(-parseInt(_0x127da1(0x210))/0xa)+-parseInt(_0x127da1(0x22c))/0xb*(parseInt(_0x127da1(0x1fa))/0xc);if(_0x47a3a4===_0x3cc38a)break;else _0x98ae39['push'](_0x98ae39['shift']());}catch(_0x4d7a6f){_0x98ae39['push'](_0x98ae39['shift']());}}}(_0x3a74,0xab68e));import{Rect as _0x463f5b,global as _0x51eda5,isVisible as _0x274283}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x5dc1ae,ButtonView as _0x2d4613}from'ckeditor5/src/ui.js';function _0x3a74(){const _0x1e8761=['value','keystrokes','requestAnimationFrame','minRows','render','isEnabled','focusFirst','style','14ElRmzJ','_createSubmitButton','submit','focusCycler','History','execute','6677796aDJYCK','target','44271UYSySk','rtl','window','isOn','focusLast','1140GTovVd','update','88178GWzKQV','showHistoryButtonView','17lMxEAQ','3835816NkLQxo','focus','4220730Qqqese','left','fire','excludeScrollbarsAndBorders','locale','focusableChildren','right','fieldView','bind','element','isVisible','maxRows','set','enter','filteredView','8AjxTFv','submitButtonView','uiLanguageDirection','children','width','ck-ai-form__submit','6677GPNjcb','fieldWrapperChildren','resultsView','_createShowHistoryButton','ck-ai-form__toggle-history','686193GOePCH','Submit','history','isEmpty','queryView','add','27252LWLfTF'];_0x3a74=function(){return _0x1e8761;};return _0x3a74();}function _0x4022(_0x12fe00,_0x5d3195){const _0x3a7499=_0x3a74();return _0x4022=function(_0x402212,_0x3ffd11){_0x402212=_0x402212-0x1f1;let _0x58352a=_0x3a7499[_0x402212];return _0x58352a;},_0x4022(_0x12fe00,_0x5d3195);}import{icons as _0x2f6c1d}from'ckeditor5/src/core.js';import{getTranslation as _0x49b29e}from'../../utils/common-translations.js';import _0xb387 from'../../../theme/icons/submit.svg';export default class pt extends _0x5dc1ae{constructor(_0x1a1905,_0x3afd4b){const _0x331ed6=_0x4022;super(_0x1a1905,_0x3afd4b),this[_0x331ed6(0x1f8)][_0x331ed6(0x21e)][_0x331ed6(0x1fe)]=0x1,this[_0x331ed6(0x1f8)][_0x331ed6(0x21e)][_0x331ed6(0x222)]=0x3,this[_0x331ed6(0x227)]=this[_0x331ed6(0x204)](),this[_0x331ed6(0x213)]=this[_0x331ed6(0x1f2)](),this[_0x331ed6(0x21c)][_0x331ed6(0x1f9)](this[_0x331ed6(0x213)],0x1),this[_0x331ed6(0x21c)][_0x331ed6(0x1f9)](this[_0x331ed6(0x227)]);}[_0x476f8e(0x1ff)](){const _0x4f8f1c=_0x476f8e;super[_0x4f8f1c(0x1ff)](),this[_0x4f8f1c(0x1f8)][_0x4f8f1c(0x22d)][_0x4f8f1c(0x1f9)](this[_0x4f8f1c(0x213)]),this[_0x4f8f1c(0x229)][_0x4f8f1c(0x1f9)](this[_0x4f8f1c(0x227)]),this[_0x4f8f1c(0x1fc)][_0x4f8f1c(0x223)](_0x4f8f1c(0x224),(_0x17f912,_0x29b90b)=>{const _0x430085=_0x4f8f1c;_0x17f912[_0x430085(0x20a)]==this[_0x430085(0x1f8)][_0x430085(0x21e)][_0x430085(0x220)]&&(this[_0x430085(0x205)](),_0x29b90b());});}[_0x476f8e(0x204)](){const _0x5ed6b2=_0x476f8e,_0x31043d=new _0x2d4613(this[_0x5ed6b2(0x21b)]),_0x1ae37c=this[_0x5ed6b2(0x21b)];return _0x31043d[_0x5ed6b2(0x223)]({'icon':_0xb387,'label':_0x49b29e(_0x1ae37c,_0x5ed6b2(0x1f5)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5ed6b2(0x22b)}),_0x31043d['on'](_0x5ed6b2(0x208),()=>{const _0x1deffd=_0x5ed6b2;this[_0x1deffd(0x205)]();}),_0x31043d[_0x5ed6b2(0x21f)](_0x5ed6b2(0x200))['to'](this[_0x5ed6b2(0x1f8)][_0x5ed6b2(0x21e)],_0x5ed6b2(0x1f7),this,_0x5ed6b2(0x200),(_0x14f8d0,_0x3e667d)=>!_0x14f8d0&&_0x3e667d),_0x31043d;}[_0x476f8e(0x1f2)](){const _0xd37a04=_0x476f8e,_0x5b7bb6=new _0x2d4613(this[_0xd37a04(0x21b)]),_0x1d9b48=this[_0xd37a04(0x1f1)],_0x55b12b=this[_0xd37a04(0x21b)];_0x5b7bb6[_0xd37a04(0x223)]({'label':_0x49b29e(_0x55b12b,_0xd37a04(0x207)),'withText':!0x1,'icon':_0x2f6c1d[_0xd37a04(0x1f6)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0xd37a04(0x1f3)}),_0x5b7bb6[_0xd37a04(0x21f)](_0xd37a04(0x20e))['to'](_0x1d9b48,_0xd37a04(0x221)),_0x5b7bb6[_0xd37a04(0x21f)](_0xd37a04(0x200))['to'](this,_0xd37a04(0x200)),_0x5b7bb6['on'](_0xd37a04(0x208),()=>{const _0x475424=_0xd37a04;_0x1d9b48[_0x475424(0x221)]=!_0x1d9b48[_0x475424(0x221)],_0x1d9b48[_0x475424(0x221)]?this[_0x475424(0x225)][_0x475424(0x216)]():this[_0x475424(0x216)]();});const _0x830649=()=>{const _0x4d0baf=_0xd37a04;_0x51eda5[_0x4d0baf(0x20d)][_0x4d0baf(0x1fd)](()=>{const _0x33618b=_0x4d0baf;if(_0x274283(this[_0x33618b(0x220)])){const _0x2e89bd=new _0x463f5b(this[_0x33618b(0x1f8)][_0x33618b(0x21e)][_0x33618b(0x220)]),_0x3afb14=_0x2e89bd[_0x33618b(0x22a)],_0x44562c=_0x33618b(0x20c)===_0x55b12b[_0x33618b(0x228)]?_0x33618b(0x218):_0x33618b(0x21d);_0x2e89bd[_0x33618b(0x21a)](),_0x5b7bb6[_0x33618b(0x220)][_0x33618b(0x202)][_0x44562c]=_0x3afb14-_0x2e89bd[_0x33618b(0x22a)]+0x1+'px';}});};return this[_0xd37a04(0x1f8)][_0xd37a04(0x21e)]['on'](_0xd37a04(0x211),_0x830649),this['on'](_0xd37a04(0x1ff),_0x830649),_0x5b7bb6;}[_0x476f8e(0x205)](){const _0x4fc589=_0x476f8e,_0x53b0bb=this[_0x4fc589(0x1f8)][_0x4fc589(0x21e)][_0x4fc589(0x220)][_0x4fc589(0x1fb)];this[_0x4fc589(0x219)](_0x4fc589(0x205),_0x53b0bb);}[_0x476f8e(0x216)](_0x531ba3){const _0x5c68e8=_0x476f8e;-0x1===_0x531ba3?this[_0x5c68e8(0x206)][_0x5c68e8(0x20f)]():this[_0x5c68e8(0x206)][_0x5c68e8(0x201)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5651(_0x19ca02,_0x565763){const _0x3722db=_0x3722();return _0x5651=function(_0x5651c2,_0x2a159f){_0x5651c2=_0x5651c2-0x1b8;let _0x3831e7=_0x3722db[_0x5651c2];return _0x3831e7;},_0x5651(_0x19ca02,_0x565763);}const _0x2187ee=_0x5651;(function(_0x26102e,_0xf26717){const _0x188ac5=_0x5651,_0x7077ce=_0x26102e();while(!![]){try{const _0x57e096=-parseInt(_0x188ac5(0x1d0))/0x1*(parseInt(_0x188ac5(0x1c2))/0x2)+-parseInt(_0x188ac5(0x1bb))/0x3+-parseInt(_0x188ac5(0x1c7))/0x4+parseInt(_0x188ac5(0x1d3))/0x5+parseInt(_0x188ac5(0x1ca))/0x6+-parseInt(_0x188ac5(0x1c5))/0x7*(parseInt(_0x188ac5(0x1bf))/0x8)+parseInt(_0x188ac5(0x1be))/0x9;if(_0x57e096===_0xf26717)break;else _0x7077ce['push'](_0x7077ce['shift']());}catch(_0x4b79b0){_0x7077ce['push'](_0x7077ce['shift']());}}}(_0x3722,0xe0cb0));import{ToolbarView as _0x3d2674,ButtonView as _0x56da48}from'ckeditor5/src/ui.js';import{getTranslation as _0x559b00}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2187ee(0x1c6),'INSERT':_0x2187ee(0x1d9)};export default class Tt extends _0x3d2674{constructor(_0x6c15d1){const _0x4800d1=_0x2187ee;super(_0x6c15d1),this[_0x4800d1(0x1ba)](_0x4800d1(0x1cb),!0x1),this[_0x4800d1(0x1ba)](_0x4800d1(0x1da),AIFormToolbarViewMainActionLabel[_0x4800d1(0x1cf)]),this[_0x4800d1(0x1d8)]=this[_0x4800d1(0x1c9)]('',_0x4800d1(0x1cd)),this[_0x4800d1(0x1d8)][_0x4800d1(0x1b8)](_0x4800d1(0x1bc))['to'](this,_0x4800d1(0x1da),_0x3ce4a7=>_0x559b00(_0x6c15d1,_0x4800d1(0x1d1)+_0x3ce4a7[_0x4800d1(0x1cc)]()+_0x4800d1(0x1c8))),this[_0x4800d1(0x1d4)]=this[_0x4800d1(0x1c9)](_0x559b00(_0x6c15d1,_0x4800d1(0x1d2))),this[_0x4800d1(0x1c0)]=this[_0x4800d1(0x1c9)](_0x559b00(_0x6c15d1,_0x4800d1(0x1b9))),this[_0x4800d1(0x1d5)]=this[_0x4800d1(0x1c9)](_0x559b00(_0x6c15d1,_0x4800d1(0x1bd)));const _0x363b8c=this[_0x4800d1(0x1c4)];this[_0x4800d1(0x1ce)]({'attributes':{'class':[_0x4800d1(0x1d7),_0x363b8c['if'](_0x4800d1(0x1cb),_0x4800d1(0x1c1),_0x51537f=>!_0x51537f)]}}),this[_0x4800d1(0x1d6)][_0x4800d1(0x1c3)]([this[_0x4800d1(0x1d8)],this[_0x4800d1(0x1d4)],this[_0x4800d1(0x1c0)],this[_0x4800d1(0x1d5)]]);}[_0x2187ee(0x1c9)](_0x280330,_0x2bdfe2){const _0x5f5d4d=_0x2187ee,_0x552e45=new _0x56da48(this[_0x5f5d4d(0x1db)]);return _0x552e45[_0x5f5d4d(0x1ba)]({'label':_0x280330,'class':_0x2bdfe2||'','isVisible':!0x0,'withText':!0x0}),_0x552e45;}}function _0x3722(){const _0x5b832d=['Insert\x20below','7478795ufbUjP','insertButton','stopButton','items','ck-ai-form__toolbar','replaceButton','insert','mainAction','locale','bind','Try\x20again','set','3375258krtkJX','label','Stop','35967618iEryFy','10084816huSTRu','tryAgainButton','ck-hidden','2EpEhpo','addMany','bindTemplate','7kIRZCa','replace','3741004Ygittb','_CONTENT','_createButton','3518466TmSRYv','isVisible','toUpperCase','ck-button-action','extendTemplate','REPLACE','1836881zswLiH','AI_'];_0x3722=function(){return _0x5b832d;};return _0x3722();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33f44f=_0x3daa;function _0x3daa(_0x3d9dd7,_0x25f1a3){const _0x174b64=_0x174b();return _0x3daa=function(_0x3daacb,_0x57239b){_0x3daacb=_0x3daacb-0xd3;let _0x214b3a=_0x174b64[_0x3daacb];return _0x214b3a;},_0x3daa(_0x3d9dd7,_0x25f1a3);}(function(_0x1dd92f,_0x5e10b1){const _0x4e6beb=_0x3daa,_0x225dec=_0x1dd92f();while(!![]){try{const _0x55f314=parseInt(_0x4e6beb(0xf1))/0x1+parseInt(_0x4e6beb(0x110))/0x2+parseInt(_0x4e6beb(0x10d))/0x3+parseInt(_0x4e6beb(0xdc))/0x4*(parseInt(_0x4e6beb(0x128))/0x5)+-parseInt(_0x4e6beb(0xe6))/0x6+parseInt(_0x4e6beb(0xf9))/0x7+-parseInt(_0x4e6beb(0x104))/0x8;if(_0x55f314===_0x5e10b1)break;else _0x225dec['push'](_0x225dec['shift']());}catch(_0xa25687){_0x225dec['push'](_0x225dec['shift']());}}}(_0x174b,0xaae97));import{FocusTracker as _0x2d4229,KeystrokeHandler as _0x51b010}from'ckeditor5/src/utils.js';import{View as _0x33bf17,FocusCycler as _0x10afe7,createLabeledTextarea as _0x6c2257}from'ckeditor5/src/ui.js';import _0x45db9e,{AIFormToolbarViewMainActionLabel as _0x36e966}from'./aiformtoolbarview.js';function _0x174b(){const _0x531b93=['trim','Ask\x20AI\x20to\x20edit\x20or\x20generate','476243QjXLxI','stopProcessing','label','clearHistory','promptView','shift\x20+\x20tab','reset','Ask\x20AI\x20to\x20improve\x20generated\x20text','5320301dmLYeM','_focusables','queryView','bindTo','isError','value','stop','focusNext','backwardCycle','submitPrompt','high','16046512EtoYWs','bindTemplate','ck-ai-form','historyGroupView','bind','render','replaceContent','fire','search','2065626AcJGyA','items','_createToolbar','579614kAVdBn','focusTracker','div','tryAgainButton','_createPromptView','forwardCycle','isVisible','prompt','isProcessing','isEnabled','focusPrevious','tab','focusCycler','REPLACE','createCollection','add','tryAgainEvent','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','insertContentBelow','locale','focusLast','Empty\x20history','setTemplate','AI_ERROR_FAILED','5MRumUN','element','copyButtonView','set','keystrokes','stopButton','handleError','startProcessing','delegate','listenTo','_createHistoryView','3321412FjNfOa','submit','insertButton','fieldView','focusFirst','_promptHistory','focus','mainAction','ck-hidden','errorView','2034714CYaWpF','contentArea','toolbar','text','execute','clear','ck-ai-form-content','finishProcessing','replaceButton'];_0x174b=function(){return _0x531b93;};return _0x174b();}import _0x15d654 from'./aiformcontentarea.js';import _0x1ba814 from'./aiformerrorview.js';import _0x2d15ad from'./aiformpromptview.js';import _0x152197 from'./aihistorylistview.js';import _0x2e7cfa from'./aihistorylistitemview.js';import _0x46f64a from'./prompthistory.js';import{getTranslation as _0x4982fc}from'../../utils/common-translations.js';import{escape as _0x446eb3}from'lodash-es';export default class x extends _0x33bf17{constructor(_0x45d331,_0x53e6e8,_0x31a8d2=''){const _0x5e6f25=_0x3daa;super(_0x45d331),this[_0x5e6f25(0xd4)](_0x5e6f25(0x119),!0x0),this[_0x5e6f25(0xd4)](_0x5e6f25(0x118),!0x1),this[_0x5e6f25(0xd4)](_0x5e6f25(0x117),''),this[_0x5e6f25(0xd4)](_0x5e6f25(0xfe),''),this[_0x5e6f25(0xd4)](_0x5e6f25(0xfd),!0x1),this[_0x5e6f25(0xd4)](_0x5e6f25(0xe3),_0x36e966[_0x5e6f25(0x11d)]),this[_0x5e6f25(0xe1)]=new _0x46f64a(),this[_0x5e6f25(0xe5)]=new _0x1ba814(_0x45d331),this[_0x5e6f25(0xe7)]=new _0x15d654(_0x45d331,_0x31a8d2),this[_0x5e6f25(0xe7)][_0x5e6f25(0x108)](_0x5e6f25(0x118))['to'](this),this[_0x5e6f25(0xe7)][_0x5e6f25(0x108)](_0x5e6f25(0xfe))['to'](this),this[_0x5e6f25(0xe8)]=this[_0x5e6f25(0x10f)](),this[_0x5e6f25(0xe8)][_0x5e6f25(0x108)](_0x5e6f25(0xe3))['to'](this),this[_0x5e6f25(0xf5)]=this[_0x5e6f25(0x114)](),this[_0x5e6f25(0x111)]=new _0x2d4229(),this[_0x5e6f25(0xd5)]=new _0x51b010(),this[_0x5e6f25(0xfa)]=this[_0x5e6f25(0x11e)]([this[_0x5e6f25(0xe7)],this[_0x5e6f25(0xe7)][_0x5e6f25(0xd3)],this[_0x5e6f25(0xe8)],this[_0x5e6f25(0xf5)]]),this[_0x5e6f25(0x11c)]=new _0x10afe7({'focusables':this[_0x5e6f25(0xfa)],'focusTracker':this[_0x5e6f25(0x111)],'keystrokeHandler':this[_0x5e6f25(0xd5)],'actions':{'focusPrevious':_0x5e6f25(0xf6),'focusNext':_0x5e6f25(0x11b)}}),this[_0x5e6f25(0xf5)][_0x5e6f25(0x11c)]['on'](_0x5e6f25(0x115),_0x35b5ae=>{const _0x2d1379=_0x5e6f25;this[_0x2d1379(0x11c)][_0x2d1379(0x100)](),_0x35b5ae[_0x2d1379(0xff)]();}),this[_0x5e6f25(0xf5)][_0x5e6f25(0x11c)]['on'](_0x5e6f25(0x101),_0x3d489d=>{const _0x1529e6=_0x5e6f25;this[_0x1529e6(0x11c)][_0x1529e6(0x11a)](),_0x3d489d[_0x1529e6(0xff)]();}),this[_0x5e6f25(0xf5)][_0x5e6f25(0xfb)][_0x5e6f25(0xdf)][_0x5e6f25(0x108)](_0x5e6f25(0xfe))['to'](this,_0x5e6f25(0x117));const _0x369658=this[_0x5e6f25(0x105)];this[_0x5e6f25(0x126)]({'tag':_0x5e6f25(0x112),'attributes':{'class':['ck',_0x5e6f25(0x106),_0x53e6e8],'tabindex':'-1'},'children':[{'tag':_0x5e6f25(0x112),'attributes':{'class':['ck',_0x5e6f25(0xec)]},'children':[{'tag':_0x5e6f25(0x112),'attributes':{'class':[_0x369658['if'](_0x5e6f25(0xfd),_0x5e6f25(0xe4),_0x486bfd=>!_0x486bfd)]},'children':[this[_0x5e6f25(0xe5)]]},this[_0x5e6f25(0xe7)],this[_0x5e6f25(0xe8)],this[_0x5e6f25(0xf5)]]}]});}[_0x33f44f(0x109)](){const _0x215729=_0x33f44f;super[_0x215729(0x109)](),this[_0x215729(0x111)][_0x215729(0x11f)](this[_0x215729(0xe7)][_0x215729(0x129)]),this[_0x215729(0x111)][_0x215729(0x11f)](this[_0x215729(0xe7)][_0x215729(0xd3)][_0x215729(0x129)]),this[_0x215729(0x111)][_0x215729(0x11f)](this[_0x215729(0xe8)][_0x215729(0x129)]),this[_0x215729(0x111)][_0x215729(0x11f)](this[_0x215729(0xf5)][_0x215729(0x129)]),this[_0x215729(0xd5)][_0x215729(0xda)](this[_0x215729(0x129)]);}[_0x33f44f(0xe2)](_0x3fceb9=0x1){const _0x4468ac=_0x33f44f;-0x1===_0x3fceb9?this[_0x4468ac(0x11c)][_0x4468ac(0x124)]():this[_0x4468ac(0x11c)][_0x4468ac(0xe0)]();}[_0x33f44f(0xf7)](){const _0x20d9a5=_0x33f44f;this[_0x20d9a5(0x117)]='',this[_0x20d9a5(0xfe)]='',this[_0x20d9a5(0xfd)]=!0x1,this[_0x20d9a5(0xf5)][_0x20d9a5(0xf7)](),this[_0x20d9a5(0xe7)][_0x20d9a5(0x116)]=!0x1,this[_0x20d9a5(0xe8)][_0x20d9a5(0x116)]=!0x1;}[_0x33f44f(0x114)](){const _0x3b2584=_0x33f44f,_0x1606d8=this[_0x3b2584(0x123)],_0x48ef73=new _0x2d15ad(_0x1606d8,{'queryView':{'label':_0x4982fc(_0x1606d8,_0x3b2584(0xf0)),'creator':_0x6c2257,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4982fc(_0x1606d8,_0x3b2584(0x125)),'secondary':_0x4982fc(_0x1606d8,_0x3b2584(0x121))}}},'filteredView':this[_0x3b2584(0xdb)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x48ef73[_0x3b2584(0x108)](_0x3b2584(0x119))['to'](this,_0x3b2584(0x119),this,_0x3b2584(0x118),(_0x365e10,_0x1480cb)=>_0x365e10&&!_0x1480cb),this[_0x3b2584(0xda)](_0x48ef73,_0x3b2584(0xdd),(_0x2129dd,_0x4e98d9)=>{const _0x58babb=_0x3b2584;this[_0x58babb(0x117)]=_0x4e98d9;const _0xf8fc10=_0x446eb3(_0x4e98d9);this[_0x58babb(0x10b)](_0x58babb(0x102),_0xf8fc10),_0x4e98d9[_0x58babb(0xef)]()&&this[_0x58babb(0xe1)][_0x58babb(0x11f)]({'prompt':_0xf8fc10},0x0);},{'priority':_0x3b2584(0x103)}),_0x48ef73;}[_0x33f44f(0xdb)](){const _0xd1e5cf=_0x33f44f,_0x371304=new _0x152197(this[_0xd1e5cf(0x123)]);return _0x371304[_0xd1e5cf(0x107)][_0xd1e5cf(0x10e)][_0xd1e5cf(0xfc)](this[_0xd1e5cf(0xe1)])['as'](_0x2e7cfa),_0x371304['on'](_0xd1e5cf(0xf4),()=>{const _0x414f69=_0xd1e5cf;this[_0x414f69(0xe1)][_0x414f69(0xeb)](),this[_0x414f69(0xf5)][_0x414f69(0x10c)](''),this[_0x414f69(0xf5)][_0x414f69(0xe2)]();}),_0x371304;}[_0x33f44f(0x10f)](){const _0x117a99=_0x33f44f,_0x39a3f5=new _0x45db9e(this[_0x117a99(0x123)]);return _0x39a3f5[_0x117a99(0xee)][_0x117a99(0x108)](_0x117a99(0x119))['to'](this,_0x117a99(0x119),this,_0x117a99(0x118),this,_0x117a99(0xfe),(_0x5e7596,_0x4578c1,_0x15b749)=>_0x5e7596&&!_0x4578c1&&!!_0x15b749),_0x39a3f5[_0x117a99(0xee)][_0x117a99(0xd9)](_0x117a99(0xea))['to'](this,_0x117a99(0x10a)),_0x39a3f5[_0x117a99(0xde)][_0x117a99(0x108)](_0x117a99(0x119))['to'](this,_0x117a99(0x119),this,_0x117a99(0x118),this,_0x117a99(0xfe),(_0x172c8b,_0x1f2014,_0x3dbb22)=>_0x172c8b&&!_0x1f2014&&!!_0x3dbb22),_0x39a3f5[_0x117a99(0xde)][_0x117a99(0xd9)](_0x117a99(0xea))['to'](this,_0x117a99(0x122)),_0x39a3f5[_0x117a99(0x113)][_0x117a99(0x108)](_0x117a99(0x119))['to'](this,_0x117a99(0x119),this,_0x117a99(0x118),(_0x4d0f17,_0x4ab853)=>_0x4d0f17&&!_0x4ab853),_0x39a3f5[_0x117a99(0x113)][_0x117a99(0xd9)](_0x117a99(0xea))['to'](this,_0x117a99(0x120)),_0x39a3f5[_0x117a99(0xd6)][_0x117a99(0x108)](_0x117a99(0x119))['to'](this,_0x117a99(0x118)),_0x39a3f5[_0x117a99(0xd6)][_0x117a99(0xd9)](_0x117a99(0xea))['to'](this,_0x117a99(0xf2)),_0x39a3f5;}[_0x33f44f(0xd8)](){const _0x45afda=_0x33f44f;this[_0x45afda(0xfe)]='',this[_0x45afda(0xfd)]=!0x1,this[_0x45afda(0x118)]=!0x0,this[_0x45afda(0xe7)][_0x45afda(0x116)]=!0x0,this[_0x45afda(0xe8)][_0x45afda(0x116)]=!0x0,this[_0x45afda(0xe7)][_0x45afda(0xe2)]();}[_0x33f44f(0xed)](){const _0x7a8129=_0x33f44f,_0x20cc05=this[_0x7a8129(0x123)];this[_0x7a8129(0x118)]=!0x1,this[_0x7a8129(0x117)]='',this[_0x7a8129(0xf5)][_0x7a8129(0xf7)](),this[_0x7a8129(0xfe)]&&(this[_0x7a8129(0xf5)][_0x7a8129(0xfb)][_0x7a8129(0xf3)]=_0x4982fc(_0x20cc05,_0x7a8129(0xf8)));}[_0x33f44f(0xd7)](_0x3f3496){const _0x29ed53=_0x33f44f,_0xbc991=this[_0x29ed53(0x123)];this[_0x29ed53(0xed)](),this[_0x29ed53(0xfd)]=!0x0,this[_0x29ed53(0xe5)][_0x29ed53(0xe9)]=_0x3f3496||_0x4982fc(_0xbc991,_0x29ed53(0x127)),this[_0x29ed53(0xfe)]||(this[_0x29ed53(0xe7)][_0x29ed53(0x116)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5d1a(_0x518550,_0x317ae9){const _0x48a24f=_0x48a2();return _0x5d1a=function(_0x5d1a6b,_0x3fac22){_0x5d1a6b=_0x5d1a6b-0xb9;let _0x17dbb9=_0x48a24f[_0x5d1a6b];return _0x17dbb9;},_0x5d1a(_0x518550,_0x317ae9);}(function(_0x57a564,_0x1c7313){const _0x4e5234=_0x5d1a,_0x2ae992=_0x57a564();while(!![]){try{const _0x2d3498=-parseInt(_0x4e5234(0xc1))/0x1*(-parseInt(_0x4e5234(0xbc))/0x2)+parseInt(_0x4e5234(0xbb))/0x3+-parseInt(_0x4e5234(0xc7))/0x4+parseInt(_0x4e5234(0xc3))/0x5+-parseInt(_0x4e5234(0xc4))/0x6+parseInt(_0x4e5234(0xba))/0x7*(-parseInt(_0x4e5234(0xc9))/0x8)+parseInt(_0x4e5234(0xc2))/0x9*(parseInt(_0x4e5234(0xc6))/0xa);if(_0x2d3498===_0x1c7313)break;else _0x2ae992['push'](_0x2ae992['shift']());}catch(_0x19ae45){_0x2ae992['push'](_0x2ae992['shift']());}}}(_0x48a2,0xed545));import{ListItemView as _0x3e64d7,ButtonView as _0x5aacdb}from'ckeditor5/src/ui.js';import _0xc062bc from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x27bf20}from'lodash-es';function _0x48a2(){const _0x5d4ba7=['1269126PKegoa','2ggCldq','locale','prompt','add','children','718049KKAlsf','549zPQafl','2719985mZRpcH','2586402jIQldh','set','358480QoZwYl','2863904nwnsbr','fire','14021376hgcfBE','execute','7qoOIlI'];_0x48a2=function(){return _0x5d4ba7;};return _0x48a2();}export default class hs extends _0x3e64d7{constructor(_0x3b0333){const _0x20b76f=_0x5d1a;super();const _0x7a7c4d=new _0xc062bc(),_0x38b2fb=new _0x5aacdb(this[_0x20b76f(0xbd)],_0x7a7c4d);this[_0x20b76f(0xc0)][_0x20b76f(0xbf)](_0x38b2fb),_0x38b2fb[_0x20b76f(0xc5)]({'label':_0x3b0333[_0x20b76f(0xbe)],'withText':!0x0}),_0x38b2fb['on'](_0x20b76f(0xb9),()=>{const _0x5c2869=_0x20b76f;this[_0x5c2869(0xc8)](_0x5c2869(0xb9),{'value':_0x27bf20(_0x3b0333[_0x5c2869(0xbe)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x134365=_0x58de;(function(_0x2632b5,_0x3baaa6){const _0x30b213=_0x58de,_0x11a4e2=_0x2632b5();while(!![]){try{const _0x2acdaa=-parseInt(_0x30b213(0x143))/0x1+-parseInt(_0x30b213(0x148))/0x2+-parseInt(_0x30b213(0x151))/0x3*(parseInt(_0x30b213(0x155))/0x4)+parseInt(_0x30b213(0x157))/0x5*(-parseInt(_0x30b213(0x14f))/0x6)+-parseInt(_0x30b213(0x144))/0x7+-parseInt(_0x30b213(0x152))/0x8+parseInt(_0x30b213(0x145))/0x9;if(_0x2acdaa===_0x3baaa6)break;else _0x11a4e2['push'](_0x11a4e2['shift']());}catch(_0x340055){_0x11a4e2['push'](_0x11a4e2['shift']());}}}(_0x57e5,0x2a731));import{ListView as _0x339c6f,ListItemGroupView as _0x5f1500,ButtonView as _0x2a0fc1}from'ckeditor5/src/ui.js';import{getTranslation as _0x469d15}from'../../utils/common-translations.js';function _0x57e5(){const _0x4c3741=['2183790ySZlHJ','13334067NSHDEc','Prompt\x20history','length','432508jKKXHY','label','set','items','historyGroupView','Clear','clearHistoryButton','6jVwfdq','locale','311097uKCXJr','1364632cPXhxf','fire','add','12eYnRvh','_createClearHistoryButton','241455ZsYGhk','delegate','children','filter','execute','clearHistory','249499FTYEzJ'];_0x57e5=function(){return _0x4c3741;};return _0x57e5();}function _0x58de(_0x10e9ab,_0x5a1675){const _0x57e5b7=_0x57e5();return _0x58de=function(_0x58de3d,_0x323c70){_0x58de3d=_0x58de3d-0x142;let _0x545a34=_0x57e5b7[_0x58de3d];return _0x545a34;},_0x58de(_0x10e9ab,_0x5a1675);}export default class rs extends _0x339c6f{constructor(_0xa78078){const _0x211aaa=_0x58de;super(_0xa78078),this[_0x211aaa(0x14e)]=this[_0x211aaa(0x156)](),this[_0x211aaa(0x14c)]=new _0x5f1500(),this[_0x211aaa(0x14c)][_0x211aaa(0x159)][_0x211aaa(0x154)](this[_0x211aaa(0x14e)],0x1),this[_0x211aaa(0x14c)][_0x211aaa(0x149)]=_0x469d15(_0xa78078,_0x211aaa(0x146)),this[_0x211aaa(0x14c)][_0x211aaa(0x14b)][_0x211aaa(0x158)](_0x211aaa(0x15b))['to'](this),this[_0x211aaa(0x14b)][_0x211aaa(0x154)](this[_0x211aaa(0x14c)]);}[_0x134365(0x15a)](){const _0x5c5367=_0x134365;let _0x581877=0x0;for(const _0x14e9c2 of this[_0x5c5367(0x14b)])_0x581877+=_0x14e9c2[_0x5c5367(0x14b)][_0x5c5367(0x147)];return{'resultsCount':_0x581877,'totalItemsCount':_0x581877};}[_0x134365(0x156)](){const _0x5a47ac=_0x134365,_0x3c8168=this[_0x5a47ac(0x150)],_0x1d29d0=new _0x2a0fc1(this[_0x5a47ac(0x150)]);return _0x1d29d0[_0x5a47ac(0x14a)]({'label':'('+_0x469d15(_0x3c8168,_0x5a47ac(0x14d))+')','withText':!0x0}),_0x1d29d0['on'](_0x5a47ac(0x15b),()=>this[_0x5a47ac(0x153)](_0x5a47ac(0x142))),_0x1d29d0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x155c50=_0xca3b;(function(_0x4910a6,_0x10ce34){const _0x26c52c=_0xca3b,_0x5444ca=_0x4910a6();while(!![]){try{const _0x17e0c7=-parseInt(_0x26c52c(0x105))/0x1+-parseInt(_0x26c52c(0xff))/0x2*(parseInt(_0x26c52c(0x104))/0x3)+parseInt(_0x26c52c(0x10a))/0x4+parseInt(_0x26c52c(0x100))/0x5+-parseInt(_0x26c52c(0xfc))/0x6*(-parseInt(_0x26c52c(0x109))/0x7)+-parseInt(_0x26c52c(0x110))/0x8+-parseInt(_0x26c52c(0x10b))/0x9;if(_0x17e0c7===_0x10ce34)break;else _0x5444ca['push'](_0x5444ca['shift']());}catch(_0xa143d7){_0x5444ca['push'](_0x5444ca['shift']());}}}(_0x5091,0xe14e1));function _0xca3b(_0x11a1b5,_0x5a68f1){const _0x509199=_0x5091();return _0xca3b=function(_0xca3b49,_0xbed4a){_0xca3b49=_0xca3b49-0xfb;let _0x1cbcdf=_0x509199[_0xca3b49];return _0x1cbcdf;},_0xca3b(_0x11a1b5,_0x5a68f1);}import{Collection as _0x36eb22}from'ckeditor5/src/utils.js';function _0x5091(){const _0x1d1160=['getItem','toLowerCase','7KUzAKH','162980liQRNe','9294741OBEvil','parse','remove','stringify','_saveToSessionStorage','3199240UWqbIE','addMany','setItem','map','prompt','6965436gAPFGv','length','_loadFromSessionStorage','42lcaPYx','8244180WQncSr','last','add','trim','1092rBtaqF','487340BuajWr','CKEditor/AIFormView/PromptHistory'];_0x5091=function(){return _0x1d1160;};return _0x5091();}const cs=_0x155c50(0x106);export default class os extends _0x36eb22{constructor(){const _0x492cec=_0x155c50;super(),this[_0x492cec(0xfe)](),this['on'](_0x492cec(0x102),(_0x458df5,_0x311b80)=>{const _0x560d93=_0x492cec,_0x510c7b=Ss(_0x311b80[_0x560d93(0xfb)]);for(const _0x4dd773 of this)if(_0x4dd773!=_0x311b80&&Ss(_0x4dd773[_0x560d93(0xfb)])===_0x510c7b){this[_0x560d93(0x10d)](_0x4dd773);break;}this[_0x560d93(0xfd)]>0x14&&this[_0x560d93(0x10d)](this[_0x560d93(0x101)]),this[_0x560d93(0x10f)]();}),this['on'](_0x492cec(0x10d),()=>{const _0x50b24b=_0x492cec;this[_0x50b24b(0x10f)]();});}[_0x155c50(0xfe)](){const _0x5f2b10=_0x155c50,_0x3285d5=sessionStorage[_0x5f2b10(0x107)](cs)||'[]';this[_0x5f2b10(0x111)](JSON[_0x5f2b10(0x10c)](_0x3285d5));}[_0x155c50(0x10f)](){const _0x248fd4=_0x155c50;sessionStorage[_0x248fd4(0x112)](cs,JSON[_0x248fd4(0x10e)](this[_0x248fd4(0x113)](_0x180aba=>_0x180aba)));}}function Ss(_0x3e9c2a){const _0x548fe9=_0x155c50;return _0x3e9c2a[_0x548fe9(0x108)]()[_0x548fe9(0x103)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e4c80=_0x2094;(function(_0x7184c6,_0x5d830b){const _0x1f7106=_0x2094,_0x38c822=_0x7184c6();while(!![]){try{const _0x75ab3a=-parseInt(_0x1f7106(0xc5))/0x1*(parseInt(_0x1f7106(0xcf))/0x2)+parseInt(_0x1f7106(0xce))/0x3+parseInt(_0x1f7106(0xc8))/0x4*(parseInt(_0x1f7106(0xe8))/0x5)+-parseInt(_0x1f7106(0xca))/0x6+parseInt(_0x1f7106(0xe2))/0x7*(-parseInt(_0x1f7106(0xe6))/0x8)+-parseInt(_0x1f7106(0xd3))/0x9+-parseInt(_0x1f7106(0xe9))/0xa*(-parseInt(_0x1f7106(0xd0))/0xb);if(_0x75ab3a===_0x5d830b)break;else _0x38c822['push'](_0x38c822['shift']());}catch(_0x2517fb){_0x38c822['push'](_0x38c822['shift']());}}}(_0x44ba,0x5770d));import{Command as _0x919a51}from'ckeditor5/src/core.js';import _0x1ceef2 from'../aiassistantui.js';export default class j extends _0x919a51{constructor(_0x2efcc8,_0x4c51cf){const _0x3744f8=_0x2094;super(_0x2efcc8),this[_0x3744f8(0xdc)]=_0x4c51cf?_0x4c51cf[_0x3744f8(0xe7)]((_0x5c6bf2,_0x427319)=>_0x5c6bf2[_0x3744f8(0xc6)](_0x427319[_0x3744f8(0xcc)]),new Array()):[],this[_0x3744f8(0xd9)](_0x3744f8(0xde),[]),this['on'](_0x3744f8(0xf2),(_0x2a4afa,_0x26675f,_0x486924)=>{const _0x1fcf6b=_0x3744f8;this[_0x1fcf6b(0xd8)]&&(this[_0x1fcf6b(0xde)]=K(this[_0x1fcf6b(0xdc)],_0x486924));}),this[_0x3744f8(0xd9)](_0x3744f8(0xd1),!0x1),this['on'](_0x3744f8(0xd5),(_0x3f883d,_0x2b9ca5,_0x1c3a29)=>{const _0x42a7d5=_0x3744f8;this[_0x42a7d5(0xde)]=_0x1c3a29?K(this[_0x42a7d5(0xdc)],this[_0x42a7d5(0xd1)]):[];});}[_0x3e4c80(0xcb)](){const _0x64bf86=_0x3e4c80,_0x3ff8bb=this[_0x64bf86(0xe4)][_0x64bf86(0xda)];this[_0x64bf86(0xd1)]=function(_0x4705fe){const _0x3b3813=_0x64bf86,_0x439048=_0x4705fe[_0x3b3813(0xe3)][_0x3b3813(0xcd)];return _0x439048[_0x3b3813(0xd6)]?0x0!==[..._0x439048[_0x3b3813(0xec)]()][_0x3b3813(0xee)]&&![..._0x439048[_0x3b3813(0xec)]()][0x0][_0x3b3813(0xeb)]:!!_0x4705fe[_0x3b3813(0xdb)](_0x439048[_0x3b3813(0xc4)]());}(_0x3ff8bb);const _0x15cb18=_0x3ff8bb[_0x64bf86(0xe3)][_0x64bf86(0xcd)],_0x355763=this[_0x64bf86(0xe4)][_0x64bf86(0xd4)][_0x64bf86(0xe5)](_0x64bf86(0xdf));for(const _0x274d9f of _0x15cb18[_0x64bf86(0xdd)]())for(const _0x3cb45b of _0x274d9f[_0x64bf86(0xf0)]())if(_0x3cb45b['is'](_0x64bf86(0xc9))&&_0x355763[_0x64bf86(0xc7)](_0x3cb45b[_0x64bf86(0xea)]))return void(this[_0x64bf86(0xd8)]=!0x1);this[_0x64bf86(0xd8)]=!0x0;}[_0x3e4c80(0xe1)](_0x2cfede='',_0x1c41c2='',_0xc3f3ee=_0x3e4c80(0xe0)){const _0x2ba7f2=_0x3e4c80;this[_0x2ba7f2(0xe4)][_0x2ba7f2(0xd7)][_0x2ba7f2(0xe5)](_0x1ceef2)[_0x2ba7f2(0xef)](_0x2cfede,_0x1c41c2,_0xc3f3ee);}}function _0x44ba(){const _0x193c76=['getItems','add','change:_hasContext','getFirstRange','140023FwWysh','concat','includes','2581780WAuBLC','element','2046822sRfpqd','refresh','commands','selection','1523868DNEbyS','6QGmSbC','2364736QMhEZI','_hasContext','from','354681uXytaG','config','change:isEnabled','isCollapsed','plugins','isEnabled','set','model','hasContent','_commandDefinitions','getRanges','enabledCommandsIds','ai.aiAssistant.disabledElements','custom','execute','990689noILZS','document','editor','get','24vYKNpi','reduce','5cDSYSe','20uKpuNY','name','isEmpty','getSelectedBlocks','requiresContent','length','showUI'];_0x44ba=function(){return _0x193c76;};return _0x44ba();}function _0x2094(_0x34c687,_0x135665){const _0x44baad=_0x44ba();return _0x2094=function(_0x2094b6,_0x43583a){_0x2094b6=_0x2094b6-0xc4;let _0x8d27b5=_0x44baad[_0x2094b6];return _0x8d27b5;},_0x2094(_0x34c687,_0x135665);}function K(_0x51d5c5,_0x113295){const _0x28ea40=_0x3e4c80,_0x22ec48=new Set();for(const _0x358d31 of _0x51d5c5)(_0x113295||!0x1===_0x358d31[_0x28ea40(0xed)])&&_0x22ec48[_0x28ea40(0xf1)](_0x358d31['id']);return Array[_0x28ea40(0xd2)](_0x22ec48);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x22b133,_0x3d8850,_0x2a1106){const t=_0x22b133['t'];switch(_0x3d8850){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',_0x2a1106);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',_0x2a1106);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2a1106);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'},_0x2a1106);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 _0x3d8850;}}
|