@ckeditor/ckeditor5-ai 42.0.0-alpha.6 → 42.0.0-alpha.8
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
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x26e5fe=_0x4b06;(function(_0x46163d,_0x43f1a5){const _0x2fbc07=_0x4b06,_0x3ff2d9=_0x46163d();while(!![]){try{const _0x4ea2b5=-parseInt(_0x2fbc07(0x134))/0x1*(-parseInt(_0x2fbc07(0x13f))/0x2)+parseInt(_0x2fbc07(0x15b))/0x3+parseInt(_0x2fbc07(0x163))/0x4+parseInt(_0x2fbc07(0x149))/0x5+parseInt(_0x2fbc07(0x16e))/0x6*(parseInt(_0x2fbc07(0x11f))/0x7)+-parseInt(_0x2fbc07(0x174))/0x8*(parseInt(_0x2fbc07(0x128))/0x9)+-parseInt(_0x2fbc07(0x13e))/0xa;if(_0x4ea2b5===_0x43f1a5)break;else _0x3ff2d9['push'](_0x3ff2d9['shift']());}catch(_0x320141){_0x3ff2d9['push'](_0x3ff2d9['shift']());}}}(_0x2e65,0xae812));function _0x2e65(){const _0x2681a4=['_parseAndNormalizeContent','viewToDom','previousContext','isProcessing','querySelector','360488NBELKt','processor','_handleQuery','message','from','rename','length','view','_stripMarkdownSyntax','previousActionId','3241JnCkGt','reverse','```','_xmlSerializer','listenTo','finishProcessing','tryAgainEvent','initialContext','mainAction','117zIZSON','textAdapter','catch','push','_isH1TagSupportEnabled','body','currentContext','prompt','document','abort','_sanitizationContainer','previousQuery','29drawuG','childNodes','_domParser','custom','editor','div','then','<h1></h1>','toView','nodeType','38789870kEtHLu','72722ioCxmg','createElement','isRendered','destroy','endsWith','editing','element','trim','value','exec','6578895zOPMhJ','parseFromString','name','render','once','remove','ELEMENT_NODE','submitPrompt','set:currentContext','makeRequest','_normalizeResponseHeadings','setContentOf','finally','startProcessing','```html','_sanitizeHTML','text/html','previousLabel','4070124dzUePI','htmlProcessor','set','stringify','updateView','reset','domConverter','handleError','3389812dQEDgt','serializeToString','stopListening','startsWith','substring','toModel','match','data','stopProcessing','currentResponse','innerHTML','7842jOVgdD'];_0x2e65=function(){return _0x2681a4;};return _0x2e65();}import{ObservableMixin as _0xc343ac}from'ckeditor5/src/utils.js';import{AIRequestError as _0x44404b}from'../adapters/aiadapter.js';import{Matcher as _0x1667a,UpcastWriter as _0x21d31a}from'ckeditor5/src/engine.js';function _0x4b06(_0x20e443,_0x3b6196){const _0x2e65a9=_0x2e65();return _0x4b06=function(_0x4b061b,_0xb30725){_0x4b061b=_0x4b061b-0x118;let _0x10bbb6=_0x2e65a9[_0x4b061b];return _0x10bbb6;},_0x4b06(_0x20e443,_0x3b6196);}const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc343ac(){constructor(_0x807c0c,_0x55fdde,_0x27e9ab){const _0x412e01=_0x4b06;super(),this[_0x412e01(0x138)]=_0x807c0c,this[_0x412e01(0x129)]=_0x55fdde,this[_0x412e01(0x132)]=document[_0x412e01(0x140)](_0x412e01(0x139)),this[_0x412e01(0x136)]=new DOMParser(),this[_0x412e01(0x122)]=new XMLSerializer(),this[_0x412e01(0x11c)]=_0x27e9ab,this[_0x412e01(0x15d)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x412e01(0x151),(_0x4742cf,_0x3c2045,_0x1e4003)=>{const _0x3d76d4=_0x412e01;this[_0x3d76d4(0x11c)][_0x3d76d4(0x147)]=this[_0x3d76d4(0x158)](_0x1e4003);}),this[_0x412e01(0x123)](this[_0x412e01(0x11c)],_0x412e01(0x150),(_0x13a7c6,_0x1134e0)=>{const _0x1a1d14=_0x412e01,_0x419106=this[_0x1a1d14(0x12e)]||this[_0x1a1d14(0x126)];this[_0x1a1d14(0x176)](_0x1134e0,_0x419106,_0x1a1d14(0x137));}),this[_0x412e01(0x123)](this[_0x412e01(0x11c)],_0x412e01(0x125),()=>{const _0x3dc6f2=_0x412e01;this[_0x3dc6f2(0x11c)][_0x3dc6f2(0x12f)]=this[_0x3dc6f2(0x15a)],this[_0x3dc6f2(0x176)](this[_0x3dc6f2(0x133)],this[_0x3dc6f2(0x171)],this[_0x3dc6f2(0x11e)],this[_0x3dc6f2(0x15a)]);}),this[_0x412e01(0x123)](this[_0x412e01(0x11c)],_0x412e01(0x16b),()=>{const _0x4ce9e0=_0x412e01;this[_0x4ce9e0(0x16b)]();});}[_0x26e5fe(0x142)](){const _0x3f58b8=_0x26e5fe;this[_0x3f58b8(0x165)]();}async[_0x26e5fe(0x15f)]({actionId:_0x786766,query:_0x24c728,htmlContent:_0x106abe,label:_0x1d3412,mainActionLabel:_0xc7d04d}){const _0x4fb4c8=_0x26e5fe;this[_0x4fb4c8(0x11c)][_0x4fb4c8(0x12f)]=_0x1d3412,this[_0x4fb4c8(0x11c)][_0x4fb4c8(0x127)]=_0xc7d04d,this[_0x4fb4c8(0x126)]=_0x106abe,_0x24c728&&(this[_0x4fb4c8(0x11c)][_0x4fb4c8(0x141)]?this[_0x4fb4c8(0x176)](_0x24c728,_0x106abe,_0x786766,_0x1d3412):this[_0x4fb4c8(0x11c)][_0x4fb4c8(0x14d)](_0x4fb4c8(0x14c),()=>{const _0x80ddc5=_0x4fb4c8;this[_0x80ddc5(0x176)](_0x24c728,_0x106abe,_0x786766,_0x1d3412);}));}[_0x26e5fe(0x16b)](){const _0x49be6b=_0x26e5fe;this[_0x49be6b(0x172)]&&(this[_0x49be6b(0x172)]=!0x1,this[_0x49be6b(0x11c)][_0x49be6b(0x124)](),this[_0x49be6b(0x129)][_0x49be6b(0x131)]());}[_0x26e5fe(0x160)](){const _0x311dad=_0x26e5fe;this[_0x311dad(0x126)]='',this[_0x311dad(0x12e)]='',this[_0x311dad(0x16c)]='',this[_0x311dad(0x171)]='',this[_0x311dad(0x133)]='',this[_0x311dad(0x15a)]='',this[_0x311dad(0x11e)]=void 0x0,this[_0x311dad(0x11c)][_0x311dad(0x160)](),this[_0x311dad(0x16b)]();}async[_0x26e5fe(0x176)](_0x5cd8fd,_0x5d0fd4,_0x578dc1,_0x166509){const _0x39e194=_0x26e5fe;return this[_0x39e194(0x172)]=!0x0,this[_0x39e194(0x11c)][_0x39e194(0x156)](),this[_0x39e194(0x171)]=_0x5d0fd4,this[_0x39e194(0x133)]=_0x5cd8fd,this[_0x39e194(0x15a)]=_0x166509||_0x5cd8fd,this[_0x39e194(0x11e)]=_0x578dc1,new Promise(_0x35a742=>{const _0x3cdbb3=_0x39e194;this[_0x3cdbb3(0x129)][_0x3cdbb3(0x152)]({'query':_0x5cd8fd,'context':_0x5d0fd4,'onData':_0x561c05=>{const _0x3bab38=_0x3cdbb3;this[_0x3bab38(0x16c)]=_0x561c05,this[_0x3bab38(0x12e)]=this[_0x3bab38(0x16f)](this[_0x3bab38(0x16c)]);},'actionId':_0x578dc1})[_0x3cdbb3(0x13a)](()=>{const _0x28da55=_0x3cdbb3;!this[_0x28da55(0x12e)]&&this[_0x28da55(0x16c)]&&(this[_0x28da55(0x12e)]=this[_0x28da55(0x16f)](this[_0x28da55(0x16c)],!0x0));})[_0x3cdbb3(0x12a)](_0x57619b=>{const _0x46d21c=_0x3cdbb3;_0x57619b instanceof _0x44404b?this[_0x46d21c(0x11c)][_0x46d21c(0x162)](_0x57619b[_0x46d21c(0x118)]):this[_0x46d21c(0x11c)][_0x46d21c(0x162)](),_0x35a742();})[_0x3cdbb3(0x155)](()=>{const _0x169911=_0x3cdbb3;this[_0x169911(0x16b)](),_0x35a742();});});}[_0x26e5fe(0x16f)](_0x5b159d,_0x1e1677=!0x1){const _0x1a5ddc=_0x26e5fe,_0x2d4418=X[_0x1a5ddc(0x148)](_0x5b159d);_0x5b159d=_0x2d4418?_0x5b159d[_0x1a5ddc(0x167)](_0x2d4418[0x1][_0x1a5ddc(0x11b)]):_0x5b159d[_0x1a5ddc(0x11b)]<0x64&&!_0x1e1677?'':this[_0x1a5ddc(0x11d)](_0x5b159d);const _0x1b13fd=this[_0x1a5ddc(0x136)][_0x1a5ddc(0x14a)](_0x5b159d,_0x1a5ddc(0x159));if(_0x2d4418){const _0x5dc427=Array[_0x1a5ddc(0x119)](_0x1b13fd[_0x1a5ddc(0x12d)][_0x1a5ddc(0x135)]);_0x5dc427[_0x1a5ddc(0x120)]();for(const _0x2f1ff7 of _0x5dc427){if(_0x2f1ff7[_0x1a5ddc(0x13d)]==Node[_0x1a5ddc(0x14f)])break;_0x2f1ff7[_0x1a5ddc(0x14e)]();}}const _0x4a7eed=this[_0x1a5ddc(0x138)][_0x1a5ddc(0x16a)][_0x1a5ddc(0x175)][_0x1a5ddc(0x13c)](this[_0x1a5ddc(0x122)][_0x1a5ddc(0x164)](_0x1b13fd[_0x1a5ddc(0x12d)]));return this[_0x1a5ddc(0x12c)]()||this[_0x1a5ddc(0x153)](_0x4a7eed),this[_0x1a5ddc(0x138)][_0x1a5ddc(0x16a)][_0x1a5ddc(0x15e)](this[_0x1a5ddc(0x138)][_0x1a5ddc(0x16a)][_0x1a5ddc(0x168)](_0x4a7eed));}[_0x26e5fe(0x153)](_0x24fd1a){const _0x2d4261=_0x26e5fe,_0x54ce12=new _0x21d31a(this[_0x2d4261(0x138)][_0x2d4261(0x144)][_0x2d4261(0x11c)][_0x2d4261(0x130)]),_0x3d152e=new _0x1667a({'name':/^h[1-5]$/}),_0x448ca1=[];let _0x477ea5=!0x1;for(const _0x28eacc of _0x24fd1a)_0x28eacc['is'](_0x2d4261(0x145))&&_0x3d152e[_0x2d4261(0x169)](_0x28eacc)&&(_0x448ca1[_0x2d4261(0x12b)](_0x28eacc),'h1'==_0x28eacc[_0x2d4261(0x14b)]&&(_0x477ea5=!0x0));if(_0x477ea5){for(const _0x53fb20 of _0x448ca1)_0x54ce12[_0x2d4261(0x11a)]('h'+(parseInt(_0x53fb20[_0x2d4261(0x14b)][0x1])+0x1),_0x53fb20);}}[_0x26e5fe(0x12c)](){const _0x33cad7=_0x26e5fe,{data:_0x1a67dc,editing:_0xa62096}=this[_0x33cad7(0x138)],_0x92d2b3=_0x1a67dc[_0x33cad7(0x15c)][_0x33cad7(0x13c)](_0x33cad7(0x13b)),_0xe76edd=_0x1a67dc[_0x33cad7(0x13c)](_0x1a67dc[_0x33cad7(0x168)](_0x92d2b3));return!!_0xa62096[_0x33cad7(0x11c)][_0x33cad7(0x161)][_0x33cad7(0x170)](_0xe76edd)[_0x33cad7(0x173)]('h1');}[_0x26e5fe(0x158)](_0x1a1d18){const _0x3d08c3=_0x26e5fe;return this[_0x3d08c3(0x138)][_0x3d08c3(0x144)][_0x3d08c3(0x11c)][_0x3d08c3(0x161)][_0x3d08c3(0x154)](this[_0x3d08c3(0x132)],_0x1a1d18),this[_0x3d08c3(0x132)][_0x3d08c3(0x16d)];}[_0x26e5fe(0x11d)](_0xe6079d){const _0x5bb70e=_0x26e5fe,_0xcd4ce1=_0xe6079d[_0x5bb70e(0x146)]();return _0xcd4ce1[_0x5bb70e(0x166)](_0x5bb70e(0x157))?_0xcd4ce1[_0x5bb70e(0x143)](_0x5bb70e(0x121))?_0xcd4ce1[_0x5bb70e(0x167)](0x7,_0xcd4ce1[_0x5bb70e(0x11b)]-0x3):_0xcd4ce1[_0x5bb70e(0x167)](0x7):_0xe6079d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x25f6(){const _0x225fed=['children','6MAoPSu','items','7VDYsPa','listbox','match','7696424jODvEK','12710PjuxZY','8TTTXGd','commandDefinition','666PHwZvc','1044965bCWtTg','filter','enabledCommandsIds','length','set','label','358381ZojHka','role','isEnabled','change:enabledCommandsIds','highlightText','isVisible','565044veuJcX','includes','295683zeeHXr','689082jBuJJv','labelView','231jsGrfX','first','get'];_0x25f6=function(){return _0x225fed;};return _0x25f6();}const _0x21cac1=_0x4f59;(function(_0x2a5342,_0x29c4e5){const _0x4330ff=_0x4f59,_0x4d45b1=_0x2a5342();while(!![]){try{const _0xfba8b8=parseInt(_0x4330ff(0x11e))/0x1+parseInt(_0x4330ff(0x12d))/0x2*(-parseInt(_0x4330ff(0x126))/0x3)+parseInt(_0x4330ff(0x115))/0x4*(parseInt(_0x4330ff(0x118))/0x5)+-parseInt(_0x4330ff(0x127))/0x6*(-parseInt(_0x4330ff(0x12f))/0x7)+-parseInt(_0x4330ff(0x132))/0x8+-parseInt(_0x4330ff(0x117))/0x9*(parseInt(_0x4330ff(0x114))/0xa)+-parseInt(_0x4330ff(0x129))/0xb*(-parseInt(_0x4330ff(0x124))/0xc);if(_0xfba8b8===_0x29c4e5)break;else _0x4d45b1['push'](_0x4d45b1['shift']());}catch(_0x592657){_0x4d45b1['push'](_0x4d45b1['shift']());}}}(_0x25f6,0x80f7b));import{ListView as _0x5196be,ListItemGroupView as _0x10c254}from'ckeditor5/src/ui.js';function _0x4f59(_0xc36cfc,_0x359206){const _0x25f68b=_0x25f6();return _0x4f59=function(_0x4f590c,_0x30ab5f){_0x4f590c=_0x4f590c-0x114;let _0x10081e=_0x25f68b[_0x4f590c];return _0x10081e;},_0x4f59(_0xc36cfc,_0x359206);}import{AICommandsListItemView as _0x48af3a}from'../../aiassistantui.js';export default class U extends _0x5196be{constructor(_0x55b080){const _0x25dd26=_0x4f59;super(_0x55b080),this[_0x25dd26(0x11f)]=_0x25dd26(0x130),this[_0x25dd26(0x11c)](_0x25dd26(0x11a),[]),this['on'](_0x25dd26(0x121),()=>{const _0x2f48bf=_0x25dd26;for(const _0x3212ed of this[_0x2f48bf(0x12e)])if(_0x3212ed instanceof _0x10c254){for(const _0x17e48b of _0x3212ed[_0x2f48bf(0x12e)])if(_0x17e48b instanceof _0x48af3a){const _0x7f2603=_0x17e48b[_0x2f48bf(0x12c)][_0x2f48bf(0x12b)](0x0);this[_0x2f48bf(0x11a)][_0x2f48bf(0x125)](_0x17e48b[_0x2f48bf(0x116)]['id'])?_0x7f2603[_0x2f48bf(0x120)]=!0x0:_0x7f2603[_0x2f48bf(0x120)]=!0x1;}}});}[_0x21cac1(0x119)](_0x3fc44f){const _0x44645e=_0x21cac1;let _0x1a4b33=0x0,_0x34c3cc=0x0;for(const _0x4f10a6 of this[_0x44645e(0x12e)]){const _0x5c69c9=_0x4f10a6,_0x25cef7=_0x5c69c9[_0x44645e(0x12e)],_0x47e368=_0x3fc44f&&!!_0x5c69c9[_0x44645e(0x11d)][_0x44645e(0x131)](_0x3fc44f);_0x5c69c9[_0x44645e(0x128)][_0x44645e(0x122)](_0x47e368?_0x3fc44f:null);for(const _0xf6ff72 of _0x25cef7){const _0x14e418=_0xf6ff72[_0x44645e(0x12c)][_0x44645e(0x12a)],_0x39ac08=_0x14e418[_0x44645e(0x128)];if(_0x3fc44f){const _0x5ef74b=!!_0x14e418[_0x44645e(0x11d)][_0x44645e(0x131)](_0x3fc44f);_0x39ac08[_0x44645e(0x122)](_0x5ef74b?_0x3fc44f:null),_0xf6ff72[_0x44645e(0x123)]=_0x47e368||_0x5ef74b;}else _0xf6ff72[_0x44645e(0x123)]=!0x0,_0x39ac08[_0x44645e(0x122)](null);}const _0x4c33e7=_0x25cef7[_0x44645e(0x119)](_0x2f5e70=>_0x2f5e70[_0x44645e(0x123)])[_0x44645e(0x11b)];_0x1a4b33+=_0x5c69c9[_0x44645e(0x12e)][_0x44645e(0x11b)],_0x34c3cc+=_0x47e368?_0x5c69c9[_0x44645e(0x12e)][_0x44645e(0x11b)]:_0x4c33e7,_0x5c69c9[_0x44645e(0x123)]=_0x47e368||!!_0x4c33e7;}return{'resultsCount':_0x34c3cc,'totalItemsCount':_0x1a4b33};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3a92(){const _0x557ae0=['12075uuAWIg','3437AdrqIn','2510488VqchKk','style','set','ck-button__label','2982EvJjyQ','1371928myKILz','2576LgKeKt','1208100lEsQOV','9790245piNJQP','5051008XjWNMG','extendTemplate','bindTemplate'];_0x3a92=function(){return _0x557ae0;};return _0x3a92();}(function(_0x47ec72,_0x4f7aa1){const _0x1117e1=_0x3a4c,_0x50114c=_0x47ec72();while(!![]){try{const _0x4d3cac=parseInt(_0x1117e1(0x1c7))/0x1+-parseInt(_0x1117e1(0x1d0))/0x2+-parseInt(_0x1117e1(0x1c9))/0x3+parseInt(_0x1117e1(0x1cb))/0x4+-parseInt(_0x1117e1(0x1ce))/0x5*(parseInt(_0x1117e1(0x1c6))/0x6)+parseInt(_0x1117e1(0x1cf))/0x7*(-parseInt(_0x1117e1(0x1c8))/0x8)+parseInt(_0x1117e1(0x1ca))/0x9;if(_0x4d3cac===_0x4f7aa1)break;else _0x50114c['push'](_0x50114c['shift']());}catch(_0x1fc04c){_0x50114c['push'](_0x50114c['shift']());}}}(_0x3a92,0xac688));function _0x3a4c(_0x11b4a6,_0x15521a){const _0x3a926c=_0x3a92();return _0x3a4c=function(_0x3a4cb6,_0x58cada){_0x3a4cb6=_0x3a4cb6-0x1c4;let _0x4e0f58=_0x3a926c[_0x3a4cb6];return _0x4e0f58;},_0x3a4c(_0x11b4a6,_0x15521a);}import{HighlightedTextView as _0xa7dd92}from'ckeditor5/src/ui.js';export default class N extends _0xa7dd92{constructor(){const _0x2ce0d6=_0x3a4c;super(),this[_0x2ce0d6(0x1c4)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x20e6f5=this[_0x2ce0d6(0x1cd)];this[_0x2ce0d6(0x1cc)]({'attributes':{'class':[_0x2ce0d6(0x1c5)],'style':_0x20e6f5['to'](_0x2ce0d6(0x1d1)),'id':_0x20e6f5['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xb95aff,_0x4e0514){const _0x144bab=_0x3349,_0x22167f=_0xb95aff();while(!![]){try{const _0x4f96fe=parseInt(_0x144bab(0x12d))/0x1*(parseInt(_0x144bab(0x12e))/0x2)+-parseInt(_0x144bab(0x130))/0x3*(-parseInt(_0x144bab(0x131))/0x4)+-parseInt(_0x144bab(0x12a))/0x5*(-parseInt(_0x144bab(0x12b))/0x6)+-parseInt(_0x144bab(0x134))/0x7+-parseInt(_0x144bab(0x12c))/0x8+parseInt(_0x144bab(0x129))/0x9*(-parseInt(_0x144bab(0x127))/0xa)+parseInt(_0x144bab(0x12f))/0xb;if(_0x4f96fe===_0x4e0514)break;else _0x22167f['push'](_0x22167f['shift']());}catch(_0x425d27){_0x22167f['push'](_0x22167f['shift']());}}}(_0x5389,0x69b2a));function _0x5389(){const _0x504db6=['ck-label','bindTemplate','2090CinYiQ','for','7011whZylS','10lklcKc','1174626hMyIYl','4683272jPHqyT','168076YJeEkA','4nKfFmA','7484169TwSwka','846hKWJaT','788dxuWgB','ck-editor__label_','extendTemplate','1977283sAMaXX','set'];_0x5389=function(){return _0x504db6;};return _0x5389();}import{HighlightedTextView as _0xffb9e6}from'ckeditor5/src/ui.js';import{uid as _0x49f8d2}from'ckeditor5/src/utils.js';function _0x3349(_0x3af7fc,_0x4a2f70){const _0x538968=_0x5389();return _0x3349=function(_0x3349bd,_0xe282d0){_0x3349bd=_0x3349bd-0x125;let _0x2f490a=_0x538968[_0x3349bd];return _0x2f490a;},_0x3349(_0x3af7fc,_0x4a2f70);}export default class S extends _0xffb9e6{constructor(){const _0x59656d=_0x3349;super(),this[_0x59656d(0x135)](_0x59656d(0x128),void 0x0);const _0x19cd11=this[_0x59656d(0x126)];this['id']=_0x59656d(0x132)+_0x49f8d2(),this[_0x59656d(0x133)]({'attributes':{'class':['ck',_0x59656d(0x125)],'id':this['id'],'for':_0x19cd11['to'](_0x59656d(0x128))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4d72(){const _0x52103e=['ClipboardItem','locale','bindTemplate','isVisible','write','10311196LNgqUs','firstElementChild','72VVHRzH','scrollTo','getSelection','6KKPvCZ','copy','-9999px','absolute','addRange','textContent','execCommand','smooth','isProcessing','listenTo','_createLoader','focus','body','contentFieldView','ck-content','ck-ai-form__copy-button-wrapper','value','1859013uwCGyj','clipboard','createElement','\x20ck-ai-form__copy-button--copied','check','appendChild','<span>[</span>','remove','ck-ai-form__content-area-wrapper','setContent','icon','ck-ai-form__content-field','execute','createRange','setStartAfter','style','copyButtonView','text/plain','<span>]</span>','1995340cfuUma','text/html','change:value','.ck-ai-form__loader','appendLoader','setTemplate','328210ArsckA','_copyHTMLToClipboard','AI\x20is\x20writing...','108189SMDlmx','ck-ai-form__copy-button','position','ck-hidden','ck-ai-form__content-area--processing','wheel','left','scrollHeight','mousedown','Copy','ck-ai-form__content-area','div','_createCopyButton','756616dDvZQP','querySelector','ck-reset_all-excluded','ck-ai-form__loader','loaderView','bind','isEnabled','set','setEndBefore','change:isProcessing','class','lastElementChild','innerHTML','2574712otzspT','element','render','removeAllRanges'];_0x4d72=function(){return _0x52103e;};return _0x4d72();}function _0x3631(_0x44781d,_0x237a33){const _0x4d72cd=_0x4d72();return _0x3631=function(_0x36314b,_0x218109){_0x36314b=_0x36314b-0x185;let _0x535fdf=_0x4d72cd[_0x36314b];return _0x535fdf;},_0x3631(_0x44781d,_0x237a33);}const _0x2c3f24=_0x3631;(function(_0xa514fa,_0xea356f){const _0xbd911=_0x3631,_0x54300a=_0xa514fa();while(!![]){try{const _0x5e365d=-parseInt(_0xbd911(0x1a8))/0x1+parseInt(_0xbd911(0x1b8))/0x2+parseInt(_0xbd911(0x1ab))/0x3+parseInt(_0xbd911(0x1c5))/0x4+parseInt(_0xbd911(0x1a2))/0x5*(parseInt(_0xbd911(0x1d3))/0x6)+parseInt(_0xbd911(0x1ce))/0x7+parseInt(_0xbd911(0x1d0))/0x8*(-parseInt(_0xbd911(0x18f))/0x9);if(_0x5e365d===_0xea356f)break;else _0x54300a['push'](_0x54300a['shift']());}catch(_0x55e686){_0x54300a['push'](_0x54300a['shift']());}}}(_0x4d72,0xb560a));import{global as _0x422f45}from'ckeditor5/src/utils.js';import{View as _0x3fa435,ButtonView as _0x236ca3,SpinnerView as _0x545ccc}from'ckeditor5/src/ui.js';import _0x499ab2 from'../../../theme/icons/copy.svg';import{getTranslation as _0x19ba06}from'../../utils/common-translations.js';import{icons as _0xf94829}from'ckeditor5/src/core.js';export default class nt extends _0x3fa435{constructor(_0x27bfb9,_0x21984c=''){const _0x43f570=_0x3631;super(_0x27bfb9),this[_0x43f570(0x1bf)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x889b76=this[_0x43f570(0x1cb)];this[_0x43f570(0x18b)]=new ContentFieldView(_0x27bfb9,_0x21984c),this[_0x43f570(0x19f)]=this[_0x43f570(0x1b7)](),this[_0x43f570(0x1a7)]({'tag':_0x43f570(0x1b6),'attributes':{'class':['ck',_0x43f570(0x197),_0x889b76['if'](_0x43f570(0x1cc),_0x43f570(0x1ae),_0x3ca1b8=>!_0x3ca1b8)],'tabindex':'-1'},'children':[{'tag':_0x43f570(0x1b6),'attributes':{'class':['ck',_0x43f570(0x1b5),_0x889b76['if'](_0x43f570(0x186),_0x43f570(0x1af))]},'children':[this[_0x43f570(0x18b)],{'tag':_0x43f570(0x1b6),'attributes':{'class':['ck',_0x43f570(0x18d)]},'children':[this[_0x43f570(0x19f)]]}]}]});}[_0x2c3f24(0x1c7)](){const _0x23bb21=_0x2c3f24;super[_0x23bb21(0x1c7)](),this[_0x23bb21(0x18e)]&&this[_0x23bb21(0x18b)][_0x23bb21(0x198)](this[_0x23bb21(0x18e)]);let _0x2fe058=!0x1;this['on'](_0x23bb21(0x1a4),(_0x24a5b6,_0x4a11fa,_0x5d14ef)=>{const _0x3af98c=_0x23bb21,_0x4d84c1=!this[_0x3af98c(0x18b)][_0x3af98c(0x1c6)][_0x3af98c(0x1b9)](_0x3af98c(0x1a5));this[_0x3af98c(0x18b)][_0x3af98c(0x198)](_0x5d14ef),this[_0x3af98c(0x186)]&&_0x4d84c1&&!_0x2fe058&&this[_0x3af98c(0x1c6)][_0x3af98c(0x1d1)]({'top':this[_0x3af98c(0x1c6)][_0x3af98c(0x1b2)],'behavior':_0x3af98c(0x185)});}),this['on'](_0x23bb21(0x1c1),(_0x16a9fb,_0x2650ec,_0x2e1e29)=>{const _0x50288d=_0x23bb21;_0x2fe058=!0x1,_0x2e1e29?(this[_0x50288d(0x18e)]=null,this[_0x50288d(0x18b)][_0x50288d(0x1a6)]()):this[_0x50288d(0x18e)]||this[_0x50288d(0x18b)][_0x50288d(0x198)]('');}),this[_0x23bb21(0x187)](this[_0x23bb21(0x1c6)],_0x23bb21(0x1b0),()=>{_0x2fe058=!0x0;}),this[_0x23bb21(0x187)](this[_0x23bb21(0x1c6)],_0x23bb21(0x1b3),()=>{_0x2fe058=!0x0;});}[_0x2c3f24(0x189)](){const _0x483830=_0x2c3f24;this[_0x483830(0x1c6)][_0x483830(0x189)]();}[_0x2c3f24(0x1b7)](){const _0x55fb53=_0x2c3f24,_0x2bd59e=this[_0x55fb53(0x1ca)],_0x4dbdc2=new _0x236ca3(this[_0x55fb53(0x1ca)]),_0x12cdac=_0x55fb53(0x1ac);return _0x4dbdc2[_0x55fb53(0x1bf)]({'label':_0x19ba06(_0x2bd59e,_0x55fb53(0x1b4)),'icon':_0x499ab2,'class':_0x12cdac,'tooltip':!0x0}),_0x4dbdc2[_0x55fb53(0x1bd)](_0x55fb53(0x1cc))['to'](this,_0x55fb53(0x18e),_0x2b8d4d=>!!_0x2b8d4d),_0x4dbdc2[_0x55fb53(0x1bd)](_0x55fb53(0x1be))['to'](this,_0x55fb53(0x186),_0x34c811=>!_0x34c811),_0x4dbdc2['on'](_0x55fb53(0x19b),()=>{const _0x53aac2=_0x55fb53;this[_0x53aac2(0x1a9)](this[_0x53aac2(0x18b)][_0x53aac2(0x1c6)]),_0x4dbdc2[_0x53aac2(0x199)]=_0xf94829[_0x53aac2(0x193)],_0x4dbdc2[_0x53aac2(0x1c2)]=_0x12cdac+_0x53aac2(0x192),this[_0x53aac2(0x189)](),setTimeout(()=>{const _0x2d4ab8=_0x53aac2;_0x4dbdc2[_0x2d4ab8(0x199)]=_0x499ab2,_0x4dbdc2[_0x2d4ab8(0x1c2)]=_0x12cdac;},0x3e8);}),_0x4dbdc2;}[_0x2c3f24(0x1a9)](_0x135b87){const _0x3ab10e=_0x2c3f24,{window:_0x4c0d8d,document:_0x589e0e}=_0x422f45;if(_0x4c0d8d[_0x3ab10e(0x1c9)]){const {Blob:_0x55f677,ClipboardItem:_0xee639b}=_0x4c0d8d,_0x23d3e4=[new _0xee639b({'text/html':new _0x55f677([_0x135b87[_0x3ab10e(0x1c4)]],{'type':_0x3ab10e(0x1a3)}),'text/plain':new _0x55f677([_0x135b87[_0x3ab10e(0x1d8)]||''],{'type':_0x3ab10e(0x1a0)})})];navigator[_0x3ab10e(0x190)][_0x3ab10e(0x1cd)](_0x23d3e4);}else{const _0x32f98e=_0x589e0e[_0x3ab10e(0x191)](_0x3ab10e(0x1b6));_0x32f98e[_0x3ab10e(0x19e)][_0x3ab10e(0x1ad)]=_0x3ab10e(0x1d6),_0x32f98e[_0x3ab10e(0x19e)][_0x3ab10e(0x1b1)]=_0x3ab10e(0x1d5),_0x32f98e[_0x3ab10e(0x1c4)]=_0x3ab10e(0x195)+_0x135b87[_0x3ab10e(0x1c4)]+_0x3ab10e(0x1a1),_0x589e0e[_0x3ab10e(0x18a)][_0x3ab10e(0x194)](_0x32f98e);const _0x14a9e9=_0x589e0e[_0x3ab10e(0x19c)]();_0x14a9e9[_0x3ab10e(0x19d)](_0x32f98e[_0x3ab10e(0x1cf)]),_0x14a9e9[_0x3ab10e(0x1c0)](_0x32f98e[_0x3ab10e(0x1c3)]);const _0x584048=_0x4c0d8d[_0x3ab10e(0x1d2)]();_0x584048[_0x3ab10e(0x1c8)](),_0x584048[_0x3ab10e(0x1d7)](_0x14a9e9),_0x589e0e[_0x3ab10e(0x1d9)](_0x3ab10e(0x1d4)),_0x32f98e[_0x3ab10e(0x196)]();}}}export class ContentFieldView extends _0x3fa435{constructor(_0x10be57,_0x39b8eb=''){const _0x4fe706=_0x2c3f24;super(_0x10be57),this[_0x4fe706(0x1bc)]=this[_0x4fe706(0x188)](),this[_0x4fe706(0x1a7)]({'tag':_0x4fe706(0x1b6),'attributes':{'class':['ck',_0x4fe706(0x18c),_0x39b8eb,_0x4fe706(0x1ba),_0x4fe706(0x19a)]}});}[_0x2c3f24(0x198)](_0x48ce9b){const _0x4037ee=_0x2c3f24;this[_0x4037ee(0x1c6)][_0x4037ee(0x1c4)]=_0x48ce9b;}[_0x2c3f24(0x1a6)](){const _0x37aff5=_0x2c3f24;this[_0x37aff5(0x1c6)][_0x37aff5(0x194)](this[_0x37aff5(0x1bc)][_0x37aff5(0x1c6)]);}[_0x2c3f24(0x188)](){const _0x1b84c8=_0x2c3f24,_0x3f2a9c=new _0x3fa435(),_0x36e96d=this[_0x1b84c8(0x1ca)],_0x4eafcd=new _0x545ccc();return _0x4eafcd[_0x1b84c8(0x1cc)]=!0x0,_0x3f2a9c[_0x1b84c8(0x1a7)]({'tag':_0x1b84c8(0x1b6),'attributes':{'class':['ck',_0x1b84c8(0x1bb)]},'children':[_0x4eafcd,{'text':_0x19ba06(_0x36e96d,_0x1b84c8(0x1aa))}]}),_0x3f2a9c[_0x1b84c8(0x1c7)](),_0x3f2a9c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x705c4a,_0x4d8dcb){const _0x3a7f61=_0x391a,_0x421966=_0x705c4a();while(!![]){try{const _0x4e283d=parseInt(_0x3a7f61(0x16e))/0x1+parseInt(_0x3a7f61(0x16b))/0x2+-parseInt(_0x3a7f61(0x169))/0x3+-parseInt(_0x3a7f61(0x16f))/0x4*(parseInt(_0x3a7f61(0x175))/0x5)+parseInt(_0x3a7f61(0x178))/0x6+parseInt(_0x3a7f61(0x176))/0x7+parseInt(_0x3a7f61(0x16d))/0x8*(parseInt(_0x3a7f61(0x177))/0x9);if(_0x4e283d===_0x4d8dcb)break;else _0x421966['push'](_0x421966['shift']());}catch(_0x5d85fa){_0x421966['push'](_0x421966['shift']());}}}(_0x1558,0x50106));import{View as _0x19ef44,IconView as _0x1fd565}from'ckeditor5/src/ui.js';function _0x391a(_0x44cfa2,_0x5114c){const _0x155824=_0x1558();return _0x391a=function(_0x391ac9,_0xdace70){_0x391ac9=_0x391ac9-0x169;let _0x22d377=_0x155824[_0x391ac9];return _0x22d377;},_0x391a(_0x44cfa2,_0x5114c);}import _0x293d5f from'../../../theme/icons/error.svg';function _0x1558(){const _0x3b7764=['set','bindTemplate','content','text','setTemplate','6185qKRikm','310100WYoddJ','27rAmMlI','582162BkKzmi','983391SsvqKh','div','705542OBxOkG','ck-ai-form__error','1544112myouYl','115746cysvcJ','1724OybOEx'];_0x1558=function(){return _0x3b7764;};return _0x1558();}export default class mt extends _0x19ef44{constructor(_0x25bee3,_0x2f0bc1=''){const _0x2e8826=_0x391a;super(_0x25bee3);const _0x12c144=new _0x1fd565(),_0x20c376=this[_0x2e8826(0x171)];this[_0x2e8826(0x170)](_0x2e8826(0x173),_0x2f0bc1),_0x12c144[_0x2e8826(0x172)]=_0x293d5f,this[_0x2e8826(0x174)]({'tag':_0x2e8826(0x16a),'attributes':{'class':['ck',_0x2e8826(0x16c)]},'children':[_0x12c144,{'text':_0x20c376['to'](_0x2e8826(0x173))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30ba54=_0x2f1f;function _0x2f1f(_0x469b69,_0x42862e){const _0x3ec1bb=_0x3ec1();return _0x2f1f=function(_0x2f1fbd,_0x18fe88){_0x2f1fbd=_0x2f1fbd-0x113;let _0x4533c3=_0x3ec1bb[_0x2f1fbd];return _0x4533c3;},_0x2f1f(_0x469b69,_0x42862e);}function _0x3ec1(){const _0x51aac2=['isVisible','showHistoryButtonView','1592016HClTtQ','render','_createSubmitButton','91JPCJzM','filteredView','children','focusLast','rtl','isOn','3093YkQKHw','width','216150XRVBMr','focusFirst','238936DsbQSL','set','excludeScrollbarsAndBorders','resultsView','focus','40GOLDNR','keystrokes','fieldWrapperChildren','isEnabled','minRows','enter','_createShowHistoryButton','fire','focusableChildren','element','4CnCWxA','submitButtonView','style','maxRows','requestAnimationFrame','submit','target','history','History','fieldView','uiLanguageDirection','update','queryView','add','isEmpty','2884014xSbWNG','ck-ai-form__submit','76430KuOeLP','right','9504360FzPxhu','locale','ck-ai-form__toggle-history','focusCycler','value','execute','window','Submit','left','bind'];_0x3ec1=function(){return _0x51aac2;};return _0x3ec1();}(function(_0x1db821,_0xbd815b){const _0x1c1a73=_0x2f1f,_0x545fee=_0x1db821();while(!![]){try{const _0x372da=-parseInt(_0x1c1a73(0x14d))/0x1+-parseInt(_0x1c1a73(0x123))/0x2*(-parseInt(_0x1c1a73(0x14b))/0x3)+-parseInt(_0x1c1a73(0x119))/0x4*(parseInt(_0x1c1a73(0x134))/0x5)+-parseInt(_0x1c1a73(0x142))/0x6+parseInt(_0x1c1a73(0x145))/0x7*(-parseInt(_0x1c1a73(0x114))/0x8)+parseInt(_0x1c1a73(0x132))/0x9+parseInt(_0x1c1a73(0x136))/0xa;if(_0x372da===_0xbd815b)break;else _0x545fee['push'](_0x545fee['shift']());}catch(_0x26b659){_0x545fee['push'](_0x545fee['shift']());}}}(_0x3ec1,0x3d1d7));import{Rect as _0x1dd8bd,global as _0x88abd,isVisible as _0xf01b7b}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x40455c,ButtonView as _0x7054c5}from'ckeditor5/src/ui.js';import{icons as _0x18a072}from'ckeditor5/src/core.js';import{getTranslation as _0x40f90d}from'../../utils/common-translations.js';import _0x11074c from'../../../theme/icons/submit.svg';export default class pt extends _0x40455c{constructor(_0x56df03,_0x1a187e){const _0x90b13d=_0x2f1f;super(_0x56df03,_0x1a187e),this[_0x90b13d(0x12f)][_0x90b13d(0x12c)][_0x90b13d(0x11d)]=0x1,this[_0x90b13d(0x12f)][_0x90b13d(0x12c)][_0x90b13d(0x126)]=0x3,this[_0x90b13d(0x124)]=this[_0x90b13d(0x144)](),this[_0x90b13d(0x141)]=this[_0x90b13d(0x11f)](),this[_0x90b13d(0x121)][_0x90b13d(0x130)](this[_0x90b13d(0x141)],0x1),this[_0x90b13d(0x121)][_0x90b13d(0x130)](this[_0x90b13d(0x124)]);}[_0x30ba54(0x143)](){const _0x33d771=_0x30ba54;super[_0x33d771(0x143)](),this[_0x33d771(0x12f)][_0x33d771(0x11b)][_0x33d771(0x130)](this[_0x33d771(0x141)]),this[_0x33d771(0x147)][_0x33d771(0x130)](this[_0x33d771(0x124)]),this[_0x33d771(0x11a)][_0x33d771(0x115)](_0x33d771(0x11e),(_0x4279ca,_0x46fd86)=>{const _0x5a0117=_0x33d771;_0x4279ca[_0x5a0117(0x129)]==this[_0x5a0117(0x12f)][_0x5a0117(0x12c)][_0x5a0117(0x122)]&&(this[_0x5a0117(0x128)](),_0x46fd86());});}[_0x30ba54(0x144)](){const _0x42f177=_0x30ba54,_0x286a8f=new _0x7054c5(this[_0x42f177(0x137)]),_0x17b5f2=this[_0x42f177(0x137)];return _0x286a8f[_0x42f177(0x115)]({'icon':_0x11074c,'label':_0x40f90d(_0x17b5f2,_0x42f177(0x13d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x42f177(0x133)}),_0x286a8f['on'](_0x42f177(0x13b),()=>{const _0x25f84e=_0x42f177;this[_0x25f84e(0x128)]();}),_0x286a8f[_0x42f177(0x13f)](_0x42f177(0x11c))['to'](this[_0x42f177(0x12f)][_0x42f177(0x12c)],_0x42f177(0x131),this,_0x42f177(0x11c),(_0x4f2b38,_0x48ab77)=>!_0x4f2b38&&_0x48ab77),_0x286a8f;}[_0x30ba54(0x11f)](){const _0xea5453=_0x30ba54,_0x6a69a5=new _0x7054c5(this[_0xea5453(0x137)]),_0x2994e8=this[_0xea5453(0x117)],_0xd6ec28=this[_0xea5453(0x137)];_0x6a69a5[_0xea5453(0x115)]({'label':_0x40f90d(_0xd6ec28,_0xea5453(0x12b)),'withText':!0x1,'icon':_0x18a072[_0xea5453(0x12a)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0xea5453(0x138)}),_0x6a69a5[_0xea5453(0x13f)](_0xea5453(0x14a))['to'](_0x2994e8,_0xea5453(0x140)),_0x6a69a5[_0xea5453(0x13f)](_0xea5453(0x11c))['to'](this,_0xea5453(0x11c)),_0x6a69a5['on'](_0xea5453(0x13b),()=>{const _0x218832=_0xea5453;_0x2994e8[_0x218832(0x140)]=!_0x2994e8[_0x218832(0x140)],_0x2994e8[_0x218832(0x140)]?this[_0x218832(0x146)][_0x218832(0x118)]():this[_0x218832(0x118)]();});const _0x19f75=()=>{const _0x902d72=_0xea5453;_0x88abd[_0x902d72(0x13c)][_0x902d72(0x127)](()=>{const _0x3f8a18=_0x902d72;if(_0xf01b7b(this[_0x3f8a18(0x122)])){const _0x3c1bb5=new _0x1dd8bd(this[_0x3f8a18(0x12f)][_0x3f8a18(0x12c)][_0x3f8a18(0x122)]),_0xdc959=_0x3c1bb5[_0x3f8a18(0x14c)],_0x22c51c=_0x3f8a18(0x149)===_0xd6ec28[_0x3f8a18(0x12d)]?_0x3f8a18(0x13e):_0x3f8a18(0x135);_0x3c1bb5[_0x3f8a18(0x116)](),_0x6a69a5[_0x3f8a18(0x122)][_0x3f8a18(0x125)][_0x22c51c]=_0xdc959-_0x3c1bb5[_0x3f8a18(0x14c)]+0x1+'px';}});};return this[_0xea5453(0x12f)][_0xea5453(0x12c)]['on'](_0xea5453(0x12e),_0x19f75),this['on'](_0xea5453(0x143),_0x19f75),_0x6a69a5;}[_0x30ba54(0x128)](){const _0x382742=_0x30ba54,_0x104ad3=this[_0x382742(0x12f)][_0x382742(0x12c)][_0x382742(0x122)][_0x382742(0x13a)];this[_0x382742(0x120)](_0x382742(0x128),_0x104ad3);}[_0x30ba54(0x118)](_0x2705ca){const _0x4487f3=_0x30ba54;-0x1===_0x2705ca?this[_0x4487f3(0x139)][_0x4487f3(0x148)]():this[_0x4487f3(0x139)][_0x4487f3(0x113)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4eabb5=_0x65df;(function(_0x2f5753,_0x4b6564){const _0x20a272=_0x65df,_0x3d2a00=_0x2f5753();while(!![]){try{const _0x136191=parseInt(_0x20a272(0x205))/0x1+-parseInt(_0x20a272(0x1fa))/0x2+parseInt(_0x20a272(0x1f6))/0x3*(parseInt(_0x20a272(0x1fb))/0x4)+parseInt(_0x20a272(0x1fe))/0x5+-parseInt(_0x20a272(0x1f5))/0x6+parseInt(_0x20a272(0x1ef))/0x7*(-parseInt(_0x20a272(0x1f3))/0x8)+parseInt(_0x20a272(0x200))/0x9;if(_0x136191===_0x4b6564)break;else _0x3d2a00['push'](_0x3d2a00['shift']());}catch(_0x8f0341){_0x3d2a00['push'](_0x3d2a00['shift']());}}}(_0x6320,0xca2ad));function _0x6320(){const _0x202ccd=['insert','8RXaIHf','isVisible','8268714WhnVoz','396YOWUxV','addMany','set','replace','758114gHHbqb','3436zFMoCH','replaceButton','ck-hidden','2266945TGsZzg','tryAgainButton','12072924xToqJj','_CONTENT','stopButton','mainAction','REPLACE','775622oqGWmk','Stop','_createButton','label','locale','extendTemplate','Try\x20again','ck-ai-form__toolbar','bindTemplate','AI_','Insert\x20below','ck-button-action','items','insertButton','690074YIxOrV','bind','toUpperCase'];_0x6320=function(){return _0x202ccd;};return _0x6320();}function _0x65df(_0x5c8b2d,_0x33e132){const _0x6320d6=_0x6320();return _0x65df=function(_0x65df2b,_0x5a8c26){_0x65df2b=_0x65df2b-0x1e7;let _0x12ad24=_0x6320d6[_0x65df2b];return _0x12ad24;},_0x65df(_0x5c8b2d,_0x33e132);}import{ToolbarView as _0x14a7a3,ButtonView as _0x23f10c}from'ckeditor5/src/ui.js';import{getTranslation as _0x49568a}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x4eabb5(0x1f9),'INSERT':_0x4eabb5(0x1f2)};export default class Tt extends _0x14a7a3{constructor(_0x252f0f){const _0x32b68c=_0x4eabb5;super(_0x252f0f),this[_0x32b68c(0x1f8)](_0x32b68c(0x1f4),!0x1),this[_0x32b68c(0x1f8)](_0x32b68c(0x203),AIFormToolbarViewMainActionLabel[_0x32b68c(0x204)]),this[_0x32b68c(0x1fc)]=this[_0x32b68c(0x207)]('',_0x32b68c(0x1ec)),this[_0x32b68c(0x1fc)][_0x32b68c(0x1f0)](_0x32b68c(0x208))['to'](this,_0x32b68c(0x203),_0x492d71=>_0x49568a(_0x252f0f,_0x32b68c(0x1ea)+_0x492d71[_0x32b68c(0x1f1)]()+_0x32b68c(0x201))),this[_0x32b68c(0x1ee)]=this[_0x32b68c(0x207)](_0x49568a(_0x252f0f,_0x32b68c(0x1eb))),this[_0x32b68c(0x1ff)]=this[_0x32b68c(0x207)](_0x49568a(_0x252f0f,_0x32b68c(0x1e7))),this[_0x32b68c(0x202)]=this[_0x32b68c(0x207)](_0x49568a(_0x252f0f,_0x32b68c(0x206)));const _0x305db2=this[_0x32b68c(0x1e9)];this[_0x32b68c(0x20a)]({'attributes':{'class':[_0x32b68c(0x1e8),_0x305db2['if'](_0x32b68c(0x1f4),_0x32b68c(0x1fd),_0x4fd2a5=>!_0x4fd2a5)]}}),this[_0x32b68c(0x1ed)][_0x32b68c(0x1f7)]([this[_0x32b68c(0x1fc)],this[_0x32b68c(0x1ee)],this[_0x32b68c(0x1ff)],this[_0x32b68c(0x202)]]);}[_0x4eabb5(0x207)](_0x1c3b18,_0x51e16d){const _0x55ea7b=_0x4eabb5,_0x536681=new _0x23f10c(this[_0x55ea7b(0x209)]);return _0x536681[_0x55ea7b(0x1f8)]({'label':_0x1c3b18,'class':_0x51e16d||'','isVisible':!0x0,'withText':!0x0}),_0x536681;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x7ca8be=_0x3b60;(function(_0x4fa8c7,_0x2b0b61){const _0x9c76c6=_0x3b60,_0x202a20=_0x4fa8c7();while(!![]){try{const _0x52e424=-parseInt(_0x9c76c6(0x220))/0x1+-parseInt(_0x9c76c6(0x21d))/0x2+-parseInt(_0x9c76c6(0x1fc))/0x3*(-parseInt(_0x9c76c6(0x1e5))/0x4)+-parseInt(_0x9c76c6(0x1f6))/0x5+-parseInt(_0x9c76c6(0x21e))/0x6+-parseInt(_0x9c76c6(0x1e7))/0x7+parseInt(_0x9c76c6(0x1ef))/0x8*(parseInt(_0x9c76c6(0x202))/0x9);if(_0x52e424===_0x2b0b61)break;else _0x202a20['push'](_0x202a20['shift']());}catch(_0x1ffd7b){_0x202a20['push'](_0x202a20['shift']());}}}(_0x41b7,0x8be00));import{FocusTracker as _0x4bb909,KeystrokeHandler as _0xcf3d09}from'ckeditor5/src/utils.js';import{View as _0x17bfa3,FocusCycler as _0x43a7c1,createLabeledTextarea as _0x5ba386}from'ckeditor5/src/ui.js';import _0x277592,{AIFormToolbarViewMainActionLabel as _0x13af5b}from'./aiformtoolbarview.js';import _0x2f2d74 from'./aiformcontentarea.js';import _0x5db03b from'./aiformerrorview.js';function _0x41b7(){const _0xee77dd=['Ask\x20AI\x20to\x20improve\x20generated\x20text','insertContentBelow','1063312omsSPV','1860834zxNZUZ','reset','508762AyOpnq','shift\x20+\x20tab','Empty\x20history','clear','insertButton','value','render','prompt','label','isVisible','contentArea','_focusables','focusTracker','text','focus','bindTemplate','focusPrevious','delegate','createCollection','promptView','fire','AI_ERROR_FAILED','focusLast','clearHistory','high','set','stop','queryView','listenTo','2054044TZncuD','focusFirst','7377832gaKDVa','finishProcessing','_createToolbar','stopProcessing','stopButton','add','div','handleError','8VjBzid','historyGroupView','element','fieldView','locale','replaceContent','Ask\x20AI\x20to\x20edit\x20or\x20generate','5675625XCwnTX','tab','bindTo','forwardCycle','setTemplate','tryAgainButton','3JigeUM','execute','search','tryAgainEvent','trim','submit','32391675EXLarD','backwardCycle','toolbar','isEnabled','ck-ai-form','_createHistoryView','copyButtonView','submitPrompt','ck-ai-form-content','startProcessing','isError','REPLACE','_createPromptView','items','focusCycler','ck-hidden','keystrokes','isProcessing','mainAction','errorView','bind','replaceButton','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_promptHistory','focusNext'];_0x41b7=function(){return _0xee77dd;};return _0x41b7();}import _0x27d4f from'./aiformpromptview.js';function _0x3b60(_0xbc9f05,_0x5117d1){const _0x41b7ea=_0x41b7();return _0x3b60=function(_0x3b6049,_0x3a2fa5){_0x3b6049=_0x3b6049-0x1dc;let _0x42b5fc=_0x41b7ea[_0x3b6049];return _0x42b5fc;},_0x3b60(_0xbc9f05,_0x5117d1);}import _0x5250b2 from'./aihistorylistview.js';import _0x34593f from'./aihistorylistitemview.js';import _0x1f5d72 from'./prompthistory.js';import{getTranslation as _0x5e1b11}from'../../utils/common-translations.js';import{escape as _0x208ae5}from'lodash-es';export default class x extends _0x17bfa3{constructor(_0x12aaa9,_0x529661,_0x517f9d=''){const _0xbfb274=_0x3b60;super(_0x12aaa9),this[_0xbfb274(0x1e1)](_0xbfb274(0x205),!0x0),this[_0xbfb274(0x1e1)](_0xbfb274(0x213),!0x1),this[_0xbfb274(0x1e1)](_0xbfb274(0x227),''),this[_0xbfb274(0x1e1)](_0xbfb274(0x225),''),this[_0xbfb274(0x1e1)](_0xbfb274(0x20c),!0x1),this[_0xbfb274(0x1e1)](_0xbfb274(0x214),_0x13af5b[_0xbfb274(0x20d)]),this[_0xbfb274(0x219)]=new _0x1f5d72(),this[_0xbfb274(0x215)]=new _0x5db03b(_0x12aaa9),this[_0xbfb274(0x22a)]=new _0x2f2d74(_0x12aaa9,_0x517f9d),this[_0xbfb274(0x22a)][_0xbfb274(0x216)](_0xbfb274(0x213))['to'](this),this[_0xbfb274(0x22a)][_0xbfb274(0x216)](_0xbfb274(0x225))['to'](this),this[_0xbfb274(0x204)]=this[_0xbfb274(0x1e9)](),this[_0xbfb274(0x204)][_0xbfb274(0x216)](_0xbfb274(0x214))['to'](this),this[_0xbfb274(0x233)]=this[_0xbfb274(0x20e)](),this[_0xbfb274(0x22c)]=new _0x4bb909(),this[_0xbfb274(0x212)]=new _0xcf3d09(),this[_0xbfb274(0x22b)]=this[_0xbfb274(0x232)]([this[_0xbfb274(0x22a)],this[_0xbfb274(0x22a)][_0xbfb274(0x208)],this[_0xbfb274(0x204)],this[_0xbfb274(0x233)]]),this[_0xbfb274(0x210)]=new _0x43a7c1({'focusables':this[_0xbfb274(0x22b)],'focusTracker':this[_0xbfb274(0x22c)],'keystrokeHandler':this[_0xbfb274(0x212)],'actions':{'focusPrevious':_0xbfb274(0x221),'focusNext':_0xbfb274(0x1f7)}}),this[_0xbfb274(0x233)][_0xbfb274(0x210)]['on'](_0xbfb274(0x1f9),_0x143634=>{const _0x1217bf=_0xbfb274;this[_0x1217bf(0x210)][_0x1217bf(0x21a)](),_0x143634[_0x1217bf(0x1e2)]();}),this[_0xbfb274(0x233)][_0xbfb274(0x210)]['on'](_0xbfb274(0x203),_0x30b986=>{const _0x11038d=_0xbfb274;this[_0x11038d(0x210)][_0x11038d(0x230)](),_0x30b986[_0x11038d(0x1e2)]();}),this[_0xbfb274(0x233)][_0xbfb274(0x1e3)][_0xbfb274(0x1f2)][_0xbfb274(0x216)](_0xbfb274(0x225))['to'](this,_0xbfb274(0x227));const _0x2bfdf5=this[_0xbfb274(0x22f)];this[_0xbfb274(0x1fa)]({'tag':_0xbfb274(0x1ed),'attributes':{'class':['ck',_0xbfb274(0x206),_0x529661],'tabindex':'-1'},'children':[{'tag':_0xbfb274(0x1ed),'attributes':{'class':['ck',_0xbfb274(0x20a)]},'children':[{'tag':_0xbfb274(0x1ed),'attributes':{'class':[_0x2bfdf5['if'](_0xbfb274(0x20c),_0xbfb274(0x211),_0x4741f3=>!_0x4741f3)]},'children':[this[_0xbfb274(0x215)]]},this[_0xbfb274(0x22a)],this[_0xbfb274(0x204)],this[_0xbfb274(0x233)]]}]});}[_0x7ca8be(0x226)](){const _0x4188f9=_0x7ca8be;super[_0x4188f9(0x226)](),this[_0x4188f9(0x22c)][_0x4188f9(0x1ec)](this[_0x4188f9(0x22a)][_0x4188f9(0x1f1)]),this[_0x4188f9(0x22c)][_0x4188f9(0x1ec)](this[_0x4188f9(0x22a)][_0x4188f9(0x208)][_0x4188f9(0x1f1)]),this[_0x4188f9(0x22c)][_0x4188f9(0x1ec)](this[_0x4188f9(0x204)][_0x4188f9(0x1f1)]),this[_0x4188f9(0x22c)][_0x4188f9(0x1ec)](this[_0x4188f9(0x233)][_0x4188f9(0x1f1)]),this[_0x4188f9(0x212)][_0x4188f9(0x1e4)](this[_0x4188f9(0x1f1)]);}[_0x7ca8be(0x22e)](_0x49fec4=0x1){const _0x1577c4=_0x7ca8be;-0x1===_0x49fec4?this[_0x1577c4(0x210)][_0x1577c4(0x1de)]():this[_0x1577c4(0x210)][_0x1577c4(0x1e6)]();}[_0x7ca8be(0x21f)](){const _0x2193c8=_0x7ca8be;this[_0x2193c8(0x227)]='',this[_0x2193c8(0x225)]='',this[_0x2193c8(0x20c)]=!0x1,this[_0x2193c8(0x233)][_0x2193c8(0x21f)](),this[_0x2193c8(0x22a)][_0x2193c8(0x229)]=!0x1,this[_0x2193c8(0x204)][_0x2193c8(0x229)]=!0x1;}[_0x7ca8be(0x20e)](){const _0x20c385=_0x7ca8be,_0x53c4bf=this[_0x20c385(0x1f3)],_0xe70ed1=new _0x27d4f(_0x53c4bf,{'queryView':{'label':_0x5e1b11(_0x53c4bf,_0x20c385(0x1f5)),'creator':_0x5ba386,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5e1b11(_0x53c4bf,_0x20c385(0x222)),'secondary':_0x5e1b11(_0x53c4bf,_0x20c385(0x218))}}},'filteredView':this[_0x20c385(0x207)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0xe70ed1[_0x20c385(0x216)](_0x20c385(0x205))['to'](this,_0x20c385(0x205),this,_0x20c385(0x213),(_0x2a5df5,_0x11e120)=>_0x2a5df5&&!_0x11e120),this[_0x20c385(0x1e4)](_0xe70ed1,_0x20c385(0x201),(_0x392d35,_0x546006)=>{const _0x293a83=_0x20c385;this[_0x293a83(0x227)]=_0x546006;const _0x20b4b1=_0x208ae5(_0x546006);this[_0x293a83(0x1dc)](_0x293a83(0x209),_0x20b4b1),_0x546006[_0x293a83(0x200)]()&&this[_0x293a83(0x219)][_0x293a83(0x1ec)]({'prompt':_0x20b4b1},0x0);},{'priority':_0x20c385(0x1e0)}),_0xe70ed1;}[_0x7ca8be(0x207)](){const _0xf4d524=_0x7ca8be,_0x3a0358=new _0x5250b2(this[_0xf4d524(0x1f3)]);return _0x3a0358[_0xf4d524(0x1f0)][_0xf4d524(0x20f)][_0xf4d524(0x1f8)](this[_0xf4d524(0x219)])['as'](_0x34593f),_0x3a0358['on'](_0xf4d524(0x1df),()=>{const _0x2f204e=_0xf4d524;this[_0x2f204e(0x219)][_0x2f204e(0x223)](),this[_0x2f204e(0x233)][_0x2f204e(0x1fe)](''),this[_0x2f204e(0x233)][_0x2f204e(0x22e)]();}),_0x3a0358;}[_0x7ca8be(0x1e9)](){const _0x59b622=_0x7ca8be,_0x301bb6=new _0x277592(this[_0x59b622(0x1f3)]);return _0x301bb6[_0x59b622(0x217)][_0x59b622(0x216)](_0x59b622(0x205))['to'](this,_0x59b622(0x205),this,_0x59b622(0x213),this,_0x59b622(0x225),(_0x142698,_0x2e20b4,_0xfb7e14)=>_0x142698&&!_0x2e20b4&&!!_0xfb7e14),_0x301bb6[_0x59b622(0x217)][_0x59b622(0x231)](_0x59b622(0x1fd))['to'](this,_0x59b622(0x1f4)),_0x301bb6[_0x59b622(0x224)][_0x59b622(0x216)](_0x59b622(0x205))['to'](this,_0x59b622(0x205),this,_0x59b622(0x213),this,_0x59b622(0x225),(_0x3322f9,_0x492520,_0x4b4137)=>_0x3322f9&&!_0x492520&&!!_0x4b4137),_0x301bb6[_0x59b622(0x224)][_0x59b622(0x231)](_0x59b622(0x1fd))['to'](this,_0x59b622(0x21c)),_0x301bb6[_0x59b622(0x1fb)][_0x59b622(0x216)](_0x59b622(0x205))['to'](this,_0x59b622(0x205),this,_0x59b622(0x213),(_0x2b3c45,_0x4a4a91)=>_0x2b3c45&&!_0x4a4a91),_0x301bb6[_0x59b622(0x1fb)][_0x59b622(0x231)](_0x59b622(0x1fd))['to'](this,_0x59b622(0x1ff)),_0x301bb6[_0x59b622(0x1eb)][_0x59b622(0x216)](_0x59b622(0x205))['to'](this,_0x59b622(0x213)),_0x301bb6[_0x59b622(0x1eb)][_0x59b622(0x231)](_0x59b622(0x1fd))['to'](this,_0x59b622(0x1ea)),_0x301bb6;}[_0x7ca8be(0x20b)](){const _0x2041aa=_0x7ca8be;this[_0x2041aa(0x225)]='',this[_0x2041aa(0x20c)]=!0x1,this[_0x2041aa(0x213)]=!0x0,this[_0x2041aa(0x22a)][_0x2041aa(0x229)]=!0x0,this[_0x2041aa(0x204)][_0x2041aa(0x229)]=!0x0,this[_0x2041aa(0x22a)][_0x2041aa(0x22e)]();}[_0x7ca8be(0x1e8)](){const _0x3304e3=_0x7ca8be,_0x18d6fa=this[_0x3304e3(0x1f3)];this[_0x3304e3(0x213)]=!0x1,this[_0x3304e3(0x227)]='',this[_0x3304e3(0x233)][_0x3304e3(0x21f)](),this[_0x3304e3(0x225)]&&(this[_0x3304e3(0x233)][_0x3304e3(0x1e3)][_0x3304e3(0x228)]=_0x5e1b11(_0x18d6fa,_0x3304e3(0x21b)));}[_0x7ca8be(0x1ee)](_0x4d2e32){const _0x2ded8c=_0x7ca8be,_0x57fb26=this[_0x2ded8c(0x1f3)];this[_0x2ded8c(0x1e8)](),this[_0x2ded8c(0x20c)]=!0x0,this[_0x2ded8c(0x215)][_0x2ded8c(0x22d)]=_0x4d2e32||_0x5e1b11(_0x57fb26,_0x2ded8c(0x1dd)),this[_0x2ded8c(0x225)]||(this[_0x2ded8c(0x22a)][_0x2ded8c(0x229)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x14d3(){const _0x42bb7b=['locale','5557260VwMdfL','27PVKBkO','children','3WLjePq','fire','383272nPIzGn','execute','add','144330BofrDo','338435dhtnql','70gJiufO','138570qHsCvY','634928ySrXhd','95334EuWpQY','set','prompt'];_0x14d3=function(){return _0x42bb7b;};return _0x14d3();}(function(_0x2f0dfc,_0x1e18fd){const _0x590c73=_0x5c7e,_0x51288f=_0x2f0dfc();while(!![]){try{const _0x5d6914=parseInt(_0x590c73(0xfb))/0x1+-parseInt(_0x590c73(0xfa))/0x2*(parseInt(_0x590c73(0xf5))/0x3)+parseInt(_0x590c73(0xf7))/0x4+-parseInt(_0x590c73(0xfd))/0x5+parseInt(_0x590c73(0xff))/0x6*(parseInt(_0x590c73(0xfc))/0x7)+-parseInt(_0x590c73(0xfe))/0x8*(-parseInt(_0x590c73(0xf3))/0x9)+-parseInt(_0x590c73(0xf2))/0xa;if(_0x5d6914===_0x1e18fd)break;else _0x51288f['push'](_0x51288f['shift']());}catch(_0x5b680a){_0x51288f['push'](_0x51288f['shift']());}}}(_0x14d3,0x2ae14));import{ListItemView as _0x5428c7,ButtonView as _0x453eb9}from'ckeditor5/src/ui.js';import _0xb75eae from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x4a4732}from'lodash-es';function _0x5c7e(_0x448748,_0x3c959b){const _0x14d38f=_0x14d3();return _0x5c7e=function(_0x5c7ee8,_0x14382d){_0x5c7ee8=_0x5c7ee8-0xef;let _0x5878de=_0x14d38f[_0x5c7ee8];return _0x5878de;},_0x5c7e(_0x448748,_0x3c959b);}export default class hs extends _0x5428c7{constructor(_0x150e17){const _0x5821b6=_0x5c7e;super();const _0x282ba8=new _0xb75eae(),_0x4d195a=new _0x453eb9(this[_0x5821b6(0xf1)],_0x282ba8);this[_0x5821b6(0xf4)][_0x5821b6(0xf9)](_0x4d195a),_0x4d195a[_0x5821b6(0xef)]({'label':_0x150e17[_0x5821b6(0xf0)],'withText':!0x0}),_0x4d195a['on'](_0x5821b6(0xf8),()=>{const _0x2561a9=_0x5821b6;this[_0x2561a9(0xf6)](_0x2561a9(0xf8),{'value':_0x4a4732(_0x150e17[_0x2561a9(0xf0)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41e44e=_0x30d6;function _0x30d6(_0x170e6b,_0x3dc07d){const _0x24e06b=_0x24e0();return _0x30d6=function(_0x30d67d,_0x32c0c3){_0x30d67d=_0x30d67d-0x155;let _0x495bce=_0x24e06b[_0x30d67d];return _0x495bce;},_0x30d6(_0x170e6b,_0x3dc07d);}(function(_0x516a6c,_0x24f325){const _0x3049b0=_0x30d6,_0x42be9e=_0x516a6c();while(!![]){try{const _0x25bde9=parseInt(_0x3049b0(0x155))/0x1+parseInt(_0x3049b0(0x158))/0x2+-parseInt(_0x3049b0(0x16b))/0x3+-parseInt(_0x3049b0(0x16d))/0x4+-parseInt(_0x3049b0(0x15a))/0x5+-parseInt(_0x3049b0(0x168))/0x6*(-parseInt(_0x3049b0(0x16a))/0x7)+parseInt(_0x3049b0(0x15d))/0x8*(parseInt(_0x3049b0(0x15f))/0x9);if(_0x25bde9===_0x24f325)break;else _0x42be9e['push'](_0x42be9e['shift']());}catch(_0x188fb2){_0x42be9e['push'](_0x42be9e['shift']());}}}(_0x24e0,0xc5e13));import{ListView as _0x415ac8,ListItemGroupView as _0x13e9ca,ButtonView as _0x5507a0}from'ckeditor5/src/ui.js';import{getTranslation as _0x26b270}from'../../utils/common-translations.js';function _0x24e0(){const _0xf31585=['16pUOISG','historyGroupView','2231982nWDxCM','Prompt\x20history','clearHistory','add','fire','items','filter','execute','locale','390JHOOJp','length','112462KxxTID','3153294scZrTh','_createClearHistoryButton','4784500kaQJFU','clearHistoryButton','1161916fQYwTZ','label','set','2388472TizJLR','Clear','4193500hxBOys','children','delegate'];_0x24e0=function(){return _0xf31585;};return _0x24e0();}export default class rs extends _0x415ac8{constructor(_0x438d4f){const _0x43af20=_0x30d6;super(_0x438d4f),this[_0x43af20(0x16e)]=this[_0x43af20(0x16c)](),this[_0x43af20(0x15e)]=new _0x13e9ca(),this[_0x43af20(0x15e)][_0x43af20(0x15b)][_0x43af20(0x162)](this[_0x43af20(0x16e)],0x1),this[_0x43af20(0x15e)][_0x43af20(0x156)]=_0x26b270(_0x438d4f,_0x43af20(0x160)),this[_0x43af20(0x15e)][_0x43af20(0x164)][_0x43af20(0x15c)](_0x43af20(0x166))['to'](this),this[_0x43af20(0x164)][_0x43af20(0x162)](this[_0x43af20(0x15e)]);}[_0x41e44e(0x165)](){const _0x342842=_0x41e44e;let _0x17e4be=0x0;for(const _0x251dab of this[_0x342842(0x164)])_0x17e4be+=_0x251dab[_0x342842(0x164)][_0x342842(0x169)];return{'resultsCount':_0x17e4be,'totalItemsCount':_0x17e4be};}[_0x41e44e(0x16c)](){const _0x4ee133=_0x41e44e,_0x38c199=this[_0x4ee133(0x167)],_0x569829=new _0x5507a0(this[_0x4ee133(0x167)]);return _0x569829[_0x4ee133(0x157)]({'label':'('+_0x26b270(_0x38c199,_0x4ee133(0x159))+')','withText':!0x0}),_0x569829['on'](_0x4ee133(0x166),()=>this[_0x4ee133(0x163)](_0x4ee133(0x161))),_0x569829;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ef677=_0x210d;(function(_0x3f8705,_0x730c23){const _0x415af8=_0x210d,_0x151cf9=_0x3f8705();while(!![]){try{const _0x35fbfa=parseInt(_0x415af8(0x18c))/0x1+-parseInt(_0x415af8(0x19c))/0x2*(-parseInt(_0x415af8(0x188))/0x3)+-parseInt(_0x415af8(0x18b))/0x4*(parseInt(_0x415af8(0x195))/0x5)+parseInt(_0x415af8(0x18d))/0x6+-parseInt(_0x415af8(0x199))/0x7*(-parseInt(_0x415af8(0x18f))/0x8)+-parseInt(_0x415af8(0x189))/0x9+-parseInt(_0x415af8(0x198))/0xa;if(_0x35fbfa===_0x730c23)break;else _0x151cf9['push'](_0x151cf9['shift']());}catch(_0x2c1151){_0x151cf9['push'](_0x151cf9['shift']());}}}(_0x4521,0x5c77c));function _0x210d(_0x54ab1d,_0x321836){const _0x452113=_0x4521();return _0x210d=function(_0x210d0a,_0x47dcd1){_0x210d0a=_0x210d0a-0x188;let _0x1c02c8=_0x452113[_0x210d0a];return _0x1c02c8;},_0x210d(_0x54ab1d,_0x321836);}import{Collection as _0x2892ea}from'ckeditor5/src/utils.js';const cs=_0x1ef677(0x1a0);function _0x4521(){const _0x211632=['_saveToSessionStorage','_loadFromSessionStorage','9222400ZecOsd','7rMyJhD','trim','getItem','74ZpDRLZ','setItem','addMany','parse','CKEditor/AIFormView/PromptHistory','stringify','6192pCJWtP','2005218LCMOWi','remove','4ApaINR','638173MBCaii','2649810DHFroT','last','4979944oUWgmB','add','toLowerCase','prompt','map','length','1274395bQfkqK'];_0x4521=function(){return _0x211632;};return _0x4521();}export default class os extends _0x2892ea{constructor(){const _0x259a82=_0x1ef677;super(),this[_0x259a82(0x197)](),this['on'](_0x259a82(0x190),(_0x4bbf7b,_0x10c4e8)=>{const _0x5ea0f4=_0x259a82,_0x32560b=Ss(_0x10c4e8[_0x5ea0f4(0x192)]);for(const _0x314efa of this)if(_0x314efa!=_0x10c4e8&&Ss(_0x314efa[_0x5ea0f4(0x192)])===_0x32560b){this[_0x5ea0f4(0x18a)](_0x314efa);break;}this[_0x5ea0f4(0x194)]>0x14&&this[_0x5ea0f4(0x18a)](this[_0x5ea0f4(0x18e)]),this[_0x5ea0f4(0x196)]();}),this['on'](_0x259a82(0x18a),()=>{const _0x353464=_0x259a82;this[_0x353464(0x196)]();});}[_0x1ef677(0x197)](){const _0x1b62f9=_0x1ef677,_0x38c3a9=sessionStorage[_0x1b62f9(0x19b)](cs)||'[]';this[_0x1b62f9(0x19e)](JSON[_0x1b62f9(0x19f)](_0x38c3a9));}[_0x1ef677(0x196)](){const _0x5334cf=_0x1ef677;sessionStorage[_0x5334cf(0x19d)](cs,JSON[_0x5334cf(0x1a1)](this[_0x5334cf(0x193)](_0x238b51=>_0x238b51)));}}function Ss(_0x292079){const _0x34d854=_0x1ef677;return _0x292079[_0x34d854(0x191)]()[_0x34d854(0x19a)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52d106=_0x215e;(function(_0x1ca307,_0x3369ee){const _0x1afefa=_0x215e,_0x2ad79f=_0x1ca307();while(!![]){try{const _0x4dfc2f=-parseInt(_0x1afefa(0x1f7))/0x1+parseInt(_0x1afefa(0x1ef))/0x2+parseInt(_0x1afefa(0x1e0))/0x3+parseInt(_0x1afefa(0x1dd))/0x4+parseInt(_0x1afefa(0x1dc))/0x5*(-parseInt(_0x1afefa(0x1f8))/0x6)+parseInt(_0x1afefa(0x1e4))/0x7+parseInt(_0x1afefa(0x1e6))/0x8;if(_0x4dfc2f===_0x3369ee)break;else _0x2ad79f['push'](_0x2ad79f['shift']());}catch(_0x38019a){_0x2ad79f['push'](_0x2ad79f['shift']());}}}(_0x3334,0x377b5));import{Command as _0x5d1904}from'ckeditor5/src/core.js';function _0x3334(){const _0x5cb39b=['config','plugins','commands','isEmpty','showUI','change:isEnabled','445739TDZQHj','99210gFufNh','isEnabled','getItems','selection','set','requiresContent','_hasContext','refresh','get','hasContent','isCollapsed','getRanges','custom','concat','element','enabledCommandsIds','10naGuKw','1019388bnqhLu','change:_hasContext','getSelectedBlocks','16596AtZoNY','ai.aiAssistant.disabledElements','model','name','592116rAYmnq','length','1780280miGMia','execute','getFirstRange','_commandDefinitions','from','includes','reduce','editor','document','277120belUsg','add'];_0x3334=function(){return _0x5cb39b;};return _0x3334();}import _0x2f2a64 from'../aiassistantui.js';export default class j extends _0x5d1904{constructor(_0x4a3c28,_0x12ddd7){const _0x549cfd=_0x215e;super(_0x4a3c28),this[_0x549cfd(0x1e9)]=_0x12ddd7?_0x12ddd7[_0x549cfd(0x1ec)]((_0x14e271,_0xc01815)=>_0x14e271[_0x549cfd(0x1d9)](_0xc01815[_0x549cfd(0x1f3)]),new Array()):[],this[_0x549cfd(0x1fc)](_0x549cfd(0x1db),[]),this['on'](_0x549cfd(0x1de),(_0x2750c8,_0x3f931c,_0x5a630e)=>{const _0x4d4cf6=_0x549cfd;this[_0x4d4cf6(0x1f9)]&&(this[_0x4d4cf6(0x1db)]=K(this[_0x4d4cf6(0x1e9)],_0x5a630e));}),this[_0x549cfd(0x1fc)](_0x549cfd(0x1d2),!0x1),this['on'](_0x549cfd(0x1f6),(_0x1fa524,_0x18ec60,_0x326d06)=>{const _0x23147f=_0x549cfd;this[_0x23147f(0x1db)]=_0x326d06?K(this[_0x23147f(0x1e9)],this[_0x23147f(0x1d2)]):[];});}[_0x52d106(0x1d3)](){const _0x172c02=_0x52d106,_0x43a9b4=this[_0x172c02(0x1ed)][_0x172c02(0x1e2)];this[_0x172c02(0x1d2)]=function(_0x47a83e){const _0x93f133=_0x172c02,_0x384897=_0x47a83e[_0x93f133(0x1ee)][_0x93f133(0x1fb)];return _0x384897[_0x93f133(0x1d6)]?0x0!==[..._0x384897[_0x93f133(0x1df)]()][_0x93f133(0x1e5)]&&![..._0x384897[_0x93f133(0x1df)]()][0x0][_0x93f133(0x1f4)]:!!_0x47a83e[_0x93f133(0x1d5)](_0x384897[_0x93f133(0x1e8)]());}(_0x43a9b4);const _0x2eb610=_0x43a9b4[_0x172c02(0x1ee)][_0x172c02(0x1fb)],_0x39a55b=this[_0x172c02(0x1ed)][_0x172c02(0x1f1)][_0x172c02(0x1d4)](_0x172c02(0x1e1));for(const _0xf26903 of _0x2eb610[_0x172c02(0x1d7)]())for(const _0x43542b of _0xf26903[_0x172c02(0x1fa)]())if(_0x43542b['is'](_0x172c02(0x1da))&&_0x39a55b[_0x172c02(0x1eb)](_0x43542b[_0x172c02(0x1e3)]))return void(this[_0x172c02(0x1f9)]=!0x1);this[_0x172c02(0x1f9)]=!0x0;}[_0x52d106(0x1e7)](_0x1475d2='',_0x2c653d='',_0x557fa5=_0x52d106(0x1d8)){const _0x4c67cb=_0x52d106;this[_0x4c67cb(0x1ed)][_0x4c67cb(0x1f2)][_0x4c67cb(0x1d4)](_0x2f2a64)[_0x4c67cb(0x1f5)](_0x1475d2,_0x2c653d,_0x557fa5);}}function _0x215e(_0x155eac,_0x412b55){const _0x3334ec=_0x3334();return _0x215e=function(_0x215e42,_0x2a8116){_0x215e42=_0x215e42-0x1d1;let _0x474d01=_0x3334ec[_0x215e42];return _0x474d01;},_0x215e(_0x155eac,_0x412b55);}function K(_0x2f3e49,_0x9f25dc){const _0x54ea35=_0x52d106,_0x1cea04=new Set();for(const _0x8ef2dd of _0x2f3e49)(_0x9f25dc||!0x1===_0x8ef2dd[_0x54ea35(0x1d1)])&&_0x1cea04[_0x54ea35(0x1f0)](_0x8ef2dd['id']);return Array[_0x54ea35(0x1ea)](_0x1cea04);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x8c2d59,_0x20b1a7,_0x1f5183){const t=_0x8c2d59['t'];switch(_0x20b1a7){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',_0x1f5183);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',_0x1f5183);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1f5183);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'},_0x1f5183);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 _0x20b1a7;}}
|