@ckeditor/ckeditor5-ai 44.2.0-alpha.14 → 44.2.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x305e2d=_0x2d84;(function(_0x23193b,_0x455895){const _0x4e9b39=_0x2d84,_0x34faa7=_0x23193b();while(!![]){try{const _0x2a51b5=-parseInt(_0x4e9b39(0x107))/0x1+parseInt(_0x4e9b39(0x128))/0x2*(parseInt(_0x4e9b39(0x100))/0x3)+parseInt(_0x4e9b39(0x129))/0x4*(parseInt(_0x4e9b39(0x11d))/0x5)+parseInt(_0x4e9b39(0x138))/0x6*(parseInt(_0x4e9b39(0x130))/0x7)+parseInt(_0x4e9b39(0x127))/0x8+-parseInt(_0x4e9b39(0x12b))/0x9+-parseInt(_0x4e9b39(0x109))/0xa*(-parseInt(_0x4e9b39(0x111))/0xb);if(_0x2a51b5===_0x455895)break;else _0x34faa7['push'](_0x34faa7['shift']());}catch(_0x9a07f6){_0x34faa7['push'](_0x34faa7['shift']());}}}(_0x507f,0x92d07));import{Rect as _0x1c80a3,global as _0x37637e,isVisible as _0x6ae1ef}from'ckeditor5/src/utils.js';import{AutocompleteView as _0xa05037,ButtonView as _0x42a7b7}from'ckeditor5/src/ui.js';import{icons as _0x31755f}from'ckeditor5/src/core.js';function _0x507f(){const _0x434fc2=['minRows','_createSubmitButton','fieldView','570fgumrG','fieldWrapperChildren','excludeScrollbarsAndBorders','isOn','3cxtuzT','filteredView','focus','set','ck-ai-form__toggle-history','enter','fire','1077788hcCXYF','bind','10vHtcAY','focusableChildren','focusFirst','left','queryView','focusLast','value','uiLanguageDirection','5309513PjqiVY','ck-ai-form__submit','requestAnimationFrame','render','showHistoryButtonView','_createShowHistoryButton','isEnabled','execute','Submit','resultsView','add','maxRows','5pXlhRc','History','isEmpty','element','submitButtonView','submit','target','history','width','locale','4626600ZeyrSg','876836iydjAh','1229036HevfZm','window','6442929nUgxZg','update','isVisible','focusCycler','keystrokes','43351gSLBNb','style','rtl','children','right'];_0x507f=function(){return _0x434fc2;};return _0x507f();}function _0x2d84(_0x43c192,_0x11d91c){const _0x507f3c=_0x507f();return _0x2d84=function(_0x2d845a,_0x4e12a8){_0x2d845a=_0x2d845a-0xfd;let _0x4791df=_0x507f3c[_0x2d845a];return _0x4791df;},_0x2d84(_0x43c192,_0x11d91c);}import{getTranslation as _0xedf051}from'../../utils/common-translations.js';import _0x4b1ee6 from'../../../theme/icons/submit.svg';export default class ht extends _0xa05037{constructor(_0x55590b,_0xa2b3a6){const _0x1533b6=_0x2d84;super(_0x55590b,_0xa2b3a6),this[_0x1533b6(0x10d)][_0x1533b6(0x137)][_0x1533b6(0x135)]=0x1,this[_0x1533b6(0x10d)][_0x1533b6(0x137)][_0x1533b6(0x11c)]=0x3,this[_0x1533b6(0x121)]=this[_0x1533b6(0x136)](),this[_0x1533b6(0x115)]=this[_0x1533b6(0x116)](),this[_0x1533b6(0x10a)][_0x1533b6(0x11b)](this[_0x1533b6(0x115)],0x1),this[_0x1533b6(0x10a)][_0x1533b6(0x11b)](this[_0x1533b6(0x121)]);}[_0x305e2d(0x114)](){const _0x101b0b=_0x305e2d;super[_0x101b0b(0x114)](),this[_0x101b0b(0x10d)][_0x101b0b(0xfd)][_0x101b0b(0x11b)](this[_0x101b0b(0x115)]),this[_0x101b0b(0x133)][_0x101b0b(0x11b)](this[_0x101b0b(0x121)]),this[_0x101b0b(0x12f)][_0x101b0b(0x103)](_0x101b0b(0x105),(_0x2ab540,_0xb1a118)=>{const _0x654816=_0x101b0b;_0x2ab540[_0x654816(0x123)]==this[_0x654816(0x10d)][_0x654816(0x137)][_0x654816(0x120)]&&(this[_0x654816(0x122)](),_0xb1a118());});}[_0x305e2d(0x136)](){const _0x56fb6a=_0x305e2d,_0x577a1b=new _0x42a7b7(this[_0x56fb6a(0x126)]),_0x263b2f=this[_0x56fb6a(0x126)];return _0x577a1b[_0x56fb6a(0x103)]({'icon':_0x4b1ee6,'label':_0xedf051(_0x263b2f,_0x56fb6a(0x119)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x56fb6a(0x112)}),_0x577a1b['on'](_0x56fb6a(0x118),()=>{const _0x3fc0a7=_0x56fb6a;this[_0x3fc0a7(0x122)]();}),_0x577a1b[_0x56fb6a(0x108)](_0x56fb6a(0x117))['to'](this[_0x56fb6a(0x10d)][_0x56fb6a(0x137)],_0x56fb6a(0x11f),this,_0x56fb6a(0x117),(_0x559af0,_0x2e0561)=>!_0x559af0&&_0x2e0561),_0x577a1b;}[_0x305e2d(0x116)](){const _0x4fb698=_0x305e2d,_0x2a8d7d=new _0x42a7b7(this[_0x4fb698(0x126)]),_0x137f25=this[_0x4fb698(0x11a)],_0x46232a=this[_0x4fb698(0x126)];_0x2a8d7d[_0x4fb698(0x103)]({'label':_0xedf051(_0x46232a,_0x4fb698(0x11e)),'withText':!0x1,'icon':_0x31755f[_0x4fb698(0x124)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4fb698(0x104)}),_0x2a8d7d[_0x4fb698(0x108)](_0x4fb698(0xff))['to'](_0x137f25,_0x4fb698(0x12d)),_0x2a8d7d[_0x4fb698(0x108)](_0x4fb698(0x117))['to'](this,_0x4fb698(0x117)),_0x2a8d7d['on'](_0x4fb698(0x118),()=>{const _0xf4e860=_0x4fb698;_0x137f25[_0xf4e860(0x12d)]=!_0x137f25[_0xf4e860(0x12d)],_0x137f25[_0xf4e860(0x12d)]?this[_0xf4e860(0x101)][_0xf4e860(0x102)]():this[_0xf4e860(0x102)]();});const _0x5597ce=()=>{const _0x4b05c8=_0x4fb698;_0x37637e[_0x4b05c8(0x12a)][_0x4b05c8(0x113)](()=>{const _0x1b165d=_0x4b05c8;if(_0x6ae1ef(this[_0x1b165d(0x120)])){const _0x42f98a=new _0x1c80a3(this[_0x1b165d(0x10d)][_0x1b165d(0x137)][_0x1b165d(0x120)]),_0x13b855=_0x42f98a[_0x1b165d(0x125)],_0x57eebd=_0x1b165d(0x132)===_0x46232a[_0x1b165d(0x110)]?_0x1b165d(0x10c):_0x1b165d(0x134);_0x42f98a[_0x1b165d(0xfe)](),_0x2a8d7d[_0x1b165d(0x120)][_0x1b165d(0x131)][_0x57eebd]=_0x13b855-_0x42f98a[_0x1b165d(0x125)]+0x1+'px';}});};return this[_0x4fb698(0x10d)][_0x4fb698(0x137)]['on'](_0x4fb698(0x12c),_0x5597ce),this['on'](_0x4fb698(0x114),_0x5597ce),_0x2a8d7d;}[_0x305e2d(0x122)](){const _0x1b187a=_0x305e2d,_0x2d2bbd=this[_0x1b187a(0x10d)][_0x1b187a(0x137)][_0x1b187a(0x120)][_0x1b187a(0x10f)];this[_0x1b187a(0x106)](_0x1b187a(0x122),_0x2d2bbd);}[_0x305e2d(0x102)](_0x13de75){const _0x3acf8c=_0x305e2d;-0x1===_0x13de75?this[_0x3acf8c(0x12e)][_0x3acf8c(0x10e)]():this[_0x3acf8c(0x12e)][_0x3acf8c(0x10b)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55179a=_0x3457;function _0x3457(_0x25c7a0,_0x2bd088){const _0x203811=_0x2038();return _0x3457=function(_0x34574b,_0x3932b7){_0x34574b=_0x34574b-0x6e;let _0x5ee90e=_0x203811[_0x34574b];return _0x5ee90e;},_0x3457(_0x25c7a0,_0x2bd088);}(function(_0x10ffa0,_0x848241){const _0x2cc764=_0x3457,_0x26ca04=_0x10ffa0();while(!![]){try{const _0x54a33f=parseInt(_0x2cc764(0x71))/0x1+-parseInt(_0x2cc764(0x6e))/0x2*(-parseInt(_0x2cc764(0x80))/0x3)+parseInt(_0x2cc764(0x76))/0x4+parseInt(_0x2cc764(0x91))/0x5+parseInt(_0x2cc764(0x8d))/0x6+-parseInt(_0x2cc764(0x84))/0x7*(-parseInt(_0x2cc764(0x8f))/0x8)+-parseInt(_0x2cc764(0x72))/0x9*(parseInt(_0x2cc764(0x7d))/0xa);if(_0x54a33f===_0x848241)break;else _0x26ca04['push'](_0x26ca04['shift']());}catch(_0x38987b){_0x26ca04['push'](_0x26ca04['shift']());}}}(_0x2038,0x51240));import{ToolbarView as _0x428fc3,ButtonView as _0x5a417d}from'ckeditor5/src/ui.js';import{getTranslation as _0x87dfb9}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x55179a(0x74),'INSERT':_0x55179a(0x7f)};export default class at extends _0x428fc3{constructor(_0x4ebf4d){const _0x3bbe64=_0x55179a;super(_0x4ebf4d),this[_0x3bbe64(0x82)](_0x3bbe64(0x8a),!0x1),this[_0x3bbe64(0x82)](_0x3bbe64(0x83),AIFormToolbarViewMainActionLabel[_0x3bbe64(0x81)]),this[_0x3bbe64(0x75)]=this[_0x3bbe64(0x70)]('',_0x3bbe64(0x7b)),this[_0x3bbe64(0x75)][_0x3bbe64(0x8b)](_0x3bbe64(0x89))['to'](this,_0x3bbe64(0x83),_0x5bf04a=>_0x87dfb9(_0x4ebf4d,_0x3bbe64(0x86)+_0x5bf04a[_0x3bbe64(0x7c)]()+_0x3bbe64(0x7a))),this[_0x3bbe64(0x88)]=this[_0x3bbe64(0x70)](_0x87dfb9(_0x4ebf4d,_0x3bbe64(0x7e))),this[_0x3bbe64(0x6f)]=this[_0x3bbe64(0x70)](_0x87dfb9(_0x4ebf4d,_0x3bbe64(0x8c))),this[_0x3bbe64(0x78)]=this[_0x3bbe64(0x70)](_0x87dfb9(_0x4ebf4d,_0x3bbe64(0x87)));const _0x44e52a=this[_0x3bbe64(0x8e)];this[_0x3bbe64(0x73)]({'attributes':{'class':[_0x3bbe64(0x85),_0x44e52a['if'](_0x3bbe64(0x8a),_0x3bbe64(0x77),_0x46b00f=>!_0x46b00f)]}}),this[_0x3bbe64(0x92)][_0x3bbe64(0x90)]([this[_0x3bbe64(0x75)],this[_0x3bbe64(0x88)],this[_0x3bbe64(0x6f)],this[_0x3bbe64(0x78)]]);}[_0x55179a(0x70)](_0x174a4d,_0x14a7e3){const _0x1936fc=_0x55179a,_0x39f59e=new _0x5a417d(this[_0x1936fc(0x79)]);return _0x39f59e[_0x1936fc(0x82)]({'label':_0x174a4d,'class':_0x14a7e3||'','isVisible':!0x0,'withText':!0x0}),_0x39f59e;}}function _0x2038(){const _0x59a17f=['isVisible','bind','Try\x20again','2400978tmkmTT','bindTemplate','4977584KabaPO','addMany','1592005CqIKGI','items','190XDMyxV','tryAgainButton','_createButton','114416PmnHwU','369855NOBMlG','extendTemplate','replace','replaceButton','1223436FGkvEA','ck-hidden','stopButton','locale','_CONTENT','ck-button-action','toUpperCase','480PPXCDW','Insert\x20below','insert','17175rkoTCA','REPLACE','set','mainAction','7vREMob','ck-ai-form__toolbar','AI_','Stop','insertButton','label'];_0x2038=function(){return _0x59a17f;};return _0x2038();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1975c7=_0x452b;(function(_0x221d86,_0x89de58){const _0x1e32bc=_0x452b,_0xf3384=_0x221d86();while(!![]){try{const _0x4a40c8=-parseInt(_0x1e32bc(0x1ae))/0x1*(parseInt(_0x1e32bc(0x1a7))/0x2)+-parseInt(_0x1e32bc(0x1ac))/0x3+parseInt(_0x1e32bc(0x19c))/0x4*(parseInt(_0x1e32bc(0x18d))/0x5)+-parseInt(_0x1e32bc(0x17e))/0x6+-parseInt(_0x1e32bc(0x1b8))/0x7+-parseInt(_0x1e32bc(0x18c))/0x8*(-parseInt(_0x1e32bc(0x1b4))/0x9)+parseInt(_0x1e32bc(0x175))/0xa;if(_0x4a40c8===_0x89de58)break;else _0xf3384['push'](_0xf3384['shift']());}catch(_0x99b348){_0xf3384['push'](_0xf3384['shift']());}}}(_0x406a,0xa9518));import{FocusTracker as _0xb8c252,KeystrokeHandler as _0x2781a3}from'ckeditor5/src/utils.js';import{View as _0x364f35,FocusCycler as _0x3f11b3,createLabeledTextarea as _0x235246}from'ckeditor5/src/ui.js';import _0x57ef70,{AIFormToolbarViewMainActionLabel as _0x48dead}from'./aiformtoolbarview.js';import _0x2fdfb0 from'./aiformcontentarea.js';import _0x1e551a from'./aiformerrorview.js';import _0x12baea from'./aiformpromptview.js';import _0x339bc7 from'./aihistorylistview.js';function _0x406a(){const _0x196195=['focusLast','stopProcessing','render','_createHistoryView','contentArea','keystrokes','isError','setTemplate','copyButtonView','focusTracker','Ask\x20AI\x20to\x20improve\x20generated\x20text','value','13999930KtWzHn','_createToolbar','high','trim','tryAgainEvent','insertContentBelow','historyGroupView','search','tryAgainButton','6566694fQDDEo','insertButton','prompt','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','ck-ai-form-content','clear','tab','fieldView','focusCycler','_createPromptView','queryView','shift\x20+\x20tab','focus','_promptHistory','8RTMoGI','5ydiHak','ck-hidden','locale','submitPrompt','text','set','isProcessing','promptView','element','isVisible','bindTemplate','reset','bindTo','clearHistory','mainAction','5543084IjEZve','startProcessing','replaceButton','REPLACE','Empty\x20history','focusFirst','AI_ERROR_FAILED','handleError','fire','toolbar','finishProcessing','106dgMKKP','delegate','label','Ask\x20AI\x20to\x20edit\x20or\x20generate','chain','1818276LPPkUj','_focusables','23879jJYshn','add','div','createCollection','bind','listenTo','10292679pvKFyg','isEnabled','errorView','submit','1888173kiVQEy','ck-ai-form','stopButton','execute','items','replaceContent'];_0x406a=function(){return _0x196195;};return _0x406a();}import _0x1745f4 from'./aihistorylistitemview.js';import _0x4695a4 from'./prompthistory.js';import{getTranslation as _0x1c4f79}from'../../utils/common-translations.js';import{escape as _0x2b7836}from'lodash-es';function _0x452b(_0xbe23b,_0x1db67e){const _0x406a01=_0x406a();return _0x452b=function(_0x452b3b,_0x3144f5){_0x452b3b=_0x452b3b-0x172;let _0x1a7728=_0x406a01[_0x452b3b];return _0x1a7728;},_0x452b(_0xbe23b,_0x1db67e);}export default class k extends _0x364f35{constructor(_0x834d6d,_0x1719a8,_0x571cac=''){const _0x395dd6=_0x452b;super(_0x834d6d),this[_0x395dd6(0x192)](_0x395dd6(0x1b5),!0x0),this[_0x395dd6(0x192)](_0x395dd6(0x193),!0x1),this[_0x395dd6(0x192)](_0x395dd6(0x180),''),this[_0x395dd6(0x192)](_0x395dd6(0x174),''),this[_0x395dd6(0x192)](_0x395dd6(0x1c4),!0x1),this[_0x395dd6(0x192)](_0x395dd6(0x19b),_0x48dead[_0x395dd6(0x19f)]),this[_0x395dd6(0x18b)]=new _0x4695a4(),this[_0x395dd6(0x1b6)]=new _0x1e551a(_0x834d6d),this[_0x395dd6(0x1c2)]=new _0x2fdfb0(_0x834d6d,_0x571cac),this[_0x395dd6(0x1c2)][_0x395dd6(0x1b2)](_0x395dd6(0x193))['to'](this),this[_0x395dd6(0x1c2)][_0x395dd6(0x1b2)](_0x395dd6(0x174))['to'](this),this[_0x395dd6(0x1a5)]=this[_0x395dd6(0x176)](),this[_0x395dd6(0x1a5)][_0x395dd6(0x1b2)](_0x395dd6(0x19b))['to'](this),this[_0x395dd6(0x194)]=this[_0x395dd6(0x187)](),this[_0x395dd6(0x172)]=new _0xb8c252(),this[_0x395dd6(0x1c3)]=new _0x2781a3(),this[_0x395dd6(0x1ad)]=this[_0x395dd6(0x1b1)]([this[_0x395dd6(0x1c2)],this[_0x395dd6(0x1c2)][_0x395dd6(0x1c6)],this[_0x395dd6(0x1a5)],this[_0x395dd6(0x194)]]),this[_0x395dd6(0x186)]=new _0x3f11b3({'focusables':this[_0x395dd6(0x1ad)],'focusTracker':this[_0x395dd6(0x172)],'keystrokeHandler':this[_0x395dd6(0x1c3)],'actions':{'focusPrevious':_0x395dd6(0x189),'focusNext':_0x395dd6(0x184)}}),this[_0x395dd6(0x186)][_0x395dd6(0x1ab)](this[_0x395dd6(0x194)][_0x395dd6(0x186)]),this[_0x395dd6(0x194)][_0x395dd6(0x188)][_0x395dd6(0x185)][_0x395dd6(0x1b2)](_0x395dd6(0x174))['to'](this,_0x395dd6(0x180));const _0x45a7b8=this[_0x395dd6(0x197)];this[_0x395dd6(0x1c5)]({'tag':_0x395dd6(0x1b0),'attributes':{'class':['ck',_0x395dd6(0x1b9),_0x1719a8],'tabindex':'-1'},'children':[{'tag':_0x395dd6(0x1b0),'attributes':{'class':['ck',_0x395dd6(0x182)]},'children':[{'tag':_0x395dd6(0x1b0),'attributes':{'class':[_0x45a7b8['if'](_0x395dd6(0x1c4),_0x395dd6(0x18e),_0x2120d1=>!_0x2120d1)]},'children':[this[_0x395dd6(0x1b6)]]},this[_0x395dd6(0x1c2)],this[_0x395dd6(0x1a5)],this[_0x395dd6(0x194)]]}]});}[_0x1975c7(0x1c0)](){const _0x4c9dc4=_0x1975c7;super[_0x4c9dc4(0x1c0)](),this[_0x4c9dc4(0x172)][_0x4c9dc4(0x1af)](this[_0x4c9dc4(0x1c2)][_0x4c9dc4(0x195)]),this[_0x4c9dc4(0x172)][_0x4c9dc4(0x1af)](this[_0x4c9dc4(0x1c2)][_0x4c9dc4(0x1c6)][_0x4c9dc4(0x195)]),this[_0x4c9dc4(0x172)][_0x4c9dc4(0x1af)](this[_0x4c9dc4(0x1a5)][_0x4c9dc4(0x195)]),this[_0x4c9dc4(0x172)][_0x4c9dc4(0x1af)](this[_0x4c9dc4(0x194)][_0x4c9dc4(0x195)]),this[_0x4c9dc4(0x1c3)][_0x4c9dc4(0x1b3)](this[_0x4c9dc4(0x195)]);}[_0x1975c7(0x18a)](_0x363e17=0x1){const _0x3b3f3b=_0x1975c7;-0x1===_0x363e17?this[_0x3b3f3b(0x186)][_0x3b3f3b(0x1be)]():this[_0x3b3f3b(0x186)][_0x3b3f3b(0x1a1)]();}[_0x1975c7(0x198)](){const _0x22079e=_0x1975c7;this[_0x22079e(0x180)]='',this[_0x22079e(0x174)]='',this[_0x22079e(0x1c4)]=!0x1,this[_0x22079e(0x194)][_0x22079e(0x198)](),this[_0x22079e(0x1c2)][_0x22079e(0x196)]=!0x1,this[_0x22079e(0x1a5)][_0x22079e(0x196)]=!0x1;}[_0x1975c7(0x187)](){const _0x57b290=_0x1975c7,_0x1a371b=this[_0x57b290(0x18f)],_0x110926=new _0x12baea(_0x1a371b,{'queryView':{'label':_0x1c4f79(_0x1a371b,_0x57b290(0x1aa)),'creator':_0x235246,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1c4f79(_0x1a371b,_0x57b290(0x1a0)),'secondary':_0x1c4f79(_0x1a371b,_0x57b290(0x181))}}},'filteredView':this[_0x57b290(0x1c1)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x110926[_0x57b290(0x1b2)](_0x57b290(0x1b5))['to'](this,_0x57b290(0x1b5),this,_0x57b290(0x193),(_0x465416,_0x893acc)=>_0x465416&&!_0x893acc),this[_0x57b290(0x1b3)](_0x110926,_0x57b290(0x1b7),(_0x44226d,_0x4735b1)=>{const _0x2e00f8=_0x57b290;this[_0x2e00f8(0x180)]=_0x4735b1;const _0x323460=_0x2b7836(_0x4735b1);this[_0x2e00f8(0x1a4)](_0x2e00f8(0x190),_0x323460),_0x4735b1[_0x2e00f8(0x178)]()&&this[_0x2e00f8(0x18b)][_0x2e00f8(0x1af)]({'prompt':_0x323460},0x0);},{'priority':_0x57b290(0x177)}),_0x110926;}[_0x1975c7(0x1c1)](){const _0x3224ae=_0x1975c7,_0x562b15=new _0x339bc7(this[_0x3224ae(0x18f)]);return _0x562b15[_0x3224ae(0x17b)][_0x3224ae(0x1bc)][_0x3224ae(0x199)](this[_0x3224ae(0x18b)])['as'](_0x1745f4),_0x562b15['on'](_0x3224ae(0x19a),()=>{const _0x6992ab=_0x3224ae;this[_0x6992ab(0x18b)][_0x6992ab(0x183)](),this[_0x6992ab(0x194)][_0x6992ab(0x17c)](''),this[_0x6992ab(0x194)][_0x6992ab(0x18a)]();}),_0x562b15;}[_0x1975c7(0x176)](){const _0x52a51e=_0x1975c7,_0x41ad4c=new _0x57ef70(this[_0x52a51e(0x18f)]);return _0x41ad4c[_0x52a51e(0x19e)][_0x52a51e(0x1b2)](_0x52a51e(0x1b5))['to'](this,_0x52a51e(0x1b5),this,_0x52a51e(0x193),this,_0x52a51e(0x174),(_0x196eb9,_0x367cde,_0x28e7b1)=>_0x196eb9&&!_0x367cde&&!!_0x28e7b1),_0x41ad4c[_0x52a51e(0x19e)][_0x52a51e(0x1a8)](_0x52a51e(0x1bb))['to'](this,_0x52a51e(0x1bd)),_0x41ad4c[_0x52a51e(0x17f)][_0x52a51e(0x1b2)](_0x52a51e(0x1b5))['to'](this,_0x52a51e(0x1b5),this,_0x52a51e(0x193),this,_0x52a51e(0x174),(_0x2cc65c,_0x56becf,_0x6cc0d4)=>_0x2cc65c&&!_0x56becf&&!!_0x6cc0d4),_0x41ad4c[_0x52a51e(0x17f)][_0x52a51e(0x1a8)](_0x52a51e(0x1bb))['to'](this,_0x52a51e(0x17a)),_0x41ad4c[_0x52a51e(0x17d)][_0x52a51e(0x1b2)](_0x52a51e(0x1b5))['to'](this,_0x52a51e(0x1b5),this,_0x52a51e(0x193),(_0x2056c4,_0x3303b1)=>_0x2056c4&&!_0x3303b1),_0x41ad4c[_0x52a51e(0x17d)][_0x52a51e(0x1a8)](_0x52a51e(0x1bb))['to'](this,_0x52a51e(0x179)),_0x41ad4c[_0x52a51e(0x1ba)][_0x52a51e(0x1b2)](_0x52a51e(0x1b5))['to'](this,_0x52a51e(0x193)),_0x41ad4c[_0x52a51e(0x1ba)][_0x52a51e(0x1a8)](_0x52a51e(0x1bb))['to'](this,_0x52a51e(0x1bf)),_0x41ad4c;}[_0x1975c7(0x19d)](){const _0x525acf=_0x1975c7;this[_0x525acf(0x174)]='',this[_0x525acf(0x1c4)]=!0x1,this[_0x525acf(0x193)]=!0x0,this[_0x525acf(0x1c2)][_0x525acf(0x196)]=!0x0,this[_0x525acf(0x1a5)][_0x525acf(0x196)]=!0x0,this[_0x525acf(0x1c2)][_0x525acf(0x18a)]();}[_0x1975c7(0x1a6)](){const _0x3d88f0=_0x1975c7,_0x20853d=this[_0x3d88f0(0x18f)];this[_0x3d88f0(0x193)]=!0x1,this[_0x3d88f0(0x180)]='',this[_0x3d88f0(0x194)][_0x3d88f0(0x198)](),this[_0x3d88f0(0x174)]&&(this[_0x3d88f0(0x194)][_0x3d88f0(0x188)][_0x3d88f0(0x1a9)]=_0x1c4f79(_0x20853d,_0x3d88f0(0x173)));}[_0x1975c7(0x1a3)](_0x4109ef){const _0x4e9e43=_0x1975c7,_0x224ddf=this[_0x4e9e43(0x18f)];this[_0x4e9e43(0x1a6)](),this[_0x4e9e43(0x1c4)]=!0x0,this[_0x4e9e43(0x1b6)][_0x4e9e43(0x191)]=_0x4109ef||_0x1c4f79(_0x224ddf,_0x4e9e43(0x1a2)),this[_0x4e9e43(0x174)]||(this[_0x4e9e43(0x1c2)][_0x4e9e43(0x196)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x33dc(_0x294695,_0x5f181a){const _0x11e5c3=_0x11e5();return _0x33dc=function(_0x33dc1a,_0x35fbab){_0x33dc1a=_0x33dc1a-0x9a;let _0x197c58=_0x11e5c3[_0x33dc1a];return _0x197c58;},_0x33dc(_0x294695,_0x5f181a);}(function(_0xda412c,_0x4176c4){const _0x3bcedc=_0x33dc,_0x3b7447=_0xda412c();while(!![]){try{const _0x177c43=parseInt(_0x3bcedc(0xa8))/0x1+-parseInt(_0x3bcedc(0x9f))/0x2*(parseInt(_0x3bcedc(0xa1))/0x3)+parseInt(_0x3bcedc(0xa5))/0x4*(parseInt(_0x3bcedc(0x9a))/0x5)+-parseInt(_0x3bcedc(0xaa))/0x6*(parseInt(_0x3bcedc(0xa0))/0x7)+parseInt(_0x3bcedc(0xab))/0x8*(parseInt(_0x3bcedc(0xa9))/0x9)+-parseInt(_0x3bcedc(0x9d))/0xa+parseInt(_0x3bcedc(0x9e))/0xb;if(_0x177c43===_0x4176c4)break;else _0x3b7447['push'](_0x3b7447['shift']());}catch(_0x2febff){_0x3b7447['push'](_0x3b7447['shift']());}}}(_0x11e5,0x313cb));import{ListItemView as _0x35dff9,ButtonView as _0x3c70dd,ButtonLabelView as _0x55cf8f}from'ckeditor5/src/ui.js';import{unescape as _0x3ff023}from'lodash-es';export default class hs extends _0x35dff9{constructor(_0x53f24a){const _0x12e235=_0x33dc;super();const _0x467962=new _0x55cf8f(),_0xbeb399=new _0x3c70dd(this[_0x12e235(0xa2)],_0x467962);this[_0x12e235(0xa4)][_0x12e235(0xa3)](_0xbeb399),_0xbeb399[_0x12e235(0x9c)]({'label':_0x53f24a[_0x12e235(0x9b)],'withText':!0x0}),_0xbeb399['on'](_0x12e235(0xa6),()=>{const _0x51b428=_0x12e235;this[_0x51b428(0xa7)](_0x51b428(0xa6),{'value':_0x3ff023(_0x53f24a[_0x51b428(0x9b)])});});}}function _0x11e5(){const _0x1a17e5=['1965YdDinw','prompt','set','3432880xJjeqH','2267177ikICDb','2lkRsfx','14juaDju','567051YJIWmm','locale','add','children','3012dlJapM','execute','fire','213277wCECxS','2367jpFaWO','489198mJImEy','5528Rbwgvp'];_0x11e5=function(){return _0x1a17e5;};return _0x11e5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1b73(_0x15d736,_0x1dfdc1){const _0x38135c=_0x3813();return _0x1b73=function(_0x1b73ef,_0x126f6d){_0x1b73ef=_0x1b73ef-0x19d;let _0x55fca1=_0x38135c[_0x1b73ef];return _0x55fca1;},_0x1b73(_0x15d736,_0x1dfdc1);}const _0x5ae591=_0x1b73;(function(_0x4472f0,_0x16bee4){const _0x3f4d85=_0x1b73,_0x27ae89=_0x4472f0();while(!![]){try{const _0x58141c=-parseInt(_0x3f4d85(0x1b4))/0x1+-parseInt(_0x3f4d85(0x19f))/0x2*(parseInt(_0x3f4d85(0x1a8))/0x3)+-parseInt(_0x3f4d85(0x1a5))/0x4+-parseInt(_0x3f4d85(0x1ad))/0x5+parseInt(_0x3f4d85(0x1aa))/0x6*(-parseInt(_0x3f4d85(0x1b0))/0x7)+-parseInt(_0x3f4d85(0x1a4))/0x8*(parseInt(_0x3f4d85(0x1ae))/0x9)+parseInt(_0x3f4d85(0x1ac))/0xa;if(_0x58141c===_0x16bee4)break;else _0x27ae89['push'](_0x27ae89['shift']());}catch(_0x887d17){_0x27ae89['push'](_0x27ae89['shift']());}}}(_0x3813,0xba0c5));import{ListView as _0x322127,ListItemGroupView as _0x499b51,ButtonView as _0xcb1107}from'ckeditor5/src/ui.js';import{getTranslation as _0xab145a}from'../../utils/common-translations.js';export default class rs extends _0x322127{constructor(_0x23569f){const _0x12919d=_0x1b73;super(_0x23569f),this[_0x12919d(0x1b3)]=this[_0x12919d(0x1ab)](),this[_0x12919d(0x1b7)]=new _0x499b51(),this[_0x12919d(0x1b7)][_0x12919d(0x1a9)][_0x12919d(0x1a7)](this[_0x12919d(0x1b3)],0x1),this[_0x12919d(0x1b7)][_0x12919d(0x1a3)]=_0xab145a(_0x23569f,_0x12919d(0x1b1)),this[_0x12919d(0x1b7)][_0x12919d(0x1a1)][_0x12919d(0x1a2)](_0x12919d(0x1b6))['to'](this),this[_0x12919d(0x1a1)][_0x12919d(0x1a7)](this[_0x12919d(0x1b7)]);}[_0x5ae591(0x1a0)](){const _0x548725=_0x5ae591;let _0x5d41f9=0x0;for(const _0x320633 of this[_0x548725(0x1a1)])_0x5d41f9+=_0x320633[_0x548725(0x1a1)][_0x548725(0x19e)];return{'resultsCount':_0x5d41f9,'totalItemsCount':_0x5d41f9};}[_0x5ae591(0x1ab)](){const _0x4cf601=_0x5ae591,_0x4d809f=this[_0x4cf601(0x1b5)],_0x4ebe8e=new _0xcb1107(this[_0x4cf601(0x1b5)]);return _0x4ebe8e[_0x4cf601(0x1b2)]({'label':'('+_0xab145a(_0x4d809f,_0x4cf601(0x1af))+')','withText':!0x0}),_0x4ebe8e['on'](_0x4cf601(0x1b6),()=>this[_0x4cf601(0x1a6)](_0x4cf601(0x19d))),_0x4ebe8e;}}function _0x3813(){const _0x48e51a=['3111484zkSNgI','fire','add','24FgrqnY','children','3379008egvHEp','_createClearHistoryButton','51198740uDJJCF','1803965KfBDUL','22698OHyLem','Clear','7dUogus','Prompt\x20history','set','clearHistoryButton','1321699kqEHRR','locale','execute','historyGroupView','clearHistory','length','295112ToMcxI','filter','items','delegate','label','488izTBYi'];_0x3813=function(){return _0x48e51a;};return _0x3813();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4cd0(_0x1121a7,_0x2adecc){const _0x47775b=_0x4777();return _0x4cd0=function(_0x4cd060,_0x1cf29d){_0x4cd060=_0x4cd060-0xb7;let _0x170f7b=_0x47775b[_0x4cd060];return _0x170f7b;},_0x4cd0(_0x1121a7,_0x2adecc);}const _0x43e6b0=_0x4cd0;function _0x4777(){const _0x329496=['getItem','_saveToSessionStorage','CKEditor/AIFormView/PromptHistory','prompt','setItem','1385334JCMeIn','822792PasDWb','remove','10BeJoDD','map','trim','addMany','toLowerCase','7teiYPx','146918fXzaHA','add','15BuTqaf','871172TpJBiz','stringify','length','518685kwGrzZ','last','2752002wdzRqe','_loadFromSessionStorage','91128rcSyrn','4PGABsd','parse'];_0x4777=function(){return _0x329496;};return _0x4777();}(function(_0x3f8e0b,_0x4fa033){const _0x27af34=_0x4cd0,_0x3977bf=_0x3f8e0b();while(!![]){try{const _0x40e0cd=-parseInt(_0x27af34(0xca))/0x1*(-parseInt(_0x27af34(0xba))/0x2)+parseInt(_0x27af34(0xd0))/0x3+-parseInt(_0x27af34(0xcd))/0x4*(parseInt(_0x27af34(0xcc))/0x5)+parseInt(_0x27af34(0xc2))/0x6*(parseInt(_0x27af34(0xc9))/0x7)+-parseInt(_0x27af34(0xb9))/0x8+parseInt(_0x27af34(0xc1))/0x9*(parseInt(_0x27af34(0xc4))/0xa)+parseInt(_0x27af34(0xb7))/0xb;if(_0x40e0cd===_0x4fa033)break;else _0x3977bf['push'](_0x3977bf['shift']());}catch(_0x591aff){_0x3977bf['push'](_0x3977bf['shift']());}}}(_0x4777,0x53ca1));import{Collection as _0x1c68ae}from'ckeditor5/src/utils.js';const cs=_0x43e6b0(0xbe);export default class os extends _0x1c68ae{constructor(){const _0x447a1a=_0x43e6b0;super(),this[_0x447a1a(0xb8)](),this['on'](_0x447a1a(0xcb),(_0x279b1f,_0x34f8eb)=>{const _0x305ed2=_0x447a1a,_0x5a49f6=Ss(_0x34f8eb[_0x305ed2(0xbf)]);for(const _0x41fb04 of this)if(_0x41fb04!=_0x34f8eb&&Ss(_0x41fb04[_0x305ed2(0xbf)])===_0x5a49f6){this[_0x305ed2(0xc3)](_0x41fb04);break;}this[_0x305ed2(0xcf)]>0x14&&this[_0x305ed2(0xc3)](this[_0x305ed2(0xd1)]),this[_0x305ed2(0xbd)]();}),this['on'](_0x447a1a(0xc3),()=>{const _0x4a20f5=_0x447a1a;this[_0x4a20f5(0xbd)]();});}[_0x43e6b0(0xb8)](){const _0x10a1c7=_0x43e6b0,_0x5a1053=sessionStorage[_0x10a1c7(0xbc)](cs)||'[]';this[_0x10a1c7(0xc7)](JSON[_0x10a1c7(0xbb)](_0x5a1053));}[_0x43e6b0(0xbd)](){const _0x25236f=_0x43e6b0;sessionStorage[_0x25236f(0xc0)](cs,JSON[_0x25236f(0xce)](this[_0x25236f(0xc5)](_0x5e7c69=>_0x5e7c69)));}}function Ss(_0x30df39){const _0x463fba=_0x43e6b0;return _0x30df39[_0x463fba(0xc8)]()[_0x463fba(0xc6)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19cac2=_0x58f1;(function(_0x1ecddc,_0x1cd248){const _0x83de45=_0x58f1,_0x369d5e=_0x1ecddc();while(!![]){try{const _0x565e6e=parseInt(_0x83de45(0x7d))/0x1*(-parseInt(_0x83de45(0x84))/0x2)+-parseInt(_0x83de45(0x72))/0x3*(-parseInt(_0x83de45(0x75))/0x4)+-parseInt(_0x83de45(0x6c))/0x5*(-parseInt(_0x83de45(0x93))/0x6)+parseInt(_0x83de45(0x73))/0x7*(parseInt(_0x83de45(0x8f))/0x8)+parseInt(_0x83de45(0x8e))/0x9+-parseInt(_0x83de45(0x79))/0xa+-parseInt(_0x83de45(0x86))/0xb*(parseInt(_0x83de45(0x78))/0xc);if(_0x565e6e===_0x1cd248)break;else _0x369d5e['push'](_0x369d5e['shift']());}catch(_0x39a95b){_0x369d5e['push'](_0x369d5e['shift']());}}}(_0x3bcb,0xadd67));function _0x58f1(_0x366b85,_0x3c99d9){const _0x3bcbdd=_0x3bcb();return _0x58f1=function(_0x58f1ec,_0x4011d9){_0x58f1ec=_0x58f1ec-0x69;let _0x1bbd1f=_0x3bcbdd[_0x58f1ec];return _0x1bbd1f;},_0x58f1(_0x366b85,_0x3c99d9);}import{Command as _0x313a34}from'ckeditor5/src/core.js';import _0x3f99bb from'../aiassistantui.js';function _0x3bcb(){const _0x1f5c97=['custom','selection','163295clLZqM','editor','_hasContext','values','refresh','ai.aiAssistant.disabledElements','add','2rzoSxn','change:isEnabled','865843AKnTxn','getItems','length','hasContent','element','config','isEmpty','from','11626884ejDTib','8fXEtjA','set','get','name','6uOTWaX','change:_hasContext','_commandDefinitions','requiresContent','enabledCommandsIds','showUI','model','970945NSHXXe','getRanges','isCollapsed','getFirstRange','includes','execute','4015566wKnDzT','6819078UNCGQp','isEnabled','4TAFfif','getSelectedBlocks','plugins','444kHtCOf','110260CRDuOG','document'];_0x3bcb=function(){return _0x1f5c97;};return _0x3bcb();}export default class E extends _0x313a34{constructor(_0x21da8d,_0x1d53c9){const _0x5501e8=_0x58f1;super(_0x21da8d),this[_0x5501e8(0x95)]=_0x1d53c9,this[_0x5501e8(0x90)](_0x5501e8(0x69),[]),this['on'](_0x5501e8(0x94),(_0x33fb9a,_0x4f494a,_0x2957ac)=>{const _0x2339f0=_0x5501e8;this[_0x2339f0(0x74)]&&(this[_0x2339f0(0x69)]=G(this[_0x2339f0(0x95)],_0x2957ac));}),this[_0x5501e8(0x90)](_0x5501e8(0x7f),!0x1),this['on'](_0x5501e8(0x85),(_0x191034,_0x3129be,_0x52f77c)=>{const _0x30da15=_0x5501e8;this[_0x30da15(0x69)]=_0x52f77c?G(this[_0x30da15(0x95)],this[_0x30da15(0x7f)]):[];});}[_0x19cac2(0x81)](){const _0x4942eb=_0x19cac2,_0x7224ff=this[_0x4942eb(0x7e)][_0x4942eb(0x6b)];this[_0x4942eb(0x7f)]=function(_0x1fac5d){const _0x1054fb=_0x4942eb,_0x1d1d77=_0x1fac5d[_0x1054fb(0x7a)][_0x1054fb(0x7c)];return _0x1d1d77[_0x1054fb(0x6e)]?0x0!==[..._0x1d1d77[_0x1054fb(0x76)]()][_0x1054fb(0x88)]&&![..._0x1d1d77[_0x1054fb(0x76)]()][0x0][_0x1054fb(0x8c)]:!!_0x1fac5d[_0x1054fb(0x89)](_0x1d1d77[_0x1054fb(0x6f)]());}(_0x7224ff);const _0xf243b8=_0x7224ff[_0x4942eb(0x7a)][_0x4942eb(0x7c)],_0x1d3c76=this[_0x4942eb(0x7e)][_0x4942eb(0x8b)][_0x4942eb(0x91)](_0x4942eb(0x82));for(const _0x5ca856 of _0xf243b8[_0x4942eb(0x6d)]())for(const _0xc48de1 of _0x5ca856[_0x4942eb(0x87)]())if(_0xc48de1['is'](_0x4942eb(0x8a))&&_0x1d3c76[_0x4942eb(0x70)](_0xc48de1[_0x4942eb(0x92)]))return void(this[_0x4942eb(0x74)]=!0x1);this[_0x4942eb(0x74)]=!0x0;}[_0x19cac2(0x71)](_0x1316ae='',_0x3dd1ff='',_0x4363d3=_0x19cac2(0x7b)){const _0xf73cca=_0x19cac2;this[_0xf73cca(0x7e)][_0xf73cca(0x77)][_0xf73cca(0x91)](_0x3f99bb)[_0xf73cca(0x6a)](_0x1316ae,_0x3dd1ff,_0x4363d3);}}function G(_0x595368,_0x5cfae2){const _0x154629=_0x19cac2,_0x57a76b=new Set();for(const _0x2a3a31 of _0x595368[_0x154629(0x80)]())(_0x5cfae2||!0x1===_0x2a3a31[_0x154629(0x96)])&&_0x57a76b[_0x154629(0x83)](_0x2a3a31['id']);return Array[_0x154629(0x8d)](_0x57a76b);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x230cfd,_0x57daf2,_0x34bcba){const t=_0x230cfd['t'];switch(_0x57daf2){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',_0x34bcba);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x34bcba);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'},_0x34bcba);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 _0x57daf2;}}
|
|
@@ -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(_0x2d5cbf,_0x7a0a31){const _0x2d1ce3=(0x0,_0x7a0a31['t'])('Other');return _0x2d5cbf['length']?'groupId'in _0x2d5cbf[0x0]?_0x2d5cbf:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d1ce3,'order':0x1/0x0,'commands':_0x2d5cbf}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d1ce3,'order':0x1/0x0,'commands':[]}];}
|