@ckeditor/ckeditor5-ai 43.3.0-alpha.8 → 43.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/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/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.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-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.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/eu.js +1 -1
- package/dist/translations/eu.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/gu.js +1 -1
- package/dist/translations/gu.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/hy.js +1 -1
- package/dist/translations/hy.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/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.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/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.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/oc.js +1 -1
- package/dist/translations/oc.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/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.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/tt.js +1 -1
- package/dist/translations/tt.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 +8 -8
- 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/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
- package/src/utils/normalizecommandsconfig.js +1 -1
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x9c0b21,_0x23fb96){var _0x5ee4d2=_0x430a,_0x54dd96=_0x9c0b21();while(!![]){try{var _0x3c0225=parseInt(_0x5ee4d2(0x175))/0x1*(parseInt(_0x5ee4d2(0x179))/0x2)+-parseInt(_0x5ee4d2(0x17c))/0x3+parseInt(_0x5ee4d2(0x17b))/0x4+parseInt(_0x5ee4d2(0x17a))/0x5+-parseInt(_0x5ee4d2(0x178))/0x6*(parseInt(_0x5ee4d2(0x17e))/0x7)+parseInt(_0x5ee4d2(0x176))/0x8*(-parseInt(_0x5ee4d2(0x177))/0x9)+parseInt(_0x5ee4d2(0x17d))/0xa;if(_0x3c0225===_0x23fb96)break;else _0x54dd96['push'](_0x54dd96['shift']());}catch(_0x1d2ce0){_0x54dd96['push'](_0x54dd96['shift']());}}}(_0x4397,0x5ae1a));export{default as AIAssistant}from'./aiassistant.js';export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';function _0x430a(_0x3db5fe,_0x4b9cc4){var _0x439749=_0x4397();return _0x430a=function(_0x430ae7,_0x3d5de6){_0x430ae7=_0x430ae7-0x175;var _0x14dceb=_0x439749[_0x430ae7];return _0x14dceb;},_0x430a(_0x3db5fe,_0x4b9cc4);}function _0x4397(){var _0x2506b7=['14fRHDUy','2UIgRdt','24qxbcxE','1977633CunLdn','265692rjwVsT','419078ShTUHs','3469955dLcYMr','692132MfYThd','807501NRfsJR','1030900JcvdyZ'];_0x4397=function(){return _0x2506b7;};return _0x4397();}export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x4546(){const _0x173826=['97818hqasIE','220153DeHItm','initialContext','isProcessing','stopProcessing','handleError','2596cinWoc','editor','htmlProcessor','match','stringify','processor','_xmlSerializer','set:currentContext','_domParser','makeRequest','```html','nodeType','push','_parseAndNormalizeContent','startProcessing','listenTo','previousContext','72009SwWaBY','currentContext','childNodes','exec','set','1461760kcYWTY','abort','textAdapter','remove','substring','toView','_normalizeResponseHeadings','length','serializeToString','1414044QEzWLo','editing','submitPrompt','previousQuery','createElement','prompt','32EQXHnI','value','56xaaoze','querySelector','domConverter','trim','div','destroy','_sanitizeHTML','tryAgainEvent','mainAction','custom','6jxzrvq','previousActionId','674870TqqlmI','reverse','stopListening','currentResponse','_sanitizationContainer','updateView','message','finishProcessing','document','_stripMarkdownSyntax','name','<h1></h1>','rename','isRendered','_handleQuery','once','innerHTML','from','startsWith','data','reset','render','viewToDom','then','_isH1TagSupportEnabled','ELEMENT_NODE','```','previousLabel','setContentOf','toModel','element','endsWith','text/html','parseFromString','catch','finally','body','11030bDyQVW','view'];_0x4546=function(){return _0x173826;};return _0x4546();}function _0x52b2(_0x7c0b20,_0x17971f){const _0x45468a=_0x4546();return _0x52b2=function(_0x52b20e,_0x56d0c6){_0x52b20e=_0x52b20e-0xc6;let _0x24f6aa=_0x45468a[_0x52b20e];return _0x24f6aa;},_0x52b2(_0x7c0b20,_0x17971f);}const _0x39eb90=_0x52b2;(function(_0x467beb,_0x1947dd){const _0x55e298=_0x52b2,_0xbfbfcf=_0x467beb();while(!![]){try{const _0xe51549=parseInt(_0x55e298(0xdc))/0x1+-parseInt(_0x55e298(0x114))/0x2+parseInt(_0x55e298(0xdb))/0x3*(-parseInt(_0x55e298(0x106))/0x4)+-parseInt(_0x55e298(0xf7))/0x5*(-parseInt(_0x55e298(0x112))/0x6)+parseInt(_0x55e298(0xf2))/0x7*(-parseInt(_0x55e298(0x108))/0x8)+parseInt(_0x55e298(0x100))/0x9+parseInt(_0x55e298(0xd9))/0xa*(parseInt(_0x55e298(0xe1))/0xb);if(_0xe51549===_0x1947dd)break;else _0xbfbfcf['push'](_0xbfbfcf['shift']());}catch(_0xd3de10){_0xbfbfcf['push'](_0xbfbfcf['shift']());}}}(_0x4546,0x3f635));import{ObservableMixin as _0x454708}from'ckeditor5/src/utils.js';import{AIRequestError as _0x16da7a}from'../adapters/aiadapter.js';import{Matcher as _0x1c6f37,UpcastWriter as _0x16f513}from'ckeditor5/src/engine.js';const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class v extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x454708(){constructor(_0x274b4e,_0x3c404a,_0x27fdd1){const _0x114efd=_0x52b2;super(),this[_0x114efd(0xe2)]=_0x274b4e,this[_0x114efd(0xf9)]=_0x3c404a,this[_0x114efd(0x118)]=document[_0x114efd(0x104)](_0x114efd(0x10c)),this[_0x114efd(0xe9)]=new DOMParser(),this[_0x114efd(0xe7)]=new XMLSerializer(),this[_0x114efd(0xda)]=_0x27fdd1,this[_0x114efd(0xf6)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x114efd(0xe8),(_0x5a9823,_0x2ca603,_0x4c44d8)=>{const _0x384ed9=_0x114efd;this[_0x384ed9(0xda)][_0x384ed9(0x107)]=this[_0x384ed9(0x10e)](_0x4c44d8);}),this[_0x114efd(0xf0)](this[_0x114efd(0xda)],_0x114efd(0x102),(_0x93a68e,_0x40c791)=>{const _0x33cf86=_0x114efd,_0x342071=this[_0x33cf86(0xf3)]||this[_0x33cf86(0xdd)];this[_0x33cf86(0x122)](_0x40c791,_0x342071,_0x33cf86(0x111));}),this[_0x114efd(0xf0)](this[_0x114efd(0xda)],_0x114efd(0x10f),()=>{const _0x5d3dd4=_0x114efd;this[_0x5d3dd4(0xda)][_0x5d3dd4(0x105)]=this[_0x5d3dd4(0xcf)],this[_0x5d3dd4(0x122)](this[_0x5d3dd4(0x103)],this[_0x5d3dd4(0xf1)],this[_0x5d3dd4(0x113)],this[_0x5d3dd4(0xcf)]);}),this[_0x114efd(0xf0)](this[_0x114efd(0xda)],_0x114efd(0xdf),()=>{const _0x3aad8b=_0x114efd;this[_0x3aad8b(0xdf)]();});}[_0x39eb90(0x10d)](){const _0x304865=_0x39eb90;this[_0x304865(0x116)]();}async[_0x39eb90(0x119)]({actionId:_0x54f1e7,query:_0x57e244,htmlContent:_0x2fa964,label:_0x72713a,mainActionLabel:_0x468d37}){const _0x24016c=_0x39eb90;this[_0x24016c(0xda)][_0x24016c(0x105)]=_0x72713a,this[_0x24016c(0xda)][_0x24016c(0x110)]=_0x468d37,this[_0x24016c(0xdd)]=_0x2fa964,_0x57e244&&(this[_0x24016c(0xda)][_0x24016c(0x121)]?this[_0x24016c(0x122)](_0x57e244,_0x2fa964,_0x54f1e7,_0x72713a):this[_0x24016c(0xda)][_0x24016c(0x123)](_0x24016c(0xc9),()=>{const _0x22e883=_0x24016c;this[_0x22e883(0x122)](_0x57e244,_0x2fa964,_0x54f1e7,_0x72713a);}));}[_0x39eb90(0xdf)](){const _0x4651c3=_0x39eb90;this[_0x4651c3(0xde)]&&(this[_0x4651c3(0xde)]=!0x1,this[_0x4651c3(0xda)][_0x4651c3(0x11b)](),this[_0x4651c3(0xf9)][_0x4651c3(0xf8)]());}[_0x39eb90(0xc8)](){const _0x19d098=_0x39eb90;this[_0x19d098(0xdd)]='',this[_0x19d098(0xf3)]='',this[_0x19d098(0x117)]='',this[_0x19d098(0xf1)]='',this[_0x19d098(0x103)]='',this[_0x19d098(0xcf)]='',this[_0x19d098(0x113)]=void 0x0,this[_0x19d098(0xda)][_0x19d098(0xc8)](),this[_0x19d098(0xdf)]();}async[_0x39eb90(0x122)](_0x42e32e,_0x525f95,_0x383376,_0x13be28){const _0x3e6f34=_0x39eb90;return this[_0x3e6f34(0xde)]=!0x0,this[_0x3e6f34(0xda)][_0x3e6f34(0xef)](),this[_0x3e6f34(0xf1)]=_0x525f95,this[_0x3e6f34(0x103)]=_0x42e32e,this[_0x3e6f34(0xcf)]=_0x13be28||_0x42e32e,this[_0x3e6f34(0x113)]=_0x383376,new Promise(_0x379ba2=>{const _0x5734e1=_0x3e6f34;this[_0x5734e1(0xf9)][_0x5734e1(0xea)]({'query':_0x42e32e,'context':_0x525f95,'onData':_0x593fc5=>{const _0x30fe98=_0x5734e1;this[_0x30fe98(0x117)]=_0x593fc5,this[_0x30fe98(0xf3)]=this[_0x30fe98(0xee)](this[_0x30fe98(0x117)]);},'actionId':_0x383376})[_0x5734e1(0xcb)](()=>{const _0x402445=_0x5734e1;!this[_0x402445(0xf3)]&&this[_0x402445(0x117)]&&(this[_0x402445(0xf3)]=this[_0x402445(0xee)](this[_0x402445(0x117)],!0x0));})[_0x5734e1(0xd6)](_0x115837=>{const _0x5a1ee7=_0x5734e1;_0x115837 instanceof _0x16da7a?this[_0x5a1ee7(0xda)][_0x5a1ee7(0xe0)](_0x115837[_0x5a1ee7(0x11a)]):this[_0x5a1ee7(0xda)][_0x5a1ee7(0xe0)](),_0x379ba2();})[_0x5734e1(0xd7)](()=>{const _0x4b6d30=_0x5734e1;this[_0x4b6d30(0xdf)](),_0x379ba2();});});}[_0x39eb90(0xee)](_0x3b5e45,_0x527074=!0x1){const _0x3ba9cf=_0x39eb90,_0x5a6850=Z[_0x3ba9cf(0xf5)](_0x3b5e45);_0x3b5e45=_0x5a6850?_0x3b5e45[_0x3ba9cf(0xfb)](_0x5a6850[0x1][_0x3ba9cf(0xfe)]):_0x3b5e45[_0x3ba9cf(0xfe)]<0x64&&!_0x527074?'':this[_0x3ba9cf(0x11d)](_0x3b5e45);const _0x209d28=this[_0x3ba9cf(0xe9)][_0x3ba9cf(0xd5)](_0x3b5e45,_0x3ba9cf(0xd4));if(_0x5a6850){const _0x186c46=Array[_0x3ba9cf(0x125)](_0x209d28[_0x3ba9cf(0xd8)][_0x3ba9cf(0xf4)]);_0x186c46[_0x3ba9cf(0x115)]();for(const _0x50f044 of _0x186c46){if(_0x50f044[_0x3ba9cf(0xec)]==Node[_0x3ba9cf(0xcd)])break;_0x50f044[_0x3ba9cf(0xfa)]();}}const _0x513356=this[_0x3ba9cf(0xe2)][_0x3ba9cf(0xc7)][_0x3ba9cf(0xe6)][_0x3ba9cf(0xfc)](this[_0x3ba9cf(0xe7)][_0x3ba9cf(0xff)](_0x209d28[_0x3ba9cf(0xd8)]));return this[_0x3ba9cf(0xcc)]()||this[_0x3ba9cf(0xfd)](_0x513356),this[_0x3ba9cf(0xe2)][_0x3ba9cf(0xc7)][_0x3ba9cf(0xe5)](this[_0x3ba9cf(0xe2)][_0x3ba9cf(0xc7)][_0x3ba9cf(0xd1)](_0x513356));}[_0x39eb90(0xfd)](_0x56d139){const _0x524f10=_0x39eb90,_0x39d543=new _0x16f513(this[_0x524f10(0xe2)][_0x524f10(0x101)][_0x524f10(0xda)][_0x524f10(0x11c)]),_0x4d5dfc=new _0x1c6f37({'name':/^h[1-5]$/}),_0x1c5f04=[];let _0x5181bd=!0x1;for(const _0x350da5 of _0x56d139)_0x350da5['is'](_0x524f10(0xd2))&&_0x4d5dfc[_0x524f10(0xe4)](_0x350da5)&&(_0x1c5f04[_0x524f10(0xed)](_0x350da5),'h1'==_0x350da5[_0x524f10(0x11e)]&&(_0x5181bd=!0x0));if(_0x5181bd){for(const _0xa173ba of _0x1c5f04)_0x39d543[_0x524f10(0x120)]('h'+(parseInt(_0xa173ba[_0x524f10(0x11e)][0x1])+0x1),_0xa173ba);}}[_0x39eb90(0xcc)](){const _0x3bcb46=_0x39eb90,{data:_0x518400,editing:_0x421729}=this[_0x3bcb46(0xe2)],_0x46c404=_0x518400[_0x3bcb46(0xe3)][_0x3bcb46(0xfc)](_0x3bcb46(0x11f)),_0x424ec2=_0x518400[_0x3bcb46(0xfc)](_0x518400[_0x3bcb46(0xd1)](_0x46c404));return!!_0x421729[_0x3bcb46(0xda)][_0x3bcb46(0x10a)][_0x3bcb46(0xca)](_0x424ec2)[_0x3bcb46(0x109)]('h1');}[_0x39eb90(0x10e)](_0x3bb31c){const _0x4964c7=_0x39eb90;return this[_0x4964c7(0xe2)][_0x4964c7(0x101)][_0x4964c7(0xda)][_0x4964c7(0x10a)][_0x4964c7(0xd0)](this[_0x4964c7(0x118)],_0x3bb31c),this[_0x4964c7(0x118)][_0x4964c7(0x124)];}[_0x39eb90(0x11d)](_0x57e60d){const _0x13c97d=_0x39eb90,_0x148ac4=_0x57e60d[_0x13c97d(0x10b)]();return _0x148ac4[_0x13c97d(0xc6)](_0x13c97d(0xeb))?_0x148ac4[_0x13c97d(0xd3)](_0x13c97d(0xce))?_0x148ac4[_0x13c97d(0xfb)](0x7,_0x148ac4[_0x13c97d(0xfe)]-0x3):_0x148ac4[_0x13c97d(0xfb)](0x7):_0x57e60d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4ea1af=_0x1f0c;(function(_0x55f348,_0x4884fe){const _0x47de69=_0x1f0c,_0x2bf18f=_0x55f348();while(!![]){try{const _0x39f60d=-parseInt(_0x47de69(0x169))/0x1+-parseInt(_0x47de69(0x13f))/0x2+parseInt(_0x47de69(0x139))/0x3*(-parseInt(_0x47de69(0x144))/0x4)+parseInt(_0x47de69(0x150))/0x5+-parseInt(_0x47de69(0x149))/0x6*(-parseInt(_0x47de69(0x157))/0x7)+-parseInt(_0x47de69(0x15b))/0x8*(-parseInt(_0x47de69(0x131))/0x9)+parseInt(_0x47de69(0x142))/0xa;if(_0x39f60d===_0x4884fe)break;else _0x2bf18f['push'](_0x2bf18f['shift']());}catch(_0x58ad70){_0x2bf18f['push'](_0x2bf18f['shift']());}}}(_0x1870,0xaac1c));import{global as _0x1225b2}from'ckeditor5/src/utils.js';import{View as _0x4e2aa8,ButtonView as _0x3c818e,SpinnerView as _0x57258f}from'ckeditor5/src/ui.js';import _0x11f5ee from'../../../theme/icons/copy.svg';import{getTranslation as _0x3f34a0}from'../../utils/common-translations.js';function _0x1f0c(_0x392872,_0x18a12c){const _0x187094=_0x1870();return _0x1f0c=function(_0x1f0cce,_0x5777a6){_0x1f0cce=_0x1f0cce-0x127;let _0x4005c4=_0x187094[_0x1f0cce];return _0x4005c4;},_0x1f0c(_0x392872,_0x18a12c);}import{icons as _0x1cb6e4}from'ckeditor5/src/core.js';export default class W extends _0x4e2aa8{constructor(_0x15a1c2,_0x9bb92b=''){const _0x5a1687=_0x1f0c;super(_0x15a1c2),this[_0x5a1687(0x145)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x299f0a=this[_0x5a1687(0x140)];this[_0x5a1687(0x12a)]=new ContentFieldView(_0x15a1c2,_0x9bb92b),this[_0x5a1687(0x12b)]=this[_0x5a1687(0x171)](),this[_0x5a1687(0x14e)]({'tag':_0x5a1687(0x13c),'attributes':{'class':['ck',_0x5a1687(0x13b),_0x299f0a['if'](_0x5a1687(0x13a),_0x5a1687(0x17c),_0x1e1ba4=>!_0x1e1ba4)],'tabindex':'-1'},'children':[{'tag':_0x5a1687(0x13c),'attributes':{'class':['ck',_0x5a1687(0x160),_0x299f0a['if'](_0x5a1687(0x15c),_0x5a1687(0x16c))]},'children':[this[_0x5a1687(0x12a)],{'tag':_0x5a1687(0x13c),'attributes':{'class':['ck',_0x5a1687(0x147)]},'children':[this[_0x5a1687(0x12b)]]}]}]});}[_0x4ea1af(0x16f)](){const _0x4e2901=_0x4ea1af;super[_0x4e2901(0x16f)](),this[_0x4e2901(0x155)]&&this[_0x4e2901(0x12a)][_0x4e2901(0x162)](this[_0x4e2901(0x155)]);let _0x2219b2=!0x1;this['on'](_0x4e2901(0x134),(_0x35a8fa,_0x448fc8,_0x2cea1a)=>{const _0x50843a=_0x4e2901,_0x11deb3=!this[_0x50843a(0x12a)][_0x50843a(0x17b)][_0x50843a(0x148)](_0x50843a(0x12d));this[_0x50843a(0x12a)][_0x50843a(0x162)](_0x2cea1a),this[_0x50843a(0x15c)]&&_0x11deb3&&!_0x2219b2&&this[_0x50843a(0x17b)][_0x50843a(0x14b)]({'top':this[_0x50843a(0x17b)][_0x50843a(0x141)],'behavior':_0x50843a(0x16b)});}),this['on'](_0x4e2901(0x130),(_0x8f0206,_0x17dc7c,_0x261a4c)=>{const _0x2e0fdd=_0x4e2901;_0x2219b2=!0x1,_0x261a4c?(this[_0x2e0fdd(0x155)]=null,this[_0x2e0fdd(0x12a)][_0x2e0fdd(0x163)]()):this[_0x2e0fdd(0x155)]||this[_0x2e0fdd(0x12a)][_0x2e0fdd(0x162)]('');}),this[_0x4e2901(0x151)](this[_0x4e2901(0x17b)],_0x4e2901(0x135),()=>{_0x2219b2=!0x0;}),this[_0x4e2901(0x151)](this[_0x4e2901(0x17b)],_0x4e2901(0x15e),()=>{_0x2219b2=!0x0;});}[_0x4ea1af(0x178)](){const _0x2bfcef=_0x4ea1af;this[_0x2bfcef(0x17b)][_0x2bfcef(0x178)]();}[_0x4ea1af(0x171)](){const _0x580134=_0x4ea1af,_0x492d1c=this[_0x580134(0x14d)],_0x37a2da=new _0x3c818e(this[_0x580134(0x14d)]),_0x519720=_0x580134(0x15f);return _0x37a2da[_0x580134(0x145)]({'label':_0x3f34a0(_0x492d1c,_0x580134(0x16d)),'icon':_0x11f5ee,'class':_0x519720,'tooltip':!0x0}),_0x37a2da[_0x580134(0x158)](_0x580134(0x13a))['to'](this,_0x580134(0x155),_0x327690=>!!_0x327690),_0x37a2da[_0x580134(0x158)](_0x580134(0x13d))['to'](this,_0x580134(0x15c),_0x2b982d=>!_0x2b982d),_0x37a2da['on'](_0x580134(0x16e),()=>{const _0x351ea6=_0x580134;this[_0x351ea6(0x12e)](this[_0x351ea6(0x12a)][_0x351ea6(0x17b)]),_0x37a2da[_0x351ea6(0x177)]=_0x1cb6e4[_0x351ea6(0x12c)],_0x37a2da[_0x351ea6(0x14c)]=_0x519720+_0x351ea6(0x137),this[_0x351ea6(0x178)](),setTimeout(()=>{const _0x4aa7d3=_0x351ea6;_0x37a2da[_0x4aa7d3(0x177)]=_0x11f5ee,_0x37a2da[_0x4aa7d3(0x14c)]=_0x519720;},0x3e8);}),_0x37a2da;}[_0x4ea1af(0x12e)](_0x345069){const _0x5c5b9a=_0x4ea1af,{window:_0x5a96a5,document:_0x4e3e32}=_0x1225b2;if(_0x5a96a5[_0x5c5b9a(0x167)]){const {Blob:_0x186166,ClipboardItem:_0x1076bf}=_0x5a96a5,_0x35833f=[new _0x1076bf({'text/html':new _0x186166([_0x345069[_0x5c5b9a(0x143)]],{'type':_0x5c5b9a(0x17a)}),'text/plain':new _0x186166([_0x345069[_0x5c5b9a(0x14a)]||''],{'type':_0x5c5b9a(0x159)})})];navigator[_0x5c5b9a(0x146)][_0x5c5b9a(0x129)](_0x35833f);}else{const _0x43d6c3=_0x4e3e32[_0x5c5b9a(0x153)](_0x5c5b9a(0x13c));_0x43d6c3[_0x5c5b9a(0x15a)][_0x5c5b9a(0x16a)]=_0x5c5b9a(0x164),_0x43d6c3[_0x5c5b9a(0x15a)][_0x5c5b9a(0x127)]=_0x5c5b9a(0x14f),_0x43d6c3[_0x5c5b9a(0x143)]=_0x5c5b9a(0x166)+_0x345069[_0x5c5b9a(0x143)]+_0x5c5b9a(0x13e),_0x4e3e32[_0x5c5b9a(0x172)][_0x5c5b9a(0x12f)](_0x43d6c3);const _0x633f3c=_0x4e3e32[_0x5c5b9a(0x154)]();_0x633f3c[_0x5c5b9a(0x176)](_0x43d6c3[_0x5c5b9a(0x152)]),_0x633f3c[_0x5c5b9a(0x161)](_0x43d6c3[_0x5c5b9a(0x175)]);const _0xe06687=_0x5a96a5[_0x5c5b9a(0x170)]();_0xe06687[_0x5c5b9a(0x174)](),_0xe06687[_0x5c5b9a(0x128)](_0x633f3c),_0x4e3e32[_0x5c5b9a(0x15d)](_0x5c5b9a(0x179)),_0x43d6c3[_0x5c5b9a(0x136)]();}}}function _0x1870(){const _0x186b38=['wheel','remove','\x20ck-ai-form__copy-button--copied','ck-reset_all-excluded','762789omRGam','isVisible','ck-ai-form__content-area-wrapper','div','isEnabled','<span>]</span>','2455214MEGSRy','bindTemplate','scrollHeight','7862250NukNrP','innerHTML','4zNMQau','set','clipboard','ck-ai-form__copy-button-wrapper','querySelector','12VeWhUB','textContent','scrollTo','class','locale','setTemplate','-9999px','2155700KNVdJF','listenTo','firstElementChild','createElement','createRange','value','ck-ai-form__loader','4570993SnGuXr','bind','text/plain','style','803192Biamvq','isProcessing','execCommand','mousedown','ck-ai-form__copy-button','ck-ai-form__content-area','setEndBefore','setContent','appendLoader','absolute','ck-content','<span>[</span>','ClipboardItem','_createLoader','442472MPUqln','position','smooth','ck-ai-form__content-area--processing','Copy','execute','render','getSelection','_createCopyButton','body','ck-ai-form__content-field','removeAllRanges','lastElementChild','setStartAfter','icon','focus','copy','text/html','element','ck-hidden','left','addRange','write','contentFieldView','copyButtonView','check','.ck-ai-form__loader','_copyHTMLToClipboard','appendChild','change:isProcessing','9qFpica','loaderView','AI\x20is\x20writing...','change:value'];_0x1870=function(){return _0x186b38;};return _0x1870();}export class ContentFieldView extends _0x4e2aa8{constructor(_0x4405d4,_0x14304a=''){const _0x30b005=_0x4ea1af;super(_0x4405d4),this[_0x30b005(0x132)]=this[_0x30b005(0x168)](),this[_0x30b005(0x14e)]({'tag':_0x30b005(0x13c),'attributes':{'class':['ck',_0x30b005(0x165),_0x14304a,_0x30b005(0x138),_0x30b005(0x173)]}});}[_0x4ea1af(0x162)](_0x392f2e){const _0x16f7ae=_0x4ea1af;this[_0x16f7ae(0x17b)][_0x16f7ae(0x143)]=_0x392f2e;}[_0x4ea1af(0x163)](){const _0xaf5866=_0x4ea1af;this[_0xaf5866(0x17b)][_0xaf5866(0x12f)](this[_0xaf5866(0x132)][_0xaf5866(0x17b)]);}[_0x4ea1af(0x168)](){const _0xbc879=_0x4ea1af,_0x39507d=new _0x4e2aa8(),_0x5519bd=this[_0xbc879(0x14d)],_0x2e5e5c=new _0x57258f();return _0x2e5e5c[_0xbc879(0x13a)]=!0x0,_0x39507d[_0xbc879(0x14e)]({'tag':_0xbc879(0x13c),'attributes':{'class':['ck',_0xbc879(0x156)]},'children':[_0x2e5e5c,{'text':_0x3f34a0(_0x5519bd,_0xbc879(0x133))}]}),_0x39507d[_0xbc879(0x16f)](),_0x39507d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x583916,_0x70dca2){const _0x4a852d=_0x5ee2,_0x14dbc1=_0x583916();while(!![]){try{const _0x487bd2=parseInt(_0x4a852d(0x199))/0x1+-parseInt(_0x4a852d(0x197))/0x2+parseInt(_0x4a852d(0x194))/0x3+parseInt(_0x4a852d(0x19b))/0x4+-parseInt(_0x4a852d(0x19a))/0x5+-parseInt(_0x4a852d(0x190))/0x6*(parseInt(_0x4a852d(0x192))/0x7)+-parseInt(_0x4a852d(0x18c))/0x8*(parseInt(_0x4a852d(0x18e))/0x9);if(_0x487bd2===_0x70dca2)break;else _0x14dbc1['push'](_0x14dbc1['shift']());}catch(_0x41d56f){_0x14dbc1['push'](_0x14dbc1['shift']());}}}(_0x22d2,0x81fea));function _0x22d2(){const _0x175701=['content','bindTemplate','1142722poymiB','setTemplate','714908OTsmxR','1090765mNQIGt','4138484rlSPJg','178856qhWWeb','text','81lRmJzs','div','1453308Prbzmd','set','28ukYMWQ','ck-ai-form__error','2227584ciXbEp'];_0x22d2=function(){return _0x175701;};return _0x22d2();}import{View as _0x598fe8,IconView as _0x2ee0d3}from'ckeditor5/src/ui.js';import _0x520b80 from'../../../theme/icons/error.svg';function _0x5ee2(_0x3fa306,_0x3a2b89){const _0x22d2d8=_0x22d2();return _0x5ee2=function(_0x5ee2f0,_0xfbde50){_0x5ee2f0=_0x5ee2f0-0x18c;let _0x452425=_0x22d2d8[_0x5ee2f0];return _0x452425;},_0x5ee2(_0x3fa306,_0x3a2b89);}export default class tt extends _0x598fe8{constructor(_0x4539e1,_0x36499e=''){const _0x815ea5=_0x5ee2;super(_0x4539e1);const _0x2ecd8b=new _0x2ee0d3(),_0x48cede=this[_0x815ea5(0x196)];this[_0x815ea5(0x191)](_0x815ea5(0x18d),_0x36499e),_0x2ecd8b[_0x815ea5(0x195)]=_0x520b80,this[_0x815ea5(0x198)]({'tag':_0x815ea5(0x18f),'attributes':{'class':['ck',_0x815ea5(0x193)]},'children':[_0x2ecd8b,{'text':_0x48cede['to'](_0x815ea5(0x18d))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58eb82=_0xcb5b;(function(_0x37d228,_0x520607){const _0x541a6=_0xcb5b,_0x44919c=_0x37d228();while(!![]){try{const _0x25de9f=-parseInt(_0x541a6(0x1dd))/0x1+-parseInt(_0x541a6(0x1d1))/0x2*(parseInt(_0x541a6(0x1f1))/0x3)+parseInt(_0x541a6(0x1f5))/0x4*(parseInt(_0x541a6(0x1f7))/0x5)+parseInt(_0x541a6(0x1ec))/0x6*(parseInt(_0x541a6(0x1d5))/0x7)+parseInt(_0x541a6(0x209))/0x8*(parseInt(_0x541a6(0x202))/0x9)+-parseInt(_0x541a6(0x1eb))/0xa+-parseInt(_0x541a6(0x1fb))/0xb;if(_0x25de9f===_0x520607)break;else _0x44919c['push'](_0x44919c['shift']());}catch(_0x3d22cc){_0x44919c['push'](_0x44919c['shift']());}}}(_0x2b1e,0x7d00b));function _0x2b1e(){const _0x56116b=['isEnabled','5064XpEWBh','target','2935uQXgrY','value','History','resultsView','7679947lncQbp','rtl','focusFirst','right','maxRows','keystrokes','submitButtonView','8191899QaFJzk','requestAnimationFrame','minRows','update','focus','Submit','isOn','8UdrUoV','filteredView','window','fieldWrapperChildren','2Hhxkxp','set','excludeScrollbarsAndBorders','ck-ai-form__toggle-history','77eMLTrB','element','isVisible','ck-ai-form__submit','focusLast','children','showHistoryButtonView','history','81338JEmasG','uiLanguageDirection','_createSubmitButton','style','fieldView','execute','focusableChildren','width','left','focusCycler','_createShowHistoryButton','isEmpty','bind','enter','5140060ykMtmc','462498HOtwzN','queryView','add','fire','submit','2087202jDNmsK','render','locale'];_0x2b1e=function(){return _0x56116b;};return _0x2b1e();}import{Rect as _0x4befbe,global as _0x5e5152,isVisible as _0x51a92b}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x31a2a5,ButtonView as _0x15ad82}from'ckeditor5/src/ui.js';import{icons as _0x38a7db}from'ckeditor5/src/core.js';import{getTranslation as _0x3d90ff}from'../../utils/common-translations.js';import _0x1b4267 from'../../../theme/icons/submit.svg';function _0xcb5b(_0x2fabcc,_0x3f761){const _0x2b1e34=_0x2b1e();return _0xcb5b=function(_0xcb5bca,_0x3df1bd){_0xcb5bca=_0xcb5bca-0x1ce;let _0x3794df=_0x2b1e34[_0xcb5bca];return _0x3794df;},_0xcb5b(_0x2fabcc,_0x3f761);}export default class ht extends _0x31a2a5{constructor(_0x2666ed,_0x1f7311){const _0x220aa3=_0xcb5b;super(_0x2666ed,_0x1f7311),this[_0x220aa3(0x1ed)][_0x220aa3(0x1e1)][_0x220aa3(0x204)]=0x1,this[_0x220aa3(0x1ed)][_0x220aa3(0x1e1)][_0x220aa3(0x1ff)]=0x3,this[_0x220aa3(0x201)]=this[_0x220aa3(0x1df)](),this[_0x220aa3(0x1db)]=this[_0x220aa3(0x1e7)](),this[_0x220aa3(0x1e3)][_0x220aa3(0x1ee)](this[_0x220aa3(0x1db)],0x1),this[_0x220aa3(0x1e3)][_0x220aa3(0x1ee)](this[_0x220aa3(0x201)]);}[_0x58eb82(0x1f2)](){const _0xc9f46=_0x58eb82;super[_0xc9f46(0x1f2)](),this[_0xc9f46(0x1ed)][_0xc9f46(0x1d0)][_0xc9f46(0x1ee)](this[_0xc9f46(0x1db)]),this[_0xc9f46(0x1da)][_0xc9f46(0x1ee)](this[_0xc9f46(0x201)]),this[_0xc9f46(0x200)][_0xc9f46(0x1d2)](_0xc9f46(0x1ea),(_0x12d3e7,_0x568ec2)=>{const _0x1d9e03=_0xc9f46;_0x12d3e7[_0x1d9e03(0x1f6)]==this[_0x1d9e03(0x1ed)][_0x1d9e03(0x1e1)][_0x1d9e03(0x1d6)]&&(this[_0x1d9e03(0x1f0)](),_0x568ec2());});}[_0x58eb82(0x1df)](){const _0x40dc5d=_0x58eb82,_0x5733a6=new _0x15ad82(this[_0x40dc5d(0x1f3)]),_0x11b53f=this[_0x40dc5d(0x1f3)];return _0x5733a6[_0x40dc5d(0x1d2)]({'icon':_0x1b4267,'label':_0x3d90ff(_0x11b53f,_0x40dc5d(0x207)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x40dc5d(0x1d8)}),_0x5733a6['on'](_0x40dc5d(0x1e2),()=>{const _0x36806f=_0x40dc5d;this[_0x36806f(0x1f0)]();}),_0x5733a6[_0x40dc5d(0x1e9)](_0x40dc5d(0x1f4))['to'](this[_0x40dc5d(0x1ed)][_0x40dc5d(0x1e1)],_0x40dc5d(0x1e8),this,_0x40dc5d(0x1f4),(_0x5661f6,_0x121a0b)=>!_0x5661f6&&_0x121a0b),_0x5733a6;}[_0x58eb82(0x1e7)](){const _0x4220a6=_0x58eb82,_0x224977=new _0x15ad82(this[_0x4220a6(0x1f3)]),_0x17aaf0=this[_0x4220a6(0x1fa)],_0x1509eb=this[_0x4220a6(0x1f3)];_0x224977[_0x4220a6(0x1d2)]({'label':_0x3d90ff(_0x1509eb,_0x4220a6(0x1f9)),'withText':!0x1,'icon':_0x38a7db[_0x4220a6(0x1dc)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4220a6(0x1d4)}),_0x224977[_0x4220a6(0x1e9)](_0x4220a6(0x208))['to'](_0x17aaf0,_0x4220a6(0x1d7)),_0x224977[_0x4220a6(0x1e9)](_0x4220a6(0x1f4))['to'](this,_0x4220a6(0x1f4)),_0x224977['on'](_0x4220a6(0x1e2),()=>{const _0xebacff=_0x4220a6;_0x17aaf0[_0xebacff(0x1d7)]=!_0x17aaf0[_0xebacff(0x1d7)],_0x17aaf0[_0xebacff(0x1d7)]?this[_0xebacff(0x1ce)][_0xebacff(0x206)]():this[_0xebacff(0x206)]();});const _0x48ebff=()=>{const _0x23c582=_0x4220a6;_0x5e5152[_0x23c582(0x1cf)][_0x23c582(0x203)](()=>{const _0x2316d5=_0x23c582;if(_0x51a92b(this[_0x2316d5(0x1d6)])){const _0xfd5640=new _0x4befbe(this[_0x2316d5(0x1ed)][_0x2316d5(0x1e1)][_0x2316d5(0x1d6)]),_0x2729a3=_0xfd5640[_0x2316d5(0x1e4)],_0x88c33a=_0x2316d5(0x1fc)===_0x1509eb[_0x2316d5(0x1de)]?_0x2316d5(0x1e5):_0x2316d5(0x1fe);_0xfd5640[_0x2316d5(0x1d3)](),_0x224977[_0x2316d5(0x1d6)][_0x2316d5(0x1e0)][_0x88c33a]=_0x2729a3-_0xfd5640[_0x2316d5(0x1e4)]+0x1+'px';}});};return this[_0x4220a6(0x1ed)][_0x4220a6(0x1e1)]['on'](_0x4220a6(0x205),_0x48ebff),this['on'](_0x4220a6(0x1f2),_0x48ebff),_0x224977;}[_0x58eb82(0x1f0)](){const _0x138754=_0x58eb82,_0x37252f=this[_0x138754(0x1ed)][_0x138754(0x1e1)][_0x138754(0x1d6)][_0x138754(0x1f8)];this[_0x138754(0x1ef)](_0x138754(0x1f0),_0x37252f);}[_0x58eb82(0x206)](_0xb5f13d){const _0x17a3bd=_0x58eb82;-0x1===_0xb5f13d?this[_0x17a3bd(0x1e6)][_0x17a3bd(0x1d9)]():this[_0x17a3bd(0x1e6)][_0x17a3bd(0x1fd)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5e74fa=_0x139a;(function(_0x9c7f13,_0x71bbac){const _0x22369b=_0x139a,_0x4e942c=_0x9c7f13();while(!![]){try{const _0x268da0=-parseInt(_0x22369b(0xe6))/0x1+parseInt(_0x22369b(0xfb))/0x2+-parseInt(_0x22369b(0xf0))/0x3+parseInt(_0x22369b(0x102))/0x4*(-parseInt(_0x22369b(0xfa))/0x5)+-parseInt(_0x22369b(0xe9))/0x6*(-parseInt(_0x22369b(0xeb))/0x7)+parseInt(_0x22369b(0xee))/0x8*(-parseInt(_0x22369b(0xe8))/0x9)+-parseInt(_0x22369b(0xec))/0xa*(-parseInt(_0x22369b(0x107))/0xb);if(_0x268da0===_0x71bbac)break;else _0x4e942c['push'](_0x4e942c['shift']());}catch(_0x41a794){_0x4e942c['push'](_0x4e942c['shift']());}}}(_0x4c3a,0x35041));function _0x139a(_0x3310e9,_0x400734){const _0x4c3a91=_0x4c3a();return _0x139a=function(_0x139a34,_0x236c24){_0x139a34=_0x139a34-0xe6;let _0xba2e5=_0x4c3a91[_0x139a34];return _0xba2e5;},_0x139a(_0x3310e9,_0x400734);}import{ToolbarView as _0x9f26f9,ButtonView as _0x231dae}from'ckeditor5/src/ui.js';import{getTranslation as _0x3204b7}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5e74fa(0xea),'INSERT':_0x5e74fa(0x108)};function _0x4c3a(){const _0x467db9=['62579obHrBt','insert','locale','mainAction','_CONTENT','322511atAaSv','bind','70209xtBhbl','1836UgEwNi','replace','6286GuakyS','1070RvnEGV','replaceButton','208dtvsDj','extendTemplate','179526VnmElc','Insert\x20below','insertButton','label','ck-ai-form__toolbar','Try\x20again','stopButton','_createButton','addMany','items','5kqoVSI','663890EioFpj','Stop','ck-hidden','isVisible','bindTemplate','set','REPLACE','1652496jlHXLa','toUpperCase','AI_','tryAgainButton','ck-button-action'];_0x4c3a=function(){return _0x467db9;};return _0x4c3a();}export default class nt extends _0x9f26f9{constructor(_0x5d36ed){const _0x4cb438=_0x5e74fa;super(_0x5d36ed),this[_0x4cb438(0x100)](_0x4cb438(0xfe),!0x1),this[_0x4cb438(0x100)](_0x4cb438(0x10a),AIFormToolbarViewMainActionLabel[_0x4cb438(0x101)]),this[_0x4cb438(0xed)]=this[_0x4cb438(0xf7)]('',_0x4cb438(0x106)),this[_0x4cb438(0xed)][_0x4cb438(0xe7)](_0x4cb438(0xf3))['to'](this,_0x4cb438(0x10a),_0x1e4365=>_0x3204b7(_0x5d36ed,_0x4cb438(0x104)+_0x1e4365[_0x4cb438(0x103)]()+_0x4cb438(0x10b))),this[_0x4cb438(0xf2)]=this[_0x4cb438(0xf7)](_0x3204b7(_0x5d36ed,_0x4cb438(0xf1))),this[_0x4cb438(0x105)]=this[_0x4cb438(0xf7)](_0x3204b7(_0x5d36ed,_0x4cb438(0xf5))),this[_0x4cb438(0xf6)]=this[_0x4cb438(0xf7)](_0x3204b7(_0x5d36ed,_0x4cb438(0xfc)));const _0x200753=this[_0x4cb438(0xff)];this[_0x4cb438(0xef)]({'attributes':{'class':[_0x4cb438(0xf4),_0x200753['if'](_0x4cb438(0xfe),_0x4cb438(0xfd),_0x21be02=>!_0x21be02)]}}),this[_0x4cb438(0xf9)][_0x4cb438(0xf8)]([this[_0x4cb438(0xed)],this[_0x4cb438(0xf2)],this[_0x4cb438(0x105)],this[_0x4cb438(0xf6)]]);}[_0x5e74fa(0xf7)](_0x327cb8,_0x2f9082){const _0xa5dc3c=_0x5e74fa,_0x3cb25e=new _0x231dae(this[_0xa5dc3c(0x109)]);return _0x3cb25e[_0xa5dc3c(0x100)]({'label':_0x327cb8,'class':_0x2f9082||'','isVisible':!0x0,'withText':!0x0}),_0x3cb25e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c7d4b=_0xb52a;function _0xb52a(_0x3ff085,_0xdaba67){const _0x5c1248=_0x5c12();return _0xb52a=function(_0xb52ab1,_0x3b3d98){_0xb52ab1=_0xb52ab1-0x144;let _0x46b171=_0x5c1248[_0xb52ab1];return _0x46b171;},_0xb52a(_0x3ff085,_0xdaba67);}(function(_0x23cc0c,_0x915b5c){const _0x16248e=_0xb52a,_0x2cafdc=_0x23cc0c();while(!![]){try{const _0x5e6e6e=-parseInt(_0x16248e(0x159))/0x1+parseInt(_0x16248e(0x168))/0x2+-parseInt(_0x16248e(0x150))/0x3+-parseInt(_0x16248e(0x184))/0x4+-parseInt(_0x16248e(0x165))/0x5*(-parseInt(_0x16248e(0x16f))/0x6)+-parseInt(_0x16248e(0x185))/0x7*(parseInt(_0x16248e(0x164))/0x8)+parseInt(_0x16248e(0x172))/0x9*(parseInt(_0x16248e(0x145))/0xa);if(_0x5e6e6e===_0x915b5c)break;else _0x2cafdc['push'](_0x2cafdc['shift']());}catch(_0x58a27d){_0x2cafdc['push'](_0x2cafdc['shift']());}}}(_0x5c12,0xd430c));function _0x5c12(){const _0x416517=['errorView','Empty\x20history','locale','tab','delegate','_createHistoryView','_createPromptView','toolbar','_createToolbar','150rvJjMk','_promptHistory','mainAction','replaceButton','focusFirst','keystrokes','focusLast','fieldView','copyButtonView','clear','historyGroupView','1414947MGAVEp','focus','focusCycler','add','fire','execute','isEnabled','bind','high','1080272vjBnbM','startProcessing','ck-ai-form-content','queryView','reset','trim','isVisible','stopButton','tryAgainButton','set','element','6549528RNTLOk','30feBwLF','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','insertButton','3249986GaZFKa','div','insertContentBelow','label','_focusables','finishProcessing','isError','1711638NzElwc','stopProcessing','contentArea','1009899hUPGSq','tryAgainEvent','clearHistory','bindTemplate','bindTo','submit','value','createCollection','items','chain','listenTo','text','isProcessing','render','handleError','Ask\x20AI\x20to\x20improve\x20generated\x20text','ck-hidden','ck-ai-form','3845444NDTwJC','14PqJyNl','setTemplate','replaceContent','prompt','REPLACE','submitPrompt','AI_ERROR_FAILED','focusTracker','Ask\x20AI\x20to\x20edit\x20or\x20generate','shift\x20+\x20tab','search','promptView'];_0x5c12=function(){return _0x416517;};return _0x5c12();}import{FocusTracker as _0x331584,KeystrokeHandler as _0x24b201}from'ckeditor5/src/utils.js';import{View as _0x49b870,FocusCycler as _0x40f1ec,createLabeledTextarea as _0x2a557d}from'ckeditor5/src/ui.js';import _0x10aa3d,{AIFormToolbarViewMainActionLabel as _0x5803be}from'./aiformtoolbarview.js';import _0x21acd6 from'./aiformcontentarea.js';import _0x673467 from'./aiformerrorview.js';import _0x131299 from'./aiformpromptview.js';import _0x2d5aa6 from'./aihistorylistview.js';import _0xa049f4 from'./aihistorylistitemview.js';import _0x40367f from'./prompthistory.js';import{getTranslation as _0x17883e}from'../../utils/common-translations.js';import{escape as _0x365cad}from'lodash-es';export default class k extends _0x49b870{constructor(_0x367ed2,_0xc4103a,_0x530fa5=''){const _0x1afb86=_0xb52a;super(_0x367ed2),this[_0x1afb86(0x162)](_0x1afb86(0x156),!0x0),this[_0x1afb86(0x162)](_0x1afb86(0x17e),!0x1),this[_0x1afb86(0x162)](_0x1afb86(0x188),''),this[_0x1afb86(0x162)](_0x1afb86(0x178),''),this[_0x1afb86(0x162)](_0x1afb86(0x16e),!0x1),this[_0x1afb86(0x162)](_0x1afb86(0x147),_0x5803be[_0x1afb86(0x189)]),this[_0x1afb86(0x146)]=new _0x40367f(),this[_0x1afb86(0x191)]=new _0x673467(_0x367ed2),this[_0x1afb86(0x171)]=new _0x21acd6(_0x367ed2,_0x530fa5),this[_0x1afb86(0x171)][_0x1afb86(0x157)](_0x1afb86(0x17e))['to'](this),this[_0x1afb86(0x171)][_0x1afb86(0x157)](_0x1afb86(0x178))['to'](this),this[_0x1afb86(0x198)]=this[_0x1afb86(0x144)](),this[_0x1afb86(0x198)][_0x1afb86(0x157)](_0x1afb86(0x147))['to'](this),this[_0x1afb86(0x190)]=this[_0x1afb86(0x197)](),this[_0x1afb86(0x18c)]=new _0x331584(),this[_0x1afb86(0x14a)]=new _0x24b201(),this[_0x1afb86(0x16c)]=this[_0x1afb86(0x179)]([this[_0x1afb86(0x171)],this[_0x1afb86(0x171)][_0x1afb86(0x14d)],this[_0x1afb86(0x198)],this[_0x1afb86(0x190)]]),this[_0x1afb86(0x152)]=new _0x40f1ec({'focusables':this[_0x1afb86(0x16c)],'focusTracker':this[_0x1afb86(0x18c)],'keystrokeHandler':this[_0x1afb86(0x14a)],'actions':{'focusPrevious':_0x1afb86(0x18e),'focusNext':_0x1afb86(0x194)}}),this[_0x1afb86(0x152)][_0x1afb86(0x17b)](this[_0x1afb86(0x190)][_0x1afb86(0x152)]),this[_0x1afb86(0x190)][_0x1afb86(0x15c)][_0x1afb86(0x14c)][_0x1afb86(0x157)](_0x1afb86(0x178))['to'](this,_0x1afb86(0x188));const _0x3bf46b=this[_0x1afb86(0x175)];this[_0x1afb86(0x186)]({'tag':_0x1afb86(0x169),'attributes':{'class':['ck',_0x1afb86(0x183),_0xc4103a],'tabindex':'-1'},'children':[{'tag':_0x1afb86(0x169),'attributes':{'class':['ck',_0x1afb86(0x15b)]},'children':[{'tag':_0x1afb86(0x169),'attributes':{'class':[_0x3bf46b['if'](_0x1afb86(0x16e),_0x1afb86(0x182),_0x1842dc=>!_0x1842dc)]},'children':[this[_0x1afb86(0x191)]]},this[_0x1afb86(0x171)],this[_0x1afb86(0x198)],this[_0x1afb86(0x190)]]}]});}[_0x1c7d4b(0x17f)](){const _0x410b0a=_0x1c7d4b;super[_0x410b0a(0x17f)](),this[_0x410b0a(0x18c)][_0x410b0a(0x153)](this[_0x410b0a(0x171)][_0x410b0a(0x163)]),this[_0x410b0a(0x18c)][_0x410b0a(0x153)](this[_0x410b0a(0x171)][_0x410b0a(0x14d)][_0x410b0a(0x163)]),this[_0x410b0a(0x18c)][_0x410b0a(0x153)](this[_0x410b0a(0x198)][_0x410b0a(0x163)]),this[_0x410b0a(0x18c)][_0x410b0a(0x153)](this[_0x410b0a(0x190)][_0x410b0a(0x163)]),this[_0x410b0a(0x14a)][_0x410b0a(0x17c)](this[_0x410b0a(0x163)]);}[_0x1c7d4b(0x151)](_0x498efd=0x1){const _0x52c7e7=_0x1c7d4b;-0x1===_0x498efd?this[_0x52c7e7(0x152)][_0x52c7e7(0x14b)]():this[_0x52c7e7(0x152)][_0x52c7e7(0x149)]();}[_0x1c7d4b(0x15d)](){const _0x3d7e34=_0x1c7d4b;this[_0x3d7e34(0x188)]='',this[_0x3d7e34(0x178)]='',this[_0x3d7e34(0x16e)]=!0x1,this[_0x3d7e34(0x190)][_0x3d7e34(0x15d)](),this[_0x3d7e34(0x171)][_0x3d7e34(0x15f)]=!0x1,this[_0x3d7e34(0x198)][_0x3d7e34(0x15f)]=!0x1;}[_0x1c7d4b(0x197)](){const _0x38d8f0=_0x1c7d4b,_0xd65b30=this[_0x38d8f0(0x193)],_0x274436=new _0x131299(_0xd65b30,{'queryView':{'label':_0x17883e(_0xd65b30,_0x38d8f0(0x18d)),'creator':_0x2a557d,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x17883e(_0xd65b30,_0x38d8f0(0x192)),'secondary':_0x17883e(_0xd65b30,_0x38d8f0(0x166))}}},'filteredView':this[_0x38d8f0(0x196)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x274436[_0x38d8f0(0x157)](_0x38d8f0(0x156))['to'](this,_0x38d8f0(0x156),this,_0x38d8f0(0x17e),(_0xbaa89e,_0x226b3b)=>_0xbaa89e&&!_0x226b3b),this[_0x38d8f0(0x17c)](_0x274436,_0x38d8f0(0x177),(_0x57f2c2,_0x5e1434)=>{const _0x575b27=_0x38d8f0;this[_0x575b27(0x188)]=_0x5e1434;const _0x573c53=_0x365cad(_0x5e1434);this[_0x575b27(0x154)](_0x575b27(0x18a),_0x573c53),_0x5e1434[_0x575b27(0x15e)]()&&this[_0x575b27(0x146)][_0x575b27(0x153)]({'prompt':_0x573c53},0x0);},{'priority':_0x38d8f0(0x158)}),_0x274436;}[_0x1c7d4b(0x196)](){const _0x2e7fae=_0x1c7d4b,_0x22a78f=new _0x2d5aa6(this[_0x2e7fae(0x193)]);return _0x22a78f[_0x2e7fae(0x14f)][_0x2e7fae(0x17a)][_0x2e7fae(0x176)](this[_0x2e7fae(0x146)])['as'](_0xa049f4),_0x22a78f['on'](_0x2e7fae(0x174),()=>{const _0xf0dfce=_0x2e7fae;this[_0xf0dfce(0x146)][_0xf0dfce(0x14e)](),this[_0xf0dfce(0x190)][_0xf0dfce(0x18f)](''),this[_0xf0dfce(0x190)][_0xf0dfce(0x151)]();}),_0x22a78f;}[_0x1c7d4b(0x144)](){const _0x1755aa=_0x1c7d4b,_0x278f09=new _0x10aa3d(this[_0x1755aa(0x193)]);return _0x278f09[_0x1755aa(0x148)][_0x1755aa(0x157)](_0x1755aa(0x156))['to'](this,_0x1755aa(0x156),this,_0x1755aa(0x17e),this,_0x1755aa(0x178),(_0x3c5410,_0xe30eda,_0x55c369)=>_0x3c5410&&!_0xe30eda&&!!_0x55c369),_0x278f09[_0x1755aa(0x148)][_0x1755aa(0x195)](_0x1755aa(0x155))['to'](this,_0x1755aa(0x187)),_0x278f09[_0x1755aa(0x167)][_0x1755aa(0x157)](_0x1755aa(0x156))['to'](this,_0x1755aa(0x156),this,_0x1755aa(0x17e),this,_0x1755aa(0x178),(_0x1c7cfb,_0xc5384b,_0x5a3b9c)=>_0x1c7cfb&&!_0xc5384b&&!!_0x5a3b9c),_0x278f09[_0x1755aa(0x167)][_0x1755aa(0x195)](_0x1755aa(0x155))['to'](this,_0x1755aa(0x16a)),_0x278f09[_0x1755aa(0x161)][_0x1755aa(0x157)](_0x1755aa(0x156))['to'](this,_0x1755aa(0x156),this,_0x1755aa(0x17e),(_0x188d92,_0x3eb071)=>_0x188d92&&!_0x3eb071),_0x278f09[_0x1755aa(0x161)][_0x1755aa(0x195)](_0x1755aa(0x155))['to'](this,_0x1755aa(0x173)),_0x278f09[_0x1755aa(0x160)][_0x1755aa(0x157)](_0x1755aa(0x156))['to'](this,_0x1755aa(0x17e)),_0x278f09[_0x1755aa(0x160)][_0x1755aa(0x195)](_0x1755aa(0x155))['to'](this,_0x1755aa(0x170)),_0x278f09;}[_0x1c7d4b(0x15a)](){const _0x23347c=_0x1c7d4b;this[_0x23347c(0x178)]='',this[_0x23347c(0x16e)]=!0x1,this[_0x23347c(0x17e)]=!0x0,this[_0x23347c(0x171)][_0x23347c(0x15f)]=!0x0,this[_0x23347c(0x198)][_0x23347c(0x15f)]=!0x0,this[_0x23347c(0x171)][_0x23347c(0x151)]();}[_0x1c7d4b(0x16d)](){const _0x389171=_0x1c7d4b,_0x2f5738=this[_0x389171(0x193)];this[_0x389171(0x17e)]=!0x1,this[_0x389171(0x188)]='',this[_0x389171(0x190)][_0x389171(0x15d)](),this[_0x389171(0x178)]&&(this[_0x389171(0x190)][_0x389171(0x15c)][_0x389171(0x16b)]=_0x17883e(_0x2f5738,_0x389171(0x181)));}[_0x1c7d4b(0x180)](_0x4a6c57){const _0x557ea8=_0x1c7d4b,_0xa36b35=this[_0x557ea8(0x193)];this[_0x557ea8(0x16d)](),this[_0x557ea8(0x16e)]=!0x0,this[_0x557ea8(0x191)][_0x557ea8(0x17d)]=_0x4a6c57||_0x17883e(_0xa36b35,_0x557ea8(0x18b)),this[_0x557ea8(0x178)]||(this[_0x557ea8(0x171)][_0x557ea8(0x15f)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x425b2f,_0x452865){const _0x57fbec=_0x164f,_0x1d61e5=_0x425b2f();while(!![]){try{const _0x411088=parseInt(_0x57fbec(0xc4))/0x1*(parseInt(_0x57fbec(0xc2))/0x2)+-parseInt(_0x57fbec(0xc9))/0x3+-parseInt(_0x57fbec(0xc1))/0x4+parseInt(_0x57fbec(0xce))/0x5+-parseInt(_0x57fbec(0xca))/0x6+parseInt(_0x57fbec(0xc3))/0x7*(parseInt(_0x57fbec(0xc8))/0x8)+parseInt(_0x57fbec(0xcb))/0x9*(-parseInt(_0x57fbec(0xc7))/0xa);if(_0x411088===_0x452865)break;else _0x1d61e5['push'](_0x1d61e5['shift']());}catch(_0x231bc2){_0x1d61e5['push'](_0x1d61e5['shift']());}}}(_0x2003,0xc831d));import{ListItemView as _0x54554f,ButtonView as _0x1b3d7e,ButtonLabelView as _0x340a31}from'ckeditor5/src/ui.js';function _0x164f(_0x2e24bf,_0x35b9a2){const _0x200345=_0x2003();return _0x164f=function(_0x164f5c,_0x50ff73){_0x164f5c=_0x164f5c-0xc0;let _0x5851f8=_0x200345[_0x164f5c];return _0x5851f8;},_0x164f(_0x2e24bf,_0x35b9a2);}import{unescape as _0x4f7059}from'lodash-es';export default class hs extends _0x54554f{constructor(_0x57e3ad){const _0x16209c=_0x164f;super();const _0x4c2df5=new _0x340a31(),_0x7de0c3=new _0x1b3d7e(this[_0x16209c(0xcf)],_0x4c2df5);this[_0x16209c(0xc5)][_0x16209c(0xcc)](_0x7de0c3),_0x7de0c3[_0x16209c(0xcd)]({'label':_0x57e3ad[_0x16209c(0xc6)],'withText':!0x0}),_0x7de0c3['on'](_0x16209c(0xd0),()=>{const _0x2bc5ac=_0x16209c;this[_0x2bc5ac(0xc0)](_0x2bc5ac(0xd0),{'value':_0x4f7059(_0x57e3ad[_0x2bc5ac(0xc6)])});});}}function _0x2003(){const _0xeb1452=['42lOreUP','453764lQviOv','children','prompt','6980ZcdAZP','1047616HtyGIk','481665UVtRkk','739272lNpVWn','1620yrLfAy','add','set','1441295pHnjtA','locale','execute','fire','1193324oGsnND','2gTnYgD'];_0x2003=function(){return _0xeb1452;};return _0x2003();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x25ad(){const _0x40cb40=['execute','label','clearHistoryButton','fire','locale','_createClearHistoryButton','357805XkWhyX','7673310OSFsWq','Clear','historyGroupView','3594088sHwAtq','499152kKcvUj','1716060PvaUev','8ZnPPZZ','36078Icpumq','children','347208WXYVtg','set','12DgCbhh','add','9zQfPWh','Prompt\x20history','clearHistory','items','length','filter','delegate'];_0x25ad=function(){return _0x40cb40;};return _0x25ad();}const _0xa99868=_0x3823;(function(_0x18ef26,_0x4316e4){const _0x436174=_0x3823,_0x2321ec=_0x18ef26();while(!![]){try{const _0xd65471=parseInt(_0x436174(0x126))/0x1+parseInt(_0x436174(0x128))/0x2*(parseInt(_0x436174(0x12b))/0x3)+parseInt(_0x436174(0x127))/0x4+parseInt(_0x436174(0x121))/0x5+parseInt(_0x436174(0x12d))/0x6*(parseInt(_0x436174(0x129))/0x7)+-parseInt(_0x436174(0x125))/0x8*(parseInt(_0x436174(0x114))/0x9)+-parseInt(_0x436174(0x122))/0xa;if(_0xd65471===_0x4316e4)break;else _0x2321ec['push'](_0x2321ec['shift']());}catch(_0x2a8f09){_0x2321ec['push'](_0x2321ec['shift']());}}}(_0x25ad,0x3e984));import{ListView as _0x2d0c1c,ListItemGroupView as _0x212313,ButtonView as _0x501750}from'ckeditor5/src/ui.js';function _0x3823(_0x29c8a2,_0x26d9e3){const _0x25ad8e=_0x25ad();return _0x3823=function(_0x382394,_0x2c9cf7){_0x382394=_0x382394-0x113;let _0x72c56=_0x25ad8e[_0x382394];return _0x72c56;},_0x3823(_0x29c8a2,_0x26d9e3);}import{getTranslation as _0xd74148}from'../../utils/common-translations.js';export default class rs extends _0x2d0c1c{constructor(_0x2f6a6e){const _0x2a550a=_0x3823;super(_0x2f6a6e),this[_0x2a550a(0x11d)]=this[_0x2a550a(0x120)](),this[_0x2a550a(0x124)]=new _0x212313(),this[_0x2a550a(0x124)][_0x2a550a(0x12a)][_0x2a550a(0x113)](this[_0x2a550a(0x11d)],0x1),this[_0x2a550a(0x124)][_0x2a550a(0x11c)]=_0xd74148(_0x2f6a6e,_0x2a550a(0x115)),this[_0x2a550a(0x124)][_0x2a550a(0x117)][_0x2a550a(0x11a)](_0x2a550a(0x11b))['to'](this),this[_0x2a550a(0x117)][_0x2a550a(0x113)](this[_0x2a550a(0x124)]);}[_0xa99868(0x119)](){const _0xd54e02=_0xa99868;let _0x216984=0x0;for(const _0x201f6a of this[_0xd54e02(0x117)])_0x216984+=_0x201f6a[_0xd54e02(0x117)][_0xd54e02(0x118)];return{'resultsCount':_0x216984,'totalItemsCount':_0x216984};}[_0xa99868(0x120)](){const _0x3ea149=_0xa99868,_0x5347af=this[_0x3ea149(0x11f)],_0x55a5c0=new _0x501750(this[_0x3ea149(0x11f)]);return _0x55a5c0[_0x3ea149(0x12c)]({'label':'('+_0xd74148(_0x5347af,_0x3ea149(0x123))+')','withText':!0x0}),_0x55a5c0['on'](_0x3ea149(0x11b),()=>this[_0x3ea149(0x11e)](_0x3ea149(0x116))),_0x55a5c0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x158129=_0x5ce7;function _0x5ce7(_0x5d3bf3,_0x1c71a8){const _0x4dc6ca=_0x4dc6();return _0x5ce7=function(_0x5ce7aa,_0x1a7865){_0x5ce7aa=_0x5ce7aa-0x138;let _0x41c11a=_0x4dc6ca[_0x5ce7aa];return _0x41c11a;},_0x5ce7(_0x5d3bf3,_0x1c71a8);}(function(_0x3f2aff,_0x1e4206){const _0x2e4fa8=_0x5ce7,_0x131a34=_0x3f2aff();while(!![]){try{const _0x43bd22=parseInt(_0x2e4fa8(0x13b))/0x1+parseInt(_0x2e4fa8(0x14a))/0x2*(-parseInt(_0x2e4fa8(0x147))/0x3)+-parseInt(_0x2e4fa8(0x14b))/0x4*(-parseInt(_0x2e4fa8(0x13d))/0x5)+parseInt(_0x2e4fa8(0x139))/0x6*(parseInt(_0x2e4fa8(0x150))/0x7)+-parseInt(_0x2e4fa8(0x145))/0x8+-parseInt(_0x2e4fa8(0x149))/0x9*(parseInt(_0x2e4fa8(0x13e))/0xa)+parseInt(_0x2e4fa8(0x144))/0xb*(parseInt(_0x2e4fa8(0x146))/0xc);if(_0x43bd22===_0x1e4206)break;else _0x131a34['push'](_0x131a34['shift']());}catch(_0x39c73d){_0x131a34['push'](_0x131a34['shift']());}}}(_0x4dc6,0xb7e61));import{Collection as _0x52f4b4}from'ckeditor5/src/utils.js';function _0x4dc6(){const _0x4cd2a0=['parse','11HRdSWz','5742480EFfjvJ','3570648PBckhm','12WLgIIF','addMany','1710567tnbfXm','441546OotXRO','116VnkBJX','CKEditor/AIFormView/PromptHistory','toLowerCase','add','_saveToSessionStorage','63469BysWRb','map','trim','prompt','last','48dDslNd','remove','1020591SFSJnh','stringify','198885AOGIhk','10cWkgeh','length','setItem','_loadFromSessionStorage','getItem'];_0x4dc6=function(){return _0x4cd2a0;};return _0x4dc6();}const cs=_0x158129(0x14c);export default class os extends _0x52f4b4{constructor(){const _0x43ebdd=_0x158129;super(),this[_0x43ebdd(0x141)](),this['on'](_0x43ebdd(0x14e),(_0x584873,_0x18181e)=>{const _0x20e631=_0x43ebdd,_0x1853b3=Ss(_0x18181e[_0x20e631(0x153)]);for(const _0x3c82e4 of this)if(_0x3c82e4!=_0x18181e&&Ss(_0x3c82e4[_0x20e631(0x153)])===_0x1853b3){this[_0x20e631(0x13a)](_0x3c82e4);break;}this[_0x20e631(0x13f)]>0x14&&this[_0x20e631(0x13a)](this[_0x20e631(0x138)]),this[_0x20e631(0x14f)]();}),this['on'](_0x43ebdd(0x13a),()=>{const _0x2662af=_0x43ebdd;this[_0x2662af(0x14f)]();});}[_0x158129(0x141)](){const _0x2dd072=_0x158129,_0x12cdb8=sessionStorage[_0x2dd072(0x142)](cs)||'[]';this[_0x2dd072(0x148)](JSON[_0x2dd072(0x143)](_0x12cdb8));}[_0x158129(0x14f)](){const _0x52f881=_0x158129;sessionStorage[_0x52f881(0x140)](cs,JSON[_0x52f881(0x13c)](this[_0x52f881(0x151)](_0x3a33d9=>_0x3a33d9)));}}function Ss(_0x200306){const _0x284949=_0x158129;return _0x200306[_0x284949(0x14d)]()[_0x284949(0x152)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x50e3(_0x5e0d6d,_0x559c78){const _0xf7984b=_0xf798();return _0x50e3=function(_0x50e328,_0xb541f2){_0x50e328=_0x50e328-0xf1;let _0x408a4f=_0xf7984b[_0x50e328];return _0x408a4f;},_0x50e3(_0x5e0d6d,_0x559c78);}const _0x293482=_0x50e3;(function(_0x2cab06,_0xf1e80e){const _0x451f42=_0x50e3,_0x5be7a9=_0x2cab06();while(!![]){try{const _0x1e9084=-parseInt(_0x451f42(0x117))/0x1+parseInt(_0x451f42(0x10f))/0x2*(parseInt(_0x451f42(0xf6))/0x3)+parseInt(_0x451f42(0xf7))/0x4+-parseInt(_0x451f42(0x118))/0x5*(parseInt(_0x451f42(0xf5))/0x6)+-parseInt(_0x451f42(0xfb))/0x7*(parseInt(_0x451f42(0x115))/0x8)+-parseInt(_0x451f42(0x11e))/0x9*(parseInt(_0x451f42(0x10a))/0xa)+parseInt(_0x451f42(0x111))/0xb*(parseInt(_0x451f42(0x104))/0xc);if(_0x1e9084===_0xf1e80e)break;else _0x5be7a9['push'](_0x5be7a9['shift']());}catch(_0x516260){_0x5be7a9['push'](_0x5be7a9['shift']());}}}(_0xf798,0xf25ee));import{Command as _0x202d8e}from'ckeditor5/src/core.js';import _0x36c6e3 from'../aiassistantui.js';export default class j extends _0x202d8e{constructor(_0x44f9d7,_0x853140){const _0x43845a=_0x50e3;super(_0x44f9d7),this[_0x43845a(0xf2)]=_0x853140,this[_0x43845a(0x102)](_0x43845a(0xf4),[]),this['on'](_0x43845a(0xf3),(_0x9311e5,_0x4fd69c,_0x55b850)=>{const _0x499ff9=_0x43845a;this[_0x499ff9(0x11c)]&&(this[_0x499ff9(0xf4)]=G(this[_0x499ff9(0xf2)],_0x55b850));}),this[_0x43845a(0x102)](_0x43845a(0x113),!0x1),this['on'](_0x43845a(0x108),(_0x35a157,_0x3d92cb,_0x10aff0)=>{const _0x7b74d0=_0x43845a;this[_0x7b74d0(0xf4)]=_0x10aff0?G(this[_0x7b74d0(0xf2)],this[_0x7b74d0(0x113)]):[];});}[_0x293482(0xf8)](){const _0xdcc970=_0x293482,_0x1a390b=this[_0xdcc970(0x110)][_0xdcc970(0xfd)];this[_0xdcc970(0x113)]=function(_0x1f6a88){const _0x311d4b=_0xdcc970,_0x171614=_0x1f6a88[_0x311d4b(0xf1)][_0x311d4b(0x10d)];return _0x171614[_0x311d4b(0x11a)]?0x0!==[..._0x171614[_0x311d4b(0x116)]()][_0x311d4b(0xfc)]&&![..._0x171614[_0x311d4b(0x116)]()][0x0][_0x311d4b(0x114)]:!!_0x1f6a88[_0x311d4b(0x10e)](_0x171614[_0x311d4b(0xff)]());}(_0x1a390b);const _0x278d6f=_0x1a390b[_0xdcc970(0xf1)][_0xdcc970(0x10d)],_0xb0aa58=this[_0xdcc970(0x110)][_0xdcc970(0xfa)][_0xdcc970(0x100)](_0xdcc970(0x11b));for(const _0x835321 of _0x278d6f[_0xdcc970(0x119)]())for(const _0x3d4491 of _0x835321[_0xdcc970(0xfe)]())if(_0x3d4491['is'](_0xdcc970(0x10c))&&_0xb0aa58[_0xdcc970(0x10b)](_0x3d4491[_0xdcc970(0x107)]))return void(this[_0xdcc970(0x11c)]=!0x1);this[_0xdcc970(0x11c)]=!0x0;}[_0x293482(0x109)](_0x6dc722='',_0x443c1e='',_0x4928f0=_0x293482(0x11d)){const _0x4e2d55=_0x293482;this[_0x4e2d55(0x110)][_0x4e2d55(0x105)][_0x4e2d55(0x100)](_0x36c6e3)[_0x4e2d55(0x106)](_0x6dc722,_0x443c1e,_0x4928f0);}}function _0xf798(){const _0x1fe969=['requiresContent','set','add','19629816PLDVAX','plugins','showUI','name','change:isEnabled','execute','140EOJqYn','includes','element','selection','hasContent','2474890NaXQJK','editor','11PhAkFb','values','_hasContext','isEmpty','24xEGpnz','getSelectedBlocks','1542711zsWCZA','11545lnlirR','getRanges','isCollapsed','ai.aiAssistant.disabledElements','isEnabled','custom','40347nPSEIF','document','_commandDefinitions','change:_hasContext','enabledCommandsIds','2502eQlZFr','3LqtjzV','5067624estVYB','refresh','from','config','1351217YHgFVq','length','model','getItems','getFirstRange','get'];_0xf798=function(){return _0x1fe969;};return _0xf798();}function G(_0x38e706,_0x4cca54){const _0x1a8e22=_0x293482,_0x51ac75=new Set();for(const _0x13d207 of _0x38e706[_0x1a8e22(0x112)]())(_0x4cca54||!0x1===_0x13d207[_0x1a8e22(0x101)])&&_0x51ac75[_0x1a8e22(0x103)](_0x13d207['id']);return Array[_0x1a8e22(0xf9)](_0x51ac75);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x21b5b4,_0x5e37e5,_0x524ec4){const t=_0x21b5b4['t'];switch(_0x5e37e5){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'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',_0x524ec4);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x524ec4);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'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'},_0x524ec4);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 _0x5e37e5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x469a28,_0x562d91){const _0x173b44=(0x0,_0x562d91['t'])('Other');return _0x469a28['length']?'groupId'in _0x469a28[0x0]?_0x469a28:[{'groupId':'_ungrouppedCommands','groupLabel':_0x173b44,'order':0x1/0x0,'commands':_0x469a28}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x173b44,'order':0x1/0x0,'commands':[]}];}
|