@ckeditor/ckeditor5-ai 43.3.1-alpha.0 → 44.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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(_0x3aab6a,_0x92facf){var _0x2a0f91=_0x35c8,_0x5dc153=_0x3aab6a();while(!![]){try{var _0x17604e=parseInt(_0x2a0f91(0x1ab))/0x1+parseInt(_0x2a0f91(0x1ae))/0x2+parseInt(_0x2a0f91(0x1aa))/0x3+parseInt(_0x2a0f91(0x1a7))/0x4*(parseInt(_0x2a0f91(0x1ac))/0x5)+parseInt(_0x2a0f91(0x1ad))/0x6+parseInt(_0x2a0f91(0x1a8))/0x7+-parseInt(_0x2a0f91(0x1a9))/0x8;if(_0x17604e===_0x92facf)break;else _0x5dc153['push'](_0x5dc153['shift']());}catch(_0x28409b){_0x5dc153['push'](_0x5dc153['shift']());}}}(_0x3cd4,0x6741c));function _0x35c8(_0x154e1b,_0x1a3494){var _0x3cd471=_0x3cd4();return _0x35c8=function(_0x35c8c9,_0x3b1b28){_0x35c8c9=_0x35c8c9-0x1a7;var _0x1c7d12=_0x3cd471[_0x35c8c9];return _0x1c7d12;},_0x35c8(_0x154e1b,_0x1a3494);}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';function _0x3cd4(){var _0x5d88dd=['1343762DCictK','15241752LfOTqy','331650ttBAOI','674639ojrjmi','1315Cindth','3921864EDyaHw','475798dyssYs','6988SMhiot'];_0x3cd4=function(){return _0x5d88dd;};return _0x3cd4();}export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
|
|
@@ -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(_0x5286c1,_0x241df8){var _0x48604a=_0x592f,_0x42017e=_0x5286c1();while(!![]){try{var _0x2576db=parseInt(_0x48604a(0x105))/0x1*(parseInt(_0x48604a(0x10c))/0x2)+parseInt(_0x48604a(0x109))/0x3+-parseInt(_0x48604a(0x10d))/0x4*(parseInt(_0x48604a(0x108))/0x5)+parseInt(_0x48604a(0x10a))/0x6*(parseInt(_0x48604a(0x103))/0x7)+parseInt(_0x48604a(0x107))/0x8*(-parseInt(_0x48604a(0x10e))/0x9)+parseInt(_0x48604a(0x10b))/0xa+parseInt(_0x48604a(0x104))/0xb*(-parseInt(_0x48604a(0x106))/0xc);if(_0x2576db===_0x241df8)break;else _0x42017e['push'](_0x42017e['shift']());}catch(_0x13908a){_0x42017e['push'](_0x42017e['shift']());}}}(_0x25bb,0x97356));function _0x592f(_0x791700,_0x45de40){var _0x25bb48=_0x25bb();return _0x592f=function(_0x592fe1,_0x5bb5be){_0x592fe1=_0x592fe1-0x103;var _0x5c1758=_0x25bb48[_0x592fe1];return _0x5c1758;},_0x592f(_0x791700,_0x45de40);}import{CKEditorError as _0x1e3db5}from'ckeditor5/src/utils.js';function _0x25bb(){var _0x1e404e=['2904192mqfeDs','12UVGcOH','7849280LvjifR','1485764bFpWhw','36cmfFlS','9igmhfx','2760639HuzTHG','4279715GYFhTg','1NhPWCh','48kyJAqU','161152epOYad','604930HFxPMY'];_0x25bb=function(){return _0x1e404e;};return _0x25bb();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x2ebfe4=_0x4273;(function(_0x3f1e49,_0x2bba74){const _0x46d706=_0x4273,_0x823c14=_0x3f1e49();while(!![]){try{const _0x383379=-parseInt(_0x46d706(0x18c))/0x1+-parseInt(_0x46d706(0x17e))/0x2+parseInt(_0x46d706(0x160))/0x3+parseInt(_0x46d706(0x18e))/0x4+parseInt(_0x46d706(0x186))/0x5*(parseInt(_0x46d706(0x158))/0x6)+-parseInt(_0x46d706(0x189))/0x7+parseInt(_0x46d706(0x169))/0x8;if(_0x383379===_0x2bba74)break;else _0x823c14['push'](_0x823c14['shift']());}catch(_0x9cd47d){_0x823c14['push'](_0x823c14['shift']());}}}(_0x13c0,0x31991));import{ObservableMixin as _0xd3c3e5}from'ckeditor5/src/utils.js';import{AIRequestError as _0x2a8bc6}from'../adapters/aiadapter.js';import{Matcher as _0x2784d4,UpcastWriter as _0x16cc46}from'ckeditor5/src/engine.js';function _0x4273(_0x19f45f,_0x26bf10){const _0x13c022=_0x13c0();return _0x4273=function(_0x427322,_0xa289a8){_0x427322=_0x427322-0x153;let _0x2a8ee4=_0x13c022[_0x427322];return _0x2a8ee4;},_0x4273(_0x19f45f,_0x26bf10);}const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class C extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xd3c3e5(){constructor(_0x46f321,_0x3b6e9d,_0x523458){const _0x1cc8b1=_0x4273;super(),this[_0x1cc8b1(0x1ac)]=_0x46f321,this[_0x1cc8b1(0x15e)]=_0x3b6e9d,this[_0x1cc8b1(0x181)]=document[_0x1cc8b1(0x18f)](_0x1cc8b1(0x157)),this[_0x1cc8b1(0x198)]=new DOMParser(),this[_0x1cc8b1(0x16f)]=new XMLSerializer(),this[_0x1cc8b1(0x188)]=_0x523458,this[_0x1cc8b1(0x190)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x1cc8b1(0x15d),(_0xbd5857,_0x21ebc0,_0x41eae1)=>{const _0x3f10e0=_0x1cc8b1;this[_0x3f10e0(0x188)][_0x3f10e0(0x187)]=this[_0x3f10e0(0x180)](_0x41eae1);}),this[_0x1cc8b1(0x159)](this[_0x1cc8b1(0x188)],_0x1cc8b1(0x17f),(_0x31b0ba,_0x433a44)=>{const _0x293a45=_0x1cc8b1,_0x98e55f=this[_0x293a45(0x17d)]||this[_0x293a45(0x176)];this[_0x293a45(0x15b)](_0x433a44,_0x98e55f,_0x293a45(0x179));}),this[_0x1cc8b1(0x159)](this[_0x1cc8b1(0x188)],_0x1cc8b1(0x18a),()=>{const _0xec003e=_0x1cc8b1;this[_0xec003e(0x188)][_0xec003e(0x194)]=this[_0xec003e(0x165)],this[_0xec003e(0x15b)](this[_0xec003e(0x19d)],this[_0xec003e(0x1a7)],this[_0xec003e(0x1ad)],this[_0xec003e(0x165)]);}),this[_0x1cc8b1(0x159)](this[_0x1cc8b1(0x188)],_0x1cc8b1(0x166),()=>{const _0x9255b7=_0x1cc8b1;this[_0x9255b7(0x166)]();});}[_0x2ebfe4(0x16b)](){const _0x270840=_0x2ebfe4;this[_0x270840(0x16e)]();}async[_0x2ebfe4(0x17c)]({actionId:_0x37fa24,query:_0x37d65c,htmlContent:_0x2f263e,label:_0x490aac,mainActionLabel:_0x4c95e9}){const _0x5d74e4=_0x2ebfe4;this[_0x5d74e4(0x188)][_0x5d74e4(0x194)]=_0x490aac,this[_0x5d74e4(0x188)][_0x5d74e4(0x1ae)]=_0x4c95e9,this[_0x5d74e4(0x176)]=_0x2f263e,_0x37d65c&&(this[_0x5d74e4(0x188)][_0x5d74e4(0x1a5)]?this[_0x5d74e4(0x15b)](_0x37d65c,_0x2f263e,_0x37fa24,_0x490aac):this[_0x5d74e4(0x188)][_0x5d74e4(0x15a)](_0x5d74e4(0x178),()=>{const _0x2ccb73=_0x5d74e4;this[_0x2ccb73(0x15b)](_0x37d65c,_0x2f263e,_0x37fa24,_0x490aac);}));}[_0x2ebfe4(0x166)](){const _0x3c34bc=_0x2ebfe4;this[_0x3c34bc(0x17b)]&&(this[_0x3c34bc(0x17b)]=!0x1,this[_0x3c34bc(0x188)][_0x3c34bc(0x164)](),this[_0x3c34bc(0x15e)][_0x3c34bc(0x161)]());}[_0x2ebfe4(0x170)](){const _0xfad5cf=_0x2ebfe4;this[_0xfad5cf(0x176)]='',this[_0xfad5cf(0x17d)]='',this[_0xfad5cf(0x1a3)]='',this[_0xfad5cf(0x1a7)]='',this[_0xfad5cf(0x19d)]='',this[_0xfad5cf(0x165)]='',this[_0xfad5cf(0x1ad)]=void 0x0,this[_0xfad5cf(0x188)][_0xfad5cf(0x170)](),this[_0xfad5cf(0x166)]();}async[_0x2ebfe4(0x15b)](_0xcba7c4,_0x48b534,_0x359195,_0x23c8a8){const _0x3a9af2=_0x2ebfe4;return this[_0x3a9af2(0x17b)]=!0x0,this[_0x3a9af2(0x188)][_0x3a9af2(0x168)](),this[_0x3a9af2(0x1a7)]=_0x48b534,this[_0x3a9af2(0x19d)]=_0xcba7c4,this[_0x3a9af2(0x165)]=_0x23c8a8||_0xcba7c4,this[_0x3a9af2(0x1ad)]=_0x359195,new Promise(_0x41bfad=>{const _0x955e4=_0x3a9af2;this[_0x955e4(0x15e)][_0x955e4(0x17a)]({'query':_0xcba7c4,'context':_0x48b534,'onData':_0x23a82d=>{const _0x115aeb=_0x955e4;this[_0x115aeb(0x1a3)]=_0x23a82d,this[_0x115aeb(0x17d)]=this[_0x115aeb(0x19a)](this[_0x115aeb(0x1a3)]);},'actionId':_0x359195})[_0x955e4(0x16a)](()=>{const _0x4a007b=_0x955e4;!this[_0x4a007b(0x17d)]&&this[_0x4a007b(0x1a3)]&&(this[_0x4a007b(0x17d)]=this[_0x4a007b(0x19a)](this[_0x4a007b(0x1a3)],!0x0));})[_0x955e4(0x1af)](_0x3ced8e=>{const _0x385f8e=_0x955e4;_0x3ced8e instanceof _0x2a8bc6?this[_0x385f8e(0x188)][_0x385f8e(0x153)](_0x3ced8e[_0x385f8e(0x177)]):this[_0x385f8e(0x188)][_0x385f8e(0x153)](),_0x41bfad();})[_0x955e4(0x18d)](()=>{const _0x2d03af=_0x955e4;this[_0x2d03af(0x166)](),_0x41bfad();});});}[_0x2ebfe4(0x19a)](_0x828f5,_0x45ffc7=!0x1){const _0x423e71=_0x2ebfe4,_0x15168a=Z[_0x423e71(0x1ab)](_0x828f5);_0x828f5=_0x15168a?_0x828f5[_0x423e71(0x1aa)](_0x15168a[0x1][_0x423e71(0x185)]):_0x828f5[_0x423e71(0x185)]<0x64&&!_0x45ffc7?'':this[_0x423e71(0x19f)](_0x828f5);const _0x591d80=this[_0x423e71(0x198)][_0x423e71(0x1a4)](_0x828f5,_0x423e71(0x154));if(_0x15168a){const _0x118f73=Array[_0x423e71(0x1a9)](_0x591d80[_0x423e71(0x193)][_0x423e71(0x184)]);_0x118f73[_0x423e71(0x19e)]();for(const _0x2dc6fa of _0x118f73){if(_0x2dc6fa[_0x423e71(0x18b)]==Node[_0x423e71(0x16d)])break;_0x2dc6fa[_0x423e71(0x175)]();}}const _0x33b329=this[_0x423e71(0x1ac)][_0x423e71(0x192)][_0x423e71(0x163)][_0x423e71(0x155)](this[_0x423e71(0x16f)][_0x423e71(0x183)](_0x591d80[_0x423e71(0x193)]));return this[_0x423e71(0x199)]()||this[_0x423e71(0x191)](_0x33b329),this[_0x423e71(0x1ac)][_0x423e71(0x192)][_0x423e71(0x174)](this[_0x423e71(0x1ac)][_0x423e71(0x192)][_0x423e71(0x162)](_0x33b329));}[_0x2ebfe4(0x191)](_0x2cc835){const _0x36c3a1=_0x2ebfe4,_0x57006d=new _0x16cc46(this[_0x36c3a1(0x1ac)][_0x36c3a1(0x167)][_0x36c3a1(0x188)][_0x36c3a1(0x197)]),_0x59a7e1=new _0x2784d4({'name':/^h[1-5]$/}),_0x5bfc13=[];let _0x461fea=!0x1;for(const _0xdb086d of _0x2cc835)_0xdb086d['is'](_0x36c3a1(0x173))&&_0x59a7e1[_0x36c3a1(0x15c)](_0xdb086d)&&(_0x5bfc13[_0x36c3a1(0x1a8)](_0xdb086d),'h1'==_0xdb086d[_0x36c3a1(0x16c)]&&(_0x461fea=!0x0));if(_0x461fea){for(const _0x234157 of _0x5bfc13)_0x57006d[_0x36c3a1(0x196)]('h'+(parseInt(_0x234157[_0x36c3a1(0x16c)][0x1])+0x1),_0x234157);}}[_0x2ebfe4(0x199)](){const _0x21e2c5=_0x2ebfe4,{data:_0x22ab5a,editing:_0x598de3}=this[_0x21e2c5(0x1ac)],_0x2990be=_0x22ab5a[_0x21e2c5(0x15f)][_0x21e2c5(0x155)](_0x21e2c5(0x195)),_0x4fd800=_0x22ab5a[_0x21e2c5(0x155)](_0x22ab5a[_0x21e2c5(0x162)](_0x2990be));return!!_0x598de3[_0x21e2c5(0x188)][_0x21e2c5(0x1a2)][_0x21e2c5(0x19c)](_0x4fd800)[_0x21e2c5(0x156)]('h1');}[_0x2ebfe4(0x180)](_0x24611d){const _0xa8297=_0x2ebfe4;return this[_0xa8297(0x1ac)][_0xa8297(0x167)][_0xa8297(0x188)][_0xa8297(0x1a2)][_0xa8297(0x1a0)](this[_0xa8297(0x181)],_0x24611d),this[_0xa8297(0x181)][_0xa8297(0x171)];}[_0x2ebfe4(0x19f)](_0x2e0687){const _0x5daa59=_0x2ebfe4,_0x211b4a=_0x2e0687[_0x5daa59(0x182)]();return _0x211b4a[_0x5daa59(0x172)](_0x5daa59(0x1a6))?_0x211b4a[_0x5daa59(0x1a1)](_0x5daa59(0x19b))?_0x211b4a[_0x5daa59(0x1aa)](0x7,_0x211b4a[_0x5daa59(0x185)]-0x3):_0x211b4a[_0x5daa59(0x1aa)](0x7):_0x2e0687;}}function _0x13c0(){const _0x21415b=['previousActionId','mainAction','catch','handleError','text/html','toView','querySelector','div','427926bNOLFM','listenTo','once','_handleQuery','match','set:currentContext','textAdapter','htmlProcessor','650214yhpfPg','abort','toModel','processor','finishProcessing','previousLabel','stopProcessing','editing','startProcessing','4454920ojmykp','then','destroy','name','ELEMENT_NODE','stopListening','_xmlSerializer','reset','innerHTML','startsWith','element','stringify','remove','initialContext','message','render','custom','makeRequest','isProcessing','updateView','currentContext','49094rOUgrT','submitPrompt','_sanitizeHTML','_sanitizationContainer','trim','serializeToString','childNodes','length','10Jbnnnh','value','view','2651383jTUUva','tryAgainEvent','nodeType','327434AnrFbP','finally','70632QLIQIK','createElement','set','_normalizeResponseHeadings','data','body','prompt','<h1></h1>','rename','document','_domParser','_isH1TagSupportEnabled','_parseAndNormalizeContent','```','viewToDom','previousQuery','reverse','_stripMarkdownSyntax','setContentOf','endsWith','domConverter','currentResponse','parseFromString','isRendered','```html','previousContext','push','from','substring','exec','editor'];_0x13c0=function(){return _0x21415b;};return _0x13c0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x252502=_0xbd4a;(function(_0x59d717,_0x5d5050){const _0x3e72ef=_0xbd4a,_0x4b10be=_0x59d717();while(!![]){try{const _0x218434=-parseInt(_0x3e72ef(0x210))/0x1+parseInt(_0x3e72ef(0x1da))/0x2*(-parseInt(_0x3e72ef(0x1df))/0x3)+parseInt(_0x3e72ef(0x1d0))/0x4*(parseInt(_0x3e72ef(0x1f7))/0x5)+parseInt(_0x3e72ef(0x1fb))/0x6*(parseInt(_0x3e72ef(0x206))/0x7)+parseInt(_0x3e72ef(0x20a))/0x8*(-parseInt(_0x3e72ef(0x1de))/0x9)+-parseInt(_0x3e72ef(0x214))/0xa*(parseInt(_0x3e72ef(0x1e7))/0xb)+parseInt(_0x3e72ef(0x219))/0xc;if(_0x218434===_0x5d5050)break;else _0x4b10be['push'](_0x4b10be['shift']());}catch(_0x2aee4d){_0x4b10be['push'](_0x4b10be['shift']());}}}(_0x1029,0xdffa7));import{global as _0x28cfe0}from'ckeditor5/src/utils.js';import{View as _0x440a78,ButtonView as _0xa01e80,SpinnerView as _0x443043}from'ckeditor5/src/ui.js';import _0x3d4b96 from'../../../theme/icons/copy.svg';import{getTranslation as _0x224584}from'../../utils/common-translations.js';function _0xbd4a(_0x475da9,_0x3ef8e3){const _0x1029b1=_0x1029();return _0xbd4a=function(_0xbd4aaf,_0x429b85){_0xbd4aaf=_0xbd4aaf-0x1d0;let _0x53d139=_0x1029b1[_0xbd4aaf];return _0x53d139;},_0xbd4a(_0x475da9,_0x3ef8e3);}import{icons as _0x5b0854}from'ckeditor5/src/core.js';export default class W extends _0x440a78{constructor(_0x2446c3,_0x28e3b2=''){const _0x300623=_0xbd4a;super(_0x2446c3),this[_0x300623(0x21b)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x1bbfea=this[_0x300623(0x225)];this[_0x300623(0x1db)]=new ContentFieldView(_0x2446c3,_0x28e3b2),this[_0x300623(0x1f5)]=this[_0x300623(0x21f)](),this[_0x300623(0x1e6)]({'tag':_0x300623(0x1fd),'attributes':{'class':['ck',_0x300623(0x1f2),_0x1bbfea['if'](_0x300623(0x1fa),_0x300623(0x20b),_0x15c56f=>!_0x15c56f)],'tabindex':'-1'},'children':[{'tag':_0x300623(0x1fd),'attributes':{'class':['ck',_0x300623(0x222),_0x1bbfea['if'](_0x300623(0x221),_0x300623(0x21d))]},'children':[this[_0x300623(0x1db)],{'tag':_0x300623(0x1fd),'attributes':{'class':['ck',_0x300623(0x1e5)]},'children':[this[_0x300623(0x1f5)]]}]}]});}[_0x252502(0x200)](){const _0x4eb421=_0x252502;super[_0x4eb421(0x200)](),this[_0x4eb421(0x1d3)]&&this[_0x4eb421(0x1db)][_0x4eb421(0x1e8)](this[_0x4eb421(0x1d3)]);let _0x2b739d=!0x1;this['on'](_0x4eb421(0x20e),(_0x48f354,_0xb10a02,_0x1f0097)=>{const _0x566513=_0x4eb421,_0x3288fd=!this[_0x566513(0x1db)][_0x566513(0x1ef)][_0x566513(0x1f8)](_0x566513(0x1ed));this[_0x566513(0x1db)][_0x566513(0x1e8)](_0x1f0097),this[_0x566513(0x221)]&&_0x3288fd&&!_0x2b739d&&this[_0x566513(0x1ef)][_0x566513(0x1d8)]({'top':this[_0x566513(0x1ef)][_0x566513(0x1ec)],'behavior':_0x566513(0x21a)});}),this['on'](_0x4eb421(0x21c),(_0x8951c5,_0x1651dd,_0x195a73)=>{const _0x4a0f0c=_0x4eb421;_0x2b739d=!0x1,_0x195a73?(this[_0x4a0f0c(0x1d3)]=null,this[_0x4a0f0c(0x1db)][_0x4a0f0c(0x1f1)]()):this[_0x4a0f0c(0x1d3)]||this[_0x4a0f0c(0x1db)][_0x4a0f0c(0x1e8)]('');}),this[_0x4eb421(0x213)](this[_0x4eb421(0x1ef)],_0x4eb421(0x226),()=>{_0x2b739d=!0x0;}),this[_0x4eb421(0x213)](this[_0x4eb421(0x1ef)],_0x4eb421(0x215),()=>{_0x2b739d=!0x0;});}[_0x252502(0x1e2)](){const _0x38292f=_0x252502;this[_0x38292f(0x1ef)][_0x38292f(0x1e2)]();}[_0x252502(0x21f)](){const _0x357806=_0x252502,_0x53c872=this[_0x357806(0x1e1)],_0x101923=new _0xa01e80(this[_0x357806(0x1e1)]),_0x36a27e=_0x357806(0x217);return _0x101923[_0x357806(0x21b)]({'label':_0x224584(_0x53c872,_0x357806(0x1d9)),'icon':_0x3d4b96,'class':_0x36a27e,'tooltip':!0x0}),_0x101923[_0x357806(0x1dc)](_0x357806(0x1fa))['to'](this,_0x357806(0x1d3),_0x42a99b=>!!_0x42a99b),_0x101923[_0x357806(0x1dc)](_0x357806(0x1e9))['to'](this,_0x357806(0x221),_0x1f90c1=>!_0x1f90c1),_0x101923['on'](_0x357806(0x1ee),()=>{const _0x1ecf7d=_0x357806;this[_0x1ecf7d(0x223)](this[_0x1ecf7d(0x1db)][_0x1ecf7d(0x1ef)]),_0x101923[_0x1ecf7d(0x212)]=_0x5b0854[_0x1ecf7d(0x208)],_0x101923[_0x1ecf7d(0x1d5)]=_0x36a27e+_0x1ecf7d(0x1e3),this[_0x1ecf7d(0x1e2)](),setTimeout(()=>{const _0x49a8a9=_0x1ecf7d;_0x101923[_0x49a8a9(0x212)]=_0x3d4b96,_0x101923[_0x49a8a9(0x1d5)]=_0x36a27e;},0x3e8);}),_0x101923;}[_0x252502(0x223)](_0x4e6b1e){const _0x5cdf88=_0x252502,{window:_0x457516,document:_0x51a1ed}=_0x28cfe0;if(_0x457516[_0x5cdf88(0x1e4)]){const {Blob:_0x56eccf,ClipboardItem:_0x381d9f}=_0x457516,_0x4e850d=[new _0x381d9f({'text/html':new _0x56eccf([_0x4e6b1e[_0x5cdf88(0x227)]],{'type':_0x5cdf88(0x1d2)}),'text/plain':new _0x56eccf([_0x4e6b1e[_0x5cdf88(0x1f9)]||''],{'type':_0x5cdf88(0x20d)})})];navigator[_0x5cdf88(0x1d6)][_0x5cdf88(0x1dd)](_0x4e850d);}else{const _0x476d24=_0x51a1ed[_0x5cdf88(0x207)](_0x5cdf88(0x1fd));_0x476d24[_0x5cdf88(0x204)][_0x5cdf88(0x1d1)]=_0x5cdf88(0x1eb),_0x476d24[_0x5cdf88(0x204)][_0x5cdf88(0x224)]=_0x5cdf88(0x1ff),_0x476d24[_0x5cdf88(0x227)]=_0x5cdf88(0x1e0)+_0x4e6b1e[_0x5cdf88(0x227)]+_0x5cdf88(0x1fc),_0x51a1ed[_0x5cdf88(0x1d7)][_0x5cdf88(0x211)](_0x476d24);const _0x403f7d=_0x51a1ed[_0x5cdf88(0x220)]();_0x403f7d[_0x5cdf88(0x1f4)](_0x476d24[_0x5cdf88(0x1f3)]),_0x403f7d[_0x5cdf88(0x203)](_0x476d24[_0x5cdf88(0x1f6)]);const _0x121eb9=_0x457516[_0x5cdf88(0x20c)]();_0x121eb9[_0x5cdf88(0x218)](),_0x121eb9[_0x5cdf88(0x1d4)](_0x403f7d),_0x51a1ed[_0x5cdf88(0x21e)](_0x5cdf88(0x202)),_0x476d24[_0x5cdf88(0x201)]();}}}function _0x1029(){const _0x42c12c=['value','addRange','class','clipboard','body','scrollTo','Copy','3418rchAmK','contentFieldView','bind','write','9SbIOpp','663XGcPNU','<span>[</span>','locale','focus','\x20ck-ai-form__copy-button--copied','ClipboardItem','ck-ai-form__copy-button-wrapper','setTemplate','14081947XWEUwn','setContent','isEnabled','ck-reset_all-excluded','absolute','scrollHeight','.ck-ai-form__loader','execute','element','ck-ai-form__content-field','appendLoader','ck-ai-form__content-area-wrapper','firstElementChild','setStartAfter','copyButtonView','lastElementChild','3740kNFRVC','querySelector','textContent','isVisible','18oVlukL','<span>]</span>','div','loaderView','-9999px','render','remove','copy','setEndBefore','style','ck-ai-form__loader','1504391QkxERD','createElement','check','ck-content','8312056dJhXUr','ck-hidden','getSelection','text/plain','change:value','AI\x20is\x20writing...','99931MjvBpO','appendChild','icon','listenTo','10rsZtRH','mousedown','_createLoader','ck-ai-form__copy-button','removeAllRanges','26834496ZpQOaG','smooth','set','change:isProcessing','ck-ai-form__content-area--processing','execCommand','_createCopyButton','createRange','isProcessing','ck-ai-form__content-area','_copyHTMLToClipboard','left','bindTemplate','wheel','innerHTML','4456BfIdPW','position','text/html'];_0x1029=function(){return _0x42c12c;};return _0x1029();}export class ContentFieldView extends _0x440a78{constructor(_0x5bd296,_0x4d5263=''){const _0xf2894d=_0x252502;super(_0x5bd296),this[_0xf2894d(0x1fe)]=this[_0xf2894d(0x216)](),this[_0xf2894d(0x1e6)]({'tag':_0xf2894d(0x1fd),'attributes':{'class':['ck',_0xf2894d(0x209),_0x4d5263,_0xf2894d(0x1ea),_0xf2894d(0x1f0)]}});}[_0x252502(0x1e8)](_0x3298d6){const _0x51e8f8=_0x252502;this[_0x51e8f8(0x1ef)][_0x51e8f8(0x227)]=_0x3298d6;}[_0x252502(0x1f1)](){const _0xab758=_0x252502;this[_0xab758(0x1ef)][_0xab758(0x211)](this[_0xab758(0x1fe)][_0xab758(0x1ef)]);}[_0x252502(0x216)](){const _0x232a2a=_0x252502,_0xcef53a=new _0x440a78(),_0xe87177=this[_0x232a2a(0x1e1)],_0x171580=new _0x443043();return _0x171580[_0x232a2a(0x1fa)]=!0x0,_0xcef53a[_0x232a2a(0x1e6)]({'tag':_0x232a2a(0x1fd),'attributes':{'class':['ck',_0x232a2a(0x205)]},'children':[_0x171580,{'text':_0x224584(_0xe87177,_0x232a2a(0x20f))}]}),_0xcef53a[_0x232a2a(0x200)](),_0xcef53a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x33ceea,_0x1524ae){const _0x5bd883=_0x4d15,_0x2ab8fc=_0x33ceea();while(!![]){try{const _0x5299e0=-parseInt(_0x5bd883(0x1cd))/0x1*(-parseInt(_0x5bd883(0x1d6))/0x2)+parseInt(_0x5bd883(0x1da))/0x3*(parseInt(_0x5bd883(0x1d8))/0x4)+-parseInt(_0x5bd883(0x1d0))/0x5+parseInt(_0x5bd883(0x1ce))/0x6+-parseInt(_0x5bd883(0x1cf))/0x7*(-parseInt(_0x5bd883(0x1d2))/0x8)+-parseInt(_0x5bd883(0x1dd))/0x9*(parseInt(_0x5bd883(0x1de))/0xa)+parseInt(_0x5bd883(0x1d9))/0xb*(parseInt(_0x5bd883(0x1dc))/0xc);if(_0x5299e0===_0x1524ae)break;else _0x2ab8fc['push'](_0x2ab8fc['shift']());}catch(_0x148d11){_0x2ab8fc['push'](_0x2ab8fc['shift']());}}}(_0x20f8,0x2e0d2));function _0x20f8(){const _0x2db620=['bindTemplate','46TfsZIH','content','1240752CCpVsC','366872rjIzgd','3RZqeEg','set','84dUPRsh','9szsudp','2896780eLXpIM','ck-ai-form__error','519NpBTPR','619566biyNJm','1056181QEWKqg','1657145YZCXWH','text','8bgWqYB','div','setTemplate'];_0x20f8=function(){return _0x2db620;};return _0x20f8();}function _0x4d15(_0x2b0af5,_0xa30238){const _0x20f8fa=_0x20f8();return _0x4d15=function(_0x4d156a,_0x37f643){_0x4d156a=_0x4d156a-0x1cd;let _0x2ba814=_0x20f8fa[_0x4d156a];return _0x2ba814;},_0x4d15(_0x2b0af5,_0xa30238);}import{View as _0x3b158d,IconView as _0x5d2d48}from'ckeditor5/src/ui.js';import _0x2ccad4 from'../../../theme/icons/error.svg';export default class tt extends _0x3b158d{constructor(_0x4d0c4c,_0x458a2b=''){const _0x1237e9=_0x4d15;super(_0x4d0c4c);const _0x508b29=new _0x5d2d48(),_0x3cdbc=this[_0x1237e9(0x1d5)];this[_0x1237e9(0x1db)](_0x1237e9(0x1d1),_0x458a2b),_0x508b29[_0x1237e9(0x1d7)]=_0x2ccad4,this[_0x1237e9(0x1d4)]({'tag':_0x1237e9(0x1d3),'attributes':{'class':['ck',_0x1237e9(0x1df)]},'children':[_0x508b29,{'text':_0x3cdbc['to'](_0x1237e9(0x1d1))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3ed488=_0x3f17;(function(_0x2e672a,_0x1a8de2){const _0x45d97c=_0x3f17,_0x870900=_0x2e672a();while(!![]){try{const _0x935f51=-parseInt(_0x45d97c(0x76))/0x1*(parseInt(_0x45d97c(0x6a))/0x2)+parseInt(_0x45d97c(0x99))/0x3*(parseInt(_0x45d97c(0x69))/0x4)+-parseInt(_0x45d97c(0x6f))/0x5*(-parseInt(_0x45d97c(0x97))/0x6)+-parseInt(_0x45d97c(0x98))/0x7+-parseInt(_0x45d97c(0x7d))/0x8+-parseInt(_0x45d97c(0x6c))/0x9+-parseInt(_0x45d97c(0x6e))/0xa*(-parseInt(_0x45d97c(0x77))/0xb);if(_0x935f51===_0x1a8de2)break;else _0x870900['push'](_0x870900['shift']());}catch(_0x3f0eb7){_0x870900['push'](_0x870900['shift']());}}}(_0x5da4,0xd5975));import{Rect as _0x2ac2ae,global as _0x311300,isVisible as _0x278df4}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x19e5af,ButtonView as _0x5df408}from'ckeditor5/src/ui.js';import{icons as _0x312e79}from'ckeditor5/src/core.js';import{getTranslation as _0x4a98bf}from'../../utils/common-translations.js';import _0x2a63b0 from'../../../theme/icons/submit.svg';function _0x3f17(_0x1f7eb5,_0xed05a){const _0x5da4f3=_0x5da4();return _0x3f17=function(_0x3f17cf,_0x223150){_0x3f17cf=_0x3f17cf-0x69;let _0x32edd5=_0x5da4f3[_0x3f17cf];return _0x32edd5;},_0x3f17(_0x1f7eb5,_0xed05a);}export default class ht extends _0x19e5af{constructor(_0x6d392e,_0x5583f2){const _0x589dda=_0x3f17;super(_0x6d392e,_0x5583f2),this[_0x589dda(0x89)][_0x589dda(0x9d)][_0x589dda(0x6d)]=0x1,this[_0x589dda(0x89)][_0x589dda(0x9d)][_0x589dda(0x6b)]=0x3,this[_0x589dda(0x75)]=this[_0x589dda(0x90)](),this[_0x589dda(0x81)]=this[_0x589dda(0x87)](),this[_0x589dda(0xa2)][_0x589dda(0x83)](this[_0x589dda(0x81)],0x1),this[_0x589dda(0xa2)][_0x589dda(0x83)](this[_0x589dda(0x75)]);}[_0x3ed488(0x7f)](){const _0xa2c3b9=_0x3ed488;super[_0xa2c3b9(0x7f)](),this[_0xa2c3b9(0x89)][_0xa2c3b9(0x8b)][_0xa2c3b9(0x83)](this[_0xa2c3b9(0x81)]),this[_0xa2c3b9(0x71)][_0xa2c3b9(0x83)](this[_0xa2c3b9(0x75)]),this[_0xa2c3b9(0x96)][_0xa2c3b9(0x9b)](_0xa2c3b9(0x7c),(_0x4384e4,_0x277b29)=>{const _0x412179=_0xa2c3b9;_0x4384e4[_0x412179(0x91)]==this[_0x412179(0x89)][_0x412179(0x9d)][_0x412179(0x9a)]&&(this[_0x412179(0xa1)](),_0x277b29());});}[_0x3ed488(0x90)](){const _0x1409a2=_0x3ed488,_0x50b371=new _0x5df408(this[_0x1409a2(0x93)]),_0xd92d29=this[_0x1409a2(0x93)];return _0x50b371[_0x1409a2(0x9b)]({'icon':_0x2a63b0,'label':_0x4a98bf(_0xd92d29,_0x1409a2(0x79)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1409a2(0x84)}),_0x50b371['on'](_0x1409a2(0x80),()=>{const _0x3cf3da=_0x1409a2;this[_0x3cf3da(0xa1)]();}),_0x50b371[_0x1409a2(0x92)](_0x1409a2(0x8d))['to'](this[_0x1409a2(0x89)][_0x1409a2(0x9d)],_0x1409a2(0x78),this,_0x1409a2(0x8d),(_0x5f1f5a,_0x1b857d)=>!_0x5f1f5a&&_0x1b857d),_0x50b371;}[_0x3ed488(0x87)](){const _0x44ee7=_0x3ed488,_0x294707=new _0x5df408(this[_0x44ee7(0x93)]),_0x39753b=this[_0x44ee7(0x7b)],_0x1619f9=this[_0x44ee7(0x93)];_0x294707[_0x44ee7(0x9b)]({'label':_0x4a98bf(_0x1619f9,_0x44ee7(0x7a)),'withText':!0x1,'icon':_0x312e79[_0x44ee7(0x95)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x44ee7(0x7e)}),_0x294707[_0x44ee7(0x92)](_0x44ee7(0x8e))['to'](_0x39753b,_0x44ee7(0x85)),_0x294707[_0x44ee7(0x92)](_0x44ee7(0x8d))['to'](this,_0x44ee7(0x8d)),_0x294707['on'](_0x44ee7(0x80),()=>{const _0x350ea3=_0x44ee7;_0x39753b[_0x350ea3(0x85)]=!_0x39753b[_0x350ea3(0x85)],_0x39753b[_0x350ea3(0x85)]?this[_0x350ea3(0x73)][_0x350ea3(0x72)]():this[_0x350ea3(0x72)]();});const _0x2fe102=()=>{const _0x3d5c0f=_0x44ee7;_0x311300[_0x3d5c0f(0x82)][_0x3d5c0f(0x8c)](()=>{const _0x4b9d77=_0x3d5c0f;if(_0x278df4(this[_0x4b9d77(0x9a)])){const _0x4890f7=new _0x2ac2ae(this[_0x4b9d77(0x89)][_0x4b9d77(0x9d)][_0x4b9d77(0x9a)]),_0x4a7106=_0x4890f7[_0x4b9d77(0x74)],_0x5733c8=_0x4b9d77(0x9e)===_0x1619f9[_0x4b9d77(0x94)]?_0x4b9d77(0x88):_0x4b9d77(0x8f);_0x4890f7[_0x4b9d77(0x9f)](),_0x294707[_0x4b9d77(0x9a)][_0x4b9d77(0xa0)][_0x5733c8]=_0x4a7106-_0x4890f7[_0x4b9d77(0x74)]+0x1+'px';}});};return this[_0x44ee7(0x89)][_0x44ee7(0x9d)]['on'](_0x44ee7(0xa3),_0x2fe102),this['on'](_0x44ee7(0x7f),_0x2fe102),_0x294707;}[_0x3ed488(0xa1)](){const _0x105aad=_0x3ed488,_0x5ba3f9=this[_0x105aad(0x89)][_0x105aad(0x9d)][_0x105aad(0x9a)][_0x105aad(0x86)];this[_0x105aad(0x70)](_0x105aad(0xa1),_0x5ba3f9);}[_0x3ed488(0x72)](_0x7f2de6){const _0x215c2a=_0x3ed488;-0x1===_0x7f2de6?this[_0x215c2a(0xa4)][_0x215c2a(0x8a)]():this[_0x215c2a(0xa4)][_0x215c2a(0x9c)]();}}function _0x5da4(){const _0x4e8be4=['isEmpty','Submit','History','resultsView','enter','5596176ePGaJm','ck-ai-form__toggle-history','render','execute','showHistoryButtonView','window','add','ck-ai-form__submit','isVisible','value','_createShowHistoryButton','left','queryView','focusLast','fieldWrapperChildren','requestAnimationFrame','isEnabled','isOn','right','_createSubmitButton','target','bind','locale','uiLanguageDirection','history','keystrokes','6DYBlyS','8282141FEInzt','459FzmyjY','element','set','focusFirst','fieldView','rtl','excludeScrollbarsAndBorders','style','submit','focusableChildren','update','focusCycler','8844CnulZy','2VDYxFA','maxRows','8038854GdLTmF','minRows','614330tUvaxw','583985CTKwHO','fire','children','focus','filteredView','width','submitButtonView','920331dbhDLg','737ekfOAf'];_0x5da4=function(){return _0x4e8be4;};return _0x5da4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xd3ff06=_0x368f;(function(_0x2b2436,_0x18fc3b){const _0x5816dd=_0x368f,_0x4a0bf3=_0x2b2436();while(!![]){try{const _0x52efd7=parseInt(_0x5816dd(0x10f))/0x1+parseInt(_0x5816dd(0x108))/0x2*(-parseInt(_0x5816dd(0x124))/0x3)+parseInt(_0x5816dd(0x112))/0x4+-parseInt(_0x5816dd(0x114))/0x5+parseInt(_0x5816dd(0x11f))/0x6+-parseInt(_0x5816dd(0x10c))/0x7*(parseInt(_0x5816dd(0x116))/0x8)+-parseInt(_0x5816dd(0x105))/0x9*(-parseInt(_0x5816dd(0x111))/0xa);if(_0x52efd7===_0x18fc3b)break;else _0x4a0bf3['push'](_0x4a0bf3['shift']());}catch(_0x27996f){_0x4a0bf3['push'](_0x4a0bf3['shift']());}}}(_0x45ca,0x5c5b7));import{ToolbarView as _0x39cc9a,ButtonView as _0x1b6ef5}from'ckeditor5/src/ui.js';import{getTranslation as _0x4ae34f}from'../../utils/common-translations.js';function _0x368f(_0x5f09d3,_0x5f140b){const _0x45ca00=_0x45ca();return _0x368f=function(_0x368f1c,_0x345a3a){_0x368f1c=_0x368f1c-0x104;let _0x519240=_0x45ca00[_0x368f1c];return _0x519240;},_0x368f(_0x5f09d3,_0x5f140b);}function _0x45ca(){const _0x11aff6=['Stop','9SPwvOQ','Insert\x20below','set','4JJxuJC','isVisible','extendTemplate','insert','176533wqjpMw','mainAction','_createButton','364975uXijbb','bindTemplate','6569690uimKoP','2472864jvHXex','addMany','1845555LSOOpq','REPLACE','184xMWVKn','label','_CONTENT','bind','replaceButton','locale','toUpperCase','insertButton','ck-button-action','359814wlRNBP','stopButton','ck-hidden','tryAgainButton','items','559029prHuFd','replace','AI_','ck-ai-form__toolbar','Try\x20again'];_0x45ca=function(){return _0x11aff6;};return _0x45ca();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0xd3ff06(0x125),'INSERT':_0xd3ff06(0x10b)};export default class nt extends _0x39cc9a{constructor(_0x1ea643){const _0x529ce6=_0xd3ff06;super(_0x1ea643),this[_0x529ce6(0x107)](_0x529ce6(0x109),!0x1),this[_0x529ce6(0x107)](_0x529ce6(0x10d),AIFormToolbarViewMainActionLabel[_0x529ce6(0x115)]),this[_0x529ce6(0x11a)]=this[_0x529ce6(0x10e)]('',_0x529ce6(0x11e)),this[_0x529ce6(0x11a)][_0x529ce6(0x119)](_0x529ce6(0x117))['to'](this,_0x529ce6(0x10d),_0x4b84b0=>_0x4ae34f(_0x1ea643,_0x529ce6(0x126)+_0x4b84b0[_0x529ce6(0x11c)]()+_0x529ce6(0x118))),this[_0x529ce6(0x11d)]=this[_0x529ce6(0x10e)](_0x4ae34f(_0x1ea643,_0x529ce6(0x106))),this[_0x529ce6(0x122)]=this[_0x529ce6(0x10e)](_0x4ae34f(_0x1ea643,_0x529ce6(0x128))),this[_0x529ce6(0x120)]=this[_0x529ce6(0x10e)](_0x4ae34f(_0x1ea643,_0x529ce6(0x104)));const _0x425d04=this[_0x529ce6(0x110)];this[_0x529ce6(0x10a)]({'attributes':{'class':[_0x529ce6(0x127),_0x425d04['if'](_0x529ce6(0x109),_0x529ce6(0x121),_0x3df72=>!_0x3df72)]}}),this[_0x529ce6(0x123)][_0x529ce6(0x113)]([this[_0x529ce6(0x11a)],this[_0x529ce6(0x11d)],this[_0x529ce6(0x122)],this[_0x529ce6(0x120)]]);}[_0xd3ff06(0x10e)](_0x4dc97f,_0x363aa5){const _0x2e7353=_0xd3ff06,_0x5a6dfb=new _0x1b6ef5(this[_0x2e7353(0x11b)]);return _0x5a6dfb[_0x2e7353(0x107)]({'label':_0x4dc97f,'class':_0x363aa5||'','isVisible':!0x0,'withText':!0x0}),_0x5a6dfb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19c8c5=_0x1a1f;function _0xfbe1(){const _0x535651=['shift\x20+\x20tab','delegate','div','historyGroupView','ck-hidden','_promptHistory','value','trim','submitPrompt','fire','replaceButton','tryAgainEvent','AI_ERROR_FAILED','clearHistory','REPLACE','_createHistoryView','15178920hQkACY','tryAgainButton','element','4yxjVhk','focusFirst','Ask\x20AI\x20to\x20improve\x20generated\x20text','focusTracker','mainAction','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','promptView','isEnabled','bind','execute','text','setTemplate','stopButton','high','submit','render','928802UTyLgO','fieldView','stopProcessing','locale','focus','10TeBBXi','bindTemplate','11yxxuuR','focusLast','isVisible','createCollection','prompt','_createPromptView','reset','errorView','857864qbCQBV','label','handleError','_focusables','135Umztcq','14400207AZCeHM','ck-ai-form-content','contentArea','search','focusCycler','insertContentBelow','items','insertButton','Empty\x20history','tab','isError','replaceContent','queryView','keystrokes','ck-ai-form','bindTo','2284292PiRmqW','copyButtonView','Ask\x20AI\x20to\x20edit\x20or\x20generate','set','clear','startProcessing','40GjINHB','toolbar','finishProcessing','chain','_createToolbar','add','listenTo','216312MuCDBk','isProcessing','3473307vJxdrp'];_0xfbe1=function(){return _0x535651;};return _0xfbe1();}(function(_0x4f6436,_0x120dfb){const _0x211b87=_0x1a1f,_0x504330=_0x4f6436();while(!![]){try{const _0x553983=parseInt(_0x211b87(0xb1))/0x1+parseInt(_0x211b87(0x7e))/0x2+parseInt(_0x211b87(0x8d))/0x3*(-parseInt(_0x211b87(0xa1))/0x4)+-parseInt(_0x211b87(0xc4))/0x5*(-parseInt(_0x211b87(0x8b))/0x6)+parseInt(_0x211b87(0xc0))/0x7*(-parseInt(_0x211b87(0x84))/0x8)+-parseInt(_0x211b87(0xc5))/0x9*(parseInt(_0x211b87(0xb6))/0xa)+-parseInt(_0x211b87(0xb8))/0xb*(-parseInt(_0x211b87(0x9e))/0xc);if(_0x553983===_0x120dfb)break;else _0x504330['push'](_0x504330['shift']());}catch(_0x1f7d32){_0x504330['push'](_0x504330['shift']());}}}(_0xfbe1,0xe52d6));import{FocusTracker as _0x4d1479,KeystrokeHandler as _0x191705}from'ckeditor5/src/utils.js';import{View as _0x4165fb,FocusCycler as _0x260303,createLabeledTextarea as _0x18da4c}from'ckeditor5/src/ui.js';import _0x412e1f,{AIFormToolbarViewMainActionLabel as _0x3b2369}from'./aiformtoolbarview.js';import _0x3035fc from'./aiformcontentarea.js';import _0x4c7510 from'./aiformerrorview.js';import _0x1e8fe8 from'./aiformpromptview.js';import _0x55015c from'./aihistorylistview.js';import _0x4a008e from'./aihistorylistitemview.js';import _0x4aae0c from'./prompthistory.js';import{getTranslation as _0x386b39}from'../../utils/common-translations.js';import{escape as _0x48cb78}from'lodash-es';function _0x1a1f(_0x12a2cc,_0x5cdb14){const _0xfbe18b=_0xfbe1();return _0x1a1f=function(_0x1a1fc2,_0x18dfec){_0x1a1fc2=_0x1a1fc2-0x76;let _0x58d7d8=_0xfbe18b[_0x1a1fc2];return _0x58d7d8;},_0x1a1f(_0x12a2cc,_0x5cdb14);}export default class K extends _0x4165fb{constructor(_0x5adb68,_0x154801,_0x3dabf6=''){const _0x1e5659=_0x1a1f;super(_0x5adb68),this[_0x1e5659(0x81)](_0x1e5659(0xa8),!0x0),this[_0x1e5659(0x81)](_0x1e5659(0x8c),!0x1),this[_0x1e5659(0x81)](_0x1e5659(0xbc),''),this[_0x1e5659(0x81)](_0x1e5659(0x94),''),this[_0x1e5659(0x81)](_0x1e5659(0x78),!0x1),this[_0x1e5659(0x81)](_0x1e5659(0xa5),_0x3b2369[_0x1e5659(0x9c)]),this[_0x1e5659(0x93)]=new _0x4aae0c(),this[_0x1e5659(0xbf)]=new _0x4c7510(_0x5adb68),this[_0x1e5659(0xc7)]=new _0x3035fc(_0x5adb68,_0x3dabf6),this[_0x1e5659(0xc7)][_0x1e5659(0xa9)](_0x1e5659(0x8c))['to'](this),this[_0x1e5659(0xc7)][_0x1e5659(0xa9)](_0x1e5659(0x94))['to'](this),this[_0x1e5659(0x85)]=this[_0x1e5659(0x88)](),this[_0x1e5659(0x85)][_0x1e5659(0xa9)](_0x1e5659(0xa5))['to'](this),this[_0x1e5659(0xa7)]=this[_0x1e5659(0xbd)](),this[_0x1e5659(0xa4)]=new _0x4d1479(),this[_0x1e5659(0x7b)]=new _0x191705(),this[_0x1e5659(0xc3)]=this[_0x1e5659(0xbb)]([this[_0x1e5659(0xc7)],this[_0x1e5659(0xc7)][_0x1e5659(0x7f)],this[_0x1e5659(0x85)],this[_0x1e5659(0xa7)]]),this[_0x1e5659(0xc9)]=new _0x260303({'focusables':this[_0x1e5659(0xc3)],'focusTracker':this[_0x1e5659(0xa4)],'keystrokeHandler':this[_0x1e5659(0x7b)],'actions':{'focusPrevious':_0x1e5659(0x8e),'focusNext':_0x1e5659(0x77)}}),this[_0x1e5659(0xc9)][_0x1e5659(0x87)](this[_0x1e5659(0xa7)][_0x1e5659(0xc9)]),this[_0x1e5659(0xa7)][_0x1e5659(0x7a)][_0x1e5659(0xb2)][_0x1e5659(0xa9)](_0x1e5659(0x94))['to'](this,_0x1e5659(0xbc));const _0x2d055d=this[_0x1e5659(0xb7)];this[_0x1e5659(0xac)]({'tag':_0x1e5659(0x90),'attributes':{'class':['ck',_0x1e5659(0x7c),_0x154801],'tabindex':'-1'},'children':[{'tag':_0x1e5659(0x90),'attributes':{'class':['ck',_0x1e5659(0xc6)]},'children':[{'tag':_0x1e5659(0x90),'attributes':{'class':[_0x2d055d['if'](_0x1e5659(0x78),_0x1e5659(0x92),_0x44e494=>!_0x44e494)]},'children':[this[_0x1e5659(0xbf)]]},this[_0x1e5659(0xc7)],this[_0x1e5659(0x85)],this[_0x1e5659(0xa7)]]}]});}[_0x19c8c5(0xb0)](){const _0x9b0dbb=_0x19c8c5;super[_0x9b0dbb(0xb0)](),this[_0x9b0dbb(0xa4)][_0x9b0dbb(0x89)](this[_0x9b0dbb(0xc7)][_0x9b0dbb(0xa0)]),this[_0x9b0dbb(0xa4)][_0x9b0dbb(0x89)](this[_0x9b0dbb(0xc7)][_0x9b0dbb(0x7f)][_0x9b0dbb(0xa0)]),this[_0x9b0dbb(0xa4)][_0x9b0dbb(0x89)](this[_0x9b0dbb(0x85)][_0x9b0dbb(0xa0)]),this[_0x9b0dbb(0xa4)][_0x9b0dbb(0x89)](this[_0x9b0dbb(0xa7)][_0x9b0dbb(0xa0)]),this[_0x9b0dbb(0x7b)][_0x9b0dbb(0x8a)](this[_0x9b0dbb(0xa0)]);}[_0x19c8c5(0xb5)](_0x7100b2=0x1){const _0x457578=_0x19c8c5;-0x1===_0x7100b2?this[_0x457578(0xc9)][_0x457578(0xb9)]():this[_0x457578(0xc9)][_0x457578(0xa2)]();}[_0x19c8c5(0xbe)](){const _0x3c0a3a=_0x19c8c5;this[_0x3c0a3a(0xbc)]='',this[_0x3c0a3a(0x94)]='',this[_0x3c0a3a(0x78)]=!0x1,this[_0x3c0a3a(0xa7)][_0x3c0a3a(0xbe)](),this[_0x3c0a3a(0xc7)][_0x3c0a3a(0xba)]=!0x1,this[_0x3c0a3a(0x85)][_0x3c0a3a(0xba)]=!0x1;}[_0x19c8c5(0xbd)](){const _0x5d2e6a=_0x19c8c5,_0x30388c=this[_0x5d2e6a(0xb4)],_0x35cc0b=new _0x1e8fe8(_0x30388c,{'queryView':{'label':_0x386b39(_0x30388c,_0x5d2e6a(0x80)),'creator':_0x18da4c,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x386b39(_0x30388c,_0x5d2e6a(0x76)),'secondary':_0x386b39(_0x30388c,_0x5d2e6a(0xa6))}}},'filteredView':this[_0x5d2e6a(0x9d)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x35cc0b[_0x5d2e6a(0xa9)](_0x5d2e6a(0xa8))['to'](this,_0x5d2e6a(0xa8),this,_0x5d2e6a(0x8c),(_0x53679a,_0x292f47)=>_0x53679a&&!_0x292f47),this[_0x5d2e6a(0x8a)](_0x35cc0b,_0x5d2e6a(0xaf),(_0x5cd3ca,_0x3765b6)=>{const _0x23224d=_0x5d2e6a;this[_0x23224d(0xbc)]=_0x3765b6;const _0x47fdd1=_0x48cb78(_0x3765b6);this[_0x23224d(0x97)](_0x23224d(0x96),_0x47fdd1),_0x3765b6[_0x23224d(0x95)]()&&this[_0x23224d(0x93)][_0x23224d(0x89)]({'prompt':_0x47fdd1},0x0);},{'priority':_0x5d2e6a(0xae)}),_0x35cc0b;}[_0x19c8c5(0x9d)](){const _0x176473=_0x19c8c5,_0x346bf5=new _0x55015c(this[_0x176473(0xb4)]);return _0x346bf5[_0x176473(0x91)][_0x176473(0xcb)][_0x176473(0x7d)](this[_0x176473(0x93)])['as'](_0x4a008e),_0x346bf5['on'](_0x176473(0x9b),()=>{const _0x4f40a6=_0x176473;this[_0x4f40a6(0x93)][_0x4f40a6(0x82)](),this[_0x4f40a6(0xa7)][_0x4f40a6(0xc8)](''),this[_0x4f40a6(0xa7)][_0x4f40a6(0xb5)]();}),_0x346bf5;}[_0x19c8c5(0x88)](){const _0x32ceab=_0x19c8c5,_0x59fccf=new _0x412e1f(this[_0x32ceab(0xb4)]);return _0x59fccf[_0x32ceab(0x98)][_0x32ceab(0xa9)](_0x32ceab(0xa8))['to'](this,_0x32ceab(0xa8),this,_0x32ceab(0x8c),this,_0x32ceab(0x94),(_0x5103c0,_0x5a06b8,_0x3423f2)=>_0x5103c0&&!_0x5a06b8&&!!_0x3423f2),_0x59fccf[_0x32ceab(0x98)][_0x32ceab(0x8f)](_0x32ceab(0xaa))['to'](this,_0x32ceab(0x79)),_0x59fccf[_0x32ceab(0xcc)][_0x32ceab(0xa9)](_0x32ceab(0xa8))['to'](this,_0x32ceab(0xa8),this,_0x32ceab(0x8c),this,_0x32ceab(0x94),(_0x3d1c88,_0x58a791,_0x126035)=>_0x3d1c88&&!_0x58a791&&!!_0x126035),_0x59fccf[_0x32ceab(0xcc)][_0x32ceab(0x8f)](_0x32ceab(0xaa))['to'](this,_0x32ceab(0xca)),_0x59fccf[_0x32ceab(0x9f)][_0x32ceab(0xa9)](_0x32ceab(0xa8))['to'](this,_0x32ceab(0xa8),this,_0x32ceab(0x8c),(_0x232cfa,_0x55f144)=>_0x232cfa&&!_0x55f144),_0x59fccf[_0x32ceab(0x9f)][_0x32ceab(0x8f)](_0x32ceab(0xaa))['to'](this,_0x32ceab(0x99)),_0x59fccf[_0x32ceab(0xad)][_0x32ceab(0xa9)](_0x32ceab(0xa8))['to'](this,_0x32ceab(0x8c)),_0x59fccf[_0x32ceab(0xad)][_0x32ceab(0x8f)](_0x32ceab(0xaa))['to'](this,_0x32ceab(0xb3)),_0x59fccf;}[_0x19c8c5(0x83)](){const _0x561fc6=_0x19c8c5;this[_0x561fc6(0x94)]='',this[_0x561fc6(0x78)]=!0x1,this[_0x561fc6(0x8c)]=!0x0,this[_0x561fc6(0xc7)][_0x561fc6(0xba)]=!0x0,this[_0x561fc6(0x85)][_0x561fc6(0xba)]=!0x0,this[_0x561fc6(0xc7)][_0x561fc6(0xb5)]();}[_0x19c8c5(0x86)](){const _0x5f3a3a=_0x19c8c5,_0x1bd2d0=this[_0x5f3a3a(0xb4)];this[_0x5f3a3a(0x8c)]=!0x1,this[_0x5f3a3a(0xbc)]='',this[_0x5f3a3a(0xa7)][_0x5f3a3a(0xbe)](),this[_0x5f3a3a(0x94)]&&(this[_0x5f3a3a(0xa7)][_0x5f3a3a(0x7a)][_0x5f3a3a(0xc1)]=_0x386b39(_0x1bd2d0,_0x5f3a3a(0xa3)));}[_0x19c8c5(0xc2)](_0x20856d){const _0x375e89=_0x19c8c5,_0x30c478=this[_0x375e89(0xb4)];this[_0x375e89(0x86)](),this[_0x375e89(0x78)]=!0x0,this[_0x375e89(0xbf)][_0x375e89(0xab)]=_0x20856d||_0x386b39(_0x30c478,_0x375e89(0x9a)),this[_0x375e89(0x94)]||(this[_0x375e89(0xc7)][_0x375e89(0xba)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x535b5a,_0x4ba2c2){const _0x390d0c=_0x52f1,_0x5a3e3e=_0x535b5a();while(!![]){try{const _0x55053a=-parseInt(_0x390d0c(0x130))/0x1*(parseInt(_0x390d0c(0x133))/0x2)+parseInt(_0x390d0c(0x132))/0x3+-parseInt(_0x390d0c(0x135))/0x4*(parseInt(_0x390d0c(0x136))/0x5)+parseInt(_0x390d0c(0x12c))/0x6+parseInt(_0x390d0c(0x139))/0x7*(-parseInt(_0x390d0c(0x12b))/0x8)+-parseInt(_0x390d0c(0x12a))/0x9+parseInt(_0x390d0c(0x137))/0xa;if(_0x55053a===_0x4ba2c2)break;else _0x5a3e3e['push'](_0x5a3e3e['shift']());}catch(_0x1f3b37){_0x5a3e3e['push'](_0x5a3e3e['shift']());}}}(_0x2d21,0xaed7d));function _0x2d21(){const _0x464dea=['prompt','35020nEkUom','475rZQyqH','29540590TUBvTt','execute','5201yaAqZx','fire','3702429KfaLVV','2008fmAaBB','3486276lrrKFb','children','locale','add','1394bshzfq','set','1407wVROYx','1994ORPZci'];_0x2d21=function(){return _0x464dea;};return _0x2d21();}import{ListItemView as _0x5d7fa3,ButtonView as _0x163471,ButtonLabelView as _0x2b5156}from'ckeditor5/src/ui.js';function _0x52f1(_0x5dfefd,_0x2db120){const _0x2d2128=_0x2d21();return _0x52f1=function(_0x52f191,_0x2ca0a8){_0x52f191=_0x52f191-0x129;let _0x5667d1=_0x2d2128[_0x52f191];return _0x5667d1;},_0x52f1(_0x5dfefd,_0x2db120);}import{unescape as _0x36819b}from'lodash-es';export default class hs extends _0x5d7fa3{constructor(_0x1c6cc2){const _0x56e07a=_0x52f1;super();const _0x1c067f=new _0x2b5156(),_0x4659f9=new _0x163471(this[_0x56e07a(0x12e)],_0x1c067f);this[_0x56e07a(0x12d)][_0x56e07a(0x12f)](_0x4659f9),_0x4659f9[_0x56e07a(0x131)]({'label':_0x1c6cc2[_0x56e07a(0x134)],'withText':!0x0}),_0x4659f9['on'](_0x56e07a(0x138),()=>{const _0x3bf363=_0x56e07a;this[_0x3bf363(0x129)](_0x3bf363(0x138),{'value':_0x36819b(_0x1c6cc2[_0x3bf363(0x134)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3610b7=_0x41fa;(function(_0x298ff0,_0x2042ed){const _0xcf6b67=_0x41fa,_0x48d364=_0x298ff0();while(!![]){try{const _0x27db90=parseInt(_0xcf6b67(0x94))/0x1*(-parseInt(_0xcf6b67(0x96))/0x2)+-parseInt(_0xcf6b67(0x97))/0x3+parseInt(_0xcf6b67(0x91))/0x4*(-parseInt(_0xcf6b67(0x9c))/0x5)+-parseInt(_0xcf6b67(0x8c))/0x6*(parseInt(_0xcf6b67(0x8d))/0x7)+parseInt(_0xcf6b67(0x9b))/0x8*(parseInt(_0xcf6b67(0xa2))/0x9)+-parseInt(_0xcf6b67(0xa0))/0xa*(parseInt(_0xcf6b67(0x9d))/0xb)+parseInt(_0xcf6b67(0x99))/0xc;if(_0x27db90===_0x2042ed)break;else _0x48d364['push'](_0x48d364['shift']());}catch(_0x179d91){_0x48d364['push'](_0x48d364['shift']());}}}(_0xd20b,0x5edf0));import{ListView as _0xc8299a,ListItemGroupView as _0x2434c3,ButtonView as _0x556f7d}from'ckeditor5/src/ui.js';import{getTranslation as _0x276c32}from'../../utils/common-translations.js';export default class rs extends _0xc8299a{constructor(_0x2797c9){const _0x3d81db=_0x41fa;super(_0x2797c9),this[_0x3d81db(0x92)]=this[_0x3d81db(0x8f)](),this[_0x3d81db(0x88)]=new _0x2434c3(),this[_0x3d81db(0x88)][_0x3d81db(0xa3)][_0x3d81db(0x8e)](this[_0x3d81db(0x92)],0x1),this[_0x3d81db(0x88)][_0x3d81db(0x89)]=_0x276c32(_0x2797c9,_0x3d81db(0x87)),this[_0x3d81db(0x88)][_0x3d81db(0x93)][_0x3d81db(0x9f)](_0x3d81db(0x9a))['to'](this),this[_0x3d81db(0x93)][_0x3d81db(0x8e)](this[_0x3d81db(0x88)]);}[_0x3610b7(0x95)](){const _0x14089a=_0x3610b7;let _0x524212=0x0;for(const _0x1cd28b of this[_0x14089a(0x93)])_0x524212+=_0x1cd28b[_0x14089a(0x93)][_0x14089a(0x8b)];return{'resultsCount':_0x524212,'totalItemsCount':_0x524212};}[_0x3610b7(0x8f)](){const _0x4429a5=_0x3610b7,_0x5cbed7=this[_0x4429a5(0xa1)],_0x6f735d=new _0x556f7d(this[_0x4429a5(0xa1)]);return _0x6f735d[_0x4429a5(0x90)]({'label':'('+_0x276c32(_0x5cbed7,_0x4429a5(0x9e))+')','withText':!0x0}),_0x6f735d['on'](_0x4429a5(0x9a),()=>this[_0x4429a5(0x98)](_0x4429a5(0x8a))),_0x6f735d;}}function _0x41fa(_0x28d21a,_0x28ebf4){const _0xd20baa=_0xd20b();return _0x41fa=function(_0x41fa5b,_0x5302e3){_0x41fa5b=_0x41fa5b-0x87;let _0x2ba623=_0xd20baa[_0x41fa5b];return _0x2ba623;},_0x41fa(_0x28d21a,_0x28ebf4);}function _0xd20b(){const _0x454fb8=['execute','2266808pzLpIF','5adHbKy','6820sIispF','Clear','delegate','2900OAQEgp','locale','9ylYRUk','children','Prompt\x20history','historyGroupView','label','clearHistory','length','72096rGPwyq','147jCVrWG','add','_createClearHistoryButton','set','1198468dMJZld','clearHistoryButton','items','5479pbyNKI','filter','30XNIidS','1329666VrWDJl','fire','16348812XVFbyb'];_0xd20b=function(){return _0x454fb8;};return _0xd20b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a925b=_0x4765;function _0x2f27(){const _0x4e3d04=['860976lAskcg','trim','7viYcYP','77iXSmqo','2231145Wsmgzt','stringify','length','CKEditor/AIFormView/PromptHistory','1035591Sjtwid','map','addMany','remove','_saveToSessionStorage','last','getItem','_loadFromSessionStorage','setItem','156DGDzxE','parse','582024NWRwBa','toLowerCase','147990ckMfbf','979580OaFCGn','prompt','2ZPRPiV','add','1345aWsmQg'];_0x2f27=function(){return _0x4e3d04;};return _0x2f27();}(function(_0x2463ca,_0x1003a7){const _0x2d0fcb=_0x4765,_0x1f8094=_0x2463ca();while(!![]){try{const _0x121df1=parseInt(_0x2d0fcb(0x1e0))/0x1+-parseInt(_0x2d0fcb(0x1dd))/0x2*(parseInt(_0x2d0fcb(0x1cd))/0x3)+-parseInt(_0x2d0fcb(0x1db))/0x4+parseInt(_0x2d0fcb(0x1df))/0x5*(-parseInt(_0x2d0fcb(0x1d6))/0x6)+-parseInt(_0x2d0fcb(0x1e2))/0x7*(-parseInt(_0x2d0fcb(0x1d8))/0x8)+parseInt(_0x2d0fcb(0x1e4))/0x9+parseInt(_0x2d0fcb(0x1da))/0xa*(-parseInt(_0x2d0fcb(0x1e3))/0xb);if(_0x121df1===_0x1003a7)break;else _0x1f8094['push'](_0x1f8094['shift']());}catch(_0x3b8e50){_0x1f8094['push'](_0x1f8094['shift']());}}}(_0x2f27,0x756bb));import{Collection as _0x566db}from'ckeditor5/src/utils.js';function _0x4765(_0x2d1030,_0x3945e0){const _0x2f2729=_0x2f27();return _0x4765=function(_0x4765c9,_0x30029a){_0x4765c9=_0x4765c9-0x1ca;let _0x5e9ee7=_0x2f2729[_0x4765c9];return _0x5e9ee7;},_0x4765(_0x2d1030,_0x3945e0);}const cs=_0x1a925b(0x1cc);export default class os extends _0x566db{constructor(){const _0x812b8b=_0x1a925b;super(),this[_0x812b8b(0x1d4)](),this['on'](_0x812b8b(0x1de),(_0x1ce335,_0x2230a0)=>{const _0x474ad7=_0x812b8b,_0x6e9cca=Ss(_0x2230a0[_0x474ad7(0x1dc)]);for(const _0x5b207e of this)if(_0x5b207e!=_0x2230a0&&Ss(_0x5b207e[_0x474ad7(0x1dc)])===_0x6e9cca){this[_0x474ad7(0x1d0)](_0x5b207e);break;}this[_0x474ad7(0x1cb)]>0x14&&this[_0x474ad7(0x1d0)](this[_0x474ad7(0x1d2)]),this[_0x474ad7(0x1d1)]();}),this['on'](_0x812b8b(0x1d0),()=>{const _0x2f0b44=_0x812b8b;this[_0x2f0b44(0x1d1)]();});}[_0x1a925b(0x1d4)](){const _0x2f7b47=_0x1a925b,_0x5325e5=sessionStorage[_0x2f7b47(0x1d3)](cs)||'[]';this[_0x2f7b47(0x1cf)](JSON[_0x2f7b47(0x1d7)](_0x5325e5));}[_0x1a925b(0x1d1)](){const _0x291b11=_0x1a925b;sessionStorage[_0x291b11(0x1d5)](cs,JSON[_0x291b11(0x1ca)](this[_0x291b11(0x1ce)](_0x937cdc=>_0x937cdc)));}}function Ss(_0x2ed172){const _0x402607=_0x1a925b;return _0x2ed172[_0x402607(0x1d9)]()[_0x402607(0x1e1)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23331b=_0x2624;(function(_0xa8cb28,_0x3ed727){const _0x308956=_0x2624,_0x29d201=_0xa8cb28();while(!![]){try{const _0xd49d03=-parseInt(_0x308956(0x1b4))/0x1+parseInt(_0x308956(0x18f))/0x2*(parseInt(_0x308956(0x191))/0x3)+-parseInt(_0x308956(0x1a4))/0x4*(parseInt(_0x308956(0x1b3))/0x5)+parseInt(_0x308956(0x1ab))/0x6+-parseInt(_0x308956(0x19b))/0x7*(-parseInt(_0x308956(0x1ad))/0x8)+-parseInt(_0x308956(0x193))/0x9*(parseInt(_0x308956(0x1af))/0xa)+parseInt(_0x308956(0x198))/0xb;if(_0xd49d03===_0x3ed727)break;else _0x29d201['push'](_0x29d201['shift']());}catch(_0x1b96a4){_0x29d201['push'](_0x29d201['shift']());}}}(_0x3a1a,0x19d27));import{Command as _0x78118d}from'ckeditor5/src/core.js';import _0xd5ea53 from'../aiassistantui.js';export default class y extends _0x78118d{constructor(_0x5a51cf,_0x111a90){const _0x595447=_0x2624;super(_0x5a51cf),this[_0x595447(0x18a)]=_0x111a90,this[_0x595447(0x19e)](_0x595447(0x18c),[]),this['on'](_0x595447(0x192),(_0x2c0d84,_0x3d5b1b,_0x4d379c)=>{const _0x2c43d1=_0x595447;this[_0x2c43d1(0x1aa)]&&(this[_0x2c43d1(0x18c)]=G(this[_0x2c43d1(0x18a)],_0x4d379c));}),this[_0x595447(0x19e)](_0x595447(0x1ae),!0x1),this['on'](_0x595447(0x1a8),(_0x22a2cf,_0x30fa9f,_0x5d4af4)=>{const _0xe60bb2=_0x595447;this[_0xe60bb2(0x18c)]=_0x5d4af4?G(this[_0xe60bb2(0x18a)],this[_0xe60bb2(0x1ae)]):[];});}[_0x23331b(0x1a0)](){const _0x33aba1=_0x23331b,_0x5c2714=this[_0x33aba1(0x1ac)][_0x33aba1(0x190)];this[_0x33aba1(0x1ae)]=function(_0x25e132){const _0x434e80=_0x33aba1,_0x55b0f8=_0x25e132[_0x434e80(0x196)][_0x434e80(0x19f)];return _0x55b0f8[_0x434e80(0x18d)]?0x0!==[..._0x55b0f8[_0x434e80(0x199)]()][_0x434e80(0x1a6)]&&![..._0x55b0f8[_0x434e80(0x199)]()][0x0][_0x434e80(0x1a5)]:!!_0x25e132[_0x434e80(0x195)](_0x55b0f8[_0x434e80(0x194)]());}(_0x5c2714);const _0x3e9665=_0x5c2714[_0x33aba1(0x196)][_0x33aba1(0x19f)],_0x10bcac=this[_0x33aba1(0x1ac)][_0x33aba1(0x1a2)][_0x33aba1(0x1b2)](_0x33aba1(0x19c));for(const _0x4f7327 of _0x3e9665[_0x33aba1(0x1b1)]())for(const _0x457a1c of _0x4f7327[_0x33aba1(0x1b5)]())if(_0x457a1c['is'](_0x33aba1(0x18b))&&_0x10bcac[_0x33aba1(0x1a9)](_0x457a1c[_0x33aba1(0x189)]))return void(this[_0x33aba1(0x1aa)]=!0x1);this[_0x33aba1(0x1aa)]=!0x0;}[_0x23331b(0x19a)](_0x54b864='',_0x3fa79e='',_0x4b39ff=_0x23331b(0x1a1)){const _0x18d9ab=_0x23331b;this[_0x18d9ab(0x1ac)][_0x18d9ab(0x18e)][_0x18d9ab(0x1b2)](_0xd5ea53)[_0x18d9ab(0x1a3)](_0x54b864,_0x3fa79e,_0x4b39ff);}}function _0x3a1a(){const _0x184804=['change:isEnabled','includes','isEnabled','788718WiRecK','editor','184BEsQjN','_hasContext','390760QGrydD','from','getRanges','get','1185ixyxJe','183989Xmkxvr','getItems','name','_commandDefinitions','element','enabledCommandsIds','isCollapsed','plugins','328906IFiLwk','model','3RQVQYM','change:_hasContext','9qNknnC','getFirstRange','hasContent','document','add','1646865wktAYt','getSelectedBlocks','execute','23891JIbvBV','ai.aiAssistant.disabledElements','requiresContent','set','selection','refresh','custom','config','showUI','3296bDlvGS','isEmpty','length','values'];_0x3a1a=function(){return _0x184804;};return _0x3a1a();}function _0x2624(_0x27a4e5,_0x50fda4){const _0x3a1a58=_0x3a1a();return _0x2624=function(_0x26244c,_0x48d657){_0x26244c=_0x26244c-0x189;let _0x42bcb3=_0x3a1a58[_0x26244c];return _0x42bcb3;},_0x2624(_0x27a4e5,_0x50fda4);}function G(_0x3fbfc9,_0x2285c5){const _0x317f4b=_0x23331b,_0x4fa37b=new Set();for(const _0x10bc70 of _0x3fbfc9[_0x317f4b(0x1a7)]())(_0x2285c5||!0x1===_0x10bc70[_0x317f4b(0x19d)])&&_0x4fa37b[_0x317f4b(0x197)](_0x10bc70['id']);return Array[_0x317f4b(0x1b0)](_0x4fa37b);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3620d1,_0x4eecf3,_0x105b7d){const t=_0x3620d1['t'];switch(_0x4eecf3){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',_0x105b7d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x105b7d);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'},_0x105b7d);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 _0x4eecf3;}}
|
|
@@ -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(_0xf0ce8,_0x118c6b){const _0x517a41=(0x0,_0x118c6b['t'])('Other');return _0xf0ce8['length']?'groupId'in _0xf0ce8[0x0]?_0xf0ce8:[{'groupId':'_ungrouppedCommands','groupLabel':_0x517a41,'order':0x1/0x0,'commands':_0xf0ce8}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x517a41,'order':0x1/0x0,'commands':[]}];}
|