@ckeditor/ckeditor5-ai 46.0.0-alpha.3 → 46.0.0-alpha.5
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
|
-
function
|
|
23
|
+
function _0x27cd(_0x5e96d9,_0x57ee4c){const _0x487415=_0x4874();return _0x27cd=function(_0x27cdda,_0x58aa3a){_0x27cdda=_0x27cdda-0x142;let _0x4d1123=_0x487415[_0x27cdda];return _0x4d1123;},_0x27cd(_0x5e96d9,_0x57ee4c);}const _0x23e152=_0x27cd;(function(_0x4acf5c,_0x6913e1){const _0x3edfa3=_0x27cd,_0x1e9cc2=_0x4acf5c();while(!![]){try{const _0x464565=parseInt(_0x3edfa3(0x15a))/0x1*(-parseInt(_0x3edfa3(0x145))/0x2)+-parseInt(_0x3edfa3(0x144))/0x3+-parseInt(_0x3edfa3(0x16b))/0x4*(-parseInt(_0x3edfa3(0x148))/0x5)+-parseInt(_0x3edfa3(0x15e))/0x6+-parseInt(_0x3edfa3(0x161))/0x7+parseInt(_0x3edfa3(0x14d))/0x8+parseInt(_0x3edfa3(0x154))/0x9*(parseInt(_0x3edfa3(0x163))/0xa);if(_0x464565===_0x6913e1)break;else _0x1e9cc2['push'](_0x1e9cc2['shift']());}catch(_0xc51409){_0x1e9cc2['push'](_0x1e9cc2['shift']());}}}(_0x4874,0x75c7a));import{Rect as _0x18a56c,global as _0x3d5a18,isVisible as _0x1e01b2}from'ckeditor5/src/utils.js';import{IconHistory as _0x154ed9,IconSubmit as _0x15fce1}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x58aa55,ButtonView as _0x710cc3}from'ckeditor5/src/ui.js';import{getTranslation as _0xbc266}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x58aa55{[_0x23e152(0x16c)];[_0x23e152(0x153)];constructor(_0x1e638d,_0x17ae81){const _0x2f0884=_0x23e152;super(_0x1e638d,_0x17ae81),this[_0x2f0884(0x16d)][_0x2f0884(0x15c)][_0x2f0884(0x168)]=0x1,this[_0x2f0884(0x16d)][_0x2f0884(0x15c)][_0x2f0884(0x14e)]=0x3,this[_0x2f0884(0x16c)]=this[_0x2f0884(0x16e)](),this[_0x2f0884(0x153)]=this[_0x2f0884(0x14b)](),this[_0x2f0884(0x149)][_0x2f0884(0x159)](this[_0x2f0884(0x153)],0x1),this[_0x2f0884(0x149)][_0x2f0884(0x159)](this[_0x2f0884(0x16c)]);}[_0x23e152(0x158)](){const _0x3d67f8=_0x23e152;super[_0x3d67f8(0x158)](),this[_0x3d67f8(0x16d)][_0x3d67f8(0x172)][_0x3d67f8(0x159)](this[_0x3d67f8(0x153)]),this[_0x3d67f8(0x178)][_0x3d67f8(0x159)](this[_0x3d67f8(0x16c)]),this[_0x3d67f8(0x15d)][_0x3d67f8(0x15f)](_0x3d67f8(0x169),(_0x2ac3f0,_0x35ab5c)=>{const _0x460050=_0x3d67f8;_0x2ac3f0[_0x460050(0x14f)]==this[_0x460050(0x16d)][_0x460050(0x15c)][_0x460050(0x177)]&&(this[_0x460050(0x151)](),_0x35ab5c());});}[_0x23e152(0x16e)](){const _0x176a43=_0x23e152,_0x3b3dd8=new _0x710cc3(this[_0x176a43(0x15b)]),_0x5d18b1=this[_0x176a43(0x15b)];return _0x3b3dd8[_0x176a43(0x15f)]({'icon':_0x15fce1,'label':_0xbc266(_0x5d18b1,_0x176a43(0x155)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x176a43(0x166)}),_0x3b3dd8['on'](_0x176a43(0x142),()=>{const _0x382fb7=_0x176a43;this[_0x382fb7(0x151)]();}),_0x3b3dd8[_0x176a43(0x17b)](_0x176a43(0x173))['to'](this[_0x176a43(0x16d)][_0x176a43(0x15c)],_0x176a43(0x179),this,_0x176a43(0x173),(_0x12981e,_0x1658bf)=>!_0x12981e&&_0x1658bf),_0x3b3dd8;}[_0x23e152(0x14b)](){const _0x2f4c9e=_0x23e152,_0x54975e=new _0x710cc3(this[_0x2f4c9e(0x15b)]),_0x33babc=this[_0x2f4c9e(0x14a)],_0x446c60=this[_0x2f4c9e(0x15b)];_0x54975e[_0x2f4c9e(0x15f)]({'label':_0xbc266(_0x446c60,_0x2f4c9e(0x157)),'withText':!0x1,'icon':_0x154ed9,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2f4c9e(0x176)}),_0x54975e[_0x2f4c9e(0x17b)](_0x2f4c9e(0x164))['to'](_0x33babc,_0x2f4c9e(0x147)),_0x54975e[_0x2f4c9e(0x17b)](_0x2f4c9e(0x173))['to'](this,_0x2f4c9e(0x173)),_0x54975e['on'](_0x2f4c9e(0x142),()=>{const _0x3ff105=_0x2f4c9e;_0x33babc[_0x3ff105(0x147)]=!_0x33babc[_0x3ff105(0x147)],_0x33babc[_0x3ff105(0x147)]?this[_0x3ff105(0x143)][_0x3ff105(0x146)]():this[_0x3ff105(0x146)]();});const _0x442822=()=>{const _0x21b29d=_0x2f4c9e;_0x3d5a18[_0x21b29d(0x175)][_0x21b29d(0x170)](()=>{const _0x48da59=_0x21b29d;if(_0x1e01b2(this[_0x48da59(0x177)])){const _0x477eab=new _0x18a56c(this[_0x48da59(0x16d)][_0x48da59(0x15c)][_0x48da59(0x177)]),_0x5e64cf=_0x477eab[_0x48da59(0x162)],_0x1324da=_0x48da59(0x16f)===_0x446c60[_0x48da59(0x150)]?_0x48da59(0x156):_0x48da59(0x160);_0x477eab[_0x48da59(0x16a)](),_0x54975e[_0x48da59(0x177)][_0x48da59(0x14c)][_0x1324da]=_0x5e64cf-_0x477eab[_0x48da59(0x162)]+0x1+'px';}});};return this[_0x2f4c9e(0x16d)][_0x2f4c9e(0x15c)]['on'](_0x2f4c9e(0x165),_0x442822),this['on'](_0x2f4c9e(0x158),_0x442822),_0x54975e;}[_0x23e152(0x151)](){const _0xfeade7=_0x23e152,_0x548691=this[_0xfeade7(0x16d)][_0xfeade7(0x15c)][_0xfeade7(0x177)][_0xfeade7(0x174)];this[_0xfeade7(0x167)](_0xfeade7(0x151),_0x548691);}[_0x23e152(0x146)](_0x150144){const _0x2c515c=_0x23e152;-0x1===_0x150144?this[_0x2c515c(0x171)][_0x2c515c(0x17a)]():this[_0x2c515c(0x171)][_0x2c515c(0x152)]();}}function _0x4874(){const _0x47f63d=['add','50021CfQioP','locale','fieldView','keystrokes','2310918kCmUeg','set','right','4616969dlpuxE','width','20QZOQem','isOn','update','ck-ai-form__submit','fire','minRows','enter','excludeScrollbarsAndBorders','4HLgFmo','submitButtonView','queryView','_createSubmitButton','rtl','requestAnimationFrame','focusCycler','fieldWrapperChildren','isEnabled','value','window','ck-ai-form__toggle-history','element','children','isEmpty','focusLast','bind','execute','filteredView','2470194nWgjlP','38vAsTSb','focus','isVisible','2340095SdpcXe','focusableChildren','resultsView','_createShowHistoryButton','style','4367648BTlAAd','maxRows','target','uiLanguageDirection','submit','focusFirst','showHistoryButtonView','10291356yvveYa','Submit','left','History','render'];_0x4874=function(){return _0x47f63d;};return _0x4874();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b4b63=_0x5206;(function(_0xd1c33c,_0x585b50){const _0x235441=_0x5206,_0x44cebb=_0xd1c33c();while(!![]){try{const _0x3b6ac2=-parseInt(_0x235441(0x1f3))/0x1*(parseInt(_0x235441(0x1f0))/0x2)+parseInt(_0x235441(0x1fe))/0x3*(-parseInt(_0x235441(0x205))/0x4)+-parseInt(_0x235441(0x1fa))/0x5*(-parseInt(_0x235441(0x20c))/0x6)+parseInt(_0x235441(0x201))/0x7+-parseInt(_0x235441(0x1ff))/0x8+-parseInt(_0x235441(0x1fb))/0x9*(parseInt(_0x235441(0x203))/0xa)+parseInt(_0x235441(0x1ee))/0xb*(parseInt(_0x235441(0x1ed))/0xc);if(_0x3b6ac2===_0x585b50)break;else _0x44cebb['push'](_0x44cebb['shift']());}catch(_0x1e5bcf){_0x44cebb['push'](_0x44cebb['shift']());}}}(_0x2ae0,0x85ca7));import{ToolbarView as _0x588e34,ButtonView as _0x1fa8ec}from'ckeditor5/src/ui.js';import{getTranslation as _0x21ff11}from'../../utils/common-translations.js';function _0x5206(_0x45e01b,_0x4e0b24){const _0x2ae0fb=_0x2ae0();return _0x5206=function(_0x52065c,_0x273243){_0x52065c=_0x52065c-0x1ea;let _0x273844=_0x2ae0fb[_0x52065c];return _0x273844;},_0x5206(_0x45e01b,_0x4e0b24);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3b4b63(0x202),'INSERT':_0x3b4b63(0x1ec)};function _0x2ae0(){const _0x3c0ec6=['mainAction','ck-ai-form__toolbar','insertButton','set','24cwoovR','bind','label','Insert\x20below','items','addMany','ck-hidden','insert','984OwOMje','301851mMPmmS','_createButton','188318zcnsay','extendTemplate','stopButton','6lgGRJV','AI_','Try\x20again','REPLACE','replaceButton','isVisible','tryAgainButton','336685huROba','6062157fxIOrm','bindTemplate','ck-button-action','1299QCMjrS','4659632VTYGUI','locale','4323340MRQkAM','replace','10bMRmDK','_CONTENT','7096nQyqrY','Stop','toUpperCase'];_0x2ae0=function(){return _0x3c0ec6;};return _0x2ae0();}export class AIFormToolbarView extends _0x588e34{constructor(_0x55cc43){const _0x34f5f=_0x3b4b63;super(_0x55cc43),this[_0x34f5f(0x20b)](_0x34f5f(0x1f8),!0x1),this[_0x34f5f(0x20b)](_0x34f5f(0x208),AIFormToolbarViewMainActionLabel[_0x34f5f(0x1f6)]),this[_0x34f5f(0x1f7)]=this[_0x34f5f(0x1ef)]('',_0x34f5f(0x1fd)),this[_0x34f5f(0x1f7)][_0x34f5f(0x20d)](_0x34f5f(0x20e))['to'](this,_0x34f5f(0x208),_0x3f5b82=>_0x21ff11(_0x55cc43,_0x34f5f(0x1f4)+_0x3f5b82[_0x34f5f(0x207)]()+_0x34f5f(0x204))),this[_0x34f5f(0x20a)]=this[_0x34f5f(0x1ef)](_0x21ff11(_0x55cc43,_0x34f5f(0x20f))),this[_0x34f5f(0x1f9)]=this[_0x34f5f(0x1ef)](_0x21ff11(_0x55cc43,_0x34f5f(0x1f5))),this[_0x34f5f(0x1f2)]=this[_0x34f5f(0x1ef)](_0x21ff11(_0x55cc43,_0x34f5f(0x206)));const _0x396ab1=this[_0x34f5f(0x1fc)];this[_0x34f5f(0x1f1)]({'attributes':{'class':[_0x34f5f(0x209),_0x396ab1['if'](_0x34f5f(0x1f8),_0x34f5f(0x1eb),_0x4886d4=>!_0x4886d4)]}}),this[_0x34f5f(0x210)][_0x34f5f(0x1ea)]([this[_0x34f5f(0x1f7)],this[_0x34f5f(0x20a)],this[_0x34f5f(0x1f9)],this[_0x34f5f(0x1f2)]]);}[_0x3b4b63(0x1ef)](_0x400d96,_0x4af550){const _0x533b40=_0x3b4b63,_0x5be602=new _0x1fa8ec(this[_0x533b40(0x200)]);return _0x5be602[_0x533b40(0x20b)]({'label':_0x400d96,'class':_0x4af550||'','isVisible':!0x0,'withText':!0x0}),_0x5be602;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e4df5=_0xebb8;(function(_0x39bea6,_0x7000c9){const _0x34eec6=_0xebb8,_0x4392e5=_0x39bea6();while(!![]){try{const _0x5420b1=-parseInt(_0x34eec6(0x23f))/0x1*(-parseInt(_0x34eec6(0x1fc))/0x2)+parseInt(_0x34eec6(0x1f8))/0x3*(-parseInt(_0x34eec6(0x22f))/0x4)+parseInt(_0x34eec6(0x23d))/0x5+-parseInt(_0x34eec6(0x21e))/0x6+-parseInt(_0x34eec6(0x21b))/0x7*(parseInt(_0x34eec6(0x1fb))/0x8)+-parseInt(_0x34eec6(0x244))/0x9*(-parseInt(_0x34eec6(0x224))/0xa)+parseInt(_0x34eec6(0x238))/0xb*(-parseInt(_0x34eec6(0x21c))/0xc);if(_0x5420b1===_0x7000c9)break;else _0x4392e5['push'](_0x4392e5['shift']());}catch(_0x576370){_0x4392e5['push'](_0x4392e5['shift']());}}}(_0x4f06,0xc65a6));import{FocusTracker as _0x102c06,KeystrokeHandler as _0x34d1cf}from'ckeditor5/src/utils.js';import{View as _0x5961ed,FocusCycler as _0x5bd0aa,createLabeledTextarea as _0x9b9ecf}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x1d212d,AIFormToolbarViewMainActionLabel as _0x46a6c2}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x4a45ef}from'./aiformcontentarea.js';import{AIFormErrorView as _0x558c05}from'./aiformerrorview.js';import{AIFormPromptView as _0x41e045}from'./aiformpromptview.js';import{AIHistoryListView as _0x14d351}from'./aihistorylistview.js';function _0xebb8(_0xb103f7,_0x1d650e){const _0x4f065e=_0x4f06();return _0xebb8=function(_0xebb88f,_0x46749a){_0xebb88f=_0xebb88f-0x1f2;let _0x34afa9=_0x4f065e[_0xebb88f];return _0x34afa9;},_0xebb8(_0xb103f7,_0x1d650e);}import{AIHistoryListItemView as _0x6d3e4c}from'./aihistorylistitemview.js';import{PromptHistory as _0x5b1db0}from'./prompthistory.js';function _0x4f06(){const _0x1c18ad=['4824qmyQvI','1341698VbUbMo','ck-hidden','errorView','_createHistoryView','value','mainAction','search','chain','keystrokes','replaceContent','submit','submitPrompt','_promptHistory','isEnabled','prompt','_focusables','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','listenTo','delegate','clear','trim','items','toolbar','focusCycler','focusFirst','contentArea','render','stopButton','_createPromptView','tryAgainButton','createCollection','8792PSFTSj','12jPChTF','_createToolbar','1557450tfZPKk','Ask\x20AI\x20to\x20improve\x20generated\x20text','ck-ai-form-content','focus','reset','copyButtonView','761340XyNMXE','insertButton','set','Ask\x20AI\x20to\x20edit\x20or\x20generate','finishProcessing','insertContentBelow','high','bindTemplate','clearHistory','isVisible','focusLast','492TRDyol','locale','add','promptView','focusTracker','isError','text','tryAgainEvent','execute','11042658QoRtEn','label','setTemplate','div','AI_ERROR_FAILED','4328420uBdgCb','fieldView','2rnLWWM','stopProcessing','historyGroupView','startProcessing','tab','162eCGSBE','REPLACE','element','isProcessing','shift\x20+\x20tab','Empty\x20history','fire','replaceButton','bind','handleError','ck-ai-form','18159KCaweu','bindTo','queryView'];_0x4f06=function(){return _0x1c18ad;};return _0x4f06();}import{getTranslation as _0x3062e3}from'../../utils/common-translations.js';import{escape as _0x113a0e}from'es-toolkit/compat';export class AIFormView extends _0x5961ed{[_0x2e4df5(0x233)];[_0x2e4df5(0x204)];[_0x2e4df5(0x215)];[_0x2e4df5(0x212)];[_0x2e4df5(0x232)];[_0x2e4df5(0x1fe)];[_0x2e4df5(0x20b)];[_0x2e4df5(0x213)];[_0x2e4df5(0x208)];constructor(_0x5022b0,_0x506a34,_0x8f8af5=''){const _0x50ee3c=_0x2e4df5;super(_0x5022b0),this[_0x50ee3c(0x226)](_0x50ee3c(0x209),!0x0),this[_0x50ee3c(0x226)](_0x50ee3c(0x247),!0x1),this[_0x50ee3c(0x226)](_0x50ee3c(0x20a),''),this[_0x50ee3c(0x226)](_0x50ee3c(0x200),''),this[_0x50ee3c(0x226)](_0x50ee3c(0x234),!0x1),this[_0x50ee3c(0x226)](_0x50ee3c(0x201),_0x46a6c2[_0x50ee3c(0x245)]),this[_0x50ee3c(0x208)]=new _0x5b1db0(),this[_0x50ee3c(0x1fe)]=new _0x558c05(_0x5022b0),this[_0x50ee3c(0x215)]=new _0x4a45ef(_0x5022b0,_0x8f8af5),this[_0x50ee3c(0x215)][_0x50ee3c(0x1f5)](_0x50ee3c(0x247))['to'](this),this[_0x50ee3c(0x215)][_0x50ee3c(0x1f5)](_0x50ee3c(0x200))['to'](this),this[_0x50ee3c(0x212)]=this[_0x50ee3c(0x21d)](),this[_0x50ee3c(0x212)][_0x50ee3c(0x1f5)](_0x50ee3c(0x201))['to'](this),this[_0x50ee3c(0x232)]=this[_0x50ee3c(0x218)](),this[_0x50ee3c(0x233)]=new _0x102c06(),this[_0x50ee3c(0x204)]=new _0x34d1cf(),this[_0x50ee3c(0x20b)]=this[_0x50ee3c(0x21a)]([this[_0x50ee3c(0x215)],this[_0x50ee3c(0x215)][_0x50ee3c(0x223)],this[_0x50ee3c(0x212)],this[_0x50ee3c(0x232)]]),this[_0x50ee3c(0x213)]=new _0x5bd0aa({'focusables':this[_0x50ee3c(0x20b)],'focusTracker':this[_0x50ee3c(0x233)],'keystrokeHandler':this[_0x50ee3c(0x204)],'actions':{'focusPrevious':_0x50ee3c(0x248),'focusNext':_0x50ee3c(0x243)}}),this[_0x50ee3c(0x213)][_0x50ee3c(0x203)](this[_0x50ee3c(0x232)][_0x50ee3c(0x213)]),this[_0x50ee3c(0x232)][_0x50ee3c(0x1fa)][_0x50ee3c(0x23e)][_0x50ee3c(0x1f5)](_0x50ee3c(0x200))['to'](this,_0x50ee3c(0x20a));const _0xad8a22=this[_0x50ee3c(0x22b)];this[_0x50ee3c(0x23a)]({'tag':_0x50ee3c(0x23b),'attributes':{'class':['ck',_0x50ee3c(0x1f7),_0x506a34],'tabindex':'-1'},'children':[{'tag':_0x50ee3c(0x23b),'attributes':{'class':['ck',_0x50ee3c(0x220)]},'children':[{'tag':_0x50ee3c(0x23b),'attributes':{'class':[_0xad8a22['if'](_0x50ee3c(0x234),_0x50ee3c(0x1fd),_0x1c3c88=>!_0x1c3c88)]},'children':[this[_0x50ee3c(0x1fe)]]},this[_0x50ee3c(0x215)],this[_0x50ee3c(0x212)],this[_0x50ee3c(0x232)]]}]});}[_0x2e4df5(0x216)](){const _0x53bb8d=_0x2e4df5;super[_0x53bb8d(0x216)](),this[_0x53bb8d(0x233)][_0x53bb8d(0x231)](this[_0x53bb8d(0x215)][_0x53bb8d(0x246)]),this[_0x53bb8d(0x233)][_0x53bb8d(0x231)](this[_0x53bb8d(0x215)][_0x53bb8d(0x223)][_0x53bb8d(0x246)]),this[_0x53bb8d(0x233)][_0x53bb8d(0x231)](this[_0x53bb8d(0x212)][_0x53bb8d(0x246)]),this[_0x53bb8d(0x233)][_0x53bb8d(0x231)](this[_0x53bb8d(0x232)][_0x53bb8d(0x246)]),this[_0x53bb8d(0x204)][_0x53bb8d(0x20d)](this[_0x53bb8d(0x246)]);}[_0x2e4df5(0x221)](_0x15dd5e=0x1){const _0x5f575e=_0x2e4df5;-0x1===_0x15dd5e?this[_0x5f575e(0x213)][_0x5f575e(0x22e)]():this[_0x5f575e(0x213)][_0x5f575e(0x214)]();}[_0x2e4df5(0x222)](){const _0x4bbd52=_0x2e4df5;this[_0x4bbd52(0x20a)]='',this[_0x4bbd52(0x200)]='',this[_0x4bbd52(0x234)]=!0x1,this[_0x4bbd52(0x232)][_0x4bbd52(0x222)](),this[_0x4bbd52(0x215)][_0x4bbd52(0x22d)]=!0x1,this[_0x4bbd52(0x212)][_0x4bbd52(0x22d)]=!0x1;}[_0x2e4df5(0x218)](){const _0x3aaaed=_0x2e4df5,_0x10034d=this[_0x3aaaed(0x230)],_0x436569=new _0x41e045(_0x10034d,{'queryView':{'label':_0x3062e3(_0x10034d,_0x3aaaed(0x227)),'creator':_0x9b9ecf,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3062e3(_0x10034d,_0x3aaaed(0x1f2)),'secondary':_0x3062e3(_0x10034d,_0x3aaaed(0x20c))}}},'filteredView':this[_0x3aaaed(0x1ff)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x436569[_0x3aaaed(0x1f5)](_0x3aaaed(0x209))['to'](this,_0x3aaaed(0x209),this,_0x3aaaed(0x247),(_0x3e67a9,_0x14ef4e)=>_0x3e67a9&&!_0x14ef4e),this[_0x3aaaed(0x20d)](_0x436569,_0x3aaaed(0x206),(_0x9b03e0,_0x145790)=>{const _0x171822=_0x3aaaed;this[_0x171822(0x20a)]=_0x145790;const _0x1266a6=_0x113a0e(_0x145790);this[_0x171822(0x1f3)](_0x171822(0x207),_0x1266a6),_0x145790[_0x171822(0x210)]()&&this[_0x171822(0x208)][_0x171822(0x231)]({'prompt':_0x1266a6},0x0);},{'priority':_0x3aaaed(0x22a)}),_0x436569;}[_0x2e4df5(0x1ff)](){const _0x314a99=_0x2e4df5,_0x111796=new _0x14d351(this[_0x314a99(0x230)]);return _0x111796[_0x314a99(0x241)][_0x314a99(0x211)][_0x314a99(0x1f9)](this[_0x314a99(0x208)])['as'](_0x6d3e4c),_0x111796['on'](_0x314a99(0x22c),()=>{const _0x426c43=_0x314a99;this[_0x426c43(0x208)][_0x426c43(0x20f)](),this[_0x426c43(0x232)][_0x426c43(0x202)](''),this[_0x426c43(0x232)][_0x426c43(0x221)]();}),_0x111796;}[_0x2e4df5(0x21d)](){const _0x707323=_0x2e4df5,_0x76499f=new _0x1d212d(this[_0x707323(0x230)]);return _0x76499f[_0x707323(0x1f4)][_0x707323(0x1f5)](_0x707323(0x209))['to'](this,_0x707323(0x209),this,_0x707323(0x247),this,_0x707323(0x200),(_0x1e807c,_0x10b5a9,_0xb2a204)=>_0x1e807c&&!_0x10b5a9&&!!_0xb2a204),_0x76499f[_0x707323(0x1f4)][_0x707323(0x20e)](_0x707323(0x237))['to'](this,_0x707323(0x205)),_0x76499f[_0x707323(0x225)][_0x707323(0x1f5)](_0x707323(0x209))['to'](this,_0x707323(0x209),this,_0x707323(0x247),this,_0x707323(0x200),(_0x5012ab,_0x4beb7e,_0x9ac87f)=>_0x5012ab&&!_0x4beb7e&&!!_0x9ac87f),_0x76499f[_0x707323(0x225)][_0x707323(0x20e)](_0x707323(0x237))['to'](this,_0x707323(0x229)),_0x76499f[_0x707323(0x219)][_0x707323(0x1f5)](_0x707323(0x209))['to'](this,_0x707323(0x209),this,_0x707323(0x247),(_0xfeb3c0,_0x230e25)=>_0xfeb3c0&&!_0x230e25),_0x76499f[_0x707323(0x219)][_0x707323(0x20e)](_0x707323(0x237))['to'](this,_0x707323(0x236)),_0x76499f[_0x707323(0x217)][_0x707323(0x1f5)](_0x707323(0x209))['to'](this,_0x707323(0x247)),_0x76499f[_0x707323(0x217)][_0x707323(0x20e)](_0x707323(0x237))['to'](this,_0x707323(0x240)),_0x76499f;}[_0x2e4df5(0x242)](){const _0x13fa99=_0x2e4df5;this[_0x13fa99(0x200)]='',this[_0x13fa99(0x234)]=!0x1,this[_0x13fa99(0x247)]=!0x0,this[_0x13fa99(0x215)][_0x13fa99(0x22d)]=!0x0,this[_0x13fa99(0x212)][_0x13fa99(0x22d)]=!0x0,this[_0x13fa99(0x215)][_0x13fa99(0x221)]();}[_0x2e4df5(0x228)](){const _0x41ebf7=_0x2e4df5,_0x1e5d00=this[_0x41ebf7(0x230)];this[_0x41ebf7(0x247)]=!0x1,this[_0x41ebf7(0x20a)]='',this[_0x41ebf7(0x232)][_0x41ebf7(0x222)](),this[_0x41ebf7(0x200)]&&(this[_0x41ebf7(0x232)][_0x41ebf7(0x1fa)][_0x41ebf7(0x239)]=_0x3062e3(_0x1e5d00,_0x41ebf7(0x21f)));}[_0x2e4df5(0x1f6)](_0x5f3c7c){const _0x7db280=_0x2e4df5,_0xb6c0a=this[_0x7db280(0x230)];this[_0x7db280(0x228)](),this[_0x7db280(0x234)]=!0x0,this[_0x7db280(0x1fe)][_0x7db280(0x235)]=_0x5f3c7c||_0x3062e3(_0xb6c0a,_0x7db280(0x23c)),this[_0x7db280(0x200)]||(this[_0x7db280(0x215)][_0x7db280(0x22d)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5db32b,_0x59e0f8){const _0x2e3a58=_0x9f8f,_0x2df5af=_0x5db32b();while(!![]){try{const _0x1ebe55=-parseInt(_0x2e3a58(0x1eb))/0x1*(parseInt(_0x2e3a58(0x1f6))/0x2)+parseInt(_0x2e3a58(0x1f2))/0x3+-parseInt(_0x2e3a58(0x1f8))/0x4*(parseInt(_0x2e3a58(0x1f5))/0x5)+-parseInt(_0x2e3a58(0x1ef))/0x6*(parseInt(_0x2e3a58(0x1fc))/0x7)+parseInt(_0x2e3a58(0x1f0))/0x8*(-parseInt(_0x2e3a58(0x1ec))/0x9)+parseInt(_0x2e3a58(0x1fa))/0xa*(parseInt(_0x2e3a58(0x1f7))/0xb)+-parseInt(_0x2e3a58(0x1f1))/0xc;if(_0x1ebe55===_0x59e0f8)break;else _0x2df5af['push'](_0x2df5af['shift']());}catch(_0x244629){_0x2df5af['push'](_0x2df5af['shift']());}}}(_0x4080,0x84835));function _0x9f8f(_0x352d9e,_0x31f878){const _0x40803e=_0x4080();return _0x9f8f=function(_0x9f8f29,_0x44ae74){_0x9f8f29=_0x9f8f29-0x1eb;let _0x506492=_0x40803e[_0x9f8f29];return _0x506492;},_0x9f8f(_0x352d9e,_0x31f878);}import{ListItemView as _0xdd2105,ButtonView as _0x3a88e7,ButtonLabelView as _0x2540cd}from'ckeditor5/src/ui.js';function _0x4080(){const _0x4a0cfc=['children','prompt','254545vfYMiS','2EcmVbb','11UWIFJb','16ZANVeV','add','10338950raUiSa','set','763203Chowsa','locale','89825JPBMZM','9Jzzfxi','fire','execute','18jkjuSI','5181560sCzZLN','228612sVYpdB','2388516ecHwiG'];_0x4080=function(){return _0x4a0cfc;};return _0x4080();}import{unescape as _0x27ce31}from'es-toolkit/compat';export class AIHistoryListItemView extends _0xdd2105{constructor(_0x45fdd9){const _0x7b6e7b=_0x9f8f;super();const _0x454d46=new _0x2540cd(),_0x3ca3a7=new _0x3a88e7(this[_0x7b6e7b(0x1fd)],_0x454d46);this[_0x7b6e7b(0x1f3)][_0x7b6e7b(0x1f9)](_0x3ca3a7),_0x3ca3a7[_0x7b6e7b(0x1fb)]({'label':_0x45fdd9[_0x7b6e7b(0x1f4)],'withText':!0x0}),_0x3ca3a7['on'](_0x7b6e7b(0x1ee),()=>{const _0x2222d3=_0x7b6e7b;this[_0x2222d3(0x1ed)](_0x2222d3(0x1ee),{'value':_0x27ce31(_0x45fdd9[_0x2222d3(0x1f4)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5477(){const _0x180585=['_createClearHistoryButton','clearHistory','fire','set','add','items','7kHCHKg','clearHistoryButton','9909jVNqsg','7469pkKUiK','Clear','delegate','5794136WlCxwT','1851520GoJtkc','16962cWazGj','4328SxgBeE','execute','label','16810rlpYWJ','locale','historyGroupView','80spkAwX','Prompt\x20history','children','filter','length','423420gBYiLC','950346KjgPIV'];_0x5477=function(){return _0x180585;};return _0x5477();}const _0x3bc415=_0x3f9f;(function(_0x29f13d,_0x259f4c){const _0x229a86=_0x3f9f,_0x3334a9=_0x29f13d();while(!![]){try{const _0x36a9f5=parseInt(_0x229a86(0x13b))/0x1+-parseInt(_0x229a86(0x136))/0x2*(-parseInt(_0x229a86(0x12f))/0x3)+-parseInt(_0x229a86(0x12d))/0x4+-parseInt(_0x229a86(0x12e))/0x5+parseInt(_0x229a86(0x13c))/0x6*(parseInt(_0x229a86(0x143))/0x7)+-parseInt(_0x229a86(0x130))/0x8*(-parseInt(_0x229a86(0x129))/0x9)+-parseInt(_0x229a86(0x133))/0xa*(-parseInt(_0x229a86(0x12a))/0xb);if(_0x36a9f5===_0x259f4c)break;else _0x3334a9['push'](_0x3334a9['shift']());}catch(_0x253136){_0x3334a9['push'](_0x3334a9['shift']());}}}(_0x5477,0xb149d));import{ListView as _0x58693b,ListItemGroupView as _0x2b5b66,ButtonView as _0x23a0e5}from'ckeditor5/src/ui.js';function _0x3f9f(_0x391b49,_0x27fadb){const _0x5477f3=_0x5477();return _0x3f9f=function(_0x3f9f4d,_0x58b298){_0x3f9f4d=_0x3f9f4d-0x128;let _0x41f9a6=_0x5477f3[_0x3f9f4d];return _0x41f9a6;},_0x3f9f(_0x391b49,_0x27fadb);}import{getTranslation as _0x36bd3f}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x58693b{[_0x3bc415(0x135)];[_0x3bc415(0x128)];constructor(_0x52c9d0){const _0xcaa240=_0x3bc415;super(_0x52c9d0),this[_0xcaa240(0x128)]=this[_0xcaa240(0x13d)](),this[_0xcaa240(0x135)]=new _0x2b5b66(),this[_0xcaa240(0x135)][_0xcaa240(0x138)][_0xcaa240(0x141)](this[_0xcaa240(0x128)],0x1),this[_0xcaa240(0x135)][_0xcaa240(0x132)]=_0x36bd3f(_0x52c9d0,_0xcaa240(0x137)),this[_0xcaa240(0x135)][_0xcaa240(0x142)][_0xcaa240(0x12c)](_0xcaa240(0x131))['to'](this),this[_0xcaa240(0x142)][_0xcaa240(0x141)](this[_0xcaa240(0x135)]);}[_0x3bc415(0x139)](){const _0x190ccf=_0x3bc415;let _0x34a057=0x0;for(const _0x1f0afd of this[_0x190ccf(0x142)])_0x34a057+=_0x1f0afd[_0x190ccf(0x142)][_0x190ccf(0x13a)];return{'resultsCount':_0x34a057,'totalItemsCount':_0x34a057};}[_0x3bc415(0x13d)](){const _0x20cd49=_0x3bc415,_0x419941=this[_0x20cd49(0x134)],_0x7e08e6=new _0x23a0e5(this[_0x20cd49(0x134)]);return _0x7e08e6[_0x20cd49(0x140)]({'label':'('+_0x36bd3f(_0x419941,_0x20cd49(0x12b))+')','withText':!0x0}),_0x7e08e6['on'](_0x20cd49(0x131),()=>this[_0x20cd49(0x13f)](_0x20cd49(0x13e))),_0x7e08e6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c684d=_0x3377;(function(_0x6eee46,_0x122e78){const _0x584a3b=_0x3377,_0x25b037=_0x6eee46();while(!![]){try{const _0x38a344=-parseInt(_0x584a3b(0x1c9))/0x1+parseInt(_0x584a3b(0x1c8))/0x2*(parseInt(_0x584a3b(0x1cb))/0x3)+parseInt(_0x584a3b(0x1da))/0x4+-parseInt(_0x584a3b(0x1d9))/0x5*(parseInt(_0x584a3b(0x1db))/0x6)+parseInt(_0x584a3b(0x1c6))/0x7+-parseInt(_0x584a3b(0x1d1))/0x8+-parseInt(_0x584a3b(0x1d4))/0x9*(parseInt(_0x584a3b(0x1dc))/0xa);if(_0x38a344===_0x122e78)break;else _0x25b037['push'](_0x25b037['shift']());}catch(_0x14edd0){_0x25b037['push'](_0x25b037['shift']());}}}(_0x35f2,0x26825));function _0x3377(_0x597dcf,_0xb85041){const _0x35f2c4=_0x35f2();return _0x3377=function(_0x337714,_0x1fd2d5){_0x337714=_0x337714-0x1c5;let _0x43320c=_0x35f2c4[_0x337714];return _0x43320c;},_0x3377(_0x597dcf,_0xb85041);}function _0x35f2(){const _0x4f53a1=['1050669AElXTp','remove','_saveToSessionStorage','toLowerCase','last','15JTFMkT','884036mSNWRW','16350RaMiyI','20rdUZkX','trim','setItem','length','996737EdmwCZ','add','84070lgzmRK','149314wVqAez','CKEditor/AIFormView/PromptHistory','15ZqbvrP','parse','_loadFromSessionStorage','addMany','map','prompt','198968VogmQv','stringify','getItem'];_0x35f2=function(){return _0x4f53a1;};return _0x35f2();}import{Collection as _0x14dde1}from'ckeditor5/src/utils.js';const ts=_0x2c684d(0x1ca);export class PromptHistory extends _0x14dde1{constructor(){const _0x4730e6=_0x2c684d;super(),this[_0x4730e6(0x1cd)](),this['on'](_0x4730e6(0x1c7),(_0x36a022,_0x1f49af)=>{const _0x3ee541=_0x4730e6,_0x1378d2=os(_0x1f49af[_0x3ee541(0x1d0)]);for(const _0x100b91 of this)if(_0x100b91!=_0x1f49af&&os(_0x100b91[_0x3ee541(0x1d0)])===_0x1378d2){this[_0x3ee541(0x1d5)](_0x100b91);break;}this[_0x3ee541(0x1c5)]>0x14&&this[_0x3ee541(0x1d5)](this[_0x3ee541(0x1d8)]),this[_0x3ee541(0x1d6)]();}),this['on'](_0x4730e6(0x1d5),()=>{const _0xb879af=_0x4730e6;this[_0xb879af(0x1d6)]();});}[_0x2c684d(0x1cd)](){const _0x1c641d=_0x2c684d,_0x1f9a02=sessionStorage[_0x1c641d(0x1d3)](ts)||'[]';this[_0x1c641d(0x1ce)](JSON[_0x1c641d(0x1cc)](_0x1f9a02));}[_0x2c684d(0x1d6)](){const _0x247cd6=_0x2c684d;sessionStorage[_0x247cd6(0x1de)](ts,JSON[_0x247cd6(0x1d2)](this[_0x247cd6(0x1cf)](_0x46b691=>_0x46b691)));}}function os(_0x15a5ae){const _0xecff2d=_0x2c684d;return _0x15a5ae[_0xecff2d(0x1d7)]()[_0xecff2d(0x1dd)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2b39be=_0x3c81;function _0x3c81(_0x38695e,_0x2ece3e){const _0x1bebe9=_0x1beb();return _0x3c81=function(_0x3c81eb,_0x2cec8b){_0x3c81eb=_0x3c81eb-0x1aa;let _0x3c191e=_0x1bebe9[_0x3c81eb];return _0x3c191e;},_0x3c81(_0x38695e,_0x2ece3e);}function _0x1beb(){const _0x420c93=['config','isCollapsed','name','hasContent','element','execute','496701rMrvHZ','custom','getItems','_commandDefinitions','getRanges','change:_hasContext','5429115NKNMVb','plugins','enabledCommandsIds','549fLMNXw','getSelectedBlocks','get','editor','44402FZiDov','85524cPjbNP','_hasContext','set','561712QBrsOT','model','selection','141016gcVPjw','requiresContent','isEmpty','refresh','includes','change:isEnabled','ai.aiAssistant.disabledElements','showUI','17957930vKLJvW','length','values','isEnabled','490TjugFn','document','129NNhhUY','add','from','getFirstRange'];_0x1beb=function(){return _0x420c93;};return _0x1beb();}(function(_0x249f86,_0x468e48){const _0x5ede73=_0x3c81,_0x401061=_0x249f86();while(!![]){try{const _0x427501=parseInt(_0x5ede73(0x1b2))/0x1+-parseInt(_0x5ede73(0x1bf))/0x2*(-parseInt(_0x5ede73(0x1d4))/0x3)+parseInt(_0x5ede73(0x1c3))/0x4+-parseInt(_0x5ede73(0x1b8))/0x5+parseInt(_0x5ede73(0x1c0))/0x6*(parseInt(_0x5ede73(0x1d2))/0x7)+-parseInt(_0x5ede73(0x1c6))/0x8*(-parseInt(_0x5ede73(0x1bb))/0x9)+-parseInt(_0x5ede73(0x1ce))/0xa;if(_0x427501===_0x468e48)break;else _0x401061['push'](_0x401061['shift']());}catch(_0x3d0848){_0x401061['push'](_0x401061['shift']());}}}(_0x1beb,0xbf34f));import{Command as _0x293145}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3f2881}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x293145{[_0x2b39be(0x1b5)];constructor(_0x5dafdc,_0x35081e){const _0x75fb2b=_0x2b39be;super(_0x5dafdc),this[_0x75fb2b(0x1b5)]=_0x35081e,this[_0x75fb2b(0x1c2)](_0x75fb2b(0x1ba),[]),this['on'](_0x75fb2b(0x1b7),(_0x49c25b,_0x29f34d,_0x21821e)=>{const _0x58ea7d=_0x75fb2b;this[_0x58ea7d(0x1d1)]&&(this[_0x58ea7d(0x1ba)]=F(this[_0x58ea7d(0x1b5)],_0x21821e));}),this[_0x75fb2b(0x1c2)](_0x75fb2b(0x1c1),!0x1),this['on'](_0x75fb2b(0x1cb),(_0x145cf7,_0x21f60a,_0xa6d632)=>{const _0x560055=_0x75fb2b;this[_0x560055(0x1ba)]=_0xa6d632?F(this[_0x560055(0x1b5)],this[_0x560055(0x1c1)]):[];});}[_0x2b39be(0x1c9)](){const _0x39d674=_0x2b39be,_0x4d3c9e=this[_0x39d674(0x1be)][_0x39d674(0x1c4)];this[_0x39d674(0x1c1)]=function(_0x1cca2c){const _0x42c8c2=_0x39d674,_0x5765c9=_0x1cca2c[_0x42c8c2(0x1d3)][_0x42c8c2(0x1c5)];return _0x5765c9[_0x42c8c2(0x1ad)]?0x0!==[..._0x5765c9[_0x42c8c2(0x1bc)]()][_0x42c8c2(0x1cf)]&&![..._0x5765c9[_0x42c8c2(0x1bc)]()][0x0][_0x42c8c2(0x1c8)]:!!_0x1cca2c[_0x42c8c2(0x1af)](_0x5765c9[_0x42c8c2(0x1ab)]());}(_0x4d3c9e);const _0x37abc5=_0x4d3c9e[_0x39d674(0x1d3)][_0x39d674(0x1c5)],_0x2cd856=this[_0x39d674(0x1be)][_0x39d674(0x1ac)][_0x39d674(0x1bd)](_0x39d674(0x1cc));for(const _0x1eacc6 of _0x37abc5[_0x39d674(0x1b6)]())for(const _0x31222c of _0x1eacc6[_0x39d674(0x1b4)]())if(_0x31222c['is'](_0x39d674(0x1b0))&&_0x2cd856[_0x39d674(0x1ca)](_0x31222c[_0x39d674(0x1ae)]))return void(this[_0x39d674(0x1d1)]=!0x1);this[_0x39d674(0x1d1)]=!0x0;}[_0x2b39be(0x1b1)](_0x4b0aaf='',_0x3a230a='',_0x2d8ee9=_0x2b39be(0x1b3)){const _0x1bee92=_0x2b39be;this[_0x1bee92(0x1be)][_0x1bee92(0x1b9)][_0x1bee92(0x1bd)](_0x3f2881)[_0x1bee92(0x1cd)](_0x4b0aaf,_0x3a230a,_0x2d8ee9);}}function F(_0x51c862,_0x282b39){const _0x46e3eb=_0x2b39be,_0x33da5=new Set();for(const _0x2a4d86 of _0x51c862[_0x46e3eb(0x1d0)]())(_0x282b39||!0x1===_0x2a4d86[_0x46e3eb(0x1c7)])&&_0x33da5[_0x46e3eb(0x1d5)](_0x2a4d86['id']);return Array[_0x46e3eb(0x1aa)](_0x33da5);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x1b76e2,_0x46a5b1,_0x482dff){const t=_0x1b76e2['t'];switch(_0x46a5b1){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',_0x482dff);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x482dff);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'},_0x482dff);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 _0x46a5b1;}}
|
|
@@ -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(_0x20fdba,_0xac26d6){const _0x2d508e=(0x0,_0xac26d6['t'])('Other');return _0x20fdba['length']?'groupId'in _0x20fdba[0x0]?_0x20fdba:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d508e,'order':0x1/0x0,'commands':_0x20fdba}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2d508e,'order':0x1/0x0,'commands':[]}];}
|