@ckeditor/ckeditor5-ai 46.0.0-alpha.8 → 46.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
-
const
|
|
23
|
+
const _0x584f40=_0x2798;(function(_0x31b62d,_0x40219a){const _0x4e9f20=_0x2798,_0xffd1aa=_0x31b62d();while(!![]){try{const _0x46ef60=parseInt(_0x4e9f20(0xfe))/0x1+parseInt(_0x4e9f20(0x11b))/0x2+-parseInt(_0x4e9f20(0x128))/0x3*(-parseInt(_0x4e9f20(0x110))/0x4)+-parseInt(_0x4e9f20(0x127))/0x5*(-parseInt(_0x4e9f20(0x10d))/0x6)+parseInt(_0x4e9f20(0x113))/0x7+-parseInt(_0x4e9f20(0x109))/0x8+-parseInt(_0x4e9f20(0x123))/0x9;if(_0x46ef60===_0x40219a)break;else _0xffd1aa['push'](_0xffd1aa['shift']());}catch(_0x45ca6e){_0xffd1aa['push'](_0xffd1aa['shift']());}}}(_0x280e,0x6014a));import{Rect as _0x59aa3c,global as _0x452af1,isVisible as _0x1222f3}from'ckeditor5/src/utils.js';import{IconHistory as _0x26a6cf,IconSubmit as _0x1cfffb}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x5c1d65,ButtonView as _0x468e1b}from'ckeditor5/src/ui.js';function _0x280e(){const _0xa65f95=['focus','6RaSrzj','add','isEmpty','4CHkRLN','uiLanguageDirection','filteredView','3644354yxKEGG','queryView','fire','isEnabled','maxRows','submit','isVisible','window','681062FrJGVg','fieldWrapperChildren','Submit','focusFirst','render','locale','target','focusCycler','8232660vOJysT','left','rtl','ck-ai-form__submit','897605uneuHu','289233ZHoyaH','enter','width','showHistoryButtonView','style','fieldView','element','ck-ai-form__toggle-history','update','focusLast','excludeScrollbarsAndBorders','resultsView','bind','requestAnimationFrame','minRows','783485zvnLRC','value','focusableChildren','_createSubmitButton','_createShowHistoryButton','execute','isOn','right','children','set','History','4898272chKGEe','keystrokes','submitButtonView'];_0x280e=function(){return _0xa65f95;};return _0x280e();}function _0x2798(_0x43b4b1,_0x5449e2){const _0x280e2a=_0x280e();return _0x2798=function(_0x279807,_0x2e4e1e){_0x279807=_0x279807-0xfe;let _0x4450a4=_0x280e2a[_0x279807];return _0x4450a4;},_0x2798(_0x43b4b1,_0x5449e2);}import{getTranslation as _0x16369c}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x5c1d65{[_0x584f40(0x10b)];[_0x584f40(0x12b)];constructor(_0x2b3dc2,_0x31f0a1){const _0x3d9150=_0x584f40;super(_0x2b3dc2,_0x31f0a1),this[_0x3d9150(0x114)][_0x3d9150(0x12d)][_0x3d9150(0x136)]=0x1,this[_0x3d9150(0x114)][_0x3d9150(0x12d)][_0x3d9150(0x117)]=0x3,this[_0x3d9150(0x10b)]=this[_0x3d9150(0x101)](),this[_0x3d9150(0x12b)]=this[_0x3d9150(0x102)](),this[_0x3d9150(0x100)][_0x3d9150(0x10e)](this[_0x3d9150(0x12b)],0x1),this[_0x3d9150(0x100)][_0x3d9150(0x10e)](this[_0x3d9150(0x10b)]);}[_0x584f40(0x11f)](){const _0x4595f0=_0x584f40;super[_0x4595f0(0x11f)](),this[_0x4595f0(0x114)][_0x4595f0(0x11c)][_0x4595f0(0x10e)](this[_0x4595f0(0x12b)]),this[_0x4595f0(0x106)][_0x4595f0(0x10e)](this[_0x4595f0(0x10b)]),this[_0x4595f0(0x10a)][_0x4595f0(0x107)](_0x4595f0(0x129),(_0x37ea6c,_0x5def27)=>{const _0x59bf88=_0x4595f0;_0x37ea6c[_0x59bf88(0x121)]==this[_0x59bf88(0x114)][_0x59bf88(0x12d)][_0x59bf88(0x12e)]&&(this[_0x59bf88(0x118)](),_0x5def27());});}[_0x584f40(0x101)](){const _0x1252a7=_0x584f40,_0x550371=new _0x468e1b(this[_0x1252a7(0x120)]),_0x40a46d=this[_0x1252a7(0x120)];return _0x550371[_0x1252a7(0x107)]({'icon':_0x1cfffb,'label':_0x16369c(_0x40a46d,_0x1252a7(0x11d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1252a7(0x126)}),_0x550371['on'](_0x1252a7(0x103),()=>{const _0x46ebfb=_0x1252a7;this[_0x46ebfb(0x118)]();}),_0x550371[_0x1252a7(0x134)](_0x1252a7(0x116))['to'](this[_0x1252a7(0x114)][_0x1252a7(0x12d)],_0x1252a7(0x10f),this,_0x1252a7(0x116),(_0x522131,_0x381f5c)=>!_0x522131&&_0x381f5c),_0x550371;}[_0x584f40(0x102)](){const _0x3f1ebc=_0x584f40,_0x1d28df=new _0x468e1b(this[_0x3f1ebc(0x120)]),_0x3fce37=this[_0x3f1ebc(0x133)],_0x42ea6e=this[_0x3f1ebc(0x120)];_0x1d28df[_0x3f1ebc(0x107)]({'label':_0x16369c(_0x42ea6e,_0x3f1ebc(0x108)),'withText':!0x1,'icon':_0x26a6cf,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x3f1ebc(0x12f)}),_0x1d28df[_0x3f1ebc(0x134)](_0x3f1ebc(0x104))['to'](_0x3fce37,_0x3f1ebc(0x119)),_0x1d28df[_0x3f1ebc(0x134)](_0x3f1ebc(0x116))['to'](this,_0x3f1ebc(0x116)),_0x1d28df['on'](_0x3f1ebc(0x103),()=>{const _0x1ebe7f=_0x3f1ebc;_0x3fce37[_0x1ebe7f(0x119)]=!_0x3fce37[_0x1ebe7f(0x119)],_0x3fce37[_0x1ebe7f(0x119)]?this[_0x1ebe7f(0x112)][_0x1ebe7f(0x10c)]():this[_0x1ebe7f(0x10c)]();});const _0x2bb233=()=>{const _0x25e725=_0x3f1ebc;_0x452af1[_0x25e725(0x11a)][_0x25e725(0x135)](()=>{const _0xa85b99=_0x25e725;if(_0x1222f3(this[_0xa85b99(0x12e)])){const _0x314b3c=new _0x59aa3c(this[_0xa85b99(0x114)][_0xa85b99(0x12d)][_0xa85b99(0x12e)]),_0x1bffe6=_0x314b3c[_0xa85b99(0x12a)],_0x4f719c=_0xa85b99(0x125)===_0x42ea6e[_0xa85b99(0x111)]?_0xa85b99(0x124):_0xa85b99(0x105);_0x314b3c[_0xa85b99(0x132)](),_0x1d28df[_0xa85b99(0x12e)][_0xa85b99(0x12c)][_0x4f719c]=_0x1bffe6-_0x314b3c[_0xa85b99(0x12a)]+0x1+'px';}});};return this[_0x3f1ebc(0x114)][_0x3f1ebc(0x12d)]['on'](_0x3f1ebc(0x130),_0x2bb233),this['on'](_0x3f1ebc(0x11f),_0x2bb233),_0x1d28df;}[_0x584f40(0x118)](){const _0x3b7716=_0x584f40,_0x36e05e=this[_0x3b7716(0x114)][_0x3b7716(0x12d)][_0x3b7716(0x12e)][_0x3b7716(0xff)];this[_0x3b7716(0x115)](_0x3b7716(0x118),_0x36e05e);}[_0x584f40(0x10c)](_0x46b290){const _0x474dec=_0x584f40;-0x1===_0x46b290?this[_0x474dec(0x122)][_0x474dec(0x131)]():this[_0x474dec(0x122)][_0x474dec(0x11e)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x436002=_0x10b8;(function(_0x87c88a,_0x10fbd1){const _0x48b2f8=_0x10b8,_0x16e4ac=_0x87c88a();while(!![]){try{const _0x1e86d1=parseInt(_0x48b2f8(0x1f1))/0x1+-parseInt(_0x48b2f8(0x1e7))/0x2+-parseInt(_0x48b2f8(0x1e1))/0x3+parseInt(_0x48b2f8(0x1ee))/0x4*(-parseInt(_0x48b2f8(0x1e5))/0x5)+parseInt(_0x48b2f8(0x1ea))/0x6*(-parseInt(_0x48b2f8(0x1ed))/0x7)+-parseInt(_0x48b2f8(0x1fb))/0x8*(-parseInt(_0x48b2f8(0x201))/0x9)+parseInt(_0x48b2f8(0x1f0))/0xa;if(_0x1e86d1===_0x10fbd1)break;else _0x16e4ac['push'](_0x16e4ac['shift']());}catch(_0x2769b0){_0x16e4ac['push'](_0x16e4ac['shift']());}}}(_0x3401,0x7ffc1));import{ToolbarView as _0x5876c2,ButtonView as _0x516659}from'ckeditor5/src/ui.js';import{getTranslation as _0x20ae06}from'../../utils/common-translations.js';function _0x10b8(_0x5a0993,_0xa94856){const _0x3401c6=_0x3401();return _0x10b8=function(_0x10b81b,_0x3ddb32){_0x10b81b=_0x10b81b-0x1e1;let _0x46a263=_0x3401c6[_0x10b81b];return _0x46a263;},_0x10b8(_0x5a0993,_0xa94856);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x436002(0x1e3),'INSERT':_0x436002(0x1e8)};export class AIFormToolbarView extends _0x5876c2{constructor(_0x13fb8d){const _0x5087c3=_0x436002;super(_0x13fb8d),this[_0x5087c3(0x1e4)](_0x5087c3(0x1ec),!0x1),this[_0x5087c3(0x1e4)](_0x5087c3(0x1f9),AIFormToolbarViewMainActionLabel[_0x5087c3(0x1fd)]),this[_0x5087c3(0x200)]=this[_0x5087c3(0x1ff)]('',_0x5087c3(0x1f6)),this[_0x5087c3(0x200)][_0x5087c3(0x1ef)](_0x5087c3(0x1f7))['to'](this,_0x5087c3(0x1f9),_0x3a579c=>_0x20ae06(_0x13fb8d,_0x5087c3(0x1e9)+_0x3a579c[_0x5087c3(0x1f5)]()+_0x5087c3(0x1e2))),this[_0x5087c3(0x1eb)]=this[_0x5087c3(0x1ff)](_0x20ae06(_0x13fb8d,_0x5087c3(0x1fe))),this[_0x5087c3(0x204)]=this[_0x5087c3(0x1ff)](_0x20ae06(_0x13fb8d,_0x5087c3(0x1f3))),this[_0x5087c3(0x1fa)]=this[_0x5087c3(0x1ff)](_0x20ae06(_0x13fb8d,_0x5087c3(0x205)));const _0x5ee909=this[_0x5087c3(0x1e6)];this[_0x5087c3(0x203)]({'attributes':{'class':[_0x5087c3(0x1fc),_0x5ee909['if'](_0x5087c3(0x1ec),_0x5087c3(0x202),_0x5c625d=>!_0x5c625d)]}}),this[_0x5087c3(0x1f8)][_0x5087c3(0x1f2)]([this[_0x5087c3(0x200)],this[_0x5087c3(0x1eb)],this[_0x5087c3(0x204)],this[_0x5087c3(0x1fa)]]);}[_0x436002(0x1ff)](_0x50094b,_0x4ffd0b){const _0x24f211=_0x436002,_0x4297c6=new _0x516659(this[_0x24f211(0x1f4)]);return _0x4297c6[_0x24f211(0x1e4)]({'label':_0x50094b,'class':_0x4ffd0b||'','isVisible':!0x0,'withText':!0x0}),_0x4297c6;}}function _0x3401(){const _0x49f033=['locale','toUpperCase','ck-button-action','label','items','mainAction','stopButton','152fbMuLR','ck-ai-form__toolbar','REPLACE','Insert\x20below','_createButton','replaceButton','213615qvOMHu','ck-hidden','extendTemplate','tryAgainButton','Stop','2553885pYfCyR','_CONTENT','replace','set','5PQuzaV','bindTemplate','14026nMYUZA','insert','AI_','50424EVnqHe','insertButton','isVisible','602ilGjRa','3963812qFoGyE','bind','23947130hIsbwS','250552zXQPJA','addMany','Try\x20again'];_0x3401=function(){return _0x49f033;};return _0x3401();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1c25(_0x24c5fe,_0x25f887){const _0x158b00=_0x158b();return _0x1c25=function(_0x1c25d,_0x212e93){_0x1c25d=_0x1c25d-0x1e5;let _0x3dd2d4=_0x158b00[_0x1c25d];return _0x3dd2d4;},_0x1c25(_0x24c5fe,_0x25f887);}const _0x54fea4=_0x1c25;(function(_0x1520cf,_0x40ef13){const _0x1b451c=_0x1c25,_0x118ebf=_0x1520cf();while(!![]){try{const _0x49f8b7=parseInt(_0x1b451c(0x1ef))/0x1+parseInt(_0x1b451c(0x1ed))/0x2*(parseInt(_0x1b451c(0x216))/0x3)+parseInt(_0x1b451c(0x229))/0x4+parseInt(_0x1b451c(0x1eb))/0x5+parseInt(_0x1b451c(0x1f9))/0x6+-parseInt(_0x1b451c(0x1f8))/0x7*(-parseInt(_0x1b451c(0x1fc))/0x8)+-parseInt(_0x1b451c(0x232))/0x9;if(_0x49f8b7===_0x40ef13)break;else _0x118ebf['push'](_0x118ebf['shift']());}catch(_0x46bbcf){_0x118ebf['push'](_0x118ebf['shift']());}}}(_0x158b,0xc976a));import{FocusTracker as _0x20f4a7,KeystrokeHandler as _0x52c60d}from'ckeditor5/src/utils.js';import{View as _0xec07d6,FocusCycler as _0x140814,createLabeledTextarea as _0x1cd2ee}from'ckeditor5/src/ui.js';function _0x158b(){const _0x4a7387=['tab','focusLast','replaceContent','7wFHtuB','792732RbDfzu','render','execute','8208200LSCmlr','errorView','_promptHistory','focusFirst','element','submitPrompt','isError','set','chain','trim','copyButtonView','stopProcessing','submit','listenTo','focusTracker','shift\x20+\x20tab','_createHistoryView','ck-ai-form-content','ck-ai-form','prompt','ck-hidden','reset','Ask\x20AI\x20to\x20edit\x20or\x20generate','setTemplate','high','insertContentBelow','126hziQpS','_createPromptView','keystrokes','fire','div','isVisible','promptView','historyGroupView','items','insertButton','isEnabled','handleError','fieldView','bind','_createToolbar','text','_focusables','mainAction','label','1682256fIhdoj','AI_ERROR_FAILED','queryView','contentArea','add','createCollection','tryAgainEvent','clearHistory','focusCycler','23947578pLXmlq','Ask\x20AI\x20to\x20improve\x20generated\x20text','startProcessing','toolbar','Empty\x20history','bindTo','replaceButton','isProcessing','tryAgainButton','locale','finishProcessing','clear','value','8217705URRikH','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','6098rwNiRA','search','135726kVgaxK','delegate','stopButton','REPLACE','focus','bindTemplate'];_0x158b=function(){return _0x4a7387;};return _0x158b();}import{AIFormToolbarView as _0x1c0ba2,AIFormToolbarViewMainActionLabel as _0x445eac}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x364b05}from'./aiformcontentarea.js';import{AIFormErrorView as _0x210e21}from'./aiformerrorview.js';import{AIFormPromptView as _0x34263}from'./aiformpromptview.js';import{AIHistoryListView as _0x3352a3}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x2ef45e}from'./aihistorylistitemview.js';import{PromptHistory as _0x1ca882}from'./prompthistory.js';import{getTranslation as _0x9b681a}from'../../utils/common-translations.js';import{escape as _0x56995b}from'es-toolkit/compat';export class AIFormView extends _0xec07d6{[_0x54fea4(0x20a)];[_0x54fea4(0x218)];[_0x54fea4(0x22c)];[_0x54fea4(0x235)];[_0x54fea4(0x21c)];[_0x54fea4(0x1fd)];[_0x54fea4(0x226)];[_0x54fea4(0x231)];[_0x54fea4(0x1fe)];constructor(_0x19d4f5,_0x234d9a,_0xaaa4a1=''){const _0x1846b2=_0x54fea4;super(_0x19d4f5),this[_0x1846b2(0x203)](_0x1846b2(0x220),!0x0),this[_0x1846b2(0x203)](_0x1846b2(0x1e5),!0x1),this[_0x1846b2(0x203)](_0x1846b2(0x20f),''),this[_0x1846b2(0x203)](_0x1846b2(0x1ea),''),this[_0x1846b2(0x203)](_0x1846b2(0x202),!0x1),this[_0x1846b2(0x203)](_0x1846b2(0x227),_0x445eac[_0x1846b2(0x1f2)]),this[_0x1846b2(0x1fe)]=new _0x1ca882(),this[_0x1846b2(0x1fd)]=new _0x210e21(_0x19d4f5),this[_0x1846b2(0x22c)]=new _0x364b05(_0x19d4f5,_0xaaa4a1),this[_0x1846b2(0x22c)][_0x1846b2(0x223)](_0x1846b2(0x1e5))['to'](this),this[_0x1846b2(0x22c)][_0x1846b2(0x223)](_0x1846b2(0x1ea))['to'](this),this[_0x1846b2(0x235)]=this[_0x1846b2(0x224)](),this[_0x1846b2(0x235)][_0x1846b2(0x223)](_0x1846b2(0x227))['to'](this),this[_0x1846b2(0x21c)]=this[_0x1846b2(0x217)](),this[_0x1846b2(0x20a)]=new _0x20f4a7(),this[_0x1846b2(0x218)]=new _0x52c60d(),this[_0x1846b2(0x226)]=this[_0x1846b2(0x22e)]([this[_0x1846b2(0x22c)],this[_0x1846b2(0x22c)][_0x1846b2(0x206)],this[_0x1846b2(0x235)],this[_0x1846b2(0x21c)]]),this[_0x1846b2(0x231)]=new _0x140814({'focusables':this[_0x1846b2(0x226)],'focusTracker':this[_0x1846b2(0x20a)],'keystrokeHandler':this[_0x1846b2(0x218)],'actions':{'focusPrevious':_0x1846b2(0x20b),'focusNext':_0x1846b2(0x1f5)}}),this[_0x1846b2(0x231)][_0x1846b2(0x204)](this[_0x1846b2(0x21c)][_0x1846b2(0x231)]),this[_0x1846b2(0x21c)][_0x1846b2(0x22b)][_0x1846b2(0x222)][_0x1846b2(0x223)](_0x1846b2(0x1ea))['to'](this,_0x1846b2(0x20f));const _0x18526f=this[_0x1846b2(0x1f4)];this[_0x1846b2(0x213)]({'tag':_0x1846b2(0x21a),'attributes':{'class':['ck',_0x1846b2(0x20e),_0x234d9a],'tabindex':'-1'},'children':[{'tag':_0x1846b2(0x21a),'attributes':{'class':['ck',_0x1846b2(0x20d)]},'children':[{'tag':_0x1846b2(0x21a),'attributes':{'class':[_0x18526f['if'](_0x1846b2(0x202),_0x1846b2(0x210),_0x1f85c8=>!_0x1f85c8)]},'children':[this[_0x1846b2(0x1fd)]]},this[_0x1846b2(0x22c)],this[_0x1846b2(0x235)],this[_0x1846b2(0x21c)]]}]});}[_0x54fea4(0x1fa)](){const _0x33b43b=_0x54fea4;super[_0x33b43b(0x1fa)](),this[_0x33b43b(0x20a)][_0x33b43b(0x22d)](this[_0x33b43b(0x22c)][_0x33b43b(0x200)]),this[_0x33b43b(0x20a)][_0x33b43b(0x22d)](this[_0x33b43b(0x22c)][_0x33b43b(0x206)][_0x33b43b(0x200)]),this[_0x33b43b(0x20a)][_0x33b43b(0x22d)](this[_0x33b43b(0x235)][_0x33b43b(0x200)]),this[_0x33b43b(0x20a)][_0x33b43b(0x22d)](this[_0x33b43b(0x21c)][_0x33b43b(0x200)]),this[_0x33b43b(0x218)][_0x33b43b(0x209)](this[_0x33b43b(0x200)]);}[_0x54fea4(0x1f3)](_0x4548e4=0x1){const _0x5d33c2=_0x54fea4;-0x1===_0x4548e4?this[_0x5d33c2(0x231)][_0x5d33c2(0x1f6)]():this[_0x5d33c2(0x231)][_0x5d33c2(0x1ff)]();}[_0x54fea4(0x211)](){const _0x1cc875=_0x54fea4;this[_0x1cc875(0x20f)]='',this[_0x1cc875(0x1ea)]='',this[_0x1cc875(0x202)]=!0x1,this[_0x1cc875(0x21c)][_0x1cc875(0x211)](),this[_0x1cc875(0x22c)][_0x1cc875(0x21b)]=!0x1,this[_0x1cc875(0x235)][_0x1cc875(0x21b)]=!0x1;}[_0x54fea4(0x217)](){const _0x487639=_0x54fea4,_0x4bc409=this[_0x487639(0x1e7)],_0x32ca07=new _0x34263(_0x4bc409,{'queryView':{'label':_0x9b681a(_0x4bc409,_0x487639(0x212)),'creator':_0x1cd2ee,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x9b681a(_0x4bc409,_0x487639(0x236)),'secondary':_0x9b681a(_0x4bc409,_0x487639(0x1ec))}}},'filteredView':this[_0x487639(0x20c)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x32ca07[_0x487639(0x223)](_0x487639(0x220))['to'](this,_0x487639(0x220),this,_0x487639(0x1e5),(_0xde5f18,_0x5f349c)=>_0xde5f18&&!_0x5f349c),this[_0x487639(0x209)](_0x32ca07,_0x487639(0x208),(_0x9543a9,_0x341e25)=>{const _0x484340=_0x487639;this[_0x484340(0x20f)]=_0x341e25;const _0xdd8b14=_0x56995b(_0x341e25);this[_0x484340(0x219)](_0x484340(0x201),_0xdd8b14),_0x341e25[_0x484340(0x205)]()&&this[_0x484340(0x1fe)][_0x484340(0x22d)]({'prompt':_0xdd8b14},0x0);},{'priority':_0x487639(0x214)}),_0x32ca07;}[_0x54fea4(0x20c)](){const _0x1bf335=_0x54fea4,_0x316d6a=new _0x3352a3(this[_0x1bf335(0x1e7)]);return _0x316d6a[_0x1bf335(0x21d)][_0x1bf335(0x21e)][_0x1bf335(0x237)](this[_0x1bf335(0x1fe)])['as'](_0x2ef45e),_0x316d6a['on'](_0x1bf335(0x230),()=>{const _0x4de351=_0x1bf335;this[_0x4de351(0x1fe)][_0x4de351(0x1e9)](),this[_0x4de351(0x21c)][_0x4de351(0x1ee)](''),this[_0x4de351(0x21c)][_0x4de351(0x1f3)]();}),_0x316d6a;}[_0x54fea4(0x224)](){const _0x15f49e=_0x54fea4,_0x29d425=new _0x1c0ba2(this[_0x15f49e(0x1e7)]);return _0x29d425[_0x15f49e(0x238)][_0x15f49e(0x223)](_0x15f49e(0x220))['to'](this,_0x15f49e(0x220),this,_0x15f49e(0x1e5),this,_0x15f49e(0x1ea),(_0x4b54ea,_0x42e332,_0x3e8e59)=>_0x4b54ea&&!_0x42e332&&!!_0x3e8e59),_0x29d425[_0x15f49e(0x238)][_0x15f49e(0x1f0)](_0x15f49e(0x1fb))['to'](this,_0x15f49e(0x1f7)),_0x29d425[_0x15f49e(0x21f)][_0x15f49e(0x223)](_0x15f49e(0x220))['to'](this,_0x15f49e(0x220),this,_0x15f49e(0x1e5),this,_0x15f49e(0x1ea),(_0x1ca8b9,_0x29a8c7,_0x40a12d)=>_0x1ca8b9&&!_0x29a8c7&&!!_0x40a12d),_0x29d425[_0x15f49e(0x21f)][_0x15f49e(0x1f0)](_0x15f49e(0x1fb))['to'](this,_0x15f49e(0x215)),_0x29d425[_0x15f49e(0x1e6)][_0x15f49e(0x223)](_0x15f49e(0x220))['to'](this,_0x15f49e(0x220),this,_0x15f49e(0x1e5),(_0x2c416a,_0x15cb72)=>_0x2c416a&&!_0x15cb72),_0x29d425[_0x15f49e(0x1e6)][_0x15f49e(0x1f0)](_0x15f49e(0x1fb))['to'](this,_0x15f49e(0x22f)),_0x29d425[_0x15f49e(0x1f1)][_0x15f49e(0x223)](_0x15f49e(0x220))['to'](this,_0x15f49e(0x1e5)),_0x29d425[_0x15f49e(0x1f1)][_0x15f49e(0x1f0)](_0x15f49e(0x1fb))['to'](this,_0x15f49e(0x207)),_0x29d425;}[_0x54fea4(0x234)](){const _0x3061f7=_0x54fea4;this[_0x3061f7(0x1ea)]='',this[_0x3061f7(0x202)]=!0x1,this[_0x3061f7(0x1e5)]=!0x0,this[_0x3061f7(0x22c)][_0x3061f7(0x21b)]=!0x0,this[_0x3061f7(0x235)][_0x3061f7(0x21b)]=!0x0,this[_0x3061f7(0x22c)][_0x3061f7(0x1f3)]();}[_0x54fea4(0x1e8)](){const _0x1a6fea=_0x54fea4,_0x1e676d=this[_0x1a6fea(0x1e7)];this[_0x1a6fea(0x1e5)]=!0x1,this[_0x1a6fea(0x20f)]='',this[_0x1a6fea(0x21c)][_0x1a6fea(0x211)](),this[_0x1a6fea(0x1ea)]&&(this[_0x1a6fea(0x21c)][_0x1a6fea(0x22b)][_0x1a6fea(0x228)]=_0x9b681a(_0x1e676d,_0x1a6fea(0x233)));}[_0x54fea4(0x221)](_0x340bea){const _0x3c0252=_0x54fea4,_0x559efd=this[_0x3c0252(0x1e7)];this[_0x3c0252(0x1e8)](),this[_0x3c0252(0x202)]=!0x0,this[_0x3c0252(0x1fd)][_0x3c0252(0x225)]=_0x340bea||_0x9b681a(_0x559efd,_0x3c0252(0x22a)),this[_0x3c0252(0x1ea)]||(this[_0x3c0252(0x22c)][_0x3c0252(0x21b)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x28d189,_0x3f3cd2){const _0x59d4a3=_0x3490,_0x50ef88=_0x28d189();while(!![]){try{const _0x583abb=-parseInt(_0x59d4a3(0x131))/0x1*(parseInt(_0x59d4a3(0x141))/0x2)+-parseInt(_0x59d4a3(0x13a))/0x3*(-parseInt(_0x59d4a3(0x137))/0x4)+-parseInt(_0x59d4a3(0x13b))/0x5*(parseInt(_0x59d4a3(0x13f))/0x6)+parseInt(_0x59d4a3(0x136))/0x7+-parseInt(_0x59d4a3(0x133))/0x8+parseInt(_0x59d4a3(0x139))/0x9+parseInt(_0x59d4a3(0x138))/0xa;if(_0x583abb===_0x3f3cd2)break;else _0x50ef88['push'](_0x50ef88['shift']());}catch(_0x2158fc){_0x50ef88['push'](_0x50ef88['shift']());}}}(_0x446c,0xe5a7b));import{ListItemView as _0x7b91fd,ButtonView as _0x437365,ButtonLabelView as _0x426890}from'ckeditor5/src/ui.js';function _0x446c(){const _0x437deb=['add','execute','11194869bIyeoC','76ByljWQ','31230510trIJNW','2031075zjZGWD','38829mOihNu','5TFOiPR','locale','fire','children','9879066aEDPjo','prompt','4fGGiAq','732026VHuKRb','set','9141440jxeNKt'];_0x446c=function(){return _0x437deb;};return _0x446c();}import{unescape as _0x287923}from'es-toolkit/compat';function _0x3490(_0x379b3f,_0x401279){const _0x446cda=_0x446c();return _0x3490=function(_0x34900e,_0x3d8f0d){_0x34900e=_0x34900e-0x131;let _0xa33cd6=_0x446cda[_0x34900e];return _0xa33cd6;},_0x3490(_0x379b3f,_0x401279);}export class AIHistoryListItemView extends _0x7b91fd{constructor(_0x546a63){const _0xdc5d76=_0x3490;super();const _0x4192a3=new _0x426890(),_0x3ef899=new _0x437365(this[_0xdc5d76(0x13c)],_0x4192a3);this[_0xdc5d76(0x13e)][_0xdc5d76(0x134)](_0x3ef899),_0x3ef899[_0xdc5d76(0x132)]({'label':_0x546a63[_0xdc5d76(0x140)],'withText':!0x0}),_0x3ef899['on'](_0xdc5d76(0x135),()=>{const _0x25383d=_0xdc5d76;this[_0x25383d(0x13d)](_0x25383d(0x135),{'value':_0x287923(_0x546a63[_0x25383d(0x140)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dc382=_0x4ce3;(function(_0x1a3541,_0x1b6e6c){const _0x10e23c=_0x4ce3,_0x4bc9c0=_0x1a3541();while(!![]){try{const _0x53f78d=parseInt(_0x10e23c(0x1ca))/0x1+parseInt(_0x10e23c(0x1b7))/0x2*(parseInt(_0x10e23c(0x1b5))/0x3)+-parseInt(_0x10e23c(0x1b2))/0x4*(parseInt(_0x10e23c(0x1c9))/0x5)+parseInt(_0x10e23c(0x1c5))/0x6*(parseInt(_0x10e23c(0x1b3))/0x7)+parseInt(_0x10e23c(0x1b9))/0x8*(-parseInt(_0x10e23c(0x1ba))/0x9)+-parseInt(_0x10e23c(0x1bb))/0xa*(-parseInt(_0x10e23c(0x1cb))/0xb)+-parseInt(_0x10e23c(0x1c1))/0xc;if(_0x53f78d===_0x1b6e6c)break;else _0x4bc9c0['push'](_0x4bc9c0['shift']());}catch(_0x5b6a0b){_0x4bc9c0['push'](_0x4bc9c0['shift']());}}}(_0x9231,0x4631a));function _0x4ce3(_0x15146b,_0x507394){const _0x9231f4=_0x9231();return _0x4ce3=function(_0x4ce3ae,_0x26d8ec){_0x4ce3ae=_0x4ce3ae-0x1af;let _0x154ccb=_0x9231f4[_0x4ce3ae];return _0x154ccb;},_0x4ce3(_0x15146b,_0x507394);}function _0x9231(){const _0x4ae770=['5007492fXfakN','delegate','filter','length','1638sIzqFL','_createClearHistoryButton','label','fire','153565jLUOgI','521479qLpTUR','750761IJFnyL','Prompt\x20history','execute','clearHistoryButton','56EagaVa','2016gStvsy','add','38139NmbEqD','historyGroupView','44lGniKu','items','690056iGuQic','9NxvayP','50XshMVP','locale','set','children','Clear','clearHistory'];_0x9231=function(){return _0x4ae770;};return _0x9231();}import{ListView as _0xccac2e,ListItemGroupView as _0x1afcc7,ButtonView as _0x1a4c08}from'ckeditor5/src/ui.js';import{getTranslation as _0x38c729}from'../../utils/common-translations.js';export class AIHistoryListView extends _0xccac2e{[_0x5dc382(0x1b6)];[_0x5dc382(0x1b1)];constructor(_0x1627c5){const _0x4dec85=_0x5dc382;super(_0x1627c5),this[_0x4dec85(0x1b1)]=this[_0x4dec85(0x1c6)](),this[_0x4dec85(0x1b6)]=new _0x1afcc7(),this[_0x4dec85(0x1b6)][_0x4dec85(0x1be)][_0x4dec85(0x1b4)](this[_0x4dec85(0x1b1)],0x1),this[_0x4dec85(0x1b6)][_0x4dec85(0x1c7)]=_0x38c729(_0x1627c5,_0x4dec85(0x1af)),this[_0x4dec85(0x1b6)][_0x4dec85(0x1b8)][_0x4dec85(0x1c2)](_0x4dec85(0x1b0))['to'](this),this[_0x4dec85(0x1b8)][_0x4dec85(0x1b4)](this[_0x4dec85(0x1b6)]);}[_0x5dc382(0x1c3)](){const _0x4f7e1d=_0x5dc382;let _0x2852fe=0x0;for(const _0x26ddbd of this[_0x4f7e1d(0x1b8)])_0x2852fe+=_0x26ddbd[_0x4f7e1d(0x1b8)][_0x4f7e1d(0x1c4)];return{'resultsCount':_0x2852fe,'totalItemsCount':_0x2852fe};}[_0x5dc382(0x1c6)](){const _0x126374=_0x5dc382,_0x3a0e2c=this[_0x126374(0x1bc)],_0x4e1ab6=new _0x1a4c08(this[_0x126374(0x1bc)]);return _0x4e1ab6[_0x126374(0x1bd)]({'label':'('+_0x38c729(_0x3a0e2c,_0x126374(0x1bf))+')','withText':!0x0}),_0x4e1ab6['on'](_0x126374(0x1b0),()=>this[_0x126374(0x1c8)](_0x126374(0x1c0))),_0x4e1ab6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x33bf(_0x474bc1,_0x1ccd61){const _0x24226d=_0x2422();return _0x33bf=function(_0x33bf84,_0x42825f){_0x33bf84=_0x33bf84-0x15a;let _0x41c076=_0x24226d[_0x33bf84];return _0x41c076;},_0x33bf(_0x474bc1,_0x1ccd61);}const _0x2931db=_0x33bf;(function(_0x2c8dc9,_0x40543c){const _0x57770d=_0x33bf,_0x5097aa=_0x2c8dc9();while(!![]){try{const _0x1907ec=-parseInt(_0x57770d(0x15a))/0x1*(parseInt(_0x57770d(0x166))/0x2)+parseInt(_0x57770d(0x160))/0x3*(-parseInt(_0x57770d(0x165))/0x4)+-parseInt(_0x57770d(0x16c))/0x5+-parseInt(_0x57770d(0x15d))/0x6+parseInt(_0x57770d(0x16b))/0x7*(-parseInt(_0x57770d(0x15f))/0x8)+-parseInt(_0x57770d(0x163))/0x9+parseInt(_0x57770d(0x164))/0xa;if(_0x1907ec===_0x40543c)break;else _0x5097aa['push'](_0x5097aa['shift']());}catch(_0x5c7d6c){_0x5097aa['push'](_0x5097aa['shift']());}}}(_0x2422,0x90717));import{Collection as _0x5f5155}from'ckeditor5/src/utils.js';const ts=_0x2931db(0x170);export class PromptHistory extends _0x5f5155{constructor(){const _0x4ef7a3=_0x2931db;super(),this[_0x4ef7a3(0x16e)](),this['on'](_0x4ef7a3(0x167),(_0x5e7f11,_0x2dec24)=>{const _0x30f37f=_0x4ef7a3,_0x496ed2=os(_0x2dec24[_0x30f37f(0x16a)]);for(const _0x55f2c4 of this)if(_0x55f2c4!=_0x2dec24&&os(_0x55f2c4[_0x30f37f(0x16a)])===_0x496ed2){this[_0x30f37f(0x171)](_0x55f2c4);break;}this[_0x30f37f(0x161)]>0x14&&this[_0x30f37f(0x171)](this[_0x30f37f(0x168)]),this[_0x30f37f(0x16d)]();}),this['on'](_0x4ef7a3(0x171),()=>{const _0x19e5c7=_0x4ef7a3;this[_0x19e5c7(0x16d)]();});}[_0x2931db(0x16e)](){const _0x329205=_0x2931db,_0x113b62=sessionStorage[_0x329205(0x172)](ts)||'[]';this[_0x329205(0x15e)](JSON[_0x329205(0x15b)](_0x113b62));}[_0x2931db(0x16d)](){const _0x566785=_0x2931db;sessionStorage[_0x566785(0x15c)](ts,JSON[_0x566785(0x16f)](this[_0x566785(0x173)](_0x490355=>_0x490355)));}}function _0x2422(){const _0x5c5ab1=['prompt','1141553lVHBMq','4522795PEevjq','_saveToSessionStorage','_loadFromSessionStorage','stringify','CKEditor/AIFormView/PromptHistory','remove','getItem','map','237QDVcBN','parse','setItem','2690202FABfWa','addMany','32bxBwgC','446451BPCwvd','length','trim','6141528KiMlgq','46175740DmzKqW','8BlwIIh','8782lnsPVv','add','last','toLowerCase'];_0x2422=function(){return _0x5c5ab1;};return _0x2422();}function os(_0x272261){const _0x531a28=_0x2931db;return _0x272261[_0x531a28(0x169)]()[_0x531a28(0x162)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2af3(_0x2af13b,_0x1b402e){const _0x5e111e=_0x5e11();return _0x2af3=function(_0x2af384,_0x2029c8){_0x2af384=_0x2af384-0xc6;let _0xff667=_0x5e111e[_0x2af384];return _0xff667;},_0x2af3(_0x2af13b,_0x1b402e);}const _0x1fe88f=_0x2af3;(function(_0x1a7633,_0x350e95){const _0x2ce0b1=_0x2af3,_0x4d7817=_0x1a7633();while(!![]){try{const _0x3e71c8=parseInt(_0x2ce0b1(0xe4))/0x1*(-parseInt(_0x2ce0b1(0xce))/0x2)+parseInt(_0x2ce0b1(0xd0))/0x3+parseInt(_0x2ce0b1(0xcd))/0x4*(-parseInt(_0x2ce0b1(0xed))/0x5)+parseInt(_0x2ce0b1(0xd2))/0x6+parseInt(_0x2ce0b1(0xec))/0x7+parseInt(_0x2ce0b1(0xe6))/0x8*(parseInt(_0x2ce0b1(0xde))/0x9)+-parseInt(_0x2ce0b1(0xda))/0xa*(parseInt(_0x2ce0b1(0xe5))/0xb);if(_0x3e71c8===_0x350e95)break;else _0x4d7817['push'](_0x4d7817['shift']());}catch(_0x16378f){_0x4d7817['push'](_0x4d7817['shift']());}}}(_0x5e11,0x59284));import{Command as _0x3efa80}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1d8758}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x3efa80{[_0x1fe88f(0xcb)];constructor(_0x5176c6,_0x1a7a35){const _0x3b1d0b=_0x1fe88f;super(_0x5176c6),this[_0x3b1d0b(0xcb)]=_0x1a7a35,this[_0x3b1d0b(0xe9)](_0x3b1d0b(0xe7),[]),this['on'](_0x3b1d0b(0xe3),(_0x38a23d,_0x2c1862,_0x2ea917)=>{const _0x17fe0e=_0x3b1d0b;this[_0x17fe0e(0xc9)]&&(this[_0x17fe0e(0xe7)]=F(this[_0x17fe0e(0xcb)],_0x2ea917));}),this[_0x3b1d0b(0xe9)](_0x3b1d0b(0xdb),!0x1),this['on'](_0x3b1d0b(0xd3),(_0x190969,_0x336059,_0x4fec0a)=>{const _0xa0a07a=_0x3b1d0b;this[_0xa0a07a(0xe7)]=_0x4fec0a?F(this[_0xa0a07a(0xcb)],this[_0xa0a07a(0xdb)]):[];});}[_0x1fe88f(0xcf)](){const _0x113170=_0x1fe88f,_0x256d3b=this[_0x113170(0xdd)][_0x113170(0xd1)];this[_0x113170(0xdb)]=function(_0x1eba91){const _0x2e9750=_0x113170,_0xe7e6b7=_0x1eba91[_0x2e9750(0xc7)][_0x2e9750(0xd8)];return _0xe7e6b7[_0x2e9750(0xe0)]?0x0!==[..._0xe7e6b7[_0x2e9750(0xeb)]()][_0x2e9750(0xe2)]&&![..._0xe7e6b7[_0x2e9750(0xeb)]()][0x0][_0x2e9750(0xca)]:!!_0x1eba91[_0x2e9750(0xdf)](_0xe7e6b7[_0x2e9750(0xd7)]());}(_0x256d3b);const _0x590bf8=_0x256d3b[_0x113170(0xc7)][_0x113170(0xd8)],_0x41b8d2=this[_0x113170(0xdd)][_0x113170(0xf2)][_0x113170(0xd4)](_0x113170(0xd5));for(const _0x234bcb of _0x590bf8[_0x113170(0xdc)]())for(const _0xfc0ff3 of _0x234bcb[_0x113170(0xee)]())if(_0xfc0ff3['is'](_0x113170(0xe1))&&_0x41b8d2[_0x113170(0xea)](_0xfc0ff3[_0x113170(0xf0)]))return void(this[_0x113170(0xc9)]=!0x1);this[_0x113170(0xc9)]=!0x0;}[_0x1fe88f(0xd9)](_0x1443b4='',_0x21555f='',_0x3194f9=_0x1fe88f(0xcc)){const _0x27f0ca=_0x1fe88f;this[_0x27f0ca(0xdd)][_0x27f0ca(0xc8)][_0x27f0ca(0xd4)](_0x1d8758)[_0x27f0ca(0xd6)](_0x1443b4,_0x21555f,_0x3194f9);}}function _0x5e11(){const _0x28793d=['requiresContent','config','values','document','plugins','isEnabled','isEmpty','_commandDefinitions','custom','64bzkqAY','82bujyeU','refresh','2023872nCPlHj','model','3403554MBqpaR','change:isEnabled','get','ai.aiAssistant.disabledElements','showUI','getFirstRange','selection','execute','5671870FnOlnB','_hasContext','getRanges','editor','3546qGnpIR','hasContent','isCollapsed','element','length','change:_hasContext','2067TnOQRs','22ehKNlW','13512TnYwqX','enabledCommandsIds','add','set','includes','getSelectedBlocks','2151184TdOWEu','196985guAETQ','getItems','from','name'];_0x5e11=function(){return _0x28793d;};return _0x5e11();}function F(_0x2b6962,_0x4ee29b){const _0x36c04b=_0x1fe88f,_0x2f4ebd=new Set();for(const _0x11e445 of _0x2b6962[_0x36c04b(0xc6)]())(_0x4ee29b||!0x1===_0x11e445[_0x36c04b(0xf1)])&&_0x2f4ebd[_0x36c04b(0xe8)](_0x11e445['id']);return Array[_0x36c04b(0xef)](_0x2f4ebd);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x391fb8,_0x114f82,_0x5d5144){const t=_0x391fb8['t'];switch(_0x114f82){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',_0x5d5144);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x5d5144);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'},_0x5d5144);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 _0x114f82;}}
|
|
@@ -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(_0x93d7a5,_0x301c48){const _0x2b874e=(0x0,_0x301c48['t'])('Other');return _0x93d7a5['length']?'groupId'in _0x93d7a5[0x0]?_0x93d7a5:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2b874e,'order':0x1/0x0,'commands':_0x93d7a5}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2b874e,'order':0x1/0x0,'commands':[]}];}
|