@ckeditor/ckeditor5-ai 45.0.0-alpha.6 → 45.0.0-alpha.7
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/be.js +1 -1
- package/dist/translations/be.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
|
-
|
|
23
|
+
const _0x4b31c3=_0x13b7;(function(_0x315ed8,_0x5d7eaa){const _0x2fae0e=_0x13b7,_0x2ee679=_0x315ed8();while(!![]){try{const _0x4d8a8a=-parseInt(_0x2fae0e(0x107))/0x1*(parseInt(_0x2fae0e(0x13a))/0x2)+-parseInt(_0x2fae0e(0x118))/0x3+-parseInt(_0x2fae0e(0x13d))/0x4*(-parseInt(_0x2fae0e(0x12d))/0x5)+-parseInt(_0x2fae0e(0x122))/0x6+-parseInt(_0x2fae0e(0x120))/0x7*(parseInt(_0x2fae0e(0x12b))/0x8)+parseInt(_0x2fae0e(0x127))/0x9*(parseInt(_0x2fae0e(0x13e))/0xa)+parseInt(_0x2fae0e(0x103))/0xb*(parseInt(_0x2fae0e(0x108))/0xc);if(_0x4d8a8a===_0x5d7eaa)break;else _0x2ee679['push'](_0x2ee679['shift']());}catch(_0x57339d){_0x2ee679['push'](_0x2ee679['shift']());}}}(_0x4525,0x5560a));import{Rect as _0x104805,global as _0x49a60a,isVisible as _0x468feb}from'ckeditor5/src/utils.js';import{IconHistory as _0x39092e,IconSubmit as _0x35baa6}from'ckeditor5/src/icons.js';function _0x4525(){const _0x1f0113=['42462RiuiJW','ck-ai-form__submit','focus','bind','362296vpYZtd','minRows','175WaOEfR','excludeScrollbarsAndBorders','isEnabled','filteredView','fieldWrapperChildren','uiLanguageDirection','fieldView','execute','render','resultsView','rtl','enter','target','946yHDOYZ','focusFirst','focusableChildren','11468ipVhMg','890VeTjgk','633193sSqHcQ','width','maxRows','element','302PHkgkP','324qehTZT','update','style','locale','add','queryView','History','focusCycler','_createSubmitButton','focusLast','requestAnimationFrame','children','showHistoryButtonView','fire','keystrokes','isVisible','1756398wkYhUW','window','submit','ck-ai-form__toggle-history','Submit','set','_createShowHistoryButton','right','49IxWjow','isEmpty','4076526uSXttX','submitButtonView','isOn','left','value'];_0x4525=function(){return _0x1f0113;};return _0x4525();}import{AutocompleteView as _0x4e3bf6,ButtonView as _0x2c30a8}from'ckeditor5/src/ui.js';function _0x13b7(_0x1edbd0,_0xe14831){const _0x45256f=_0x4525();return _0x13b7=function(_0x13b75e,_0x115812){_0x13b75e=_0x13b75e-0x103;let _0x3aabaa=_0x45256f[_0x13b75e];return _0x3aabaa;},_0x13b7(_0x1edbd0,_0xe14831);}import{getTranslation as _0x33ff7c}from'../../utils/common-translations.js';export default class ct extends _0x4e3bf6{[_0x4b31c3(0x123)];[_0x4b31c3(0x114)];constructor(_0x1cbe18,_0x309f32){const _0x58cd84=_0x4b31c3;super(_0x1cbe18,_0x309f32),this[_0x58cd84(0x10d)][_0x58cd84(0x133)][_0x58cd84(0x12c)]=0x1,this[_0x58cd84(0x10d)][_0x58cd84(0x133)][_0x58cd84(0x105)]=0x3,this[_0x58cd84(0x123)]=this[_0x58cd84(0x110)](),this[_0x58cd84(0x114)]=this[_0x58cd84(0x11e)](),this[_0x58cd84(0x13c)][_0x58cd84(0x10c)](this[_0x58cd84(0x114)],0x1),this[_0x58cd84(0x13c)][_0x58cd84(0x10c)](this[_0x58cd84(0x123)]);}[_0x4b31c3(0x135)](){const _0x59e065=_0x4b31c3;super[_0x59e065(0x135)](),this[_0x59e065(0x10d)][_0x59e065(0x131)][_0x59e065(0x10c)](this[_0x59e065(0x114)]),this[_0x59e065(0x113)][_0x59e065(0x10c)](this[_0x59e065(0x123)]),this[_0x59e065(0x116)][_0x59e065(0x11d)](_0x59e065(0x138),(_0x3e66f6,_0x32b419)=>{const _0x583cd9=_0x59e065;_0x3e66f6[_0x583cd9(0x139)]==this[_0x583cd9(0x10d)][_0x583cd9(0x133)][_0x583cd9(0x106)]&&(this[_0x583cd9(0x11a)](),_0x32b419());});}[_0x4b31c3(0x110)](){const _0x2ed8c1=_0x4b31c3,_0x4b3469=new _0x2c30a8(this[_0x2ed8c1(0x10b)]),_0x45befc=this[_0x2ed8c1(0x10b)];return _0x4b3469[_0x2ed8c1(0x11d)]({'icon':_0x35baa6,'label':_0x33ff7c(_0x45befc,_0x2ed8c1(0x11c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2ed8c1(0x128)}),_0x4b3469['on'](_0x2ed8c1(0x134),()=>{const _0x4beafd=_0x2ed8c1;this[_0x4beafd(0x11a)]();}),_0x4b3469[_0x2ed8c1(0x12a)](_0x2ed8c1(0x12f))['to'](this[_0x2ed8c1(0x10d)][_0x2ed8c1(0x133)],_0x2ed8c1(0x121),this,_0x2ed8c1(0x12f),(_0x16ab9d,_0x5b5533)=>!_0x16ab9d&&_0x5b5533),_0x4b3469;}[_0x4b31c3(0x11e)](){const _0x4bddd4=_0x4b31c3,_0xe70a19=new _0x2c30a8(this[_0x4bddd4(0x10b)]),_0x29ebf1=this[_0x4bddd4(0x136)],_0x32b7c8=this[_0x4bddd4(0x10b)];_0xe70a19[_0x4bddd4(0x11d)]({'label':_0x33ff7c(_0x32b7c8,_0x4bddd4(0x10e)),'withText':!0x1,'icon':_0x39092e,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4bddd4(0x11b)}),_0xe70a19[_0x4bddd4(0x12a)](_0x4bddd4(0x124))['to'](_0x29ebf1,_0x4bddd4(0x117)),_0xe70a19[_0x4bddd4(0x12a)](_0x4bddd4(0x12f))['to'](this,_0x4bddd4(0x12f)),_0xe70a19['on'](_0x4bddd4(0x134),()=>{const _0xb11cf=_0x4bddd4;_0x29ebf1[_0xb11cf(0x117)]=!_0x29ebf1[_0xb11cf(0x117)],_0x29ebf1[_0xb11cf(0x117)]?this[_0xb11cf(0x130)][_0xb11cf(0x129)]():this[_0xb11cf(0x129)]();});const _0x5babff=()=>{const _0x17f98f=_0x4bddd4;_0x49a60a[_0x17f98f(0x119)][_0x17f98f(0x112)](()=>{const _0x4497e2=_0x17f98f;if(_0x468feb(this[_0x4497e2(0x106)])){const _0xe83ce8=new _0x104805(this[_0x4497e2(0x10d)][_0x4497e2(0x133)][_0x4497e2(0x106)]),_0x45c638=_0xe83ce8[_0x4497e2(0x104)],_0x392a01=_0x4497e2(0x137)===_0x32b7c8[_0x4497e2(0x132)]?_0x4497e2(0x125):_0x4497e2(0x11f);_0xe83ce8[_0x4497e2(0x12e)](),_0xe70a19[_0x4497e2(0x106)][_0x4497e2(0x10a)][_0x392a01]=_0x45c638-_0xe83ce8[_0x4497e2(0x104)]+0x1+'px';}});};return this[_0x4bddd4(0x10d)][_0x4bddd4(0x133)]['on'](_0x4bddd4(0x109),_0x5babff),this['on'](_0x4bddd4(0x135),_0x5babff),_0xe70a19;}[_0x4b31c3(0x11a)](){const _0x1d499f=_0x4b31c3,_0x3c05f5=this[_0x1d499f(0x10d)][_0x1d499f(0x133)][_0x1d499f(0x106)][_0x1d499f(0x126)];this[_0x1d499f(0x115)](_0x1d499f(0x11a),_0x3c05f5);}[_0x4b31c3(0x129)](_0x25e24e){const _0x311b65=_0x4b31c3;-0x1===_0x25e24e?this[_0x311b65(0x10f)][_0x311b65(0x111)]():this[_0x311b65(0x10f)][_0x311b65(0x13b)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56398a=_0x36b7;(function(_0xa80d4b,_0x842a13){const _0x4680d1=_0x36b7,_0x579362=_0xa80d4b();while(!![]){try{const _0x31405c=-parseInt(_0x4680d1(0x12a))/0x1*(-parseInt(_0x4680d1(0x146))/0x2)+parseInt(_0x4680d1(0x13a))/0x3+parseInt(_0x4680d1(0x14c))/0x4*(-parseInt(_0x4680d1(0x128))/0x5)+-parseInt(_0x4680d1(0x13d))/0x6+parseInt(_0x4680d1(0x13b))/0x7+-parseInt(_0x4680d1(0x129))/0x8*(-parseInt(_0x4680d1(0x142))/0x9)+parseInt(_0x4680d1(0x140))/0xa*(parseInt(_0x4680d1(0x14d))/0xb);if(_0x31405c===_0x842a13)break;else _0x579362['push'](_0x579362['shift']());}catch(_0x3b548a){_0x579362['push'](_0x579362['shift']());}}}(_0x3ab4,0x8f7d0));import{ToolbarView as _0x4eae24,ButtonView as _0x3487d9}from'ckeditor5/src/ui.js';import{getTranslation as _0xce6d19}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x56398a(0x139),'INSERT':_0x56398a(0x12d)};function _0x36b7(_0x2e2429,_0x4f4a17){const _0x3ab4d5=_0x3ab4();return _0x36b7=function(_0x36b7fd,_0x597063){_0x36b7fd=_0x36b7fd-0x128;let _0x4b75e0=_0x3ab4d5[_0x36b7fd];return _0x4b75e0;},_0x36b7(_0x2e2429,_0x4f4a17);}export default class lt extends _0x4eae24{constructor(_0x55eade){const _0x478f96=_0x56398a;super(_0x55eade),this[_0x478f96(0x134)](_0x478f96(0x133),!0x1),this[_0x478f96(0x134)](_0x478f96(0x12f),AIFormToolbarViewMainActionLabel[_0x478f96(0x131)]),this[_0x478f96(0x136)]=this[_0x478f96(0x149)]('',_0x478f96(0x14b)),this[_0x478f96(0x136)][_0x478f96(0x137)](_0x478f96(0x141))['to'](this,_0x478f96(0x12f),_0x1cdef6=>_0xce6d19(_0x55eade,_0x478f96(0x147)+_0x1cdef6[_0x478f96(0x144)]()+_0x478f96(0x13f))),this[_0x478f96(0x132)]=this[_0x478f96(0x149)](_0xce6d19(_0x55eade,_0x478f96(0x12b))),this[_0x478f96(0x135)]=this[_0x478f96(0x149)](_0xce6d19(_0x55eade,_0x478f96(0x143))),this[_0x478f96(0x13e)]=this[_0x478f96(0x149)](_0xce6d19(_0x55eade,_0x478f96(0x130)));const _0x56f8e6=this[_0x478f96(0x12e)];this[_0x478f96(0x12c)]({'attributes':{'class':[_0x478f96(0x14a),_0x56f8e6['if'](_0x478f96(0x133),_0x478f96(0x145),_0x30b4a8=>!_0x30b4a8)]}}),this[_0x478f96(0x148)][_0x478f96(0x13c)]([this[_0x478f96(0x136)],this[_0x478f96(0x132)],this[_0x478f96(0x135)],this[_0x478f96(0x13e)]]);}[_0x56398a(0x149)](_0x5e8aa4,_0x544def){const _0x4cdf8a=_0x56398a,_0x3e65c3=new _0x3487d9(this[_0x4cdf8a(0x138)]);return _0x3e65c3[_0x4cdf8a(0x134)]({'label':_0x5e8aa4,'class':_0x544def||'','isVisible':!0x0,'withText':!0x0}),_0x3e65c3;}}function _0x3ab4(){const _0x50e468=['tryAgainButton','replaceButton','bind','locale','replace','951060fmyuDa','1327683xaxqdT','addMany','6730410ylHyBD','stopButton','_CONTENT','2194110IDGsvv','label','18waszYn','Try\x20again','toUpperCase','ck-hidden','1583762QBTTKi','AI_','items','_createButton','ck-ai-form__toolbar','ck-button-action','2175932UTfBry','55ESbHLf','10DHxvHg','1607216kwEXNi','1rSxHxY','Insert\x20below','extendTemplate','insert','bindTemplate','mainAction','Stop','REPLACE','insertButton','isVisible','set'];_0x3ab4=function(){return _0x50e468;};return _0x3ab4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x130279=_0x1ac3;(function(_0x39d3dc,_0x5639d0){const _0x9f38a5=_0x1ac3,_0x44f586=_0x39d3dc();while(!![]){try{const _0x224e79=parseInt(_0x9f38a5(0x149))/0x1*(-parseInt(_0x9f38a5(0x15d))/0x2)+-parseInt(_0x9f38a5(0x183))/0x3+parseInt(_0x9f38a5(0x161))/0x4+parseInt(_0x9f38a5(0x16d))/0x5*(parseInt(_0x9f38a5(0x156))/0x6)+-parseInt(_0x9f38a5(0x150))/0x7+-parseInt(_0x9f38a5(0x13e))/0x8*(-parseInt(_0x9f38a5(0x140))/0x9)+parseInt(_0x9f38a5(0x188))/0xa;if(_0x224e79===_0x5639d0)break;else _0x44f586['push'](_0x44f586['shift']());}catch(_0x168945){_0x44f586['push'](_0x44f586['shift']());}}}(_0x3588,0xe0e1a));function _0x1ac3(_0x428567,_0x40c1e4){const _0x358846=_0x3588();return _0x1ac3=function(_0x1ac325,_0xb7f2de){_0x1ac325=_0x1ac325-0x13c;let _0x3c594f=_0x358846[_0x1ac325];return _0x3c594f;},_0x1ac3(_0x428567,_0x40c1e4);}import{FocusTracker as _0x46ef49,KeystrokeHandler as _0x559c23}from'ckeditor5/src/utils.js';import{View as _0x30522b,FocusCycler as _0x3454b0,createLabeledTextarea as _0x421e3d}from'ckeditor5/src/ui.js';import _0x4e2c5c,{AIFormToolbarViewMainActionLabel as _0x2056b5}from'./aiformtoolbarview.js';import _0x1ade1c from'./aiformcontentarea.js';import _0x5de4ea from'./aiformerrorview.js';import _0x2a9679 from'./aiformpromptview.js';import _0x39baff from'./aihistorylistview.js';import _0xfec070 from'./aihistorylistitemview.js';import _0x41f6f6 from'./prompthistory.js';function _0x3588(){const _0x3eace7=['shift\x20+\x20tab','fire','isVisible','fieldView','copyButtonView','clearHistory','element','queryView','_createToolbar','isError','items','submit','toolbar','keystrokes','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','tab','2253693GwBcYl','tryAgainEvent','bindTemplate','ck-ai-form','set','10382810CTXHKx','replaceContent','historyGroupView','stopProcessing','tryAgainButton','value','trim','AI_ERROR_FAILED','focusTracker','clear','div','68712UMNdLv','focusFirst','1359ktVNUn','isEnabled','finishProcessing','ck-hidden','_focusables','_createHistoryView','stopButton','focusLast','render','3370BPTxGn','setTemplate','locale','listenTo','startProcessing','createCollection','execute','3705387GBdBoi','search','mainAction','insertContentBelow','handleError','focusCycler','1495716mGodEE','contentArea','Ask\x20AI\x20to\x20edit\x20or\x20generate','replaceButton','_createPromptView','REPLACE','text','1000mEYmeO','ck-ai-form-content','add','delegate','4211576hCjYpk','high','insertButton','isProcessing','submitPrompt','label','focus','bindTo','bind','prompt','reset','Ask\x20AI\x20to\x20improve\x20generated\x20text','10aDbORS','Empty\x20history','chain','_promptHistory','errorView','promptView'];_0x3588=function(){return _0x3eace7;};return _0x3588();}import{getTranslation as _0x3b090d}from'../../utils/common-translations.js';import{escape as _0x4eb47a}from'es-toolkit/compat';export default class _ extends _0x30522b{[_0x130279(0x190)];[_0x130279(0x180)];[_0x130279(0x157)];[_0x130279(0x17f)];[_0x130279(0x172)];[_0x130279(0x171)];[_0x130279(0x144)];[_0x130279(0x155)];[_0x130279(0x170)];constructor(_0x505d21,_0x5bd802,_0x4ae162=''){const _0x14a78f=_0x130279;super(_0x505d21),this[_0x14a78f(0x187)](_0x14a78f(0x141),!0x0),this[_0x14a78f(0x187)](_0x14a78f(0x164),!0x1),this[_0x14a78f(0x187)](_0x14a78f(0x16a),''),this[_0x14a78f(0x187)](_0x14a78f(0x18d),''),this[_0x14a78f(0x187)](_0x14a78f(0x17c),!0x1),this[_0x14a78f(0x187)](_0x14a78f(0x152),_0x2056b5[_0x14a78f(0x15b)]),this[_0x14a78f(0x170)]=new _0x41f6f6(),this[_0x14a78f(0x171)]=new _0x5de4ea(_0x505d21),this[_0x14a78f(0x157)]=new _0x1ade1c(_0x505d21,_0x4ae162),this[_0x14a78f(0x157)][_0x14a78f(0x169)](_0x14a78f(0x164))['to'](this),this[_0x14a78f(0x157)][_0x14a78f(0x169)](_0x14a78f(0x18d))['to'](this),this[_0x14a78f(0x17f)]=this[_0x14a78f(0x17b)](),this[_0x14a78f(0x17f)][_0x14a78f(0x169)](_0x14a78f(0x152))['to'](this),this[_0x14a78f(0x172)]=this[_0x14a78f(0x15a)](),this[_0x14a78f(0x190)]=new _0x46ef49(),this[_0x14a78f(0x180)]=new _0x559c23(),this[_0x14a78f(0x144)]=this[_0x14a78f(0x14e)]([this[_0x14a78f(0x157)],this[_0x14a78f(0x157)][_0x14a78f(0x177)],this[_0x14a78f(0x17f)],this[_0x14a78f(0x172)]]),this[_0x14a78f(0x155)]=new _0x3454b0({'focusables':this[_0x14a78f(0x144)],'focusTracker':this[_0x14a78f(0x190)],'keystrokeHandler':this[_0x14a78f(0x180)],'actions':{'focusPrevious':_0x14a78f(0x173),'focusNext':_0x14a78f(0x182)}}),this[_0x14a78f(0x155)][_0x14a78f(0x16f)](this[_0x14a78f(0x172)][_0x14a78f(0x155)]),this[_0x14a78f(0x172)][_0x14a78f(0x17a)][_0x14a78f(0x176)][_0x14a78f(0x169)](_0x14a78f(0x18d))['to'](this,_0x14a78f(0x16a));const _0x41bef1=this[_0x14a78f(0x185)];this[_0x14a78f(0x14a)]({'tag':_0x14a78f(0x13d),'attributes':{'class':['ck',_0x14a78f(0x186),_0x5bd802],'tabindex':'-1'},'children':[{'tag':_0x14a78f(0x13d),'attributes':{'class':['ck',_0x14a78f(0x15e)]},'children':[{'tag':_0x14a78f(0x13d),'attributes':{'class':[_0x41bef1['if'](_0x14a78f(0x17c),_0x14a78f(0x143),_0x45c6df=>!_0x45c6df)]},'children':[this[_0x14a78f(0x171)]]},this[_0x14a78f(0x157)],this[_0x14a78f(0x17f)],this[_0x14a78f(0x172)]]}]});}[_0x130279(0x148)](){const _0x443d80=_0x130279;super[_0x443d80(0x148)](),this[_0x443d80(0x190)][_0x443d80(0x15f)](this[_0x443d80(0x157)][_0x443d80(0x179)]),this[_0x443d80(0x190)][_0x443d80(0x15f)](this[_0x443d80(0x157)][_0x443d80(0x177)][_0x443d80(0x179)]),this[_0x443d80(0x190)][_0x443d80(0x15f)](this[_0x443d80(0x17f)][_0x443d80(0x179)]),this[_0x443d80(0x190)][_0x443d80(0x15f)](this[_0x443d80(0x172)][_0x443d80(0x179)]),this[_0x443d80(0x180)][_0x443d80(0x14c)](this[_0x443d80(0x179)]);}[_0x130279(0x167)](_0x1cf62d=0x1){const _0x2d6634=_0x130279;-0x1===_0x1cf62d?this[_0x2d6634(0x155)][_0x2d6634(0x147)]():this[_0x2d6634(0x155)][_0x2d6634(0x13f)]();}[_0x130279(0x16b)](){const _0x155508=_0x130279;this[_0x155508(0x16a)]='',this[_0x155508(0x18d)]='',this[_0x155508(0x17c)]=!0x1,this[_0x155508(0x172)][_0x155508(0x16b)](),this[_0x155508(0x157)][_0x155508(0x175)]=!0x1,this[_0x155508(0x17f)][_0x155508(0x175)]=!0x1;}[_0x130279(0x15a)](){const _0xdc795e=_0x130279,_0xc83b52=this[_0xdc795e(0x14b)],_0x38e4b6=new _0x2a9679(_0xc83b52,{'queryView':{'label':_0x3b090d(_0xc83b52,_0xdc795e(0x158)),'creator':_0x421e3d,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3b090d(_0xc83b52,_0xdc795e(0x16e)),'secondary':_0x3b090d(_0xc83b52,_0xdc795e(0x181))}}},'filteredView':this[_0xdc795e(0x145)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x38e4b6[_0xdc795e(0x169)](_0xdc795e(0x141))['to'](this,_0xdc795e(0x141),this,_0xdc795e(0x164),(_0x1464b1,_0x30757e)=>_0x1464b1&&!_0x30757e),this[_0xdc795e(0x14c)](_0x38e4b6,_0xdc795e(0x17e),(_0x55434e,_0x2727b1)=>{const _0x8802f5=_0xdc795e;this[_0x8802f5(0x16a)]=_0x2727b1;const _0x317856=_0x4eb47a(_0x2727b1);this[_0x8802f5(0x174)](_0x8802f5(0x165),_0x317856),_0x2727b1[_0x8802f5(0x18e)]()&&this[_0x8802f5(0x170)][_0x8802f5(0x15f)]({'prompt':_0x317856},0x0);},{'priority':_0xdc795e(0x162)}),_0x38e4b6;}[_0x130279(0x145)](){const _0x233721=_0x130279,_0x519562=new _0x39baff(this[_0x233721(0x14b)]);return _0x519562[_0x233721(0x18a)][_0x233721(0x17d)][_0x233721(0x168)](this[_0x233721(0x170)])['as'](_0xfec070),_0x519562['on'](_0x233721(0x178),()=>{const _0x23888e=_0x233721;this[_0x23888e(0x170)][_0x23888e(0x13c)](),this[_0x23888e(0x172)][_0x23888e(0x151)](''),this[_0x23888e(0x172)][_0x23888e(0x167)]();}),_0x519562;}[_0x130279(0x17b)](){const _0x5a8711=_0x130279,_0x57a53e=new _0x4e2c5c(this[_0x5a8711(0x14b)]);return _0x57a53e[_0x5a8711(0x159)][_0x5a8711(0x169)](_0x5a8711(0x141))['to'](this,_0x5a8711(0x141),this,_0x5a8711(0x164),this,_0x5a8711(0x18d),(_0x23b806,_0xea6d7a,_0x172a17)=>_0x23b806&&!_0xea6d7a&&!!_0x172a17),_0x57a53e[_0x5a8711(0x159)][_0x5a8711(0x160)](_0x5a8711(0x14f))['to'](this,_0x5a8711(0x189)),_0x57a53e[_0x5a8711(0x163)][_0x5a8711(0x169)](_0x5a8711(0x141))['to'](this,_0x5a8711(0x141),this,_0x5a8711(0x164),this,_0x5a8711(0x18d),(_0x42680a,_0x360f05,_0x595654)=>_0x42680a&&!_0x360f05&&!!_0x595654),_0x57a53e[_0x5a8711(0x163)][_0x5a8711(0x160)](_0x5a8711(0x14f))['to'](this,_0x5a8711(0x153)),_0x57a53e[_0x5a8711(0x18c)][_0x5a8711(0x169)](_0x5a8711(0x141))['to'](this,_0x5a8711(0x141),this,_0x5a8711(0x164),(_0x3ff135,_0x275751)=>_0x3ff135&&!_0x275751),_0x57a53e[_0x5a8711(0x18c)][_0x5a8711(0x160)](_0x5a8711(0x14f))['to'](this,_0x5a8711(0x184)),_0x57a53e[_0x5a8711(0x146)][_0x5a8711(0x169)](_0x5a8711(0x141))['to'](this,_0x5a8711(0x164)),_0x57a53e[_0x5a8711(0x146)][_0x5a8711(0x160)](_0x5a8711(0x14f))['to'](this,_0x5a8711(0x18b)),_0x57a53e;}[_0x130279(0x14d)](){const _0x3e0343=_0x130279;this[_0x3e0343(0x18d)]='',this[_0x3e0343(0x17c)]=!0x1,this[_0x3e0343(0x164)]=!0x0,this[_0x3e0343(0x157)][_0x3e0343(0x175)]=!0x0,this[_0x3e0343(0x17f)][_0x3e0343(0x175)]=!0x0,this[_0x3e0343(0x157)][_0x3e0343(0x167)]();}[_0x130279(0x142)](){const _0x5731f8=_0x130279,_0x2be438=this[_0x5731f8(0x14b)];this[_0x5731f8(0x164)]=!0x1,this[_0x5731f8(0x16a)]='',this[_0x5731f8(0x172)][_0x5731f8(0x16b)](),this[_0x5731f8(0x18d)]&&(this[_0x5731f8(0x172)][_0x5731f8(0x17a)][_0x5731f8(0x166)]=_0x3b090d(_0x2be438,_0x5731f8(0x16c)));}[_0x130279(0x154)](_0x3b3df7){const _0x1374ce=_0x130279,_0x327d39=this[_0x1374ce(0x14b)];this[_0x1374ce(0x142)](),this[_0x1374ce(0x17c)]=!0x0,this[_0x1374ce(0x171)][_0x1374ce(0x15c)]=_0x3b3df7||_0x3b090d(_0x327d39,_0x1374ce(0x18f)),this[_0x1374ce(0x18d)]||(this[_0x1374ce(0x157)][_0x1374ce(0x175)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2946(_0x56183e,_0xc25409){const _0xf77c36=_0xf77c();return _0x2946=function(_0x294691,_0x3ab663){_0x294691=_0x294691-0x1d0;let _0x24ef47=_0xf77c36[_0x294691];return _0x24ef47;},_0x2946(_0x56183e,_0xc25409);}function _0xf77c(){const _0x37bbfc=['12ppXLjH','prompt','751624kQnImY','children','42VOKAaF','10pFjQgz','add','87498vgLsbg','set','24UpOVyp','execute','84TbyKQx','fire','717784hIEhgb','16188271kjVUrd','334190tEvrtt','10423368zqJMAB','2209522tHrgtp','locale'];_0xf77c=function(){return _0x37bbfc;};return _0xf77c();}(function(_0xd6c28d,_0x16f52d){const _0x2ad8e0=_0x2946,_0x342c10=_0xd6c28d();while(!![]){try{const _0x4dd874=-parseInt(_0x2ad8e0(0x1df))/0x1+-parseInt(_0x2ad8e0(0x1d0))/0x2+parseInt(_0x2ad8e0(0x1d9))/0x3*(parseInt(_0x2ad8e0(0x1dd))/0x4)+-parseInt(_0x2ad8e0(0x1e1))/0x5*(parseInt(_0x2ad8e0(0x1db))/0x6)+parseInt(_0x2ad8e0(0x1d6))/0x7*(-parseInt(_0x2ad8e0(0x1d4))/0x8)+-parseInt(_0x2ad8e0(0x1e2))/0x9*(-parseInt(_0x2ad8e0(0x1d7))/0xa)+parseInt(_0x2ad8e0(0x1e0))/0xb*(parseInt(_0x2ad8e0(0x1d2))/0xc);if(_0x4dd874===_0x16f52d)break;else _0x342c10['push'](_0x342c10['shift']());}catch(_0x4f33b8){_0x342c10['push'](_0x342c10['shift']());}}}(_0xf77c,0x8fb8c));import{ListItemView as _0x1b1ca1,ButtonView as _0x3b07dd,ButtonLabelView as _0x1067ee}from'ckeditor5/src/ui.js';import{unescape as _0x26b878}from'es-toolkit/compat';export default class bt extends _0x1b1ca1{constructor(_0xca78c1){const _0x5aefc5=_0x2946;super();const _0x55c6a5=new _0x1067ee(),_0x218a35=new _0x3b07dd(this[_0x5aefc5(0x1d1)],_0x55c6a5);this[_0x5aefc5(0x1d5)][_0x5aefc5(0x1d8)](_0x218a35),_0x218a35[_0x5aefc5(0x1da)]({'label':_0xca78c1[_0x5aefc5(0x1d3)],'withText':!0x0}),_0x218a35['on'](_0x5aefc5(0x1dc),()=>{const _0x2fc02e=_0x5aefc5;this[_0x2fc02e(0x1de)](_0x2fc02e(0x1dc),{'value':_0x26b878(_0xca78c1[_0x2fc02e(0x1d3)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a09e6=_0x54ff;function _0x242e(){const _0x38a5f9=['add','children','clearHistory','3076715QYPJPR','clearHistoryButton','22tljjEt','label','560655CrGsMr','delegate','length','historyGroupView','205112bZonpx','7CrbZgR','set','2279826EktCrf','8GeLbtD','6418970zdfllb','locale','execute','_createClearHistoryButton','1703112BguOEm','Clear','567ypzQZB','items','fire','filter','3432BqJEvM','Prompt\x20history'];_0x242e=function(){return _0x38a5f9;};return _0x242e();}(function(_0x3f616d,_0x1c700a){const _0x4e92f7=_0x54ff,_0x5af743=_0x3f616d();while(!![]){try{const _0x2258a2=-parseInt(_0x4e92f7(0x99))/0x1*(-parseInt(_0x4e92f7(0x9d))/0x2)+parseInt(_0x4e92f7(0x95))/0x3+parseInt(_0x4e92f7(0xa2))/0x4+parseInt(_0x4e92f7(0x91))/0x5+parseInt(_0x4e92f7(0x9c))/0x6*(-parseInt(_0x4e92f7(0x9a))/0x7)+-parseInt(_0x4e92f7(0xa8))/0x8*(-parseInt(_0x4e92f7(0xa4))/0x9)+parseInt(_0x4e92f7(0x9e))/0xa*(-parseInt(_0x4e92f7(0x93))/0xb);if(_0x2258a2===_0x1c700a)break;else _0x5af743['push'](_0x5af743['shift']());}catch(_0x25efd3){_0x5af743['push'](_0x5af743['shift']());}}}(_0x242e,0x64844));import{ListView as _0x4df97a,ListItemGroupView as _0x15a134,ButtonView as _0x15b2f2}from'ckeditor5/src/ui.js';import{getTranslation as _0x39b22f}from'../../utils/common-translations.js';function _0x54ff(_0x5f39be,_0xc73cc3){const _0x242e82=_0x242e();return _0x54ff=function(_0x54ff5a,_0x396251){_0x54ff5a=_0x54ff5a-0x8d;let _0x4778ac=_0x242e82[_0x54ff5a];return _0x4778ac;},_0x54ff(_0x5f39be,_0xc73cc3);}export default class ft extends _0x4df97a{[_0x2a09e6(0x98)];[_0x2a09e6(0x92)];constructor(_0x56be45){const _0x17f58e=_0x2a09e6;super(_0x56be45),this[_0x17f58e(0x92)]=this[_0x17f58e(0xa1)](),this[_0x17f58e(0x98)]=new _0x15a134(),this[_0x17f58e(0x98)][_0x17f58e(0x8f)][_0x17f58e(0x8e)](this[_0x17f58e(0x92)],0x1),this[_0x17f58e(0x98)][_0x17f58e(0x94)]=_0x39b22f(_0x56be45,_0x17f58e(0x8d)),this[_0x17f58e(0x98)][_0x17f58e(0xa5)][_0x17f58e(0x96)](_0x17f58e(0xa0))['to'](this),this[_0x17f58e(0xa5)][_0x17f58e(0x8e)](this[_0x17f58e(0x98)]);}[_0x2a09e6(0xa7)](){const _0x337d06=_0x2a09e6;let _0x5505e2=0x0;for(const _0x3b28fe of this[_0x337d06(0xa5)])_0x5505e2+=_0x3b28fe[_0x337d06(0xa5)][_0x337d06(0x97)];return{'resultsCount':_0x5505e2,'totalItemsCount':_0x5505e2};}[_0x2a09e6(0xa1)](){const _0x19a083=_0x2a09e6,_0x2f8acb=this[_0x19a083(0x9f)],_0x1bc15a=new _0x15b2f2(this[_0x19a083(0x9f)]);return _0x1bc15a[_0x19a083(0x9b)]({'label':'('+_0x39b22f(_0x2f8acb,_0x19a083(0xa3))+')','withText':!0x0}),_0x1bc15a['on'](_0x19a083(0xa0),()=>this[_0x19a083(0xa6)](_0x19a083(0x90))),_0x1bc15a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2c54(){const _0x1bc934=['addMany','_saveToSessionStorage','2DUWCxj','getItem','map','add','last','130PtjUeJ','parse','242283BczdKe','CKEditor/AIFormView/PromptHistory','_loadFromSessionStorage','2443651YCOMWh','trim','remove','463672ngJgFz','1092393ZQVsfN','length','282029Yelllz','prompt','setItem','909aXQkan','toLowerCase','9365gGetDS','stringify','20152puWNCP','384bJRFPZ'];_0x2c54=function(){return _0x1bc934;};return _0x2c54();}const _0x5db197=_0x4832;(function(_0x96debb,_0x3870a4){const _0x3754be=_0x4832,_0x13f69a=_0x96debb();while(!![]){try{const _0x14f860=parseInt(_0x3754be(0xc5))/0x1+-parseInt(_0x3754be(0xbe))/0x2*(-parseInt(_0x3754be(0xb1))/0x3)+-parseInt(_0x3754be(0xb0))/0x4+parseInt(_0x3754be(0xb8))/0x5*(parseInt(_0x3754be(0xbb))/0x6)+-parseInt(_0x3754be(0xc8))/0x7+-parseInt(_0x3754be(0xba))/0x8*(-parseInt(_0x3754be(0xb6))/0x9)+-parseInt(_0x3754be(0xc3))/0xa*(parseInt(_0x3754be(0xb3))/0xb);if(_0x14f860===_0x3870a4)break;else _0x13f69a['push'](_0x13f69a['shift']());}catch(_0x4f41c8){_0x13f69a['push'](_0x13f69a['shift']());}}}(_0x2c54,0x2c873));function _0x4832(_0x3695be,_0x35b940){const _0x2c545b=_0x2c54();return _0x4832=function(_0x483219,_0x2dfc64){_0x483219=_0x483219-0xaf;let _0x46efb6=_0x2c545b[_0x483219];return _0x46efb6;},_0x4832(_0x3695be,_0x35b940);}import{Collection as _0xd242da}from'ckeditor5/src/utils.js';const ts=_0x5db197(0xc6);export default class wt extends _0xd242da{constructor(){const _0x42378c=_0x5db197;super(),this[_0x42378c(0xc7)](),this['on'](_0x42378c(0xc1),(_0xbbecba,_0x1d6e5d)=>{const _0x290271=_0x42378c,_0x16ebe3=os(_0x1d6e5d[_0x290271(0xb4)]);for(const _0x3165fc of this)if(_0x3165fc!=_0x1d6e5d&&os(_0x3165fc[_0x290271(0xb4)])===_0x16ebe3){this[_0x290271(0xaf)](_0x3165fc);break;}this[_0x290271(0xb2)]>0x14&&this[_0x290271(0xaf)](this[_0x290271(0xc2)]),this[_0x290271(0xbd)]();}),this['on'](_0x42378c(0xaf),()=>{const _0x47de69=_0x42378c;this[_0x47de69(0xbd)]();});}[_0x5db197(0xc7)](){const _0x4e802c=_0x5db197,_0x1c568f=sessionStorage[_0x4e802c(0xbf)](ts)||'[]';this[_0x4e802c(0xbc)](JSON[_0x4e802c(0xc4)](_0x1c568f));}[_0x5db197(0xbd)](){const _0x507ec7=_0x5db197;sessionStorage[_0x507ec7(0xb5)](ts,JSON[_0x507ec7(0xb9)](this[_0x507ec7(0xc0)](_0x4d799a=>_0x4d799a)));}}function os(_0x345aba){const _0x193a1e=_0x5db197;return _0x345aba[_0x193a1e(0xb7)]()[_0x193a1e(0xc9)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b149b=_0x5f0a;(function(_0x29aefd,_0x395e28){const _0x46568f=_0x5f0a,_0x3eb21f=_0x29aefd();while(!![]){try{const _0x430159=-parseInt(_0x46568f(0xa7))/0x1+-parseInt(_0x46568f(0x9f))/0x2*(-parseInt(_0x46568f(0x88))/0x3)+-parseInt(_0x46568f(0x97))/0x4*(-parseInt(_0x46568f(0xa5))/0x5)+parseInt(_0x46568f(0x87))/0x6*(-parseInt(_0x46568f(0xaa))/0x7)+parseInt(_0x46568f(0x91))/0x8+-parseInt(_0x46568f(0xa9))/0x9*(parseInt(_0x46568f(0x86))/0xa)+parseInt(_0x46568f(0x98))/0xb*(parseInt(_0x46568f(0x9e))/0xc);if(_0x430159===_0x395e28)break;else _0x3eb21f['push'](_0x3eb21f['shift']());}catch(_0x31d781){_0x3eb21f['push'](_0x3eb21f['shift']());}}}(_0x50a0,0x2d713));import{Command as _0x2ee5bc}from'ckeditor5/src/core.js';function _0x5f0a(_0x4951ac,_0x3eb62d){const _0x50a0e8=_0x50a0();return _0x5f0a=function(_0x5f0ab9,_0x2f30e6){_0x5f0ab9=_0x5f0ab9-0x84;let _0x568b5a=_0x50a0e8[_0x5f0ab9];return _0x568b5a;},_0x5f0a(_0x4951ac,_0x3eb62d);}import _0x18049a from'../aiassistantui.js';function _0x50a0(){const _0x2c0ea9=['_hasContext','isEnabled','24RSDiGz','2uFwuwL','includes','plugins','values','getRanges','enabledCommandsIds','1048445CfnqAC','custom','291647YZwKlN','getItems','9uLVIrG','1225aYfXEZ','getFirstRange','name','add','model','getSelectedBlocks','showUI','change:isEnabled','selection','_commandDefinitions','157250zxfFjO','1320wsKsfy','251325UJNNjS','from','hasContent','length','execute','get','requiresContent','document','isCollapsed','1819640XxrXEc','element','editor','isEmpty','set','refresh','4tYtgQb','60962CmUmem','ai.aiAssistant.disabledElements','change:_hasContext','config'];_0x50a0=function(){return _0x2c0ea9;};return _0x50a0();}export default class j extends _0x2ee5bc{[_0x1b149b(0x85)];constructor(_0x5297f6,_0x3d7caf){const _0x546ee3=_0x1b149b;super(_0x5297f6),this[_0x546ee3(0x85)]=_0x3d7caf,this[_0x546ee3(0x95)](_0x546ee3(0xa4),[]),this['on'](_0x546ee3(0x9a),(_0x357581,_0x4cc4bc,_0x5e33c6)=>{const _0x5b6387=_0x546ee3;this[_0x5b6387(0x9d)]&&(this[_0x5b6387(0xa4)]=G(this[_0x5b6387(0x85)],_0x5e33c6));}),this[_0x546ee3(0x95)](_0x546ee3(0x9c),!0x1),this['on'](_0x546ee3(0xb1),(_0x5e1c14,_0xc52890,_0x1aedef)=>{const _0x3fbbb1=_0x546ee3;this[_0x3fbbb1(0xa4)]=_0x1aedef?G(this[_0x3fbbb1(0x85)],this[_0x3fbbb1(0x9c)]):[];});}[_0x1b149b(0x96)](){const _0x4c8238=_0x1b149b,_0x41fe69=this[_0x4c8238(0x93)][_0x4c8238(0xae)];this[_0x4c8238(0x9c)]=function(_0x130178){const _0x47bdd8=_0x4c8238,_0x39e512=_0x130178[_0x47bdd8(0x8f)][_0x47bdd8(0x84)];return _0x39e512[_0x47bdd8(0x90)]?0x0!==[..._0x39e512[_0x47bdd8(0xaf)]()][_0x47bdd8(0x8b)]&&![..._0x39e512[_0x47bdd8(0xaf)]()][0x0][_0x47bdd8(0x94)]:!!_0x130178[_0x47bdd8(0x8a)](_0x39e512[_0x47bdd8(0xab)]());}(_0x41fe69);const _0x2d02b7=_0x41fe69[_0x4c8238(0x8f)][_0x4c8238(0x84)],_0x54ee7e=this[_0x4c8238(0x93)][_0x4c8238(0x9b)][_0x4c8238(0x8d)](_0x4c8238(0x99));for(const _0x2961ea of _0x2d02b7[_0x4c8238(0xa3)]())for(const _0x2b565b of _0x2961ea[_0x4c8238(0xa8)]())if(_0x2b565b['is'](_0x4c8238(0x92))&&_0x54ee7e[_0x4c8238(0xa0)](_0x2b565b[_0x4c8238(0xac)]))return void(this[_0x4c8238(0x9d)]=!0x1);this[_0x4c8238(0x9d)]=!0x0;}[_0x1b149b(0x8c)](_0xfdd7c='',_0xc4e6dd='',_0x1f6ce3=_0x1b149b(0xa6)){const _0x568eb1=_0x1b149b;this[_0x568eb1(0x93)][_0x568eb1(0xa1)][_0x568eb1(0x8d)](_0x18049a)[_0x568eb1(0xb0)](_0xfdd7c,_0xc4e6dd,_0x1f6ce3);}}function G(_0x397c7d,_0x2a47d9){const _0xec08d7=_0x1b149b,_0x242ebf=new Set();for(const _0x49487c of _0x397c7d[_0xec08d7(0xa2)]())(_0x2a47d9||!0x1===_0x49487c[_0xec08d7(0x8e)])&&_0x242ebf[_0xec08d7(0xad)](_0x49487c['id']);return Array[_0xec08d7(0x89)](_0x242ebf);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3ee314,_0xfbf93a,_0x378153){const t=_0x3ee314['t'];switch(_0xfbf93a){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',_0x378153);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x378153);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'},_0x378153);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 _0xfbf93a;}}
|
|
@@ -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(_0xf03671,_0x57ab4c){const _0x107603=(0x0,_0x57ab4c['t'])('Other');return _0xf03671['length']?'groupId'in _0xf03671[0x0]?_0xf03671:[{'groupId':'_ungrouppedCommands','groupLabel':_0x107603,'order':0x1/0x0,'commands':_0xf03671}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x107603,'order':0x1/0x0,'commands':[]}];}
|