@ckeditor/ckeditor5-ai 43.3.1 → 44.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -7
- package/build/ai.js +1 -1
- package/dist/aiassistant.d.ts +0 -8
- package/dist/aiassistantediting.d.ts +4 -3
- package/dist/aiassistantui.d.ts +1 -4
- package/dist/index.js +2 -2
- package/dist/legacyerrors.d.ts +9 -0
- 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.d.ts +0 -8
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.d.ts +4 -3
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.d.ts +1 -4
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.d.ts +5 -0
- package/src/legacyerrors.js +23 -0
- 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(_0x9cbfa9,_0x593764){var _0x51f0c6=_0x4584,_0x110304=_0x9cbfa9();while(!![]){try{var _0x4712f3=parseInt(_0x51f0c6(0x1b4))/0x1*(-parseInt(_0x51f0c6(0x1b2))/0x2)+parseInt(_0x51f0c6(0x1b3))/0x3*(parseInt(_0x51f0c6(0x1b1))/0x4)+-parseInt(_0x51f0c6(0x1b6))/0x5+parseInt(_0x51f0c6(0x1ac))/0x6*(parseInt(_0x51f0c6(0x1b5))/0x7)+-parseInt(_0x51f0c6(0x1ae))/0x8+-parseInt(_0x51f0c6(0x1ad))/0x9*(parseInt(_0x51f0c6(0x1af))/0xa)+parseInt(_0x51f0c6(0x1b0))/0xb;if(_0x4712f3===_0x593764)break;else _0x110304['push'](_0x110304['shift']());}catch(_0x1d5085){_0x110304['push'](_0x110304['shift']());}}}(_0x4e9c,0x1dd71));export{default as AIAssistant}from'./aiassistant.js';export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';function _0x4584(_0x1d5b8f,_0x287c76){var _0x4e9c73=_0x4e9c();return _0x4584=function(_0x4584b3,_0x49820c){_0x4584b3=_0x4584b3-0x1ac;var _0x14f238=_0x4e9c73[_0x4584b3];return _0x14f238;},_0x4584(_0x1d5b8f,_0x287c76);}import'./augmentation.js';function _0x4e9c(){var _0x320a14=['4456VaMPoE','9932zgMlDo','411jaLnLk','8UDTSOL','123571zUwMmR','1165770EwExDP','6uyEZpT','661221rySLlE','1437496hrqHdu','10YvhlHt','5257912mFvfFy'];_0x4e9c=function(){return _0x320a14;};return _0x4e9c();}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x59b0ed,_0x751707){var _0x49d54d=_0x3125,_0x33d962=_0x59b0ed();while(!![]){try{var _0x5a7a50=-parseInt(_0x49d54d(0x155))/0x1*(-parseInt(_0x49d54d(0x156))/0x2)+-parseInt(_0x49d54d(0x154))/0x3+parseInt(_0x49d54d(0x152))/0x4*(parseInt(_0x49d54d(0x14f))/0x5)+-parseInt(_0x49d54d(0x150))/0x6*(-parseInt(_0x49d54d(0x157))/0x7)+-parseInt(_0x49d54d(0x151))/0x8*(-parseInt(_0x49d54d(0x153))/0x9)+-parseInt(_0x49d54d(0x159))/0xa+parseInt(_0x49d54d(0x15a))/0xb*(-parseInt(_0x49d54d(0x158))/0xc);if(_0x5a7a50===_0x751707)break;else _0x33d962['push'](_0x33d962['shift']());}catch(_0x317669){_0x33d962['push'](_0x33d962['shift']());}}}(_0x5d2a,0xda293));function _0x3125(_0x1534dc,_0x29742c){var _0x5d2a94=_0x5d2a();return _0x3125=function(_0x312524,_0x47468d){_0x312524=_0x312524-0x14f;var _0xe72aa=_0x5d2a94[_0x312524];return _0xe72aa;},_0x3125(_0x1534dc,_0x29742c);}function _0x5d2a(){var _0x324a90=['1299528nOfNql','2132470VkfyrX','165NFZvPy','1295OqPwYs','678KbZvdH','16Kxqoji','21488aLIoRY','567225osybho','557688NnYNlS','5CKLklE','25226MlKKXo','82803bdbqvF'];_0x5d2a=function(){return _0x324a90;};return _0x5d2a();}import{CKEditorError as _0x52b409}from'ckeditor5/src/utils.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x9ed667=_0x2bf1;(function(_0x25dafd,_0xf23424){const _0x226a45=_0x2bf1,_0x1421ff=_0x25dafd();while(!![]){try{const _0x120f97=-parseInt(_0x226a45(0xa8))/0x1*(-parseInt(_0x226a45(0x9f))/0x2)+-parseInt(_0x226a45(0x82))/0x3+-parseInt(_0x226a45(0xa7))/0x4+parseInt(_0x226a45(0x97))/0x5*(parseInt(_0x226a45(0x96))/0x6)+-parseInt(_0x226a45(0xa2))/0x7+parseInt(_0x226a45(0xcf))/0x8+-parseInt(_0x226a45(0xb1))/0x9*(parseInt(_0x226a45(0x8b))/0xa);if(_0x120f97===_0xf23424)break;else _0x1421ff['push'](_0x1421ff['shift']());}catch(_0x4e3501){_0x1421ff['push'](_0x1421ff['shift']());}}}(_0x16e3,0x3d5a9));import{ObservableMixin as _0x4b38d3}from'ckeditor5/src/utils.js';import{AIRequestError as _0x504cb4}from'../adapters/aiadapter.js';function _0x2bf1(_0x5b69a8,_0x4de9f7){const _0x16e3bf=_0x16e3();return _0x2bf1=function(_0x2bf12a,_0x1a9a38){_0x2bf12a=_0x2bf12a-0x7e;let _0x38ecba=_0x16e3bf[_0x2bf12a];return _0x38ecba;},_0x2bf1(_0x5b69a8,_0x4de9f7);}import{Matcher as _0x404c09,UpcastWriter as _0xdb19fe}from'ckeditor5/src/engine.js';const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x16e3(){const _0x24003e=['ELEMENT_NODE','_normalizeResponseHeadings','data','name','processor','toView','push','length','```','render','currentResponse','textAdapter','previousQuery','_sanitizationContainer','view','startProcessing','mainAction','div','updateView','htmlProcessor','parseFromString','stopProcessing','_domParser','abort','endsWith','isProcessing','set','_xmlSerializer','finishProcessing','3536144sEYQpi','reverse','element','prompt','previousContext','startsWith','document','childNodes','previousLabel','set:currentContext','toModel','_handleQuery','_isH1TagSupportEnabled','domConverter','stringify','destroy','_stripMarkdownSyntax','currentContext','7200WpxEuy','stopListening','innerHTML','reset','tryAgainEvent','_parseAndNormalizeContent','value','initialContext','finally','60QoqJGq','viewToDom','nodeType','isRendered','serializeToString','once','setContentOf','remove','```html','custom','trim','1392942hfayVR','10JaWxxR','<h1></h1>','createElement','_sanitizeHTML','exec','catch','previousActionId','message','3506riiMOY','handleError','from','2248134KFOAjd','listenTo','editor','editing','submitPrompt','1414424BtIrQx','13cBMmCG','rename','then','text/html','body','makeRequest','querySelector','substring','match','972DaHUJo'];_0x16e3=function(){return _0x24003e;};return _0x16e3();}export default class C extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4b38d3(){constructor(_0xef2082,_0x2fbd2e,_0x2b0b0f){const _0x98ea7e=_0x2bf1;super(),this[_0x98ea7e(0xa4)]=_0xef2082,this[_0x98ea7e(0xbd)]=_0x2fbd2e,this[_0x98ea7e(0xbf)]=document[_0x98ea7e(0x99)](_0x98ea7e(0xc3)),this[_0x98ea7e(0xc8)]=new DOMParser(),this[_0x98ea7e(0xcd)]=new XMLSerializer(),this[_0x98ea7e(0xc0)]=_0x2b0b0f,this[_0x98ea7e(0xcc)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x98ea7e(0xd8),(_0x50d7f8,_0x14cbb9,_0x31710e)=>{const _0x4c27ab=_0x98ea7e;this[_0x4c27ab(0xc0)][_0x4c27ab(0x88)]=this[_0x4c27ab(0x9a)](_0x31710e);}),this[_0x98ea7e(0xa3)](this[_0x98ea7e(0xc0)],_0x98ea7e(0xa6),(_0x430fd6,_0x5b66fa)=>{const _0x107e8f=_0x98ea7e,_0x428b3b=this[_0x107e8f(0x81)]||this[_0x107e8f(0x89)];this[_0x107e8f(0xda)](_0x5b66fa,_0x428b3b,_0x107e8f(0x94));}),this[_0x98ea7e(0xa3)](this[_0x98ea7e(0xc0)],_0x98ea7e(0x86),()=>{const _0x106903=_0x98ea7e;this[_0x106903(0xc0)][_0x106903(0xd2)]=this[_0x106903(0xd7)],this[_0x106903(0xda)](this[_0x106903(0xbe)],this[_0x106903(0xd3)],this[_0x106903(0x9d)],this[_0x106903(0xd7)]);}),this[_0x98ea7e(0xa3)](this[_0x98ea7e(0xc0)],_0x98ea7e(0xc7),()=>{const _0x2413b7=_0x98ea7e;this[_0x2413b7(0xc7)]();});}[_0x9ed667(0x7f)](){const _0x4f029d=_0x9ed667;this[_0x4f029d(0x83)]();}async[_0x9ed667(0xc4)]({actionId:_0x661eef,query:_0x470e92,htmlContent:_0xba0ae6,label:_0x39d8e7,mainActionLabel:_0x3e21d8}){const _0x28e987=_0x9ed667;this[_0x28e987(0xc0)][_0x28e987(0xd2)]=_0x39d8e7,this[_0x28e987(0xc0)][_0x28e987(0xc2)]=_0x3e21d8,this[_0x28e987(0x89)]=_0xba0ae6,_0x470e92&&(this[_0x28e987(0xc0)][_0x28e987(0x8e)]?this[_0x28e987(0xda)](_0x470e92,_0xba0ae6,_0x661eef,_0x39d8e7):this[_0x28e987(0xc0)][_0x28e987(0x90)](_0x28e987(0xbb),()=>{const _0x13853e=_0x28e987;this[_0x13853e(0xda)](_0x470e92,_0xba0ae6,_0x661eef,_0x39d8e7);}));}[_0x9ed667(0xc7)](){const _0x350c50=_0x9ed667;this[_0x350c50(0xcb)]&&(this[_0x350c50(0xcb)]=!0x1,this[_0x350c50(0xc0)][_0x350c50(0xce)](),this[_0x350c50(0xbd)][_0x350c50(0xc9)]());}[_0x9ed667(0x85)](){const _0x175d8d=_0x9ed667;this[_0x175d8d(0x89)]='',this[_0x175d8d(0x81)]='',this[_0x175d8d(0xbc)]='',this[_0x175d8d(0xd3)]='',this[_0x175d8d(0xbe)]='',this[_0x175d8d(0xd7)]='',this[_0x175d8d(0x9d)]=void 0x0,this[_0x175d8d(0xc0)][_0x175d8d(0x85)](),this[_0x175d8d(0xc7)]();}async[_0x9ed667(0xda)](_0x816fdf,_0x338c29,_0x2b10ca,_0x6a54fe){const _0xd1a84e=_0x9ed667;return this[_0xd1a84e(0xcb)]=!0x0,this[_0xd1a84e(0xc0)][_0xd1a84e(0xc1)](),this[_0xd1a84e(0xd3)]=_0x338c29,this[_0xd1a84e(0xbe)]=_0x816fdf,this[_0xd1a84e(0xd7)]=_0x6a54fe||_0x816fdf,this[_0xd1a84e(0x9d)]=_0x2b10ca,new Promise(_0x46aa76=>{const _0x3ee8df=_0xd1a84e;this[_0x3ee8df(0xbd)][_0x3ee8df(0xad)]({'query':_0x816fdf,'context':_0x338c29,'onData':_0x341c17=>{const _0x580abc=_0x3ee8df;this[_0x580abc(0xbc)]=_0x341c17,this[_0x580abc(0x81)]=this[_0x580abc(0x87)](this[_0x580abc(0xbc)]);},'actionId':_0x2b10ca})[_0x3ee8df(0xaa)](()=>{const _0x3c13b7=_0x3ee8df;!this[_0x3c13b7(0x81)]&&this[_0x3c13b7(0xbc)]&&(this[_0x3c13b7(0x81)]=this[_0x3c13b7(0x87)](this[_0x3c13b7(0xbc)],!0x0));})[_0x3ee8df(0x9c)](_0x5e9628=>{const _0x3140d3=_0x3ee8df;_0x5e9628 instanceof _0x504cb4?this[_0x3140d3(0xc0)][_0x3140d3(0xa0)](_0x5e9628[_0x3140d3(0x9e)]):this[_0x3140d3(0xc0)][_0x3140d3(0xa0)](),_0x46aa76();})[_0x3ee8df(0x8a)](()=>{const _0x1dae97=_0x3ee8df;this[_0x1dae97(0xc7)](),_0x46aa76();});});}[_0x9ed667(0x87)](_0x208be8,_0x3e462d=!0x1){const _0x1a8198=_0x9ed667,_0x5661b6=Z[_0x1a8198(0x9b)](_0x208be8);_0x208be8=_0x5661b6?_0x208be8[_0x1a8198(0xaf)](_0x5661b6[0x1][_0x1a8198(0xb9)]):_0x208be8[_0x1a8198(0xb9)]<0x64&&!_0x3e462d?'':this[_0x1a8198(0x80)](_0x208be8);const _0x51df5d=this[_0x1a8198(0xc8)][_0x1a8198(0xc6)](_0x208be8,_0x1a8198(0xab));if(_0x5661b6){const _0x46e443=Array[_0x1a8198(0xa1)](_0x51df5d[_0x1a8198(0xac)][_0x1a8198(0xd6)]);_0x46e443[_0x1a8198(0xd0)]();for(const _0x4bb436 of _0x46e443){if(_0x4bb436[_0x1a8198(0x8d)]==Node[_0x1a8198(0xb2)])break;_0x4bb436[_0x1a8198(0x92)]();}}const _0x42f5b3=this[_0x1a8198(0xa4)][_0x1a8198(0xb4)][_0x1a8198(0xb6)][_0x1a8198(0xb7)](this[_0x1a8198(0xcd)][_0x1a8198(0x8f)](_0x51df5d[_0x1a8198(0xac)]));return this[_0x1a8198(0xdb)]()||this[_0x1a8198(0xb3)](_0x42f5b3),this[_0x1a8198(0xa4)][_0x1a8198(0xb4)][_0x1a8198(0x7e)](this[_0x1a8198(0xa4)][_0x1a8198(0xb4)][_0x1a8198(0xd9)](_0x42f5b3));}[_0x9ed667(0xb3)](_0x4d8c2b){const _0x315adf=_0x9ed667,_0xfb5eb3=new _0xdb19fe(this[_0x315adf(0xa4)][_0x315adf(0xa5)][_0x315adf(0xc0)][_0x315adf(0xd5)]),_0x2ebb03=new _0x404c09({'name':/^h[1-5]$/}),_0x3532b9=[];let _0x3b06ff=!0x1;for(const _0x2ddd3e of _0x4d8c2b)_0x2ddd3e['is'](_0x315adf(0xd1))&&_0x2ebb03[_0x315adf(0xb0)](_0x2ddd3e)&&(_0x3532b9[_0x315adf(0xb8)](_0x2ddd3e),'h1'==_0x2ddd3e[_0x315adf(0xb5)]&&(_0x3b06ff=!0x0));if(_0x3b06ff){for(const _0x2b21e7 of _0x3532b9)_0xfb5eb3[_0x315adf(0xa9)]('h'+(parseInt(_0x2b21e7[_0x315adf(0xb5)][0x1])+0x1),_0x2b21e7);}}[_0x9ed667(0xdb)](){const _0x1a04cf=_0x9ed667,{data:_0x588f9e,editing:_0x40dd2f}=this[_0x1a04cf(0xa4)],_0x10a86b=_0x588f9e[_0x1a04cf(0xc5)][_0x1a04cf(0xb7)](_0x1a04cf(0x98)),_0x337547=_0x588f9e[_0x1a04cf(0xb7)](_0x588f9e[_0x1a04cf(0xd9)](_0x10a86b));return!!_0x40dd2f[_0x1a04cf(0xc0)][_0x1a04cf(0xdc)][_0x1a04cf(0x8c)](_0x337547)[_0x1a04cf(0xae)]('h1');}[_0x9ed667(0x9a)](_0x4cdd2f){const _0x4a3769=_0x9ed667;return this[_0x4a3769(0xa4)][_0x4a3769(0xa5)][_0x4a3769(0xc0)][_0x4a3769(0xdc)][_0x4a3769(0x91)](this[_0x4a3769(0xbf)],_0x4cdd2f),this[_0x4a3769(0xbf)][_0x4a3769(0x84)];}[_0x9ed667(0x80)](_0x214db2){const _0x398871=_0x9ed667,_0x19d8c0=_0x214db2[_0x398871(0x95)]();return _0x19d8c0[_0x398871(0xd4)](_0x398871(0x93))?_0x19d8c0[_0x398871(0xca)](_0x398871(0xba))?_0x19d8c0[_0x398871(0xaf)](0x7,_0x19d8c0[_0x398871(0xb9)]-0x3):_0x19d8c0[_0x398871(0xaf)](0x7):_0x214db2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f6d87=_0x507d;(function(_0x11f503,_0x2199ee){const _0x3aac57=_0x507d,_0x320d63=_0x11f503();while(!![]){try{const _0x2531f8=-parseInt(_0x3aac57(0x11d))/0x1*(-parseInt(_0x3aac57(0x133))/0x2)+-parseInt(_0x3aac57(0x113))/0x3+-parseInt(_0x3aac57(0x103))/0x4+-parseInt(_0x3aac57(0x116))/0x5*(-parseInt(_0x3aac57(0x12d))/0x6)+-parseInt(_0x3aac57(0x104))/0x7*(-parseInt(_0x3aac57(0xfd))/0x8)+parseInt(_0x3aac57(0xe8))/0x9*(-parseInt(_0x3aac57(0x137))/0xa)+parseInt(_0x3aac57(0xef))/0xb;if(_0x2531f8===_0x2199ee)break;else _0x320d63['push'](_0x320d63['shift']());}catch(_0x16ccfb){_0x320d63['push'](_0x320d63['shift']());}}}(_0x2491,0xe18d6));import{global as _0x441d29}from'ckeditor5/src/utils.js';import{View as _0x1f2e09,ButtonView as _0x3bfdde,SpinnerView as _0x8fafef}from'ckeditor5/src/ui.js';import _0x260095 from'../../../theme/icons/copy.svg';import{getTranslation as _0x5cfba1}from'../../utils/common-translations.js';function _0x507d(_0x5e4f90,_0x251fc8){const _0x2491fb=_0x2491();return _0x507d=function(_0x507d3c,_0x1c11c4){_0x507d3c=_0x507d3c-0xe6;let _0x3b4afd=_0x2491fb[_0x507d3c];return _0x3b4afd;},_0x507d(_0x5e4f90,_0x251fc8);}import{icons as _0x58fd63}from'ckeditor5/src/core.js';export default class W extends _0x1f2e09{constructor(_0x20a637,_0x739ff8=''){const _0x22dd59=_0x507d;super(_0x20a637),this[_0x22dd59(0x112)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x59eb57=this[_0x22dd59(0x136)];this[_0x22dd59(0xed)]=new ContentFieldView(_0x20a637,_0x739ff8),this[_0x22dd59(0x10a)]=this[_0x22dd59(0x10f)](),this[_0x22dd59(0xec)]({'tag':_0x22dd59(0xf1),'attributes':{'class':['ck',_0x22dd59(0x12e),_0x59eb57['if'](_0x22dd59(0xf7),_0x22dd59(0x118),_0x1cde92=>!_0x1cde92)],'tabindex':'-1'},'children':[{'tag':_0x22dd59(0xf1),'attributes':{'class':['ck',_0x22dd59(0x11c),_0x59eb57['if'](_0x22dd59(0x120),_0x22dd59(0xf9))]},'children':[this[_0x22dd59(0xed)],{'tag':_0x22dd59(0xf1),'attributes':{'class':['ck',_0x22dd59(0x130)]},'children':[this[_0x22dd59(0x10a)]]}]}]});}[_0x4f6d87(0xf5)](){const _0x44a27a=_0x4f6d87;super[_0x44a27a(0xf5)](),this[_0x44a27a(0xfe)]&&this[_0x44a27a(0xed)][_0x44a27a(0x10b)](this[_0x44a27a(0xfe)]);let _0x5accbf=!0x1;this['on'](_0x44a27a(0x132),(_0x54bbea,_0x120b6c,_0x5bcc16)=>{const _0x114f3c=_0x44a27a,_0x1317db=!this[_0x114f3c(0xed)][_0x114f3c(0x11f)][_0x114f3c(0x12b)](_0x114f3c(0x12c));this[_0x114f3c(0xed)][_0x114f3c(0x10b)](_0x5bcc16),this[_0x114f3c(0x120)]&&_0x1317db&&!_0x5accbf&&this[_0x114f3c(0x11f)][_0x114f3c(0x105)]({'top':this[_0x114f3c(0x11f)][_0x114f3c(0x111)],'behavior':_0x114f3c(0xf2)});}),this['on'](_0x44a27a(0xe6),(_0x506135,_0x40db14,_0x3a8544)=>{const _0x3409e0=_0x44a27a;_0x5accbf=!0x1,_0x3a8544?(this[_0x3409e0(0xfe)]=null,this[_0x3409e0(0xed)][_0x3409e0(0x119)]()):this[_0x3409e0(0xfe)]||this[_0x3409e0(0xed)][_0x3409e0(0x10b)]('');}),this[_0x44a27a(0x117)](this[_0x44a27a(0x11f)],_0x44a27a(0x10d),()=>{_0x5accbf=!0x0;}),this[_0x44a27a(0x117)](this[_0x44a27a(0x11f)],_0x44a27a(0xee),()=>{_0x5accbf=!0x0;});}[_0x4f6d87(0x12f)](){const _0x45d1a5=_0x4f6d87;this[_0x45d1a5(0x11f)][_0x45d1a5(0x12f)]();}[_0x4f6d87(0x10f)](){const _0x29b7f9=_0x4f6d87,_0x169860=this[_0x29b7f9(0x129)],_0x2c077b=new _0x3bfdde(this[_0x29b7f9(0x129)]),_0x2a6fe2=_0x29b7f9(0x11b);return _0x2c077b[_0x29b7f9(0x112)]({'label':_0x5cfba1(_0x169860,_0x29b7f9(0x115)),'icon':_0x260095,'class':_0x2a6fe2,'tooltip':!0x0}),_0x2c077b[_0x29b7f9(0xf4)](_0x29b7f9(0xf7))['to'](this,_0x29b7f9(0xfe),_0x4e8e33=>!!_0x4e8e33),_0x2c077b[_0x29b7f9(0xf4)](_0x29b7f9(0x134))['to'](this,_0x29b7f9(0x120),_0x285f53=>!_0x285f53),_0x2c077b['on'](_0x29b7f9(0x127),()=>{const _0x29f400=_0x29b7f9;this[_0x29f400(0x124)](this[_0x29f400(0xed)][_0x29f400(0x11f)]),_0x2c077b[_0x29f400(0x139)]=_0x58fd63[_0x29f400(0x114)],_0x2c077b[_0x29f400(0x101)]=_0x2a6fe2+_0x29f400(0xe7),this[_0x29f400(0x12f)](),setTimeout(()=>{const _0x14a82f=_0x29f400;_0x2c077b[_0x14a82f(0x139)]=_0x260095,_0x2c077b[_0x14a82f(0x101)]=_0x2a6fe2;},0x3e8);}),_0x2c077b;}[_0x4f6d87(0x124)](_0x59fbba){const _0x5316e2=_0x4f6d87,{window:_0x62f882,document:_0x481bf9}=_0x441d29;if(_0x62f882[_0x5316e2(0xfc)]){const {Blob:_0x54bf67,ClipboardItem:_0x569c55}=_0x62f882,_0x1caf03=[new _0x569c55({'text/html':new _0x54bf67([_0x59fbba[_0x5316e2(0xff)]],{'type':_0x5316e2(0x123)}),'text/plain':new _0x54bf67([_0x59fbba[_0x5316e2(0xe9)]||''],{'type':_0x5316e2(0x122)})})];navigator[_0x5316e2(0x11e)][_0x5316e2(0x12a)](_0x1caf03);}else{const _0x2d6816=_0x481bf9[_0x5316e2(0xea)](_0x5316e2(0xf1));_0x2d6816[_0x5316e2(0x11a)][_0x5316e2(0x131)]=_0x5316e2(0x106),_0x2d6816[_0x5316e2(0x11a)][_0x5316e2(0x138)]=_0x5316e2(0x10e),_0x2d6816[_0x5316e2(0xff)]=_0x5316e2(0xf0)+_0x59fbba[_0x5316e2(0xff)]+_0x5316e2(0x102),_0x481bf9[_0x5316e2(0x110)][_0x5316e2(0x13c)](_0x2d6816);const _0x385ddd=_0x481bf9[_0x5316e2(0xf6)]();_0x385ddd[_0x5316e2(0xeb)](_0x2d6816[_0x5316e2(0x126)]),_0x385ddd[_0x5316e2(0x109)](_0x2d6816[_0x5316e2(0xfb)]);const _0x893bfd=_0x62f882[_0x5316e2(0x13a)]();_0x893bfd[_0x5316e2(0x108)](),_0x893bfd[_0x5316e2(0x128)](_0x385ddd),_0x481bf9[_0x5316e2(0xf8)](_0x5316e2(0x135)),_0x2d6816[_0x5316e2(0x107)]();}}}export class ContentFieldView extends _0x1f2e09{constructor(_0x5b6e92,_0x4e9d0e=''){const _0x219823=_0x4f6d87;super(_0x5b6e92),this[_0x219823(0x100)]=this[_0x219823(0xf3)](),this[_0x219823(0xec)]({'tag':_0x219823(0xf1),'attributes':{'class':['ck',_0x219823(0x10c),_0x4e9d0e,_0x219823(0x121),_0x219823(0xfa)]}});}[_0x4f6d87(0x10b)](_0x243daf){const _0x5da17e=_0x4f6d87;this[_0x5da17e(0x11f)][_0x5da17e(0xff)]=_0x243daf;}[_0x4f6d87(0x119)](){const _0x3ebeb3=_0x4f6d87;this[_0x3ebeb3(0x11f)][_0x3ebeb3(0x13c)](this[_0x3ebeb3(0x100)][_0x3ebeb3(0x11f)]);}[_0x4f6d87(0xf3)](){const _0x1f4f66=_0x4f6d87,_0x1fd19e=new _0x1f2e09(),_0x4ae2bb=this[_0x1f4f66(0x129)],_0x56234f=new _0x8fafef();return _0x56234f[_0x1f4f66(0xf7)]=!0x0,_0x1fd19e[_0x1f4f66(0xec)]({'tag':_0x1f4f66(0xf1),'attributes':{'class':['ck',_0x1f4f66(0x13b)]},'children':[_0x56234f,{'text':_0x5cfba1(_0x4ae2bb,_0x1f4f66(0x125))}]}),_0x1fd19e[_0x1f4f66(0xf5)](),_0x1fd19e;}}function _0x2491(){const _0x3ecc6c=['style','ck-ai-form__copy-button','ck-ai-form__content-area','881462AerXwo','clipboard','element','isProcessing','ck-reset_all-excluded','text/plain','text/html','_copyHTMLToClipboard','AI\x20is\x20writing...','firstElementChild','execute','addRange','locale','write','querySelector','.ck-ai-form__loader','18GyViHF','ck-ai-form__content-area-wrapper','focus','ck-ai-form__copy-button-wrapper','position','change:value','2gpRrUI','isEnabled','copy','bindTemplate','30IwCYXN','left','icon','getSelection','ck-ai-form__loader','appendChild','change:isProcessing','\x20ck-ai-form__copy-button--copied','2798469MjCLce','textContent','createElement','setStartAfter','setTemplate','contentFieldView','mousedown','15597967zaaqTB','<span>[</span>','div','smooth','_createLoader','bind','render','createRange','isVisible','execCommand','ck-ai-form__content-area--processing','ck-ai-form__content-field','lastElementChild','ClipboardItem','608WwWXzz','value','innerHTML','loaderView','class','<span>]</span>','5911536HFjgwe','1211DZdDDQ','scrollTo','absolute','remove','removeAllRanges','setEndBefore','copyButtonView','setContent','ck-content','wheel','-9999px','_createCopyButton','body','scrollHeight','set','884745JoAZQY','check','Copy','2194795QwgEBZ','listenTo','ck-hidden','appendLoader'];_0x2491=function(){return _0x3ecc6c;};return _0x2491();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x40aa3e,_0x2d88ae){const _0x4c6f5e=_0x51d2,_0x3f5b72=_0x40aa3e();while(!![]){try{const _0x4bf8a8=parseInt(_0x4c6f5e(0x8b))/0x1+-parseInt(_0x4c6f5e(0x8f))/0x2*(parseInt(_0x4c6f5e(0x93))/0x3)+parseInt(_0x4c6f5e(0x91))/0x4+-parseInt(_0x4c6f5e(0x95))/0x5*(-parseInt(_0x4c6f5e(0x94))/0x6)+parseInt(_0x4c6f5e(0x99))/0x7*(parseInt(_0x4c6f5e(0x97))/0x8)+parseInt(_0x4c6f5e(0x8a))/0x9+-parseInt(_0x4c6f5e(0x98))/0xa;if(_0x4bf8a8===_0x2d88ae)break;else _0x3f5b72['push'](_0x3f5b72['shift']());}catch(_0x4d6fd9){_0x3f5b72['push'](_0x3f5b72['shift']());}}}(_0x2d19,0x54f8b));function _0x2d19(){const _0x1e8fbf=['set','2007144LtbVkl','text','592257XLuCgk','91086iWKqtf','45QtBQoS','content','8heNWEB','4273940UIeXfu','2189285oVvPIM','div','301086CtKMsB','383070sdXeBK','ck-ai-form__error','bindTemplate','setTemplate','6llLpGi'];_0x2d19=function(){return _0x1e8fbf;};return _0x2d19();}function _0x51d2(_0x52da9f,_0x369859){const _0x2d1922=_0x2d19();return _0x51d2=function(_0x51d2f1,_0x1f5e7f){_0x51d2f1=_0x51d2f1-0x8a;let _0x2ed845=_0x2d1922[_0x51d2f1];return _0x2ed845;},_0x51d2(_0x52da9f,_0x369859);}import{View as _0x52579d,IconView as _0x2db02f}from'ckeditor5/src/ui.js';import _0x4abbd0 from'../../../theme/icons/error.svg';export default class tt extends _0x52579d{constructor(_0x23aa00,_0x45038b=''){const _0x1151a5=_0x51d2;super(_0x23aa00);const _0x238b03=new _0x2db02f(),_0x36eecb=this[_0x1151a5(0x8d)];this[_0x1151a5(0x90)](_0x1151a5(0x92),_0x45038b),_0x238b03[_0x1151a5(0x96)]=_0x4abbd0,this[_0x1151a5(0x8e)]({'tag':_0x1151a5(0x9a),'attributes':{'class':['ck',_0x1151a5(0x8c)]},'children':[_0x238b03,{'text':_0x36eecb['to'](_0x1151a5(0x92))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x25121a=_0x3067;(function(_0x286dad,_0x1ec7f5){const _0xc2dc6a=_0x3067,_0x4a9b37=_0x286dad();while(!![]){try{const _0x5bdbe8=-parseInt(_0xc2dc6a(0x17f))/0x1+parseInt(_0xc2dc6a(0x193))/0x2*(-parseInt(_0xc2dc6a(0x187))/0x3)+parseInt(_0xc2dc6a(0x186))/0x4*(parseInt(_0xc2dc6a(0x188))/0x5)+parseInt(_0xc2dc6a(0x1ab))/0x6+-parseInt(_0xc2dc6a(0x1ad))/0x7*(-parseInt(_0xc2dc6a(0x1a5))/0x8)+-parseInt(_0xc2dc6a(0x1a9))/0x9*(parseInt(_0xc2dc6a(0x19b))/0xa)+parseInt(_0xc2dc6a(0x178))/0xb;if(_0x5bdbe8===_0x1ec7f5)break;else _0x4a9b37['push'](_0x4a9b37['shift']());}catch(_0x42f70a){_0x4a9b37['push'](_0x4a9b37['shift']());}}}(_0x1f0a,0xd7f64));import{Rect as _0x4baf27,global as _0x5bb90f,isVisible as _0x2c4e4f}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x38fef5,ButtonView as _0xb77d3b}from'ckeditor5/src/ui.js';import{icons as _0x27e1d4}from'ckeditor5/src/core.js';import{getTranslation as _0x747a83}from'../../utils/common-translations.js';function _0x1f0a(){const _0x1a6fa2=['width','window','locale','37030WQCvvf','fieldView','focusLast','rtl','fieldWrapperChildren','execute','update','style','13406430uAIEnq','requestAnimationFrame','focusableChildren','isEmpty','target','add','value','left','maxRows','filteredView','248IKjitR','isEnabled','_createSubmitButton','history','9TBYUHW','keystrokes','5154600ykPssR','submitButtonView','347662aSmRll','submit','History','ck-ai-form__submit','element','enter','queryView','370491RbjlDj','ck-ai-form__toggle-history','minRows','children','Submit','bind','isVisible','212665ymilAd','showHistoryButtonView','_createShowHistoryButton','render','fire','focusFirst','right','44668awDSmy','285lTpZgU','790sYflgm','uiLanguageDirection','focus','resultsView','focusCycler','excludeScrollbarsAndBorders','set','isOn'];_0x1f0a=function(){return _0x1a6fa2;};return _0x1f0a();}function _0x3067(_0x4ba87a,_0x40d7c9){const _0x1f0a80=_0x1f0a();return _0x3067=function(_0x3067c8,_0x130abd){_0x3067c8=_0x3067c8-0x178;let _0x572b84=_0x1f0a80[_0x3067c8];return _0x572b84;},_0x3067(_0x4ba87a,_0x40d7c9);}import _0x322709 from'../../../theme/icons/submit.svg';export default class ht extends _0x38fef5{constructor(_0x52e3f4,_0xa99889){const _0x2641cf=_0x3067;super(_0x52e3f4,_0xa99889),this[_0x2641cf(0x1b3)][_0x2641cf(0x194)][_0x2641cf(0x17a)]=0x1,this[_0x2641cf(0x1b3)][_0x2641cf(0x194)][_0x2641cf(0x1a3)]=0x3,this[_0x2641cf(0x1ac)]=this[_0x2641cf(0x1a7)](),this[_0x2641cf(0x180)]=this[_0x2641cf(0x181)](),this[_0x2641cf(0x19d)][_0x2641cf(0x1a0)](this[_0x2641cf(0x180)],0x1),this[_0x2641cf(0x19d)][_0x2641cf(0x1a0)](this[_0x2641cf(0x1ac)]);}[_0x25121a(0x182)](){const _0x50ff82=_0x25121a;super[_0x50ff82(0x182)](),this[_0x50ff82(0x1b3)][_0x50ff82(0x197)][_0x50ff82(0x1a0)](this[_0x50ff82(0x180)]),this[_0x50ff82(0x17b)][_0x50ff82(0x1a0)](this[_0x50ff82(0x1ac)]),this[_0x50ff82(0x1aa)][_0x50ff82(0x18e)](_0x50ff82(0x1b2),(_0x5c5ab6,_0x14fbb8)=>{const _0x483914=_0x50ff82;_0x5c5ab6[_0x483914(0x19f)]==this[_0x483914(0x1b3)][_0x483914(0x194)][_0x483914(0x1b1)]&&(this[_0x483914(0x1ae)](),_0x14fbb8());});}[_0x25121a(0x1a7)](){const _0x495daf=_0x25121a,_0x466212=new _0xb77d3b(this[_0x495daf(0x192)]),_0x4532a3=this[_0x495daf(0x192)];return _0x466212[_0x495daf(0x18e)]({'icon':_0x322709,'label':_0x747a83(_0x4532a3,_0x495daf(0x17c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x495daf(0x1b0)}),_0x466212['on'](_0x495daf(0x198),()=>{const _0x1ba6eb=_0x495daf;this[_0x1ba6eb(0x1ae)]();}),_0x466212[_0x495daf(0x17d)](_0x495daf(0x1a6))['to'](this[_0x495daf(0x1b3)][_0x495daf(0x194)],_0x495daf(0x19e),this,_0x495daf(0x1a6),(_0x5cea22,_0x5e03e4)=>!_0x5cea22&&_0x5e03e4),_0x466212;}[_0x25121a(0x181)](){const _0x40e580=_0x25121a,_0x5048ad=new _0xb77d3b(this[_0x40e580(0x192)]),_0x1d9cbb=this[_0x40e580(0x18b)],_0x381c4e=this[_0x40e580(0x192)];_0x5048ad[_0x40e580(0x18e)]({'label':_0x747a83(_0x381c4e,_0x40e580(0x1af)),'withText':!0x1,'icon':_0x27e1d4[_0x40e580(0x1a8)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x40e580(0x179)}),_0x5048ad[_0x40e580(0x17d)](_0x40e580(0x18f))['to'](_0x1d9cbb,_0x40e580(0x17e)),_0x5048ad[_0x40e580(0x17d)](_0x40e580(0x1a6))['to'](this,_0x40e580(0x1a6)),_0x5048ad['on'](_0x40e580(0x198),()=>{const _0x2c4c8a=_0x40e580;_0x1d9cbb[_0x2c4c8a(0x17e)]=!_0x1d9cbb[_0x2c4c8a(0x17e)],_0x1d9cbb[_0x2c4c8a(0x17e)]?this[_0x2c4c8a(0x1a4)][_0x2c4c8a(0x18a)]():this[_0x2c4c8a(0x18a)]();});const _0x21bf5a=()=>{const _0x57e531=_0x40e580;_0x5bb90f[_0x57e531(0x191)][_0x57e531(0x19c)](()=>{const _0x491477=_0x57e531;if(_0x2c4e4f(this[_0x491477(0x1b1)])){const _0x2d9354=new _0x4baf27(this[_0x491477(0x1b3)][_0x491477(0x194)][_0x491477(0x1b1)]),_0x109f73=_0x2d9354[_0x491477(0x190)],_0x1c17d4=_0x491477(0x196)===_0x381c4e[_0x491477(0x189)]?_0x491477(0x1a2):_0x491477(0x185);_0x2d9354[_0x491477(0x18d)](),_0x5048ad[_0x491477(0x1b1)][_0x491477(0x19a)][_0x1c17d4]=_0x109f73-_0x2d9354[_0x491477(0x190)]+0x1+'px';}});};return this[_0x40e580(0x1b3)][_0x40e580(0x194)]['on'](_0x40e580(0x199),_0x21bf5a),this['on'](_0x40e580(0x182),_0x21bf5a),_0x5048ad;}[_0x25121a(0x1ae)](){const _0x55c454=_0x25121a,_0x5e8478=this[_0x55c454(0x1b3)][_0x55c454(0x194)][_0x55c454(0x1b1)][_0x55c454(0x1a1)];this[_0x55c454(0x183)](_0x55c454(0x1ae),_0x5e8478);}[_0x25121a(0x18a)](_0x53aedd){const _0xb77d60=_0x25121a;-0x1===_0x53aedd?this[_0xb77d60(0x18c)][_0xb77d60(0x195)]():this[_0xb77d60(0x18c)][_0xb77d60(0x184)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cbed0=_0xcf3b;function _0x5121(){const _0x2b38cf=['ck-ai-form__toolbar','extendTemplate','REPLACE','235832bvQtbW','130OquXSd','AI_','14981010shQNpq','locale','mainAction','addMany','76689dpkYgt','toUpperCase','replace','Try\x20again','2ncxzUl','label','stopButton','bindTemplate','Insert\x20below','ck-button-action','bind','196321xniDAE','12QaFgbZ','_CONTENT','insertButton','tryAgainButton','3918948trRWIN','isVisible','items','230349imbkaB','replaceButton','set','971765yWTKwy','_createButton','ck-hidden','insert','Stop','91uTtjXm'];_0x5121=function(){return _0x2b38cf;};return _0x5121();}(function(_0x185ad2,_0x5751cf){const _0x2f2b32=_0xcf3b,_0x39ad4f=_0x185ad2();while(!![]){try{const _0x22889e=parseInt(_0x2f2b32(0x1cb))/0x1*(parseInt(_0x2f2b32(0x1c4))/0x2)+parseInt(_0x2f2b32(0x1d3))/0x3*(-parseInt(_0x2f2b32(0x1cc))/0x4)+parseInt(_0x2f2b32(0x1b0))/0x5+-parseInt(_0x2f2b32(0x1d0))/0x6+-parseInt(_0x2f2b32(0x1b5))/0x7*(parseInt(_0x2f2b32(0x1b9))/0x8)+-parseInt(_0x2f2b32(0x1c0))/0x9*(parseInt(_0x2f2b32(0x1ba))/0xa)+parseInt(_0x2f2b32(0x1bc))/0xb;if(_0x22889e===_0x5751cf)break;else _0x39ad4f['push'](_0x39ad4f['shift']());}catch(_0x33c29a){_0x39ad4f['push'](_0x39ad4f['shift']());}}}(_0x5121,0x5b925));function _0xcf3b(_0x3ba902,_0x2158f5){const _0x512122=_0x5121();return _0xcf3b=function(_0xcf3b7a,_0x585b8a){_0xcf3b7a=_0xcf3b7a-0x1ae;let _0xc4c21=_0x512122[_0xcf3b7a];return _0xc4c21;},_0xcf3b(_0x3ba902,_0x2158f5);}import{ToolbarView as _0x56d6a3,ButtonView as _0x2aace3}from'ckeditor5/src/ui.js';import{getTranslation as _0x8cd493}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3cbed0(0x1c2),'INSERT':_0x3cbed0(0x1b3)};export default class nt extends _0x56d6a3{constructor(_0x236d0c){const _0xd7594c=_0x3cbed0;super(_0x236d0c),this[_0xd7594c(0x1af)](_0xd7594c(0x1d1),!0x1),this[_0xd7594c(0x1af)](_0xd7594c(0x1be),AIFormToolbarViewMainActionLabel[_0xd7594c(0x1b8)]),this[_0xd7594c(0x1ae)]=this[_0xd7594c(0x1b1)]('',_0xd7594c(0x1c9)),this[_0xd7594c(0x1ae)][_0xd7594c(0x1ca)](_0xd7594c(0x1c5))['to'](this,_0xd7594c(0x1be),_0x18ade3=>_0x8cd493(_0x236d0c,_0xd7594c(0x1bb)+_0x18ade3[_0xd7594c(0x1c1)]()+_0xd7594c(0x1cd))),this[_0xd7594c(0x1ce)]=this[_0xd7594c(0x1b1)](_0x8cd493(_0x236d0c,_0xd7594c(0x1c8))),this[_0xd7594c(0x1cf)]=this[_0xd7594c(0x1b1)](_0x8cd493(_0x236d0c,_0xd7594c(0x1c3))),this[_0xd7594c(0x1c6)]=this[_0xd7594c(0x1b1)](_0x8cd493(_0x236d0c,_0xd7594c(0x1b4)));const _0x15a28a=this[_0xd7594c(0x1c7)];this[_0xd7594c(0x1b7)]({'attributes':{'class':[_0xd7594c(0x1b6),_0x15a28a['if'](_0xd7594c(0x1d1),_0xd7594c(0x1b2),_0x33c128=>!_0x33c128)]}}),this[_0xd7594c(0x1d2)][_0xd7594c(0x1bf)]([this[_0xd7594c(0x1ae)],this[_0xd7594c(0x1ce)],this[_0xd7594c(0x1cf)],this[_0xd7594c(0x1c6)]]);}[_0x3cbed0(0x1b1)](_0x5551fd,_0x1e7749){const _0x35d7fc=_0x3cbed0,_0x540bf1=new _0x2aace3(this[_0x35d7fc(0x1bd)]);return _0x540bf1[_0x35d7fc(0x1af)]({'label':_0x5551fd,'class':_0x1e7749||'','isVisible':!0x0,'withText':!0x0}),_0x540bf1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x29fd(_0x418b2d,_0xf57c46){const _0x3c91ae=_0x3c91();return _0x29fd=function(_0x29fddf,_0x1ce75b){_0x29fddf=_0x29fddf-0x194;let _0x36967a=_0x3c91ae[_0x29fddf];return _0x36967a;},_0x29fd(_0x418b2d,_0xf57c46);}const _0x301f8d=_0x29fd;(function(_0x2888ad,_0x393997){const _0x472313=_0x29fd,_0x1eed5f=_0x2888ad();while(!![]){try{const _0x4cbe83=parseInt(_0x472313(0x194))/0x1*(-parseInt(_0x472313(0x1c8))/0x2)+parseInt(_0x472313(0x1dc))/0x3*(-parseInt(_0x472313(0x1d8))/0x4)+parseInt(_0x472313(0x1a8))/0x5+-parseInt(_0x472313(0x1ce))/0x6*(parseInt(_0x472313(0x1b0))/0x7)+parseInt(_0x472313(0x1dd))/0x8+-parseInt(_0x472313(0x19a))/0x9+parseInt(_0x472313(0x1ca))/0xa*(parseInt(_0x472313(0x1b1))/0xb);if(_0x4cbe83===_0x393997)break;else _0x1eed5f['push'](_0x1eed5f['shift']());}catch(_0x280886){_0x1eed5f['push'](_0x1eed5f['shift']());}}}(_0x3c91,0x969b3));import{FocusTracker as _0x5c435b,KeystrokeHandler as _0x5b2cc2}from'ckeditor5/src/utils.js';import{View as _0x3476b3,FocusCycler as _0x392650,createLabeledTextarea as _0x5b3e3c}from'ckeditor5/src/ui.js';import _0xb24d37,{AIFormToolbarViewMainActionLabel as _0x2db8e8}from'./aiformtoolbarview.js';import _0x1675b4 from'./aiformcontentarea.js';import _0x508888 from'./aiformerrorview.js';import _0x280fca from'./aiformpromptview.js';function _0x3c91(){const _0xe5c43e=['_focusables','isVisible','reset','ck-ai-form-content','execute','historyGroupView','fieldView','1035825rJbVEK','clearHistory','stopButton','focus','submitPrompt','bindTo','isEnabled','REPLACE','26089qVHQtY','2823304ShyjEH','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','clear','listenTo','stopProcessing','copyButtonView','_createToolbar','keystrokes','text','tryAgainEvent','setTemplate','_createPromptView','promptView','AI_ERROR_FAILED','contentArea','isError','isProcessing','locale','label','errorView','focusLast','trim','mainAction','13326AjvPNR','Empty\x20history','120JhpyBK','ck-hidden','search','Ask\x20AI\x20to\x20edit\x20or\x20generate','1266zHfhDk','submit','high','fire','bindTemplate','items','_createHistoryView','queryView','render','add','108xaEdpB','Ask\x20AI\x20to\x20improve\x20generated\x20text','bind','insertButton','130881YaPtaK','5224240AMSFhs','tab','handleError','insertContentBelow','chain','set','startProcessing','replaceContent','_promptHistory','tryAgainButton','replaceButton','focusCycler','delegate','152bOpxnw','toolbar','prompt','shift\x20+\x20tab','finishProcessing','focusFirst','3115602HCvHAc','value','ck-ai-form','createCollection','div','element','focusTracker'];_0x3c91=function(){return _0xe5c43e;};return _0x3c91();}import _0x272dc0 from'./aihistorylistview.js';import _0x5a242b from'./aihistorylistitemview.js';import _0x5f0ea7 from'./prompthistory.js';import{getTranslation as _0x2ead09}from'../../utils/common-translations.js';import{escape as _0x35685f}from'lodash-es';export default class K extends _0x3476b3{constructor(_0x5ef341,_0x4b9724,_0x318d7e=''){const _0x5088ba=_0x29fd;super(_0x5ef341),this[_0x5088ba(0x1e2)](_0x5088ba(0x1ae),!0x0),this[_0x5088ba(0x1e2)](_0x5088ba(0x1c1),!0x1),this[_0x5088ba(0x1e2)](_0x5088ba(0x196),''),this[_0x5088ba(0x1e2)](_0x5088ba(0x19b),''),this[_0x5088ba(0x1e2)](_0x5088ba(0x1c0),!0x1),this[_0x5088ba(0x1e2)](_0x5088ba(0x1c7),_0x2db8e8[_0x5088ba(0x1af)]),this[_0x5088ba(0x1e5)]=new _0x5f0ea7(),this[_0x5088ba(0x1c4)]=new _0x508888(_0x5ef341),this[_0x5088ba(0x1bf)]=new _0x1675b4(_0x5ef341,_0x318d7e),this[_0x5088ba(0x1bf)][_0x5088ba(0x1da)](_0x5088ba(0x1c1))['to'](this),this[_0x5088ba(0x1bf)][_0x5088ba(0x1da)](_0x5088ba(0x19b))['to'](this),this[_0x5088ba(0x195)]=this[_0x5088ba(0x1b7)](),this[_0x5088ba(0x195)][_0x5088ba(0x1da)](_0x5088ba(0x1c7))['to'](this),this[_0x5088ba(0x1bd)]=this[_0x5088ba(0x1bc)](),this[_0x5088ba(0x1a0)]=new _0x5c435b(),this[_0x5088ba(0x1b8)]=new _0x5b2cc2(),this[_0x5088ba(0x1a1)]=this[_0x5088ba(0x19d)]([this[_0x5088ba(0x1bf)],this[_0x5088ba(0x1bf)][_0x5088ba(0x1b6)],this[_0x5088ba(0x195)],this[_0x5088ba(0x1bd)]]),this[_0x5088ba(0x1e8)]=new _0x392650({'focusables':this[_0x5088ba(0x1a1)],'focusTracker':this[_0x5088ba(0x1a0)],'keystrokeHandler':this[_0x5088ba(0x1b8)],'actions':{'focusPrevious':_0x5088ba(0x197),'focusNext':_0x5088ba(0x1de)}}),this[_0x5088ba(0x1e8)][_0x5088ba(0x1e1)](this[_0x5088ba(0x1bd)][_0x5088ba(0x1e8)]),this[_0x5088ba(0x1bd)][_0x5088ba(0x1d5)][_0x5088ba(0x1a7)][_0x5088ba(0x1da)](_0x5088ba(0x19b))['to'](this,_0x5088ba(0x196));const _0x9048e0=this[_0x5088ba(0x1d2)];this[_0x5088ba(0x1bb)]({'tag':_0x5088ba(0x19e),'attributes':{'class':['ck',_0x5088ba(0x19c),_0x4b9724],'tabindex':'-1'},'children':[{'tag':_0x5088ba(0x19e),'attributes':{'class':['ck',_0x5088ba(0x1a4)]},'children':[{'tag':_0x5088ba(0x19e),'attributes':{'class':[_0x9048e0['if'](_0x5088ba(0x1c0),_0x5088ba(0x1cb),_0x63c790=>!_0x63c790)]},'children':[this[_0x5088ba(0x1c4)]]},this[_0x5088ba(0x1bf)],this[_0x5088ba(0x195)],this[_0x5088ba(0x1bd)]]}]});}[_0x301f8d(0x1d6)](){const _0x4ae340=_0x301f8d;super[_0x4ae340(0x1d6)](),this[_0x4ae340(0x1a0)][_0x4ae340(0x1d7)](this[_0x4ae340(0x1bf)][_0x4ae340(0x19f)]),this[_0x4ae340(0x1a0)][_0x4ae340(0x1d7)](this[_0x4ae340(0x1bf)][_0x4ae340(0x1b6)][_0x4ae340(0x19f)]),this[_0x4ae340(0x1a0)][_0x4ae340(0x1d7)](this[_0x4ae340(0x195)][_0x4ae340(0x19f)]),this[_0x4ae340(0x1a0)][_0x4ae340(0x1d7)](this[_0x4ae340(0x1bd)][_0x4ae340(0x19f)]),this[_0x4ae340(0x1b8)][_0x4ae340(0x1b4)](this[_0x4ae340(0x19f)]);}[_0x301f8d(0x1ab)](_0x2b7b30=0x1){const _0x591300=_0x301f8d;-0x1===_0x2b7b30?this[_0x591300(0x1e8)][_0x591300(0x1c5)]():this[_0x591300(0x1e8)][_0x591300(0x199)]();}[_0x301f8d(0x1a3)](){const _0x254f78=_0x301f8d;this[_0x254f78(0x196)]='',this[_0x254f78(0x19b)]='',this[_0x254f78(0x1c0)]=!0x1,this[_0x254f78(0x1bd)][_0x254f78(0x1a3)](),this[_0x254f78(0x1bf)][_0x254f78(0x1a2)]=!0x1,this[_0x254f78(0x195)][_0x254f78(0x1a2)]=!0x1;}[_0x301f8d(0x1bc)](){const _0x44ff7c=_0x301f8d,_0x2f98df=this[_0x44ff7c(0x1c2)],_0x2308a6=new _0x280fca(_0x2f98df,{'queryView':{'label':_0x2ead09(_0x2f98df,_0x44ff7c(0x1cd)),'creator':_0x5b3e3c,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2ead09(_0x2f98df,_0x44ff7c(0x1c9)),'secondary':_0x2ead09(_0x2f98df,_0x44ff7c(0x1b2))}}},'filteredView':this[_0x44ff7c(0x1d4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2308a6[_0x44ff7c(0x1da)](_0x44ff7c(0x1ae))['to'](this,_0x44ff7c(0x1ae),this,_0x44ff7c(0x1c1),(_0x2d046c,_0x458acd)=>_0x2d046c&&!_0x458acd),this[_0x44ff7c(0x1b4)](_0x2308a6,_0x44ff7c(0x1cf),(_0x271bab,_0x61d83c)=>{const _0x1006a6=_0x44ff7c;this[_0x1006a6(0x196)]=_0x61d83c;const _0x5c73c4=_0x35685f(_0x61d83c);this[_0x1006a6(0x1d1)](_0x1006a6(0x1ac),_0x5c73c4),_0x61d83c[_0x1006a6(0x1c6)]()&&this[_0x1006a6(0x1e5)][_0x1006a6(0x1d7)]({'prompt':_0x5c73c4},0x0);},{'priority':_0x44ff7c(0x1d0)}),_0x2308a6;}[_0x301f8d(0x1d4)](){const _0x12d430=_0x301f8d,_0x4262b4=new _0x272dc0(this[_0x12d430(0x1c2)]);return _0x4262b4[_0x12d430(0x1a6)][_0x12d430(0x1d3)][_0x12d430(0x1ad)](this[_0x12d430(0x1e5)])['as'](_0x5a242b),_0x4262b4['on'](_0x12d430(0x1a9),()=>{const _0x46e273=_0x12d430;this[_0x46e273(0x1e5)][_0x46e273(0x1b3)](),this[_0x46e273(0x1bd)][_0x46e273(0x1cc)](''),this[_0x46e273(0x1bd)][_0x46e273(0x1ab)]();}),_0x4262b4;}[_0x301f8d(0x1b7)](){const _0x221b96=_0x301f8d,_0x36a43f=new _0xb24d37(this[_0x221b96(0x1c2)]);return _0x36a43f[_0x221b96(0x1e7)][_0x221b96(0x1da)](_0x221b96(0x1ae))['to'](this,_0x221b96(0x1ae),this,_0x221b96(0x1c1),this,_0x221b96(0x19b),(_0x443e98,_0x2c1bcc,_0xb90ff1)=>_0x443e98&&!_0x2c1bcc&&!!_0xb90ff1),_0x36a43f[_0x221b96(0x1e7)][_0x221b96(0x1e9)](_0x221b96(0x1a5))['to'](this,_0x221b96(0x1e4)),_0x36a43f[_0x221b96(0x1db)][_0x221b96(0x1da)](_0x221b96(0x1ae))['to'](this,_0x221b96(0x1ae),this,_0x221b96(0x1c1),this,_0x221b96(0x19b),(_0x268cd8,_0x177b14,_0x1c462b)=>_0x268cd8&&!_0x177b14&&!!_0x1c462b),_0x36a43f[_0x221b96(0x1db)][_0x221b96(0x1e9)](_0x221b96(0x1a5))['to'](this,_0x221b96(0x1e0)),_0x36a43f[_0x221b96(0x1e6)][_0x221b96(0x1da)](_0x221b96(0x1ae))['to'](this,_0x221b96(0x1ae),this,_0x221b96(0x1c1),(_0x1233a8,_0x41145a)=>_0x1233a8&&!_0x41145a),_0x36a43f[_0x221b96(0x1e6)][_0x221b96(0x1e9)](_0x221b96(0x1a5))['to'](this,_0x221b96(0x1ba)),_0x36a43f[_0x221b96(0x1aa)][_0x221b96(0x1da)](_0x221b96(0x1ae))['to'](this,_0x221b96(0x1c1)),_0x36a43f[_0x221b96(0x1aa)][_0x221b96(0x1e9)](_0x221b96(0x1a5))['to'](this,_0x221b96(0x1b5)),_0x36a43f;}[_0x301f8d(0x1e3)](){const _0xf451dd=_0x301f8d;this[_0xf451dd(0x19b)]='',this[_0xf451dd(0x1c0)]=!0x1,this[_0xf451dd(0x1c1)]=!0x0,this[_0xf451dd(0x1bf)][_0xf451dd(0x1a2)]=!0x0,this[_0xf451dd(0x195)][_0xf451dd(0x1a2)]=!0x0,this[_0xf451dd(0x1bf)][_0xf451dd(0x1ab)]();}[_0x301f8d(0x198)](){const _0x402fb4=_0x301f8d,_0x299a06=this[_0x402fb4(0x1c2)];this[_0x402fb4(0x1c1)]=!0x1,this[_0x402fb4(0x196)]='',this[_0x402fb4(0x1bd)][_0x402fb4(0x1a3)](),this[_0x402fb4(0x19b)]&&(this[_0x402fb4(0x1bd)][_0x402fb4(0x1d5)][_0x402fb4(0x1c3)]=_0x2ead09(_0x299a06,_0x402fb4(0x1d9)));}[_0x301f8d(0x1df)](_0x67b7b8){const _0x1a3e0a=_0x301f8d,_0x10b6a7=this[_0x1a3e0a(0x1c2)];this[_0x1a3e0a(0x198)](),this[_0x1a3e0a(0x1c0)]=!0x0,this[_0x1a3e0a(0x1c4)][_0x1a3e0a(0x1b9)]=_0x67b7b8||_0x2ead09(_0x10b6a7,_0x1a3e0a(0x1be)),this[_0x1a3e0a(0x19b)]||(this[_0x1a3e0a(0x1bf)][_0x1a3e0a(0x1a2)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2e646e,_0x3ce647){const _0x48a988=_0x441b,_0xc3ee3e=_0x2e646e();while(!![]){try{const _0x6020=-parseInt(_0x48a988(0xfe))/0x1+-parseInt(_0x48a988(0xf6))/0x2+parseInt(_0x48a988(0xf9))/0x3+parseInt(_0x48a988(0xf0))/0x4*(parseInt(_0x48a988(0xfd))/0x5)+parseInt(_0x48a988(0xf3))/0x6*(parseInt(_0x48a988(0xfb))/0x7)+parseInt(_0x48a988(0xf5))/0x8*(-parseInt(_0x48a988(0xef))/0x9)+parseInt(_0x48a988(0xf2))/0xa;if(_0x6020===_0x3ce647)break;else _0xc3ee3e['push'](_0xc3ee3e['shift']());}catch(_0x289915){_0xc3ee3e['push'](_0xc3ee3e['shift']());}}}(_0x2ae3,0xa3162));import{ListItemView as _0x5c5d1b,ButtonView as _0x550f0c,ButtonLabelView as _0x460939}from'ckeditor5/src/ui.js';import{unescape as _0x4e431c}from'lodash-es';function _0x441b(_0x3679be,_0x21dd9a){const _0x2ae3c5=_0x2ae3();return _0x441b=function(_0x441bd8,_0x4b9256){_0x441bd8=_0x441bd8-0xee;let _0x220235=_0x2ae3c5[_0x441bd8];return _0x220235;},_0x441b(_0x3679be,_0x21dd9a);}function _0x2ae3(){const _0x48df4e=['fire','10524610FqhMRx','30oNUdCc','add','8nuCWhp','2070812QxMKqW','set','prompt','2817696SoPdFx','execute','931217ZqJLHG','children','119465FGVXuB','920088MKlwCm','locale','9546759mnQTCB','172pdkAAA'];_0x2ae3=function(){return _0x48df4e;};return _0x2ae3();}export default class hs extends _0x5c5d1b{constructor(_0x27c626){const _0xdd4b8=_0x441b;super();const _0x405428=new _0x460939(),_0x1ae6bc=new _0x550f0c(this[_0xdd4b8(0xee)],_0x405428);this[_0xdd4b8(0xfc)][_0xdd4b8(0xf4)](_0x1ae6bc),_0x1ae6bc[_0xdd4b8(0xf7)]({'label':_0x27c626[_0xdd4b8(0xf8)],'withText':!0x0}),_0x1ae6bc['on'](_0xdd4b8(0xfa),()=>{const _0x2bc0a7=_0xdd4b8;this[_0x2bc0a7(0xf1)](_0x2bc0a7(0xfa),{'value':_0x4e431c(_0x27c626[_0x2bc0a7(0xf8)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x385a(_0x574318,_0xbe6cf){const _0x12dbfb=_0x12db();return _0x385a=function(_0x385a4b,_0x19ac91){_0x385a4b=_0x385a4b-0x164;let _0x451d33=_0x12dbfb[_0x385a4b];return _0x451d33;},_0x385a(_0x574318,_0xbe6cf);}const _0x2dde1c=_0x385a;function _0x12db(){const _0x53ba99=['Clear','51226XKRCpT','clearHistoryButton','Prompt\x20history','1248288zXZAXo','delegate','children','2IyzkMM','221193XuojVe','821404HFGmzz','items','length','set','locale','1700824AVrbHo','label','add','filter','_createClearHistoryButton','600859ntPoHu','execute','1131565SirKMI','fire','clearHistory','historyGroupView'];_0x12db=function(){return _0x53ba99;};return _0x12db();}(function(_0x52d930,_0x1a8442){const _0xbc653d=_0x385a,_0x3a8f30=_0x52d930();while(!![]){try{const _0x1bfff9=-parseInt(_0xbc653d(0x165))/0x1+-parseInt(_0xbc653d(0x16b))/0x2*(-parseInt(_0xbc653d(0x16c))/0x3)+parseInt(_0xbc653d(0x16d))/0x4+parseInt(_0xbc653d(0x179))/0x5+-parseInt(_0xbc653d(0x168))/0x6+parseInt(_0xbc653d(0x177))/0x7+-parseInt(_0xbc653d(0x172))/0x8;if(_0x1bfff9===_0x1a8442)break;else _0x3a8f30['push'](_0x3a8f30['shift']());}catch(_0x490a39){_0x3a8f30['push'](_0x3a8f30['shift']());}}}(_0x12db,0x1d23b));import{ListView as _0xaf6124,ListItemGroupView as _0x1fd0e6,ButtonView as _0x534724}from'ckeditor5/src/ui.js';import{getTranslation as _0xdbdb86}from'../../utils/common-translations.js';export default class rs extends _0xaf6124{constructor(_0xead034){const _0x44fe22=_0x385a;super(_0xead034),this[_0x44fe22(0x166)]=this[_0x44fe22(0x176)](),this[_0x44fe22(0x17c)]=new _0x1fd0e6(),this[_0x44fe22(0x17c)][_0x44fe22(0x16a)][_0x44fe22(0x174)](this[_0x44fe22(0x166)],0x1),this[_0x44fe22(0x17c)][_0x44fe22(0x173)]=_0xdbdb86(_0xead034,_0x44fe22(0x167)),this[_0x44fe22(0x17c)][_0x44fe22(0x16e)][_0x44fe22(0x169)](_0x44fe22(0x178))['to'](this),this[_0x44fe22(0x16e)][_0x44fe22(0x174)](this[_0x44fe22(0x17c)]);}[_0x2dde1c(0x175)](){const _0x3459e7=_0x2dde1c;let _0x39825f=0x0;for(const _0x549c81 of this[_0x3459e7(0x16e)])_0x39825f+=_0x549c81[_0x3459e7(0x16e)][_0x3459e7(0x16f)];return{'resultsCount':_0x39825f,'totalItemsCount':_0x39825f};}[_0x2dde1c(0x176)](){const _0x318f5e=_0x2dde1c,_0xb9fbe3=this[_0x318f5e(0x171)],_0x459aa7=new _0x534724(this[_0x318f5e(0x171)]);return _0x459aa7[_0x318f5e(0x170)]({'label':'('+_0xdbdb86(_0xb9fbe3,_0x318f5e(0x164))+')','withText':!0x0}),_0x459aa7['on'](_0x318f5e(0x178),()=>this[_0x318f5e(0x17a)](_0x318f5e(0x17b))),_0x459aa7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2f2696=_0xdec0;(function(_0x457281,_0xd095ad){const _0x986083=_0xdec0,_0x4bb7a5=_0x457281();while(!![]){try{const _0x3fa86d=parseInt(_0x986083(0x183))/0x1+-parseInt(_0x986083(0x177))/0x2*(parseInt(_0x986083(0x175))/0x3)+-parseInt(_0x986083(0x179))/0x4+parseInt(_0x986083(0x178))/0x5+parseInt(_0x986083(0x17a))/0x6+parseInt(_0x986083(0x180))/0x7+-parseInt(_0x986083(0x173))/0x8;if(_0x3fa86d===_0xd095ad)break;else _0x4bb7a5['push'](_0x4bb7a5['shift']());}catch(_0x4e06db){_0x4bb7a5['push'](_0x4bb7a5['shift']());}}}(_0x49b1,0xdcf05));function _0x49b1(){const _0x288fa3=['3474608QisAPT','CKEditor/AIFormView/PromptHistory','1311BSTTga','_loadFromSessionStorage','6978nRTrpP','7205615FvOgEg','2603140rWgOtq','5704530YCpBcu','toLowerCase','getItem','remove','_saveToSessionStorage','map','4245745RMUjke','prompt','add','516356nwOiKx','last','setItem','stringify','length','parse','trim','addMany'];_0x49b1=function(){return _0x288fa3;};return _0x49b1();}import{Collection as _0x386f04}from'ckeditor5/src/utils.js';const cs=_0x2f2696(0x174);export default class os extends _0x386f04{constructor(){const _0x57eb62=_0x2f2696;super(),this[_0x57eb62(0x176)](),this['on'](_0x57eb62(0x182),(_0x2b7b0e,_0x358a1e)=>{const _0x13cf2f=_0x57eb62,_0x3ae362=Ss(_0x358a1e[_0x13cf2f(0x181)]);for(const _0xcdfbc9 of this)if(_0xcdfbc9!=_0x358a1e&&Ss(_0xcdfbc9[_0x13cf2f(0x181)])===_0x3ae362){this[_0x13cf2f(0x17d)](_0xcdfbc9);break;}this[_0x13cf2f(0x187)]>0x14&&this[_0x13cf2f(0x17d)](this[_0x13cf2f(0x184)]),this[_0x13cf2f(0x17e)]();}),this['on'](_0x57eb62(0x17d),()=>{const _0x28429d=_0x57eb62;this[_0x28429d(0x17e)]();});}[_0x2f2696(0x176)](){const _0x309fce=_0x2f2696,_0x5586f8=sessionStorage[_0x309fce(0x17c)](cs)||'[]';this[_0x309fce(0x18a)](JSON[_0x309fce(0x188)](_0x5586f8));}[_0x2f2696(0x17e)](){const _0x7bfa23=_0x2f2696;sessionStorage[_0x7bfa23(0x185)](cs,JSON[_0x7bfa23(0x186)](this[_0x7bfa23(0x17f)](_0x51da74=>_0x51da74)));}}function _0xdec0(_0x1ea931,_0x4f413d){const _0x49b199=_0x49b1();return _0xdec0=function(_0xdec032,_0x165bce){_0xdec032=_0xdec032-0x173;let _0x2f385b=_0x49b199[_0xdec032];return _0x2f385b;},_0xdec0(_0x1ea931,_0x4f413d);}function Ss(_0x47efe1){const _0x5e2a2e=_0x2f2696;return _0x47efe1[_0x5e2a2e(0x17b)]()[_0x5e2a2e(0x189)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x885f10=_0x2660;(function(_0x54748d,_0x2da1f5){const _0x52bb9b=_0x2660,_0x43a96a=_0x54748d();while(!![]){try{const _0x23cf73=-parseInt(_0x52bb9b(0x149))/0x1*(-parseInt(_0x52bb9b(0x167))/0x2)+parseInt(_0x52bb9b(0x162))/0x3+-parseInt(_0x52bb9b(0x153))/0x4*(-parseInt(_0x52bb9b(0x14b))/0x5)+-parseInt(_0x52bb9b(0x144))/0x6*(-parseInt(_0x52bb9b(0x161))/0x7)+-parseInt(_0x52bb9b(0x150))/0x8+parseInt(_0x52bb9b(0x148))/0x9+-parseInt(_0x52bb9b(0x154))/0xa;if(_0x23cf73===_0x2da1f5)break;else _0x43a96a['push'](_0x43a96a['shift']());}catch(_0x3013bf){_0x43a96a['push'](_0x43a96a['shift']());}}}(_0xfdc5,0x93a9c));function _0xfdc5(){const _0x2f6a28=['isCollapsed','change:isEnabled','config','ai.aiAssistant.disabledElements','execute','set','getFirstRange','6QvpxFP','add','element','selection','1646568xOXyBq','1jUcBDv','enabledCommandsIds','574250vboLVk','custom','includes','length','getRanges','6261184eVYkSx','from','getItems','32tygsvM','9915640fIYOUW','_hasContext','refresh','getSelectedBlocks','values','get','hasContent','_commandDefinitions','plugins','change:_hasContext','editor','name','isEmpty','6126771HZJgHK','88266gWIYFZ','showUI','isEnabled','model','document','745226ePDpfp','requiresContent'];_0xfdc5=function(){return _0x2f6a28;};return _0xfdc5();}import{Command as _0x302a77}from'ckeditor5/src/core.js';function _0x2660(_0x55034b,_0x51c6d5){const _0xfdc584=_0xfdc5();return _0x2660=function(_0x2660d3,_0x47d0dc){_0x2660d3=_0x2660d3-0x13d;let _0x5515f0=_0xfdc584[_0x2660d3];return _0x5515f0;},_0x2660(_0x55034b,_0x51c6d5);}import _0x1c816b from'../aiassistantui.js';export default class y extends _0x302a77{constructor(_0xe388c0,_0x1f96cc){const _0x4718cb=_0x2660;super(_0xe388c0),this[_0x4718cb(0x15b)]=_0x1f96cc,this[_0x4718cb(0x142)](_0x4718cb(0x14a),[]),this['on'](_0x4718cb(0x15d),(_0x152856,_0x42ece9,_0xafc94f)=>{const _0x55cb36=_0x4718cb;this[_0x55cb36(0x164)]&&(this[_0x55cb36(0x14a)]=G(this[_0x55cb36(0x15b)],_0xafc94f));}),this[_0x4718cb(0x142)](_0x4718cb(0x155),!0x1),this['on'](_0x4718cb(0x13e),(_0x14f566,_0x470129,_0x4b4d16)=>{const _0x2b1730=_0x4718cb;this[_0x2b1730(0x14a)]=_0x4b4d16?G(this[_0x2b1730(0x15b)],this[_0x2b1730(0x155)]):[];});}[_0x885f10(0x156)](){const _0x3e6e01=_0x885f10,_0x33d4f2=this[_0x3e6e01(0x15e)][_0x3e6e01(0x165)];this[_0x3e6e01(0x155)]=function(_0x4e879f){const _0xb4fc4c=_0x3e6e01,_0x47d7f0=_0x4e879f[_0xb4fc4c(0x166)][_0xb4fc4c(0x147)];return _0x47d7f0[_0xb4fc4c(0x13d)]?0x0!==[..._0x47d7f0[_0xb4fc4c(0x157)]()][_0xb4fc4c(0x14e)]&&![..._0x47d7f0[_0xb4fc4c(0x157)]()][0x0][_0xb4fc4c(0x160)]:!!_0x4e879f[_0xb4fc4c(0x15a)](_0x47d7f0[_0xb4fc4c(0x143)]());}(_0x33d4f2);const _0x220112=_0x33d4f2[_0x3e6e01(0x166)][_0x3e6e01(0x147)],_0x3e8fa7=this[_0x3e6e01(0x15e)][_0x3e6e01(0x13f)][_0x3e6e01(0x159)](_0x3e6e01(0x140));for(const _0x1b334d of _0x220112[_0x3e6e01(0x14f)]())for(const _0x796a54 of _0x1b334d[_0x3e6e01(0x152)]())if(_0x796a54['is'](_0x3e6e01(0x146))&&_0x3e8fa7[_0x3e6e01(0x14d)](_0x796a54[_0x3e6e01(0x15f)]))return void(this[_0x3e6e01(0x164)]=!0x1);this[_0x3e6e01(0x164)]=!0x0;}[_0x885f10(0x141)](_0x502d0e='',_0x4ae2d3='',_0x366e7d=_0x885f10(0x14c)){const _0x4fa1c1=_0x885f10;this[_0x4fa1c1(0x15e)][_0x4fa1c1(0x15c)][_0x4fa1c1(0x159)](_0x1c816b)[_0x4fa1c1(0x163)](_0x502d0e,_0x4ae2d3,_0x366e7d);}}function G(_0x213ffd,_0x4c2345){const _0x1d5956=_0x885f10,_0x18b629=new Set();for(const _0x2980ad of _0x213ffd[_0x1d5956(0x158)]())(_0x4c2345||!0x1===_0x2980ad[_0x1d5956(0x168)])&&_0x18b629[_0x1d5956(0x145)](_0x2980ad['id']);return Array[_0x1d5956(0x151)](_0x18b629);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3873c9,_0x142ccf,_0x581b38){const t=_0x3873c9['t'];switch(_0x142ccf){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',_0x581b38);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x581b38);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'},_0x581b38);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 _0x142ccf;}}
|
|
@@ -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(_0x1c8c09,_0x2a164b){const _0x5c5572=(0x0,_0x2a164b['t'])('Other');return _0x1c8c09['length']?'groupId'in _0x1c8c09[0x0]?_0x1c8c09:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5c5572,'order':0x1/0x0,'commands':_0x1c8c09}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5c5572,'order':0x1/0x0,'commands':[]}];}
|