@ckeditor/ckeditor5-ai 42.0.0-alpha.12 → 42.0.0-alpha.14
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 +6 -6
- 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
|
-
function
|
|
24
|
-
|
|
23
|
+
function _0x4f2c(){const _0x3226e3=['startProcessing','text/html','_normalizeResponseHeadings','htmlProcessor','toModel','```html','endsWith','ELEMENT_NODE','mainAction','rename','domConverter','currentContext','796lEiOjy','_sanitizeHTML','_xmlSerializer','makeRequest','stopProcessing','substring','stopListening','editor','nodeType','previousLabel','reset','2518640NdSqnx','data','2569kwNGQT','viewToDom','_sanitizationContainer','previousContext','push','updateView','value','reverse','length','isRendered','currentResponse','then','_isH1TagSupportEnabled','div','finally','processor','_domParser','prompt','toView','document','serializeToString','stringify','childNodes','_parseAndNormalizeContent','querySelector','editing','173455NybNbW','element','innerHTML','view','282PaTfPY','finishProcessing','previousQuery','369084JQSZoe','destroy','120fSAlSn','_stripMarkdownSyntax','904653lciyCp','setContentOf','```','exec','startsWith','abort','once','custom','handleError','_handleQuery','isProcessing','<h1></h1>','createElement','submitPrompt','1JyHHYA','textAdapter','parseFromString','set:currentContext','render','tryAgainEvent','previousActionId','from','trim','body','listenTo','initialContext','set','catch','20496ttaAhx','remove','8HerZPc','name','match','4136VdTfsk','message'];_0x4f2c=function(){return _0x3226e3;};return _0x4f2c();}const _0x13f48f=_0x5689;(function(_0x40e443,_0x229d99){const _0x5df312=_0x5689,_0x1e931e=_0x40e443();while(!![]){try{const _0x4581ba=-parseInt(_0x5df312(0x219))/0x1*(parseInt(_0x5df312(0x207))/0x2)+-parseInt(_0x5df312(0x209))/0x3*(-parseInt(_0x5df312(0x23a))/0x4)+parseInt(_0x5df312(0x200))/0x5+parseInt(_0x5df312(0x204))/0x6*(-parseInt(_0x5df312(0x1e6))/0x7)+-parseInt(_0x5df312(0x229))/0x8*(parseInt(_0x5df312(0x20b))/0x9)+-parseInt(_0x5df312(0x1e4))/0xa+-parseInt(_0x5df312(0x22c))/0xb*(-parseInt(_0x5df312(0x227))/0xc);if(_0x4581ba===_0x229d99)break;else _0x1e931e['push'](_0x1e931e['shift']());}catch(_0x24722b){_0x1e931e['push'](_0x1e931e['shift']());}}}(_0x4f2c,0x1fe7f));function _0x5689(_0x302b07,_0x58fd5a){const _0x4f2ce9=_0x4f2c();return _0x5689=function(_0x568995,_0x5051a0){_0x568995=_0x568995-0x1e4;let _0x2e30af=_0x4f2ce9[_0x568995];return _0x2e30af;},_0x5689(_0x302b07,_0x58fd5a);}import{ObservableMixin as _0x2bc1bb}from'ckeditor5/src/utils.js';import{AIRequestError as _0x674196}from'../adapters/aiadapter.js';import{Matcher as _0x317aee,UpcastWriter as _0x336fb9}from'ckeditor5/src/engine.js';const X=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2bc1bb(){constructor(_0x138d82,_0x435043,_0x2c3a5b){const _0x3483e5=_0x5689;super(),this[_0x3483e5(0x241)]=_0x138d82,this[_0x3483e5(0x21a)]=_0x435043,this[_0x3483e5(0x1e8)]=document[_0x3483e5(0x217)](_0x3483e5(0x1f3)),this[_0x3483e5(0x1f6)]=new DOMParser(),this[_0x3483e5(0x23c)]=new XMLSerializer(),this[_0x3483e5(0x203)]=_0x2c3a5b,this[_0x3483e5(0x225)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x3483e5(0x21c),(_0x4f45ce,_0x2b911a,_0x3cfa0a)=>{const _0x424ba1=_0x3483e5;this[_0x424ba1(0x203)][_0x424ba1(0x1ec)]=this[_0x424ba1(0x23b)](_0x3cfa0a);}),this[_0x3483e5(0x223)](this[_0x3483e5(0x203)],_0x3483e5(0x218),(_0x53140d,_0x12c2e4)=>{const _0x1e648b=_0x3483e5,_0x156685=this[_0x1e648b(0x239)]||this[_0x1e648b(0x224)];this[_0x1e648b(0x214)](_0x12c2e4,_0x156685,_0x1e648b(0x212));}),this[_0x3483e5(0x223)](this[_0x3483e5(0x203)],_0x3483e5(0x21e),()=>{const _0x238c64=_0x3483e5;this[_0x238c64(0x203)][_0x238c64(0x1f7)]=this[_0x238c64(0x243)],this[_0x238c64(0x214)](this[_0x238c64(0x206)],this[_0x238c64(0x1e9)],this[_0x238c64(0x21f)],this[_0x238c64(0x243)]);}),this[_0x3483e5(0x223)](this[_0x3483e5(0x203)],_0x3483e5(0x23e),()=>{const _0x407695=_0x3483e5;this[_0x407695(0x23e)]();});}[_0x13f48f(0x208)](){const _0x4a7e87=_0x13f48f;this[_0x4a7e87(0x240)]();}async[_0x13f48f(0x1eb)]({actionId:_0x112952,query:_0x2cbe05,htmlContent:_0x455d36,label:_0x99907e,mainActionLabel:_0x1b173b}){const _0x5254ea=_0x13f48f;this[_0x5254ea(0x203)][_0x5254ea(0x1f7)]=_0x99907e,this[_0x5254ea(0x203)][_0x5254ea(0x236)]=_0x1b173b,this[_0x5254ea(0x224)]=_0x455d36,_0x2cbe05&&(this[_0x5254ea(0x203)][_0x5254ea(0x1ef)]?this[_0x5254ea(0x214)](_0x2cbe05,_0x455d36,_0x112952,_0x99907e):this[_0x5254ea(0x203)][_0x5254ea(0x211)](_0x5254ea(0x21d),()=>{const _0x739399=_0x5254ea;this[_0x739399(0x214)](_0x2cbe05,_0x455d36,_0x112952,_0x99907e);}));}[_0x13f48f(0x23e)](){const _0x259474=_0x13f48f;this[_0x259474(0x215)]&&(this[_0x259474(0x215)]=!0x1,this[_0x259474(0x203)][_0x259474(0x205)](),this[_0x259474(0x21a)][_0x259474(0x210)]());}[_0x13f48f(0x244)](){const _0x1e1304=_0x13f48f;this[_0x1e1304(0x224)]='',this[_0x1e1304(0x239)]='',this[_0x1e1304(0x1f0)]='',this[_0x1e1304(0x1e9)]='',this[_0x1e1304(0x206)]='',this[_0x1e1304(0x243)]='',this[_0x1e1304(0x21f)]=void 0x0,this[_0x1e1304(0x203)][_0x1e1304(0x244)](),this[_0x1e1304(0x23e)]();}async[_0x13f48f(0x214)](_0x4860a5,_0x462229,_0x5c1cdd,_0x16f2c6){const _0x5c08cc=_0x13f48f;return this[_0x5c08cc(0x215)]=!0x0,this[_0x5c08cc(0x203)][_0x5c08cc(0x22e)](),this[_0x5c08cc(0x1e9)]=_0x462229,this[_0x5c08cc(0x206)]=_0x4860a5,this[_0x5c08cc(0x243)]=_0x16f2c6||_0x4860a5,this[_0x5c08cc(0x21f)]=_0x5c1cdd,new Promise(_0x22898f=>{const _0x30ca95=_0x5c08cc;this[_0x30ca95(0x21a)][_0x30ca95(0x23d)]({'query':_0x4860a5,'context':_0x462229,'onData':_0x173e57=>{const _0x56e7cd=_0x30ca95;this[_0x56e7cd(0x1f0)]=_0x173e57,this[_0x56e7cd(0x239)]=this[_0x56e7cd(0x1fd)](this[_0x56e7cd(0x1f0)]);},'actionId':_0x5c1cdd})[_0x30ca95(0x1f1)](()=>{const _0x205a2e=_0x30ca95;!this[_0x205a2e(0x239)]&&this[_0x205a2e(0x1f0)]&&(this[_0x205a2e(0x239)]=this[_0x205a2e(0x1fd)](this[_0x205a2e(0x1f0)],!0x0));})[_0x30ca95(0x226)](_0x5f2a03=>{const _0x51a155=_0x30ca95;_0x5f2a03 instanceof _0x674196?this[_0x51a155(0x203)][_0x51a155(0x213)](_0x5f2a03[_0x51a155(0x22d)]):this[_0x51a155(0x203)][_0x51a155(0x213)](),_0x22898f();})[_0x30ca95(0x1f4)](()=>{const _0x4388b4=_0x30ca95;this[_0x4388b4(0x23e)](),_0x22898f();});});}[_0x13f48f(0x1fd)](_0x489f33,_0x1ff7c9=!0x1){const _0x456bea=_0x13f48f,_0x385c50=X[_0x456bea(0x20e)](_0x489f33);_0x489f33=_0x385c50?_0x489f33[_0x456bea(0x23f)](_0x385c50[0x1][_0x456bea(0x1ee)]):_0x489f33[_0x456bea(0x1ee)]<0x64&&!_0x1ff7c9?'':this[_0x456bea(0x20a)](_0x489f33);const _0x241128=this[_0x456bea(0x1f6)][_0x456bea(0x21b)](_0x489f33,_0x456bea(0x22f));if(_0x385c50){const _0x311c17=Array[_0x456bea(0x220)](_0x241128[_0x456bea(0x222)][_0x456bea(0x1fc)]);_0x311c17[_0x456bea(0x1ed)]();for(const _0x23ea5a of _0x311c17){if(_0x23ea5a[_0x456bea(0x242)]==Node[_0x456bea(0x235)])break;_0x23ea5a[_0x456bea(0x228)]();}}const _0x48a91f=this[_0x456bea(0x241)][_0x456bea(0x1e5)][_0x456bea(0x1f5)][_0x456bea(0x1f8)](this[_0x456bea(0x23c)][_0x456bea(0x1fa)](_0x241128[_0x456bea(0x222)]));return this[_0x456bea(0x1f2)]()||this[_0x456bea(0x230)](_0x48a91f),this[_0x456bea(0x241)][_0x456bea(0x1e5)][_0x456bea(0x1fb)](this[_0x456bea(0x241)][_0x456bea(0x1e5)][_0x456bea(0x232)](_0x48a91f));}[_0x13f48f(0x230)](_0x5648c9){const _0x39c74d=_0x13f48f,_0x1e5da3=new _0x336fb9(this[_0x39c74d(0x241)][_0x39c74d(0x1ff)][_0x39c74d(0x203)][_0x39c74d(0x1f9)]),_0x48ef7b=new _0x317aee({'name':/^h[1-5]$/}),_0x547cf3=[];let _0x8f6140=!0x1;for(const _0x1cd5c4 of _0x5648c9)_0x1cd5c4['is'](_0x39c74d(0x201))&&_0x48ef7b[_0x39c74d(0x22b)](_0x1cd5c4)&&(_0x547cf3[_0x39c74d(0x1ea)](_0x1cd5c4),'h1'==_0x1cd5c4[_0x39c74d(0x22a)]&&(_0x8f6140=!0x0));if(_0x8f6140){for(const _0x3d78f1 of _0x547cf3)_0x1e5da3[_0x39c74d(0x237)]('h'+(parseInt(_0x3d78f1[_0x39c74d(0x22a)][0x1])+0x1),_0x3d78f1);}}[_0x13f48f(0x1f2)](){const _0x5cd2d2=_0x13f48f,{data:_0x5db92a,editing:_0x1d0bb8}=this[_0x5cd2d2(0x241)],_0x320fab=_0x5db92a[_0x5cd2d2(0x231)][_0x5cd2d2(0x1f8)](_0x5cd2d2(0x216)),_0x52dfeb=_0x5db92a[_0x5cd2d2(0x1f8)](_0x5db92a[_0x5cd2d2(0x232)](_0x320fab));return!!_0x1d0bb8[_0x5cd2d2(0x203)][_0x5cd2d2(0x238)][_0x5cd2d2(0x1e7)](_0x52dfeb)[_0x5cd2d2(0x1fe)]('h1');}[_0x13f48f(0x23b)](_0x2136b6){const _0x40db9d=_0x13f48f;return this[_0x40db9d(0x241)][_0x40db9d(0x1ff)][_0x40db9d(0x203)][_0x40db9d(0x238)][_0x40db9d(0x20c)](this[_0x40db9d(0x1e8)],_0x2136b6),this[_0x40db9d(0x1e8)][_0x40db9d(0x202)];}[_0x13f48f(0x20a)](_0x235fc2){const _0x1b9ca9=_0x13f48f,_0x54dcd8=_0x235fc2[_0x1b9ca9(0x221)]();return _0x54dcd8[_0x1b9ca9(0x20f)](_0x1b9ca9(0x233))?_0x54dcd8[_0x1b9ca9(0x234)](_0x1b9ca9(0x20d))?_0x54dcd8[_0x1b9ca9(0x23f)](0x7,_0x54dcd8[_0x1b9ca9(0x1ee)]-0x3):_0x54dcd8[_0x1b9ca9(0x23f)](0x7):_0x235fc2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1078(_0x30673c,_0x51fe8e){const _0x97584=_0x9758();return _0x1078=function(_0x1078a7,_0x1be24a){_0x1078a7=_0x1078a7-0x144;let _0x3f0ce6=_0x97584[_0x1078a7];return _0x3f0ce6;},_0x1078(_0x30673c,_0x51fe8e);}const _0x173e9e=_0x1078;(function(_0x1aa550,_0xe8576e){const _0x54bb23=_0x1078,_0x15b3f1=_0x1aa550();while(!![]){try{const _0x46a0ac=-parseInt(_0x54bb23(0x14e))/0x1+-parseInt(_0x54bb23(0x149))/0x2+-parseInt(_0x54bb23(0x150))/0x3+-parseInt(_0x54bb23(0x15f))/0x4+parseInt(_0x54bb23(0x15c))/0x5*(-parseInt(_0x54bb23(0x15a))/0x6)+-parseInt(_0x54bb23(0x151))/0x7*(parseInt(_0x54bb23(0x158))/0x8)+parseInt(_0x54bb23(0x15d))/0x9;if(_0x46a0ac===_0xe8576e)break;else _0x15b3f1['push'](_0x15b3f1['shift']());}catch(_0x108e00){_0x15b3f1['push'](_0x15b3f1['shift']());}}}(_0x9758,0x569af));function _0x9758(){const _0x4c2d1f=['get','167010wlRiVz','set','1825101XAjIsk','24171wjRHPs','isVisible','first','listbox','children','highlightText','length','88vCvguV','commandDefinition','996jIyeav','labelView','16280UiHYRy','19530387cJTmwN','includes','600440DrniFF','items','filter','isEnabled','role','label','622684vFuRQR','enabledCommandsIds','change:enabledCommandsIds','match'];_0x9758=function(){return _0x4c2d1f;};return _0x9758();}import{ListView as _0x3b8196,ListItemGroupView as _0x5016f7}from'ckeditor5/src/ui.js';import{AICommandsListItemView as _0x198c93}from'../../aiassistantui.js';export default class U extends _0x3b8196{constructor(_0x230dec){const _0x48655b=_0x1078;super(_0x230dec),this[_0x48655b(0x147)]=_0x48655b(0x154),this[_0x48655b(0x14f)](_0x48655b(0x14a),[]),this['on'](_0x48655b(0x14b),()=>{const _0x58817c=_0x48655b;for(const _0x5c92b6 of this[_0x58817c(0x144)])if(_0x5c92b6 instanceof _0x5016f7){for(const _0x41fb2e of _0x5c92b6[_0x58817c(0x144)])if(_0x41fb2e instanceof _0x198c93){const _0x4ebbf2=_0x41fb2e[_0x58817c(0x155)][_0x58817c(0x14d)](0x0);this[_0x58817c(0x14a)][_0x58817c(0x15e)](_0x41fb2e[_0x58817c(0x159)]['id'])?_0x4ebbf2[_0x58817c(0x146)]=!0x0:_0x4ebbf2[_0x58817c(0x146)]=!0x1;}}});}[_0x173e9e(0x145)](_0x5becc6){const _0x46e694=_0x173e9e;let _0x3649e1=0x0,_0x264615=0x0;for(const _0x3ccfe3 of this[_0x46e694(0x144)]){const _0x27e9df=_0x3ccfe3,_0x5077ff=_0x27e9df[_0x46e694(0x144)],_0x4e6a02=_0x5becc6&&!!_0x27e9df[_0x46e694(0x148)][_0x46e694(0x14c)](_0x5becc6);_0x27e9df[_0x46e694(0x15b)][_0x46e694(0x156)](_0x4e6a02?_0x5becc6:null);for(const _0x195f9a of _0x5077ff){const _0x576517=_0x195f9a[_0x46e694(0x155)][_0x46e694(0x153)],_0x52e6c1=_0x576517[_0x46e694(0x15b)];if(_0x5becc6){const _0x334016=!!_0x576517[_0x46e694(0x148)][_0x46e694(0x14c)](_0x5becc6);_0x52e6c1[_0x46e694(0x156)](_0x334016?_0x5becc6:null),_0x195f9a[_0x46e694(0x152)]=_0x4e6a02||_0x334016;}else _0x195f9a[_0x46e694(0x152)]=!0x0,_0x52e6c1[_0x46e694(0x156)](null);}const _0x433fbc=_0x5077ff[_0x46e694(0x145)](_0xe847f4=>_0xe847f4[_0x46e694(0x152)])[_0x46e694(0x157)];_0x3649e1+=_0x27e9df[_0x46e694(0x144)][_0x46e694(0x157)],_0x264615+=_0x4e6a02?_0x27e9df[_0x46e694(0x144)][_0x46e694(0x157)]:_0x433fbc,_0x27e9df[_0x46e694(0x152)]=_0x4e6a02||!!_0x433fbc;}return{'resultsCount':_0x264615,'totalItemsCount':_0x3649e1};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x38e4(){const _0x37a757=['528106lYXgnc','6tKDoUJ','472SCHSzK','style','3212770hnGSYZ','42428016GBrHhz','108rxpNaZ','1HruRDV','745260LqvKst','extendTemplate','14NnaILc','976168Wcgnrx','set','bindTemplate','3825BNkxhg','ck-button__label','4257990NljBIp'];_0x38e4=function(){return _0x37a757;};return _0x38e4();}function _0x34b7(_0x2dca41,_0x1ce6d0){const _0x38e430=_0x38e4();return _0x34b7=function(_0x34b70e,_0x130aa3){_0x34b70e=_0x34b70e-0x180;let _0x333224=_0x38e430[_0x34b70e];return _0x333224;},_0x34b7(_0x2dca41,_0x1ce6d0);}(function(_0x5f350a,_0x4ca399){const _0x59ac36=_0x34b7,_0x188635=_0x5f350a();while(!![]){try{const _0x5db66e=-parseInt(_0x59ac36(0x181))/0x1*(parseInt(_0x59ac36(0x18b))/0x2)+parseInt(_0x59ac36(0x188))/0x3*(-parseInt(_0x59ac36(0x18d))/0x4)+parseInt(_0x59ac36(0x18f))/0x5*(-parseInt(_0x59ac36(0x18c))/0x6)+-parseInt(_0x59ac36(0x184))/0x7*(parseInt(_0x59ac36(0x185))/0x8)+parseInt(_0x59ac36(0x180))/0x9*(-parseInt(_0x59ac36(0x182))/0xa)+-parseInt(_0x59ac36(0x18a))/0xb+parseInt(_0x59ac36(0x190))/0xc;if(_0x5db66e===_0x4ca399)break;else _0x188635['push'](_0x188635['shift']());}catch(_0x5e07d4){_0x188635['push'](_0x188635['shift']());}}}(_0x38e4,0xe8b4f));import{HighlightedTextView as _0xc6c94}from'ckeditor5/src/ui.js';export default class N extends _0xc6c94{constructor(){const _0x549e90=_0x34b7;super(),this[_0x549e90(0x186)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x3afbf4=this[_0x549e90(0x187)];this[_0x549e90(0x183)]({'attributes':{'class':[_0x549e90(0x189)],'style':_0x3afbf4['to'](_0x549e90(0x18e)),'id':_0x3afbf4['to']('id')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1038(_0x2824b3,_0x12b50f){const _0x57e23f=_0x57e2();return _0x1038=function(_0x103852,_0x5e52f7){_0x103852=_0x103852-0xec;let _0x5c5e38=_0x57e23f[_0x103852];return _0x5c5e38;},_0x1038(_0x2824b3,_0x12b50f);}function _0x57e2(){const _0x38e4c6=['1154857cpBpLe','124VluRGA','9Zmuxjn','ck-editor__label_','910482NJRheY','bindTemplate','ck-label','529547NisNzG','104694ZlHgIH','50XzWchS','978392OcqjIv','for','1162035PJfTUS','set','10gGZlki','16698krsaVx','extendTemplate'];_0x57e2=function(){return _0x38e4c6;};return _0x57e2();}(function(_0xd1de41,_0x3d94ef){const _0x57583d=_0x1038,_0x41b431=_0xd1de41();while(!![]){try{const _0x46db74=-parseInt(_0x57583d(0xf6))/0x1+parseInt(_0x57583d(0xf3))/0x2+-parseInt(_0x57583d(0xed))/0x3*(parseInt(_0x57583d(0xf0))/0x4)+parseInt(_0x57583d(0xf8))/0x5*(parseInt(_0x57583d(0xf7))/0x6)+parseInt(_0x57583d(0xfb))/0x7+parseInt(_0x57583d(0xf9))/0x8*(parseInt(_0x57583d(0xf1))/0x9)+-parseInt(_0x57583d(0xec))/0xa*(-parseInt(_0x57583d(0xef))/0xb);if(_0x46db74===_0x3d94ef)break;else _0x41b431['push'](_0x41b431['shift']());}catch(_0x50a1b2){_0x41b431['push'](_0x41b431['shift']());}}}(_0x57e2,0x4e5a1));import{HighlightedTextView as _0x399ec3}from'ckeditor5/src/ui.js';import{uid as _0x1267ab}from'ckeditor5/src/utils.js';export default class S extends _0x399ec3{constructor(){const _0x5f02b9=_0x1038;super(),this[_0x5f02b9(0xfc)](_0x5f02b9(0xfa),void 0x0);const _0x4617e2=this[_0x5f02b9(0xf4)];this['id']=_0x5f02b9(0xf2)+_0x1267ab(),this[_0x5f02b9(0xee)]({'attributes':{'class':['ck',_0x5f02b9(0xf5)],'id':this['id'],'for':_0x4617e2['to'](_0x5f02b9(0xfa))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x274083=_0x125c;(function(_0x17e579,_0x523bf7){const _0x19204c=_0x125c,_0x2d4121=_0x17e579();while(!![]){try{const _0x154172=parseInt(_0x19204c(0x1a5))/0x1*(-parseInt(_0x19204c(0x1a4))/0x2)+parseInt(_0x19204c(0x19a))/0x3+-parseInt(_0x19204c(0x1a6))/0x4*(parseInt(_0x19204c(0x1c9))/0x5)+parseInt(_0x19204c(0x1a9))/0x6*(parseInt(_0x19204c(0x1cf))/0x7)+parseInt(_0x19204c(0x1be))/0x8*(-parseInt(_0x19204c(0x196))/0x9)+-parseInt(_0x19204c(0x1e2))/0xa+parseInt(_0x19204c(0x1ca))/0xb;if(_0x154172===_0x523bf7)break;else _0x2d4121['push'](_0x2d4121['shift']());}catch(_0x3d1d76){_0x2d4121['push'](_0x2d4121['shift']());}}}(_0x260b,0x6bf36));function _0x125c(_0x7d7f3,_0x37e835){const _0x260b25=_0x260b();return _0x125c=function(_0x125c53,_0x39552f){_0x125c53=_0x125c53-0x18f;let _0x55b63f=_0x260b25[_0x125c53];return _0x55b63f;},_0x125c(_0x7d7f3,_0x37e835);}import{global as _0x15ae43}from'ckeditor5/src/utils.js';import{View as _0x35f761,ButtonView as _0x5aa58d,SpinnerView as _0x21af91}from'ckeditor5/src/ui.js';import _0x562526 from'../../../theme/icons/copy.svg';function _0x260b(){const _0x2c075c=['\x20ck-ai-form__copy-button--copied','setEndBefore','6562312TPwIEE','setContent','.ck-ai-form__loader','firstElementChild','textContent','element','loaderView','execute','ck-ai-form__copy-button-wrapper','ck-ai-form__content-field','scrollHeight','70370CmkMno','18143268gPgRTt','change:isProcessing','setStartAfter','style','div','1726060szcver','ClipboardItem','write','lastElementChild','ck-ai-form__content-area-wrapper','createElement','text/plain','icon','ck-ai-form__loader','class','ck-ai-form__content-area','copy','appendChild','text/html','ck-ai-form__copy-button','addRange','appendLoader','focus','querySelector','4636740qKGfcg','locale','removeAllRanges','_createLoader','execCommand','isProcessing','contentFieldView','change:value','isEnabled','ck-hidden','set','9VHNKKz','ck-content','setTemplate','_createCopyButton','1556229cSacQe','render','getSelection','Copy','_copyHTMLToClipboard','mousedown','isVisible','wheel','copyButtonView','value','364NTrpdZ','3437LOdZZM','88RsvxhE','innerHTML','AI\x20is\x20writing...','12eSNDfj','scrollTo','bind','-9999px','smooth','<span>]</span>','body','ck-reset_all-excluded','position','createRange','remove','bindTemplate','listenTo','absolute','check','<span>[</span>','ck-ai-form__content-area--processing','left','clipboard'];_0x260b=function(){return _0x2c075c;};return _0x260b();}import{getTranslation as _0x52be61}from'../../utils/common-translations.js';import{icons as _0x25a137}from'ckeditor5/src/core.js';export default class nt extends _0x35f761{constructor(_0x230db8,_0x55b877=''){const _0x53e126=_0x125c;super(_0x230db8),this[_0x53e126(0x195)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x467e6c=this[_0x53e126(0x1b4)];this[_0x53e126(0x191)]=new ContentFieldView(_0x230db8,_0x55b877),this[_0x53e126(0x1a2)]=this[_0x53e126(0x199)](),this[_0x53e126(0x198)]({'tag':_0x53e126(0x1ce),'attributes':{'class':['ck',_0x53e126(0x1d3),_0x467e6c['if'](_0x53e126(0x1a0),_0x53e126(0x194),_0x3b322e=>!_0x3b322e)],'tabindex':'-1'},'children':[{'tag':_0x53e126(0x1ce),'attributes':{'class':['ck',_0x53e126(0x1d9),_0x467e6c['if'](_0x53e126(0x190),_0x53e126(0x1b9))]},'children':[this[_0x53e126(0x191)],{'tag':_0x53e126(0x1ce),'attributes':{'class':['ck',_0x53e126(0x1c6)]},'children':[this[_0x53e126(0x1a2)]]}]}]});}[_0x274083(0x19b)](){const _0x4075c9=_0x274083;super[_0x4075c9(0x19b)](),this[_0x4075c9(0x1a3)]&&this[_0x4075c9(0x191)][_0x4075c9(0x1bf)](this[_0x4075c9(0x1a3)]);let _0x26eecb=!0x1;this['on'](_0x4075c9(0x192),(_0x94709f,_0x33948f,_0x345c7b)=>{const _0x5eda5a=_0x4075c9,_0x2d1776=!this[_0x5eda5a(0x191)][_0x5eda5a(0x1c3)][_0x5eda5a(0x1e1)](_0x5eda5a(0x1c0));this[_0x5eda5a(0x191)][_0x5eda5a(0x1bf)](_0x345c7b),this[_0x5eda5a(0x190)]&&_0x2d1776&&!_0x26eecb&&this[_0x5eda5a(0x1c3)][_0x5eda5a(0x1aa)]({'top':this[_0x5eda5a(0x1c3)][_0x5eda5a(0x1c8)],'behavior':_0x5eda5a(0x1ad)});}),this['on'](_0x4075c9(0x1cb),(_0x40df19,_0x4572ca,_0x596e0f)=>{const _0x1b7a3e=_0x4075c9;_0x26eecb=!0x1,_0x596e0f?(this[_0x1b7a3e(0x1a3)]=null,this[_0x1b7a3e(0x191)][_0x1b7a3e(0x1df)]()):this[_0x1b7a3e(0x1a3)]||this[_0x1b7a3e(0x191)][_0x1b7a3e(0x1bf)]('');}),this[_0x4075c9(0x1b5)](this[_0x4075c9(0x1c3)],_0x4075c9(0x1a1),()=>{_0x26eecb=!0x0;}),this[_0x4075c9(0x1b5)](this[_0x4075c9(0x1c3)],_0x4075c9(0x19f),()=>{_0x26eecb=!0x0;});}[_0x274083(0x1e0)](){const _0x38ec13=_0x274083;this[_0x38ec13(0x1c3)][_0x38ec13(0x1e0)]();}[_0x274083(0x199)](){const _0x464f44=_0x274083,_0x1c8cc5=this[_0x464f44(0x1e3)],_0x4f8285=new _0x5aa58d(this[_0x464f44(0x1e3)]),_0x2c7e21=_0x464f44(0x1dd);return _0x4f8285[_0x464f44(0x195)]({'label':_0x52be61(_0x1c8cc5,_0x464f44(0x19d)),'icon':_0x562526,'class':_0x2c7e21,'tooltip':!0x0}),_0x4f8285[_0x464f44(0x1ab)](_0x464f44(0x1a0))['to'](this,_0x464f44(0x1a3),_0x128f5f=>!!_0x128f5f),_0x4f8285[_0x464f44(0x1ab)](_0x464f44(0x193))['to'](this,_0x464f44(0x190),_0x2c8a82=>!_0x2c8a82),_0x4f8285['on'](_0x464f44(0x1c5),()=>{const _0x5935e6=_0x464f44;this[_0x5935e6(0x19e)](this[_0x5935e6(0x191)][_0x5935e6(0x1c3)]),_0x4f8285[_0x5935e6(0x1d6)]=_0x25a137[_0x5935e6(0x1b7)],_0x4f8285[_0x5935e6(0x1d8)]=_0x2c7e21+_0x5935e6(0x1bc),this[_0x5935e6(0x1e0)](),setTimeout(()=>{const _0x43ba26=_0x5935e6;_0x4f8285[_0x43ba26(0x1d6)]=_0x562526,_0x4f8285[_0x43ba26(0x1d8)]=_0x2c7e21;},0x3e8);}),_0x4f8285;}[_0x274083(0x19e)](_0x54ebe5){const _0x6a89f0=_0x274083,{window:_0x55907a,document:_0x4903c9}=_0x15ae43;if(_0x55907a[_0x6a89f0(0x1d0)]){const {Blob:_0x5e1040,ClipboardItem:_0x21f6a9}=_0x55907a,_0xbc4f43=[new _0x21f6a9({'text/html':new _0x5e1040([_0x54ebe5[_0x6a89f0(0x1a7)]],{'type':_0x6a89f0(0x1dc)}),'text/plain':new _0x5e1040([_0x54ebe5[_0x6a89f0(0x1c2)]||''],{'type':_0x6a89f0(0x1d5)})})];navigator[_0x6a89f0(0x1bb)][_0x6a89f0(0x1d1)](_0xbc4f43);}else{const _0x151ec2=_0x4903c9[_0x6a89f0(0x1d4)](_0x6a89f0(0x1ce));_0x151ec2[_0x6a89f0(0x1cd)][_0x6a89f0(0x1b1)]=_0x6a89f0(0x1b6),_0x151ec2[_0x6a89f0(0x1cd)][_0x6a89f0(0x1ba)]=_0x6a89f0(0x1ac),_0x151ec2[_0x6a89f0(0x1a7)]=_0x6a89f0(0x1b8)+_0x54ebe5[_0x6a89f0(0x1a7)]+_0x6a89f0(0x1ae),_0x4903c9[_0x6a89f0(0x1af)][_0x6a89f0(0x1db)](_0x151ec2);const _0x279bf3=_0x4903c9[_0x6a89f0(0x1b2)]();_0x279bf3[_0x6a89f0(0x1cc)](_0x151ec2[_0x6a89f0(0x1c1)]),_0x279bf3[_0x6a89f0(0x1bd)](_0x151ec2[_0x6a89f0(0x1d2)]);const _0x159999=_0x55907a[_0x6a89f0(0x19c)]();_0x159999[_0x6a89f0(0x1e4)](),_0x159999[_0x6a89f0(0x1de)](_0x279bf3),_0x4903c9[_0x6a89f0(0x18f)](_0x6a89f0(0x1da)),_0x151ec2[_0x6a89f0(0x1b3)]();}}}export class ContentFieldView extends _0x35f761{constructor(_0x9b02fa,_0x4ab060=''){const _0x5e68d9=_0x274083;super(_0x9b02fa),this[_0x5e68d9(0x1c4)]=this[_0x5e68d9(0x1e5)](),this[_0x5e68d9(0x198)]({'tag':_0x5e68d9(0x1ce),'attributes':{'class':['ck',_0x5e68d9(0x197),_0x4ab060,_0x5e68d9(0x1b0),_0x5e68d9(0x1c7)]}});}[_0x274083(0x1bf)](_0x585b5d){const _0x55a6a3=_0x274083;this[_0x55a6a3(0x1c3)][_0x55a6a3(0x1a7)]=_0x585b5d;}[_0x274083(0x1df)](){const _0x4b61ad=_0x274083;this[_0x4b61ad(0x1c3)][_0x4b61ad(0x1db)](this[_0x4b61ad(0x1c4)][_0x4b61ad(0x1c3)]);}[_0x274083(0x1e5)](){const _0x17fa6e=_0x274083,_0x38103e=new _0x35f761(),_0x2cfe26=this[_0x17fa6e(0x1e3)],_0x42f351=new _0x21af91();return _0x42f351[_0x17fa6e(0x1a0)]=!0x0,_0x38103e[_0x17fa6e(0x198)]({'tag':_0x17fa6e(0x1ce),'attributes':{'class':['ck',_0x17fa6e(0x1d7)]},'children':[_0x42f351,{'text':_0x52be61(_0x2cfe26,_0x17fa6e(0x1a8))}]}),_0x38103e[_0x17fa6e(0x19b)](),_0x38103e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1033ed,_0x15db2f){const _0x4d191f=_0xe920,_0x13fe23=_0x1033ed();while(!![]){try{const _0x241336=parseInt(_0x4d191f(0x12b))/0x1*(parseInt(_0x4d191f(0x124))/0x2)+-parseInt(_0x4d191f(0x121))/0x3+-parseInt(_0x4d191f(0x126))/0x4+-parseInt(_0x4d191f(0x128))/0x5*(-parseInt(_0x4d191f(0x11d))/0x6)+parseInt(_0x4d191f(0x12a))/0x7*(-parseInt(_0x4d191f(0x11b))/0x8)+parseInt(_0x4d191f(0x11c))/0x9*(-parseInt(_0x4d191f(0x120))/0xa)+-parseInt(_0x4d191f(0x129))/0xb*(-parseInt(_0x4d191f(0x11e))/0xc);if(_0x241336===_0x15db2f)break;else _0x13fe23['push'](_0x13fe23['shift']());}catch(_0x4c3584){_0x13fe23['push'](_0x13fe23['shift']());}}}(_0x5a2e,0xb824e));import{View as _0x5b7041,IconView as _0x2bf98c}from'ckeditor5/src/ui.js';import _0x43aa21 from'../../../theme/icons/error.svg';function _0xe920(_0xd3e74c,_0x5c26c7){const _0x5a2e10=_0x5a2e();return _0xe920=function(_0xe920ad,_0x5491ce){_0xe920ad=_0xe920ad-0x119;let _0x2c5bbb=_0x5a2e10[_0xe920ad];return _0x2c5bbb;},_0xe920(_0xd3e74c,_0x5c26c7);}function _0x5a2e(){const _0x57bac8=['30544Fkurol','18ZdyCqw','6RGwVNM','1468956cELBEP','div','5697130qqQBVN','958248UoJKcm','ck-ai-form__error','text','398470PiyOfe','bindTemplate','2644600oPMLGa','setTemplate','5667995ytCAYC','143mkooFa','1918uOKaTO','6QbAfUB','content','set'];_0x5a2e=function(){return _0x57bac8;};return _0x5a2e();}export default class mt extends _0x5b7041{constructor(_0x23e731,_0x4682b1=''){const _0x5c13d3=_0xe920;super(_0x23e731);const _0x4a702c=new _0x2bf98c(),_0x478fa9=this[_0x5c13d3(0x125)];this[_0x5c13d3(0x11a)](_0x5c13d3(0x123),_0x4682b1),_0x4a702c[_0x5c13d3(0x119)]=_0x43aa21,this[_0x5c13d3(0x127)]({'tag':_0x5c13d3(0x11f),'attributes':{'class':['ck',_0x5c13d3(0x122)]},'children':[_0x4a702c,{'text':_0x478fa9['to'](_0x5c13d3(0x123))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56f0c8=_0x2279;function _0x4402(){const _0xa86dbb=['4DpWqbB','focusFirst','submitButtonView','locale','uiLanguageDirection','filteredView','bind','focusCycler','focusLast','right','excludeScrollbarsAndBorders','4917375deGlVG','execute','style','Submit','element','children','3795610BIAXpX','_createSubmitButton','ck-ai-form__submit','add','window','minRows','render','left','213330sMzFHo','isEmpty','1055864nUiNpk','594393mpFBoX','rtl','1832ZaEPlI','showHistoryButtonView','resultsView','isVisible','647005vqGXhx','update','ck-ai-form__toggle-history','width','keystrokes','125CqJJhU','fieldWrapperChildren','isEnabled','fire','fieldView','focusableChildren','isOn','88GrWFoh','target','queryView','submit','maxRows','value','set','focus','_createShowHistoryButton','6RnPfll','history','requestAnimationFrame','History','enter'];_0x4402=function(){return _0xa86dbb;};return _0x4402();}(function(_0x4f1b00,_0x295a21){const _0x510979=_0x2279,_0x559b40=_0x4f1b00();while(!![]){try{const _0x385b00=-parseInt(_0x510979(0xb6))/0x1*(parseInt(_0x510979(0xad))/0x2)+-parseInt(_0x510979(0xab))/0x3*(parseInt(_0x510979(0xcb))/0x4)+parseInt(_0x510979(0xb1))/0x5*(parseInt(_0x510979(0xc6))/0x6)+parseInt(_0x510979(0xa0))/0x7+-parseInt(_0x510979(0xaa))/0x8+parseInt(_0x510979(0x9a))/0x9+parseInt(_0x510979(0xa8))/0xa*(-parseInt(_0x510979(0xbd))/0xb);if(_0x385b00===_0x295a21)break;else _0x559b40['push'](_0x559b40['shift']());}catch(_0x54b3b2){_0x559b40['push'](_0x559b40['shift']());}}}(_0x4402,0x93268));import{Rect as _0x31722b,global as _0x391bb9,isVisible as _0x14bdfd}from'ckeditor5/src/utils.js';import{AutocompleteView as _0xb7c8d3,ButtonView as _0x38f106}from'ckeditor5/src/ui.js';import{icons as _0x25eb47}from'ckeditor5/src/core.js';function _0x2279(_0x241504,_0x3a2d16){const _0x4402a0=_0x4402();return _0x2279=function(_0x22793b,_0x222695){_0x22793b=_0x22793b-0x90;let _0x22769b=_0x4402a0[_0x22793b];return _0x22769b;},_0x2279(_0x241504,_0x3a2d16);}import{getTranslation as _0x41ebc3}from'../../utils/common-translations.js';import _0x393d2a from'../../../theme/icons/submit.svg';export default class pt extends _0xb7c8d3{constructor(_0x2973f6,_0x4adf95){const _0x15b085=_0x2279;super(_0x2973f6,_0x4adf95),this[_0x15b085(0xbf)][_0x15b085(0xba)][_0x15b085(0xa5)]=0x1,this[_0x15b085(0xbf)][_0x15b085(0xba)][_0x15b085(0xc1)]=0x3,this[_0x15b085(0x91)]=this[_0x15b085(0xa1)](),this[_0x15b085(0xae)]=this[_0x15b085(0xc5)](),this[_0x15b085(0xbb)][_0x15b085(0xa3)](this[_0x15b085(0xae)],0x1),this[_0x15b085(0xbb)][_0x15b085(0xa3)](this[_0x15b085(0x91)]);}[_0x56f0c8(0xa6)](){const _0x37ecb2=_0x56f0c8;super[_0x37ecb2(0xa6)](),this[_0x37ecb2(0xbf)][_0x37ecb2(0xb7)][_0x37ecb2(0xa3)](this[_0x37ecb2(0xae)]),this[_0x37ecb2(0x9f)][_0x37ecb2(0xa3)](this[_0x37ecb2(0x91)]),this[_0x37ecb2(0xb5)][_0x37ecb2(0xc3)](_0x37ecb2(0xca),(_0x28c977,_0x105d7c)=>{const _0x2e3b31=_0x37ecb2;_0x28c977[_0x2e3b31(0xbe)]==this[_0x2e3b31(0xbf)][_0x2e3b31(0xba)][_0x2e3b31(0x9e)]&&(this[_0x2e3b31(0xc0)](),_0x105d7c());});}[_0x56f0c8(0xa1)](){const _0x27c246=_0x56f0c8,_0x2e522d=new _0x38f106(this[_0x27c246(0x92)]),_0x55a2a5=this[_0x27c246(0x92)];return _0x2e522d[_0x27c246(0xc3)]({'icon':_0x393d2a,'label':_0x41ebc3(_0x55a2a5,_0x27c246(0x9d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x27c246(0xa2)}),_0x2e522d['on'](_0x27c246(0x9b),()=>{const _0x325eda=_0x27c246;this[_0x325eda(0xc0)]();}),_0x2e522d[_0x27c246(0x95)](_0x27c246(0xb8))['to'](this[_0x27c246(0xbf)][_0x27c246(0xba)],_0x27c246(0xa9),this,_0x27c246(0xb8),(_0x93a5ee,_0xa932f0)=>!_0x93a5ee&&_0xa932f0),_0x2e522d;}[_0x56f0c8(0xc5)](){const _0x28068d=_0x56f0c8,_0x3023f9=new _0x38f106(this[_0x28068d(0x92)]),_0x331aa2=this[_0x28068d(0xaf)],_0x8a3cab=this[_0x28068d(0x92)];_0x3023f9[_0x28068d(0xc3)]({'label':_0x41ebc3(_0x8a3cab,_0x28068d(0xc9)),'withText':!0x1,'icon':_0x25eb47[_0x28068d(0xc7)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x28068d(0xb3)}),_0x3023f9[_0x28068d(0x95)](_0x28068d(0xbc))['to'](_0x331aa2,_0x28068d(0xb0)),_0x3023f9[_0x28068d(0x95)](_0x28068d(0xb8))['to'](this,_0x28068d(0xb8)),_0x3023f9['on'](_0x28068d(0x9b),()=>{const _0x13dfb4=_0x28068d;_0x331aa2[_0x13dfb4(0xb0)]=!_0x331aa2[_0x13dfb4(0xb0)],_0x331aa2[_0x13dfb4(0xb0)]?this[_0x13dfb4(0x94)][_0x13dfb4(0xc4)]():this[_0x13dfb4(0xc4)]();});const _0x4fc70d=()=>{const _0x33cd73=_0x28068d;_0x391bb9[_0x33cd73(0xa4)][_0x33cd73(0xc8)](()=>{const _0x461038=_0x33cd73;if(_0x14bdfd(this[_0x461038(0x9e)])){const _0x313119=new _0x31722b(this[_0x461038(0xbf)][_0x461038(0xba)][_0x461038(0x9e)]),_0x563b31=_0x313119[_0x461038(0xb4)],_0x24b113=_0x461038(0xac)===_0x8a3cab[_0x461038(0x93)]?_0x461038(0xa7):_0x461038(0x98);_0x313119[_0x461038(0x99)](),_0x3023f9[_0x461038(0x9e)][_0x461038(0x9c)][_0x24b113]=_0x563b31-_0x313119[_0x461038(0xb4)]+0x1+'px';}});};return this[_0x28068d(0xbf)][_0x28068d(0xba)]['on'](_0x28068d(0xb2),_0x4fc70d),this['on'](_0x28068d(0xa6),_0x4fc70d),_0x3023f9;}[_0x56f0c8(0xc0)](){const _0x9960ae=_0x56f0c8,_0x4200d5=this[_0x9960ae(0xbf)][_0x9960ae(0xba)][_0x9960ae(0x9e)][_0x9960ae(0xc2)];this[_0x9960ae(0xb9)](_0x9960ae(0xc0),_0x4200d5);}[_0x56f0c8(0xc4)](_0x5b9666){const _0x5304d1=_0x56f0c8;-0x1===_0x5b9666?this[_0x5304d1(0x96)][_0x5304d1(0x97)]():this[_0x5304d1(0x96)][_0x5304d1(0x90)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4686(_0x5de30d,_0x9b4205){const _0x41393b=_0x4139();return _0x4686=function(_0x46864b,_0x57252c){_0x46864b=_0x46864b-0x7f;let _0x1523a8=_0x41393b[_0x46864b];return _0x1523a8;},_0x4686(_0x5de30d,_0x9b4205);}const _0xe62e4c=_0x4686;(function(_0x3f47ce,_0x24f3f9){const _0x500a1a=_0x4686,_0x10c2c6=_0x3f47ce();while(!![]){try{const _0x2f177a=-parseInt(_0x500a1a(0x9b))/0x1+parseInt(_0x500a1a(0x90))/0x2*(-parseInt(_0x500a1a(0x89))/0x3)+parseInt(_0x500a1a(0x98))/0x4+-parseInt(_0x500a1a(0x82))/0x5*(-parseInt(_0x500a1a(0x8a))/0x6)+parseInt(_0x500a1a(0x8e))/0x7*(parseInt(_0x500a1a(0x96))/0x8)+parseInt(_0x500a1a(0x8d))/0x9*(-parseInt(_0x500a1a(0x85))/0xa)+parseInt(_0x500a1a(0x8f))/0xb;if(_0x2f177a===_0x24f3f9)break;else _0x10c2c6['push'](_0x10c2c6['shift']());}catch(_0x1ca10b){_0x10c2c6['push'](_0x10c2c6['shift']());}}}(_0x4139,0x43384));import{ToolbarView as _0x665844,ButtonView as _0x28df40}from'ckeditor5/src/ui.js';import{getTranslation as _0x563046}from'../../utils/common-translations.js';function _0x4139(){const _0xa3ea03=['items','mainAction','71752mMgBSG','extendTemplate','1589868qpNnOh','isVisible','insertButton','331458MVPEFI','replace','bind','AI_','Stop','bindTemplate','locale','set','_CONTENT','toUpperCase','ck-ai-form__toolbar','replaceButton','addMany','5sLKYoe','ck-hidden','label','246790WIMyRT','stopButton','Try\x20again','Insert\x20below','6XJcCFO','1711194SdrsIA','_createButton','tryAgainButton','9ePWBWR','91htfPcT','3183180GIsZlc','457174kdivFr','REPLACE','insert','ck-button-action'];_0x4139=function(){return _0xa3ea03;};return _0x4139();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0xe62e4c(0x9c),'INSERT':_0xe62e4c(0x92)};export default class Tt extends _0x665844{constructor(_0x390e50){const _0x3131bf=_0xe62e4c;super(_0x390e50),this[_0x3131bf(0xa2)](_0x3131bf(0x99),!0x1),this[_0x3131bf(0xa2)](_0x3131bf(0x95),AIFormToolbarViewMainActionLabel[_0x3131bf(0x91)]),this[_0x3131bf(0x80)]=this[_0x3131bf(0x8b)]('',_0x3131bf(0x93)),this[_0x3131bf(0x80)][_0x3131bf(0x9d)](_0x3131bf(0x84))['to'](this,_0x3131bf(0x95),_0x2105ec=>_0x563046(_0x390e50,_0x3131bf(0x9e)+_0x2105ec[_0x3131bf(0xa4)]()+_0x3131bf(0xa3))),this[_0x3131bf(0x9a)]=this[_0x3131bf(0x8b)](_0x563046(_0x390e50,_0x3131bf(0x88))),this[_0x3131bf(0x8c)]=this[_0x3131bf(0x8b)](_0x563046(_0x390e50,_0x3131bf(0x87))),this[_0x3131bf(0x86)]=this[_0x3131bf(0x8b)](_0x563046(_0x390e50,_0x3131bf(0x9f)));const _0x222607=this[_0x3131bf(0xa0)];this[_0x3131bf(0x97)]({'attributes':{'class':[_0x3131bf(0x7f),_0x222607['if'](_0x3131bf(0x99),_0x3131bf(0x83),_0x1dbcfd=>!_0x1dbcfd)]}}),this[_0x3131bf(0x94)][_0x3131bf(0x81)]([this[_0x3131bf(0x80)],this[_0x3131bf(0x9a)],this[_0x3131bf(0x8c)],this[_0x3131bf(0x86)]]);}[_0xe62e4c(0x8b)](_0x43d407,_0x466cd9){const _0x3245c5=_0xe62e4c,_0x1be490=new _0x28df40(this[_0x3245c5(0xa1)]);return _0x1be490[_0x3245c5(0xa2)]({'label':_0x43d407,'class':_0x466cd9||'','isVisible':!0x0,'withText':!0x0}),_0x1be490;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34e942=_0x141d;(function(_0x14dad4,_0x12a846){const _0x35cabf=_0x141d,_0x5c8efe=_0x14dad4();while(!![]){try{const _0x59d1ca=parseInt(_0x35cabf(0xb0))/0x1*(parseInt(_0x35cabf(0xb4))/0x2)+-parseInt(_0x35cabf(0xe9))/0x3+parseInt(_0x35cabf(0xcc))/0x4*(parseInt(_0x35cabf(0xe7))/0x5)+-parseInt(_0x35cabf(0xe1))/0x6+parseInt(_0x35cabf(0xee))/0x7+-parseInt(_0x35cabf(0xed))/0x8*(-parseInt(_0x35cabf(0xd1))/0x9)+-parseInt(_0x35cabf(0xd4))/0xa*(-parseInt(_0x35cabf(0xfa))/0xb);if(_0x59d1ca===_0x12a846)break;else _0x5c8efe['push'](_0x5c8efe['shift']());}catch(_0x359b6b){_0x5c8efe['push'](_0x5c8efe['shift']());}}}(_0x39af,0x6687a));import{FocusTracker as _0x57c682,KeystrokeHandler as _0x42ea23}from'ckeditor5/src/utils.js';import{View as _0x31ce29,FocusCycler as _0xe467eb,createLabeledTextarea as _0x2aef99}from'ckeditor5/src/ui.js';import _0x2b849d,{AIFormToolbarViewMainActionLabel as _0x1aef17}from'./aiformtoolbarview.js';import _0x2fe880 from'./aiformcontentarea.js';import _0x3a5765 from'./aiformerrorview.js';import _0x4c8bad from'./aiformpromptview.js';function _0x39af(){const _0x11b215=['3614106zGVcnb','tab','listenTo','execute','value','label','5RmdmVb','finishProcessing','2000382rblrdQ','focusLast','_promptHistory','element','18896lmUsHW','1600879QaxWxZ','fire','queryView','REPLACE','_createToolbar','fieldView','high','handleError','locale','render','errorView','insertContentBelow','3806zGHwdc','delegate','items','toolbar','historyGroupView','bind','reset','clear','set','replaceButton','_createHistoryView','tryAgainButton','ck-ai-form-content','isProcessing','focusPrevious','bindTemplate','1XyPAhB','ck-hidden','bindTo','focusTracker','223984GVhuqb','prompt','isError','keystrokes','submit','replaceContent','ck-ai-form','trim','mainAction','Ask\x20AI\x20to\x20improve\x20generated\x20text','submitPrompt','div','AI_ERROR_FAILED','focusFirst','focusNext','Empty\x20history','stopButton','backwardCycle','stopProcessing','stop','promptView','startProcessing','setTemplate','tryAgainEvent','1249200ICRqnN','forwardCycle','isVisible','_createPromptView','search','3033WhTsnA','copyButtonView','add','6940OxMUuI','_focusables','shift\x20+\x20tab','insertButton','clearHistory','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isEnabled','focusCycler','Ask\x20AI\x20to\x20edit\x20or\x20generate','contentArea','focus','createCollection','text'];_0x39af=function(){return _0x11b215;};return _0x39af();}import _0x2c5818 from'./aihistorylistview.js';import _0x48c0cd from'./aihistorylistitemview.js';import _0x4889f0 from'./prompthistory.js';function _0x141d(_0x34c75f,_0x5955e0){const _0x39af79=_0x39af();return _0x141d=function(_0x141dc1,_0x212c64){_0x141dc1=_0x141dc1-0xa4;let _0x3593ce=_0x39af79[_0x141dc1];return _0x3593ce;},_0x141d(_0x34c75f,_0x5955e0);}import{getTranslation as _0x5cda64}from'../../utils/common-translations.js';import{escape as _0x3b362f}from'lodash-es';export default class x extends _0x31ce29{constructor(_0x83ed88,_0x2e2ee1,_0x119303=''){const _0x55463b=_0x141d;super(_0x83ed88),this[_0x55463b(0xa8)](_0x55463b(0xda),!0x0),this[_0x55463b(0xa8)](_0x55463b(0xad),!0x1),this[_0x55463b(0xa8)](_0x55463b(0xb5),''),this[_0x55463b(0xa8)](_0x55463b(0xe5),''),this[_0x55463b(0xa8)](_0x55463b(0xb6),!0x1),this[_0x55463b(0xa8)](_0x55463b(0xbc),_0x1aef17[_0x55463b(0xf1)]),this[_0x55463b(0xeb)]=new _0x4889f0(),this[_0x55463b(0xf8)]=new _0x3a5765(_0x83ed88),this[_0x55463b(0xdd)]=new _0x2fe880(_0x83ed88,_0x119303),this[_0x55463b(0xdd)][_0x55463b(0xa5)](_0x55463b(0xad))['to'](this),this[_0x55463b(0xdd)][_0x55463b(0xa5)](_0x55463b(0xe5))['to'](this),this[_0x55463b(0xfd)]=this[_0x55463b(0xf2)](),this[_0x55463b(0xfd)][_0x55463b(0xa5)](_0x55463b(0xbc))['to'](this),this[_0x55463b(0xc8)]=this[_0x55463b(0xcf)](),this[_0x55463b(0xb3)]=new _0x57c682(),this[_0x55463b(0xb7)]=new _0x42ea23(),this[_0x55463b(0xd5)]=this[_0x55463b(0xdf)]([this[_0x55463b(0xdd)],this[_0x55463b(0xdd)][_0x55463b(0xd2)],this[_0x55463b(0xfd)],this[_0x55463b(0xc8)]]),this[_0x55463b(0xdb)]=new _0xe467eb({'focusables':this[_0x55463b(0xd5)],'focusTracker':this[_0x55463b(0xb3)],'keystrokeHandler':this[_0x55463b(0xb7)],'actions':{'focusPrevious':_0x55463b(0xd6),'focusNext':_0x55463b(0xe2)}}),this[_0x55463b(0xc8)][_0x55463b(0xdb)]['on'](_0x55463b(0xcd),_0x334e83=>{const _0xa12b9=_0x55463b;this[_0xa12b9(0xdb)][_0xa12b9(0xc2)](),_0x334e83[_0xa12b9(0xc7)]();}),this[_0x55463b(0xc8)][_0x55463b(0xdb)]['on'](_0x55463b(0xc5),_0x4558cc=>{const _0x32d5f9=_0x55463b;this[_0x32d5f9(0xdb)][_0x32d5f9(0xae)](),_0x4558cc[_0x32d5f9(0xc7)]();}),this[_0x55463b(0xc8)][_0x55463b(0xf0)][_0x55463b(0xf3)][_0x55463b(0xa5)](_0x55463b(0xe5))['to'](this,_0x55463b(0xb5));const _0x479acb=this[_0x55463b(0xaf)];this[_0x55463b(0xca)]({'tag':_0x55463b(0xbf),'attributes':{'class':['ck',_0x55463b(0xba),_0x2e2ee1],'tabindex':'-1'},'children':[{'tag':_0x55463b(0xbf),'attributes':{'class':['ck',_0x55463b(0xac)]},'children':[{'tag':_0x55463b(0xbf),'attributes':{'class':[_0x479acb['if'](_0x55463b(0xb6),_0x55463b(0xb1),_0x83494b=>!_0x83494b)]},'children':[this[_0x55463b(0xf8)]]},this[_0x55463b(0xdd)],this[_0x55463b(0xfd)],this[_0x55463b(0xc8)]]}]});}[_0x34e942(0xf7)](){const _0x17e8fb=_0x34e942;super[_0x17e8fb(0xf7)](),this[_0x17e8fb(0xb3)][_0x17e8fb(0xd3)](this[_0x17e8fb(0xdd)][_0x17e8fb(0xec)]),this[_0x17e8fb(0xb3)][_0x17e8fb(0xd3)](this[_0x17e8fb(0xdd)][_0x17e8fb(0xd2)][_0x17e8fb(0xec)]),this[_0x17e8fb(0xb3)][_0x17e8fb(0xd3)](this[_0x17e8fb(0xfd)][_0x17e8fb(0xec)]),this[_0x17e8fb(0xb3)][_0x17e8fb(0xd3)](this[_0x17e8fb(0xc8)][_0x17e8fb(0xec)]),this[_0x17e8fb(0xb7)][_0x17e8fb(0xe3)](this[_0x17e8fb(0xec)]);}[_0x34e942(0xde)](_0x54e169=0x1){const _0x39a1c5=_0x34e942;-0x1===_0x54e169?this[_0x39a1c5(0xdb)][_0x39a1c5(0xea)]():this[_0x39a1c5(0xdb)][_0x39a1c5(0xc1)]();}[_0x34e942(0xa6)](){const _0x5202ef=_0x34e942;this[_0x5202ef(0xb5)]='',this[_0x5202ef(0xe5)]='',this[_0x5202ef(0xb6)]=!0x1,this[_0x5202ef(0xc8)][_0x5202ef(0xa6)](),this[_0x5202ef(0xdd)][_0x5202ef(0xce)]=!0x1,this[_0x5202ef(0xfd)][_0x5202ef(0xce)]=!0x1;}[_0x34e942(0xcf)](){const _0xaad359=_0x34e942,_0x1d759d=this[_0xaad359(0xf6)],_0x144784=new _0x4c8bad(_0x1d759d,{'queryView':{'label':_0x5cda64(_0x1d759d,_0xaad359(0xdc)),'creator':_0x2aef99,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5cda64(_0x1d759d,_0xaad359(0xc3)),'secondary':_0x5cda64(_0x1d759d,_0xaad359(0xd9))}}},'filteredView':this[_0xaad359(0xaa)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x144784[_0xaad359(0xa5)](_0xaad359(0xda))['to'](this,_0xaad359(0xda),this,_0xaad359(0xad),(_0x1e7665,_0xeb8628)=>_0x1e7665&&!_0xeb8628),this[_0xaad359(0xe3)](_0x144784,_0xaad359(0xb8),(_0x52da9a,_0x409916)=>{const _0x50cdc9=_0xaad359;this[_0x50cdc9(0xb5)]=_0x409916;const _0x50065e=_0x3b362f(_0x409916);this[_0x50cdc9(0xef)](_0x50cdc9(0xbe),_0x50065e),_0x409916[_0x50cdc9(0xbb)]()&&this[_0x50cdc9(0xeb)][_0x50cdc9(0xd3)]({'prompt':_0x50065e},0x0);},{'priority':_0xaad359(0xf4)}),_0x144784;}[_0x34e942(0xaa)](){const _0x11d6bd=_0x34e942,_0x2850fa=new _0x2c5818(this[_0x11d6bd(0xf6)]);return _0x2850fa[_0x11d6bd(0xa4)][_0x11d6bd(0xfc)][_0x11d6bd(0xb2)](this[_0x11d6bd(0xeb)])['as'](_0x48c0cd),_0x2850fa['on'](_0x11d6bd(0xd8),()=>{const _0xca3563=_0x11d6bd;this[_0xca3563(0xeb)][_0xca3563(0xa7)](),this[_0xca3563(0xc8)][_0xca3563(0xd0)](''),this[_0xca3563(0xc8)][_0xca3563(0xde)]();}),_0x2850fa;}[_0x34e942(0xf2)](){const _0x415358=_0x34e942,_0x49e1d9=new _0x2b849d(this[_0x415358(0xf6)]);return _0x49e1d9[_0x415358(0xa9)][_0x415358(0xa5)](_0x415358(0xda))['to'](this,_0x415358(0xda),this,_0x415358(0xad),this,_0x415358(0xe5),(_0x491dc0,_0x2b8b1e,_0x4adc11)=>_0x491dc0&&!_0x2b8b1e&&!!_0x4adc11),_0x49e1d9[_0x415358(0xa9)][_0x415358(0xfb)](_0x415358(0xe4))['to'](this,_0x415358(0xb9)),_0x49e1d9[_0x415358(0xd7)][_0x415358(0xa5)](_0x415358(0xda))['to'](this,_0x415358(0xda),this,_0x415358(0xad),this,_0x415358(0xe5),(_0x4c1051,_0x2c7350,_0x147276)=>_0x4c1051&&!_0x2c7350&&!!_0x147276),_0x49e1d9[_0x415358(0xd7)][_0x415358(0xfb)](_0x415358(0xe4))['to'](this,_0x415358(0xf9)),_0x49e1d9[_0x415358(0xab)][_0x415358(0xa5)](_0x415358(0xda))['to'](this,_0x415358(0xda),this,_0x415358(0xad),(_0x87ce42,_0x12e1d7)=>_0x87ce42&&!_0x12e1d7),_0x49e1d9[_0x415358(0xab)][_0x415358(0xfb)](_0x415358(0xe4))['to'](this,_0x415358(0xcb)),_0x49e1d9[_0x415358(0xc4)][_0x415358(0xa5)](_0x415358(0xda))['to'](this,_0x415358(0xad)),_0x49e1d9[_0x415358(0xc4)][_0x415358(0xfb)](_0x415358(0xe4))['to'](this,_0x415358(0xc6)),_0x49e1d9;}[_0x34e942(0xc9)](){const _0x5bfc31=_0x34e942;this[_0x5bfc31(0xe5)]='',this[_0x5bfc31(0xb6)]=!0x1,this[_0x5bfc31(0xad)]=!0x0,this[_0x5bfc31(0xdd)][_0x5bfc31(0xce)]=!0x0,this[_0x5bfc31(0xfd)][_0x5bfc31(0xce)]=!0x0,this[_0x5bfc31(0xdd)][_0x5bfc31(0xde)]();}[_0x34e942(0xe8)](){const _0x3afe3b=_0x34e942,_0x29086b=this[_0x3afe3b(0xf6)];this[_0x3afe3b(0xad)]=!0x1,this[_0x3afe3b(0xb5)]='',this[_0x3afe3b(0xc8)][_0x3afe3b(0xa6)](),this[_0x3afe3b(0xe5)]&&(this[_0x3afe3b(0xc8)][_0x3afe3b(0xf0)][_0x3afe3b(0xe6)]=_0x5cda64(_0x29086b,_0x3afe3b(0xbd)));}[_0x34e942(0xf5)](_0x29afdb){const _0x1c12ea=_0x34e942,_0x4b9ddd=this[_0x1c12ea(0xf6)];this[_0x1c12ea(0xe8)](),this[_0x1c12ea(0xb6)]=!0x0,this[_0x1c12ea(0xf8)][_0x1c12ea(0xe0)]=_0x29afdb||_0x5cda64(_0x4b9ddd,_0x1c12ea(0xc0)),this[_0x1c12ea(0xe5)]||(this[_0x1c12ea(0xdd)][_0x1c12ea(0xce)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4de5f6,_0xfb280a){const _0x2cd814=_0x2c18,_0x59f381=_0x4de5f6();while(!![]){try{const _0x31532f=-parseInt(_0x2cd814(0x106))/0x1+parseInt(_0x2cd814(0x10a))/0x2+parseInt(_0x2cd814(0x110))/0x3*(-parseInt(_0x2cd814(0x103))/0x4)+parseInt(_0x2cd814(0x108))/0x5*(parseInt(_0x2cd814(0x104))/0x6)+parseInt(_0x2cd814(0x102))/0x7*(parseInt(_0x2cd814(0x10b))/0x8)+-parseInt(_0x2cd814(0x100))/0x9*(parseInt(_0x2cd814(0x10e))/0xa)+parseInt(_0x2cd814(0x105))/0xb*(parseInt(_0x2cd814(0x10c))/0xc);if(_0x31532f===_0xfb280a)break;else _0x59f381['push'](_0x59f381['shift']());}catch(_0x5c74de){_0x59f381['push'](_0x59f381['shift']());}}}(_0x30c8,0x72d37));import{ListItemView as _0x505904,ButtonView as _0x4bd6b7}from'ckeditor5/src/ui.js';import _0x1b6789 from'../dropdown/buttonlabelwithhighlightview.js';import{unescape as _0x4e5489}from'lodash-es';function _0x30c8(){const _0x2b830a=['368PLhUCD','12KWMAkm','add','2370fJBQzP','execute','63219PSBtRN','prompt','set','29970hAeKNC','children','2086XoTJRg','68ywbAmU','18hJjQkw','16739602KdEbRZ','836211mmjnJV','fire','864355sgKpjH','locale','799772kyvQVw'];_0x30c8=function(){return _0x2b830a;};return _0x30c8();}function _0x2c18(_0x50854c,_0x3b7640){const _0x30c83e=_0x30c8();return _0x2c18=function(_0x2c1851,_0x5ebbc1){_0x2c1851=_0x2c1851-0x100;let _0x590413=_0x30c83e[_0x2c1851];return _0x590413;},_0x2c18(_0x50854c,_0x3b7640);}export default class hs extends _0x505904{constructor(_0x352213){const _0x158c0a=_0x2c18;super();const _0xc9bc96=new _0x1b6789(),_0x38590f=new _0x4bd6b7(this[_0x158c0a(0x109)],_0xc9bc96);this[_0x158c0a(0x101)][_0x158c0a(0x10d)](_0x38590f),_0x38590f[_0x158c0a(0x112)]({'label':_0x352213[_0x158c0a(0x111)],'withText':!0x0}),_0x38590f['on'](_0x158c0a(0x10f),()=>{const _0x47cf5d=_0x158c0a;this[_0x47cf5d(0x107)](_0x47cf5d(0x10f),{'value':_0x4e5489(_0x352213[_0x47cf5d(0x111)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e8392=_0x32d8;(function(_0x68d005,_0x310d6c){const _0x3bab0d=_0x32d8,_0x1bd279=_0x68d005();while(!![]){try{const _0x123597=parseInt(_0x3bab0d(0x1a1))/0x1*(parseInt(_0x3bab0d(0x195))/0x2)+-parseInt(_0x3bab0d(0x194))/0x3*(-parseInt(_0x3bab0d(0x19b))/0x4)+-parseInt(_0x3bab0d(0x1a7))/0x5*(parseInt(_0x3bab0d(0x1a8))/0x6)+parseInt(_0x3bab0d(0x19a))/0x7*(parseInt(_0x3bab0d(0x1a9))/0x8)+-parseInt(_0x3bab0d(0x19e))/0x9+parseInt(_0x3bab0d(0x196))/0xa*(parseInt(_0x3bab0d(0x1a3))/0xb)+-parseInt(_0x3bab0d(0x192))/0xc*(parseInt(_0x3bab0d(0x199))/0xd);if(_0x123597===_0x310d6c)break;else _0x1bd279['push'](_0x1bd279['shift']());}catch(_0x53d77c){_0x1bd279['push'](_0x1bd279['shift']());}}}(_0x5340,0xedc5a));import{ListView as _0x590cf4,ListItemGroupView as _0xe6480a,ButtonView as _0x4d8d65}from'ckeditor5/src/ui.js';import{getTranslation as _0x21fd2e}from'../../utils/common-translations.js';function _0x32d8(_0x39c598,_0x5e55ea){const _0x534003=_0x5340();return _0x32d8=function(_0x32d83d,_0xf06b39){_0x32d83d=_0x32d83d-0x190;let _0x118f89=_0x534003[_0x32d83d];return _0x118f89;},_0x32d8(_0x39c598,_0x5e55ea);}function _0x5340(){const _0x13656f=['12ELdERk','historyGroupView','784596vKizOH','2VBvmsu','60ZifDJT','children','locale','14905618fJumwi','385MOOFZi','8dxRFzD','fire','Prompt\x20history','2791359vQwzDO','items','clearHistory','1068779mVnwQg','clearHistoryButton','3180419jvUgqx','Clear','length','_createClearHistoryButton','15UESksA','3157362USEJzD','99304QELxAk','add','delegate','filter','set','label','execute'];_0x5340=function(){return _0x13656f;};return _0x5340();}export default class rs extends _0x590cf4{constructor(_0x11bda3){const _0x1c3312=_0x32d8;super(_0x11bda3),this[_0x1c3312(0x1a2)]=this[_0x1c3312(0x1a6)](),this[_0x1c3312(0x193)]=new _0xe6480a(),this[_0x1c3312(0x193)][_0x1c3312(0x197)][_0x1c3312(0x1aa)](this[_0x1c3312(0x1a2)],0x1),this[_0x1c3312(0x193)][_0x1c3312(0x190)]=_0x21fd2e(_0x11bda3,_0x1c3312(0x19d)),this[_0x1c3312(0x193)][_0x1c3312(0x19f)][_0x1c3312(0x1ab)](_0x1c3312(0x191))['to'](this),this[_0x1c3312(0x19f)][_0x1c3312(0x1aa)](this[_0x1c3312(0x193)]);}[_0x2e8392(0x1ac)](){const _0x2f5535=_0x2e8392;let _0x295586=0x0;for(const _0x3943c3 of this[_0x2f5535(0x19f)])_0x295586+=_0x3943c3[_0x2f5535(0x19f)][_0x2f5535(0x1a5)];return{'resultsCount':_0x295586,'totalItemsCount':_0x295586};}[_0x2e8392(0x1a6)](){const _0x106d87=_0x2e8392,_0xb3b70e=this[_0x106d87(0x198)],_0x2f0e6f=new _0x4d8d65(this[_0x106d87(0x198)]);return _0x2f0e6f[_0x106d87(0x1ad)]({'label':'('+_0x21fd2e(_0xb3b70e,_0x106d87(0x1a4))+')','withText':!0x0}),_0x2f0e6f['on'](_0x106d87(0x191),()=>this[_0x106d87(0x19c)](_0x106d87(0x1a0))),_0x2f0e6f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x439779=_0x9cd6;(function(_0x4d1edf,_0x426cf3){const _0x37eca1=_0x9cd6,_0x52a9b4=_0x4d1edf();while(!![]){try{const _0x43846d=-parseInt(_0x37eca1(0x8b))/0x1*(-parseInt(_0x37eca1(0x94))/0x2)+-parseInt(_0x37eca1(0xa4))/0x3+-parseInt(_0x37eca1(0xa1))/0x4*(parseInt(_0x37eca1(0xa5))/0x5)+-parseInt(_0x37eca1(0x9e))/0x6*(parseInt(_0x37eca1(0xa0))/0x7)+-parseInt(_0x37eca1(0x8d))/0x8+-parseInt(_0x37eca1(0x8e))/0x9*(-parseInt(_0x37eca1(0x97))/0xa)+parseInt(_0x37eca1(0x92))/0xb*(parseInt(_0x37eca1(0x99))/0xc);if(_0x43846d===_0x426cf3)break;else _0x52a9b4['push'](_0x52a9b4['shift']());}catch(_0x4f8ec8){_0x52a9b4['push'](_0x52a9b4['shift']());}}}(_0x28dd,0x6a642));import{Collection as _0x7a107a}from'ckeditor5/src/utils.js';function _0x9cd6(_0x21cf51,_0x2bbed5){const _0x28dd91=_0x28dd();return _0x9cd6=function(_0x9cd649,_0x415923){_0x9cd649=_0x9cd649-0x8b;let _0x3b0235=_0x28dd91[_0x9cd649];return _0x3b0235;},_0x9cd6(_0x21cf51,_0x2bbed5);}const cs=_0x439779(0x98);export default class os extends _0x7a107a{constructor(){const _0x10ec23=_0x439779;super(),this[_0x10ec23(0x91)](),this['on'](_0x10ec23(0x95),(_0x4fa0fa,_0x35e6e9)=>{const _0x3df628=_0x10ec23,_0x361b96=Ss(_0x35e6e9[_0x3df628(0x9d)]);for(const _0x378abf of this)if(_0x378abf!=_0x35e6e9&&Ss(_0x378abf[_0x3df628(0x9d)])===_0x361b96){this[_0x3df628(0xa2)](_0x378abf);break;}this[_0x3df628(0x9f)]>0x14&&this[_0x3df628(0xa2)](this[_0x3df628(0x9b)]),this[_0x3df628(0x9c)]();}),this['on'](_0x10ec23(0xa2),()=>{const _0x28f3b5=_0x10ec23;this[_0x28f3b5(0x9c)]();});}[_0x439779(0x91)](){const _0x1c2721=_0x439779,_0x57be6a=sessionStorage[_0x1c2721(0x9a)](cs)||'[]';this[_0x1c2721(0x8c)](JSON[_0x1c2721(0x96)](_0x57be6a));}[_0x439779(0x9c)](){const _0x17a4bd=_0x439779;sessionStorage[_0x17a4bd(0x90)](cs,JSON[_0x17a4bd(0x8f)](this[_0x17a4bd(0xa6)](_0x1ef105=>_0x1ef105)));}}function _0x28dd(){const _0x173bfc=['915183ehYIYG','30iKojAA','map','4345aZhGXi','addMany','2846824FeUvuo','1356084sFCYwX','stringify','setItem','_loadFromSessionStorage','15946436HzTzpm','trim','20dxwBgF','add','parse','10FTuPiP','CKEditor/AIFormView/PromptHistory','12WpLbSl','getItem','last','_saveToSessionStorage','prompt','75726OCyziE','length','42mlwpIZ','314256AlcmYR','remove','toLowerCase'];_0x28dd=function(){return _0x173bfc;};return _0x28dd();}function Ss(_0x3b1d05){const _0x49b504=_0x439779;return _0x3b1d05[_0x49b504(0xa3)]()[_0x49b504(0x93)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4abc50=_0x4b85;(function(_0x1eb716,_0x1bd42e){const _0xa3e404=_0x4b85,_0xfec778=_0x1eb716();while(!![]){try{const _0x7fc411=-parseInt(_0xa3e404(0x6b))/0x1+parseInt(_0xa3e404(0x7a))/0x2*(parseInt(_0xa3e404(0x94))/0x3)+parseInt(_0xa3e404(0x81))/0x4*(parseInt(_0xa3e404(0x71))/0x5)+-parseInt(_0xa3e404(0x78))/0x6*(-parseInt(_0xa3e404(0x88))/0x7)+parseInt(_0xa3e404(0x89))/0x8+parseInt(_0xa3e404(0x98))/0x9*(-parseInt(_0xa3e404(0x76))/0xa)+-parseInt(_0xa3e404(0x86))/0xb*(parseInt(_0xa3e404(0x83))/0xc);if(_0x7fc411===_0x1bd42e)break;else _0xfec778['push'](_0xfec778['shift']());}catch(_0x3edb5a){_0xfec778['push'](_0xfec778['shift']());}}}(_0x55b2,0xe159a));import{Command as _0x41eabd}from'ckeditor5/src/core.js';function _0x4b85(_0x36afe9,_0x45f71b){const _0x55b2da=_0x55b2();return _0x4b85=function(_0x4b8558,_0xa5e908){_0x4b8558=_0x4b8558-0x6b;let _0xa8ff4d=_0x55b2da[_0x4b8558];return _0xa8ff4d;},_0x4b85(_0x36afe9,_0x45f71b);}import _0x5b53c9 from'../aiassistantui.js';export default class j extends _0x41eabd{constructor(_0x537ec0,_0x4f6a07){const _0x561098=_0x4b85;super(_0x537ec0),this[_0x561098(0x85)]=_0x4f6a07?_0x4f6a07[_0x561098(0x8e)]((_0x39322f,_0x193fe6)=>_0x39322f[_0x561098(0x7d)](_0x193fe6[_0x561098(0x8c)]),new Array()):[],this[_0x561098(0x93)](_0x561098(0x7b),[]),this['on'](_0x561098(0x95),(_0x44e371,_0x2c83bd,_0x355247)=>{const _0x267408=_0x561098;this[_0x267408(0x97)]&&(this[_0x267408(0x7b)]=K(this[_0x267408(0x85)],_0x355247));}),this[_0x561098(0x93)](_0x561098(0x77),!0x1),this['on'](_0x561098(0x7e),(_0x57f806,_0xb760c3,_0x239476)=>{const _0x1f5d37=_0x561098;this[_0x1f5d37(0x7b)]=_0x239476?K(this[_0x1f5d37(0x85)],this[_0x1f5d37(0x77)]):[];});}[_0x4abc50(0x6c)](){const _0x5e6c9c=_0x4abc50,_0x31053e=this[_0x5e6c9c(0x91)][_0x5e6c9c(0x75)];this[_0x5e6c9c(0x77)]=function(_0x43ae1c){const _0x52dc59=_0x5e6c9c,_0x509230=_0x43ae1c[_0x52dc59(0x6d)][_0x52dc59(0x7c)];return _0x509230[_0x52dc59(0x84)]?0x0!==[..._0x509230[_0x52dc59(0x90)]()][_0x52dc59(0x92)]&&![..._0x509230[_0x52dc59(0x90)]()][0x0][_0x52dc59(0x72)]:!!_0x43ae1c[_0x52dc59(0x73)](_0x509230[_0x52dc59(0x9a)]());}(_0x31053e);const _0x14e9b1=_0x31053e[_0x5e6c9c(0x6d)][_0x5e6c9c(0x7c)],_0x495967=this[_0x5e6c9c(0x91)][_0x5e6c9c(0x6e)][_0x5e6c9c(0x87)](_0x5e6c9c(0x80));for(const _0x5988c1 of _0x14e9b1[_0x5e6c9c(0x6f)]())for(const _0x32866c of _0x5988c1[_0x5e6c9c(0x96)]())if(_0x32866c['is'](_0x5e6c9c(0x74))&&_0x495967[_0x5e6c9c(0x70)](_0x32866c[_0x5e6c9c(0x82)]))return void(this[_0x5e6c9c(0x97)]=!0x1);this[_0x5e6c9c(0x97)]=!0x0;}[_0x4abc50(0x8f)](_0x1eff68='',_0x29f738='',_0x32c2dd=_0x4abc50(0x79)){const _0x6f6578=_0x4abc50;this[_0x6f6578(0x91)][_0x6f6578(0x8a)][_0x6f6578(0x87)](_0x5b53c9)[_0x6f6578(0x8d)](_0x1eff68,_0x29f738,_0x32c2dd);}}function K(_0x46cada,_0x2c255b){const _0xa9f90b=_0x4abc50,_0x5de323=new Set();for(const _0x12eb3f of _0x46cada)(_0x2c255b||!0x1===_0x12eb3f[_0xa9f90b(0x99)])&&_0x5de323[_0xa9f90b(0x8b)](_0x12eb3f['id']);return Array[_0xa9f90b(0x7f)](_0x5de323);}function _0x55b2(){const _0x360a04=['5516QjGAXu','enabledCommandsIds','selection','concat','change:isEnabled','from','ai.aiAssistant.disabledElements','489196IKAEWw','name','16521276knkIql','isCollapsed','_commandDefinitions','11EcrLbA','get','12013673RaiajP','2693696TAtoyO','plugins','add','commands','showUI','reduce','execute','getSelectedBlocks','editor','length','set','153YtXXgg','change:_hasContext','getItems','isEnabled','3412566lrzLTn','requiresContent','getFirstRange','969939QDBkIt','refresh','document','config','getRanges','includes','75cmhGJH','isEmpty','hasContent','element','model','20HuGFXf','_hasContext','6SOwhNj','custom'];_0x55b2=function(){return _0x360a04;};return _0x55b2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x42f6ac,_0x3933ea,_0x2341be){const t=_0x42f6ac['t'];switch(_0x3933ea){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',_0x2341be);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',_0x2341be);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2341be);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'},_0x2341be);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 _0x3933ea;}}
|