@ckeditor/ckeditor5-ai 46.0.2-alpha.0 → 46.0.2
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 _0x159426=_0x38f3;(function(_0x4750f5,_0x6d4900){const _0x3ebab4=_0x38f3,_0x104159=_0x4750f5();while(!![]){try{const _0x5a85e0=parseInt(_0x3ebab4(0x1e1))/0x1*(-parseInt(_0x3ebab4(0x1f3))/0x2)+parseInt(_0x3ebab4(0x1e6))/0x3*(-parseInt(_0x3ebab4(0x1d1))/0x4)+-parseInt(_0x3ebab4(0x1ea))/0x5*(-parseInt(_0x3ebab4(0x20b))/0x6)+-parseInt(_0x3ebab4(0x1f7))/0x7*(-parseInt(_0x3ebab4(0x1f1))/0x8)+parseInt(_0x3ebab4(0x1fb))/0x9+parseInt(_0x3ebab4(0x201))/0xa+-parseInt(_0x3ebab4(0x1da))/0xb*(parseInt(_0x3ebab4(0x1de))/0xc);if(_0x5a85e0===_0x6d4900)break;else _0x104159['push'](_0x104159['shift']());}catch(_0x5d5832){_0x104159['push'](_0x104159['shift']());}}}(_0x2eac,0xb5827));import{Rect as _0x46a956,global as _0x23f441,isVisible as _0x58fdcc}from'ckeditor5/src/utils.js';import{IconHistory as _0xf834ab,IconSubmit as _0x4f5bc2}from'ckeditor5/src/icons.js';function _0x38f3(_0x232121,_0x44aa26){const _0x2eacbd=_0x2eac();return _0x38f3=function(_0x38f300,_0x14ccc0){_0x38f300=_0x38f300-0x1d1;let _0x4c005b=_0x2eacbd[_0x38f300];return _0x4c005b;},_0x38f3(_0x232121,_0x44aa26);}import{AutocompleteView as _0x21ffb9,ButtonView as _0x492464}from'ckeditor5/src/ui.js';import{getTranslation as _0x591fe6}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x21ffb9{[_0x159426(0x1e7)];[_0x159426(0x1fe)];constructor(_0x36de00,_0x386296){const _0x368c43=_0x159426;super(_0x36de00,_0x386296),this[_0x368c43(0x1f2)][_0x368c43(0x1d5)][_0x368c43(0x1d3)]=0x1,this[_0x368c43(0x1f2)][_0x368c43(0x1d5)][_0x368c43(0x203)]=0x3,this[_0x368c43(0x1e7)]=this[_0x368c43(0x1dd)](),this[_0x368c43(0x1fe)]=this[_0x368c43(0x1f0)](),this[_0x368c43(0x1f9)][_0x368c43(0x1e0)](this[_0x368c43(0x1fe)],0x1),this[_0x368c43(0x1f9)][_0x368c43(0x1e0)](this[_0x368c43(0x1e7)]);}[_0x159426(0x1ec)](){const _0x744630=_0x159426;super[_0x744630(0x1ec)](),this[_0x744630(0x1f2)][_0x744630(0x1f8)][_0x744630(0x1e0)](this[_0x744630(0x1fe)]),this[_0x744630(0x204)][_0x744630(0x1e0)](this[_0x744630(0x1e7)]),this[_0x744630(0x1d7)][_0x744630(0x1e8)](_0x744630(0x1ff),(_0x43eb29,_0x2e6da4)=>{const _0x50ceb3=_0x744630;_0x43eb29[_0x50ceb3(0x205)]==this[_0x50ceb3(0x1f2)][_0x50ceb3(0x1d5)][_0x50ceb3(0x1ee)]&&(this[_0x50ceb3(0x1ef)](),_0x2e6da4());});}[_0x159426(0x1dd)](){const _0x12f98a=_0x159426,_0x6e70b7=new _0x492464(this[_0x12f98a(0x207)]),_0xb4846c=this[_0x12f98a(0x207)];return _0x6e70b7[_0x12f98a(0x1e8)]({'icon':_0x4f5bc2,'label':_0x591fe6(_0xb4846c,_0x12f98a(0x20a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x12f98a(0x1db)}),_0x6e70b7['on'](_0x12f98a(0x208),()=>{const _0x558022=_0x12f98a;this[_0x558022(0x1ef)]();}),_0x6e70b7[_0x12f98a(0x1e4)](_0x12f98a(0x1eb))['to'](this[_0x12f98a(0x1f2)][_0x12f98a(0x1d5)],_0x12f98a(0x1e5),this,_0x12f98a(0x1eb),(_0x439316,_0x5d3bb8)=>!_0x439316&&_0x5d3bb8),_0x6e70b7;}[_0x159426(0x1f0)](){const _0x4dd70d=_0x159426,_0x12e6dd=new _0x492464(this[_0x4dd70d(0x207)]),_0x3443a1=this[_0x4dd70d(0x1df)],_0x4f504f=this[_0x4dd70d(0x207)];_0x12e6dd[_0x4dd70d(0x1e8)]({'label':_0x591fe6(_0x4f504f,_0x4dd70d(0x1d2)),'withText':!0x1,'icon':_0xf834ab,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4dd70d(0x1d8)}),_0x12e6dd[_0x4dd70d(0x1e4)](_0x4dd70d(0x1f6))['to'](_0x3443a1,_0x4dd70d(0x1f4)),_0x12e6dd[_0x4dd70d(0x1e4)](_0x4dd70d(0x1eb))['to'](this,_0x4dd70d(0x1eb)),_0x12e6dd['on'](_0x4dd70d(0x208),()=>{const _0x15602d=_0x4dd70d;_0x3443a1[_0x15602d(0x1f4)]=!_0x3443a1[_0x15602d(0x1f4)],_0x3443a1[_0x15602d(0x1f4)]?this[_0x15602d(0x1d6)][_0x15602d(0x1d4)]():this[_0x15602d(0x1d4)]();});const _0x388f61=()=>{const _0x2f6ae4=_0x4dd70d;_0x23f441[_0x2f6ae4(0x1dc)][_0x2f6ae4(0x1fc)](()=>{const _0x431db7=_0x2f6ae4;if(_0x58fdcc(this[_0x431db7(0x1ee)])){const _0x349ec9=new _0x46a956(this[_0x431db7(0x1f2)][_0x431db7(0x1d5)][_0x431db7(0x1ee)]),_0x31a94d=_0x349ec9[_0x431db7(0x1e2)],_0x2ead20=_0x431db7(0x1ed)===_0x4f504f[_0x431db7(0x209)]?_0x431db7(0x1fa):_0x431db7(0x202);_0x349ec9[_0x431db7(0x1fd)](),_0x12e6dd[_0x431db7(0x1ee)][_0x431db7(0x1f5)][_0x2ead20]=_0x31a94d-_0x349ec9[_0x431db7(0x1e2)]+0x1+'px';}});};return this[_0x4dd70d(0x1f2)][_0x4dd70d(0x1d5)]['on'](_0x4dd70d(0x1e9),_0x388f61),this['on'](_0x4dd70d(0x1ec),_0x388f61),_0x12e6dd;}[_0x159426(0x1ef)](){const _0xabcf91=_0x159426,_0x4ce5c3=this[_0xabcf91(0x1f2)][_0xabcf91(0x1d5)][_0xabcf91(0x1ee)][_0xabcf91(0x206)];this[_0xabcf91(0x20c)](_0xabcf91(0x1ef),_0x4ce5c3);}[_0x159426(0x1d4)](_0x37d7b5){const _0x34518c=_0x159426;-0x1===_0x37d7b5?this[_0x34518c(0x1e3)][_0x34518c(0x1d9)]():this[_0x34518c(0x1e3)][_0x34518c(0x200)]();}}function _0x2eac(){const _0x57bed2=['rtl','element','submit','_createShowHistoryButton','1882696aKvYHh','queryView','38Qkjldy','isVisible','style','isOn','7MxuaVx','fieldWrapperChildren','focusableChildren','left','12960567wiKnSg','requestAnimationFrame','excludeScrollbarsAndBorders','showHistoryButtonView','enter','focusFirst','9142830LulMsy','right','maxRows','children','target','value','locale','execute','uiLanguageDirection','Submit','750588LOxNQU','fire','16BaKACf','History','minRows','focus','fieldView','filteredView','keystrokes','ck-ai-form__toggle-history','focusLast','11hPafgZ','ck-ai-form__submit','window','_createSubmitButton','9123468uRKwMf','resultsView','add','40879dGnXyL','width','focusCycler','bind','isEmpty','888687awBDsO','submitButtonView','set','update','35YROjpW','isEnabled','render'];_0x2eac=function(){return _0x57bed2;};return _0x2eac();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x430973=_0x191d;function _0x1c74(){const _0x263442=['replaceButton','addMany','595845bowURB','extendTemplate','label','locale','280129MunKLg','set','bind','ck-button-action','isVisible','bindTemplate','16TSiVbd','1922272TDQUXg','insert','tryAgainButton','_CONTENT','replace','AI_','Insert\x20below','_createButton','REPLACE','Try\x20again','7123356MWXgnD','Stop','insertButton','1099uxsZye','ck-hidden','toUpperCase','items','stopButton','2462635OEVgKV','17022ItVbpm','ck-ai-form__toolbar','mainAction','126490HXujOI'];_0x1c74=function(){return _0x263442;};return _0x1c74();}(function(_0x1618a0,_0x5b8900){const _0x449c9c=_0x191d,_0x4a2bbf=_0x1618a0();while(!![]){try{const _0x3a303e=parseInt(_0x449c9c(0xd5))/0x1+-parseInt(_0x449c9c(0xf2))/0x2+parseInt(_0x449c9c(0xf5))/0x3+parseInt(_0x449c9c(0xdc))/0x4+parseInt(_0x449c9c(0xee))/0x5+-parseInt(_0x449c9c(0xef))/0x6*(-parseInt(_0x449c9c(0xe9))/0x7)+parseInt(_0x449c9c(0xdb))/0x8*(-parseInt(_0x449c9c(0xe6))/0x9);if(_0x3a303e===_0x5b8900)break;else _0x4a2bbf['push'](_0x4a2bbf['shift']());}catch(_0x2a3f46){_0x4a2bbf['push'](_0x4a2bbf['shift']());}}}(_0x1c74,0x3d49b));function _0x191d(_0xac0eab,_0x4bbe4d){const _0x1c746c=_0x1c74();return _0x191d=function(_0x191d73,_0x1baa71){_0x191d73=_0x191d73-0xd3;let _0x2e3c81=_0x1c746c[_0x191d73];return _0x2e3c81;},_0x191d(_0xac0eab,_0x4bbe4d);}import{ToolbarView as _0x397f2b,ButtonView as _0x1c0347}from'ckeditor5/src/ui.js';import{getTranslation as _0x147c52}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x430973(0xe0),'INSERT':_0x430973(0xdd)};export class AIFormToolbarView extends _0x397f2b{constructor(_0x1fa69e){const _0x4566ed=_0x430973;super(_0x1fa69e),this[_0x4566ed(0xd6)](_0x4566ed(0xd9),!0x1),this[_0x4566ed(0xd6)](_0x4566ed(0xf1),AIFormToolbarViewMainActionLabel[_0x4566ed(0xe4)]),this[_0x4566ed(0xf3)]=this[_0x4566ed(0xe3)]('',_0x4566ed(0xd8)),this[_0x4566ed(0xf3)][_0x4566ed(0xd7)](_0x4566ed(0xd3))['to'](this,_0x4566ed(0xf1),_0x53c505=>_0x147c52(_0x1fa69e,_0x4566ed(0xe1)+_0x53c505[_0x4566ed(0xeb)]()+_0x4566ed(0xdf))),this[_0x4566ed(0xe8)]=this[_0x4566ed(0xe3)](_0x147c52(_0x1fa69e,_0x4566ed(0xe2))),this[_0x4566ed(0xde)]=this[_0x4566ed(0xe3)](_0x147c52(_0x1fa69e,_0x4566ed(0xe5))),this[_0x4566ed(0xed)]=this[_0x4566ed(0xe3)](_0x147c52(_0x1fa69e,_0x4566ed(0xe7)));const _0x3a50ba=this[_0x4566ed(0xda)];this[_0x4566ed(0xf6)]({'attributes':{'class':[_0x4566ed(0xf0),_0x3a50ba['if'](_0x4566ed(0xd9),_0x4566ed(0xea),_0x5e28bc=>!_0x5e28bc)]}}),this[_0x4566ed(0xec)][_0x4566ed(0xf4)]([this[_0x4566ed(0xf3)],this[_0x4566ed(0xe8)],this[_0x4566ed(0xde)],this[_0x4566ed(0xed)]]);}[_0x430973(0xe3)](_0x4d63dc,_0x1ef164){const _0x2ecde1=_0x430973,_0x209ac1=new _0x1c0347(this[_0x2ecde1(0xd4)]);return _0x209ac1[_0x2ecde1(0xd6)]({'label':_0x4d63dc,'class':_0x1ef164||'','isVisible':!0x0,'withText':!0x0}),_0x209ac1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5aa6(){const _0x2507ce=['finishProcessing','bind','8PBUgAq','clearHistory','promptView','insertContentBelow','isVisible','stopProcessing','add','chain','34207190BGympS','reset','Ask\x20AI\x20to\x20edit\x20or\x20generate','2255135yXDyix','focusTracker','replaceContent','set','9189498UrhmKP','label','_promptHistory','bindTemplate','replaceButton','search','11749572gazMBZ','focusFirst','stopButton','_focusables','ck-ai-form-content','setTemplate','keystrokes','tryAgainEvent','historyGroupView','toolbar','render','element','bindTo','AI_ERROR_FAILED','Ask\x20AI\x20to\x20improve\x20generated\x20text','items','_createToolbar','shift\x20+\x20tab','isProcessing','queryView','createCollection','REPLACE','contentArea','clear','execute','insertButton','focusLast','293078uUOomx','mainAction','isError','startProcessing','tab','Empty\x20history','trim','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','ck-ai-form','fieldView','_createHistoryView','submitPrompt','high','8766168IfQfCU','errorView','focus','fire','div','copyButtonView','submit','364sicvyn','listenTo','48210gEuzNV','locale','handleError','text','delegate','isEnabled','value','tryAgainButton','ck-hidden','_createPromptView','focusCycler','7CknQqE','prompt'];_0x5aa6=function(){return _0x2507ce;};return _0x5aa6();}const _0x1a42b6=_0x3cf6;(function(_0x15c215,_0xf110cc){const _0x29d37f=_0x3cf6,_0x3d1e7a=_0x15c215();while(!![]){try{const _0x3d2212=-parseInt(_0x29d37f(0xee))/0x1*(-parseInt(_0x29d37f(0x113))/0x2)+-parseInt(_0x29d37f(0x104))/0x3*(-parseInt(_0x29d37f(0x102))/0x4)+parseInt(_0x29d37f(0x11e))/0x5+-parseInt(_0x29d37f(0x122))/0x6*(-parseInt(_0x29d37f(0x10f))/0x7)+parseInt(_0x29d37f(0xfb))/0x8+-parseInt(_0x29d37f(0x128))/0x9+-parseInt(_0x29d37f(0x11b))/0xa;if(_0x3d2212===_0xf110cc)break;else _0x3d1e7a['push'](_0x3d1e7a['shift']());}catch(_0x9885c9){_0x3d1e7a['push'](_0x3d1e7a['shift']());}}}(_0x5aa6,0xf0ed4));import{FocusTracker as _0x41069f,KeystrokeHandler as _0x5191de}from'ckeditor5/src/utils.js';import{View as _0x12047f,FocusCycler as _0x31429d,createLabeledTextarea as _0x2932de}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x52eb7f,AIFormToolbarViewMainActionLabel as _0x1ff994}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x54a230}from'./aiformcontentarea.js';import{AIFormErrorView as _0x2a00f3}from'./aiformerrorview.js';import{AIFormPromptView as _0x2ddcfe}from'./aiformpromptview.js';import{AIHistoryListView as _0x5bbccf}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x59b78a}from'./aihistorylistitemview.js';function _0x3cf6(_0x456946,_0x3ab905){const _0x5aa60b=_0x5aa6();return _0x3cf6=function(_0x3cf640,_0x29b159){_0x3cf640=_0x3cf640-0xdd;let _0x433633=_0x5aa60b[_0x3cf640];return _0x433633;},_0x3cf6(_0x456946,_0x3ab905);}import{PromptHistory as _0x3768dd}from'./prompthistory.js';import{getTranslation as _0x2c94de}from'../../utils/common-translations.js';import{escape as _0x3960f0}from'es-toolkit/compat';export class AIFormView extends _0x12047f{[_0x1a42b6(0x11f)];[_0x1a42b6(0x12e)];[_0x1a42b6(0xe9)];[_0x1a42b6(0x131)];[_0x1a42b6(0x115)];[_0x1a42b6(0xfc)];[_0x1a42b6(0x12b)];[_0x1a42b6(0x10e)];[_0x1a42b6(0x124)];constructor(_0x30ab13,_0x2f888a,_0x25cc16=''){const _0x4691b6=_0x1a42b6;super(_0x30ab13),this[_0x4691b6(0x121)](_0x4691b6(0x109),!0x0),this[_0x4691b6(0x121)](_0x4691b6(0xe5),!0x1),this[_0x4691b6(0x121)](_0x4691b6(0x110),''),this[_0x4691b6(0x121)](_0x4691b6(0x10a),''),this[_0x4691b6(0x121)](_0x4691b6(0xf0),!0x1),this[_0x4691b6(0x121)](_0x4691b6(0xef),_0x1ff994[_0x4691b6(0xe8)]),this[_0x4691b6(0x124)]=new _0x3768dd(),this[_0x4691b6(0xfc)]=new _0x2a00f3(_0x30ab13),this[_0x4691b6(0xe9)]=new _0x54a230(_0x30ab13,_0x25cc16),this[_0x4691b6(0xe9)][_0x4691b6(0x112)](_0x4691b6(0xe5))['to'](this),this[_0x4691b6(0xe9)][_0x4691b6(0x112)](_0x4691b6(0x10a))['to'](this),this[_0x4691b6(0x131)]=this[_0x4691b6(0xe3)](),this[_0x4691b6(0x131)][_0x4691b6(0x112)](_0x4691b6(0xef))['to'](this),this[_0x4691b6(0x115)]=this[_0x4691b6(0x10d)](),this[_0x4691b6(0x11f)]=new _0x41069f(),this[_0x4691b6(0x12e)]=new _0x5191de(),this[_0x4691b6(0x12b)]=this[_0x4691b6(0xe7)]([this[_0x4691b6(0xe9)],this[_0x4691b6(0xe9)][_0x4691b6(0x100)],this[_0x4691b6(0x131)],this[_0x4691b6(0x115)]]),this[_0x4691b6(0x10e)]=new _0x31429d({'focusables':this[_0x4691b6(0x12b)],'focusTracker':this[_0x4691b6(0x11f)],'keystrokeHandler':this[_0x4691b6(0x12e)],'actions':{'focusPrevious':_0x4691b6(0xe4),'focusNext':_0x4691b6(0xf2)}}),this[_0x4691b6(0x10e)][_0x4691b6(0x11a)](this[_0x4691b6(0x115)][_0x4691b6(0x10e)]),this[_0x4691b6(0x115)][_0x4691b6(0xe6)][_0x4691b6(0xf7)][_0x4691b6(0x112)](_0x4691b6(0x10a))['to'](this,_0x4691b6(0x110));const _0x3ddd9e=this[_0x4691b6(0x125)];this[_0x4691b6(0x12d)]({'tag':_0x4691b6(0xff),'attributes':{'class':['ck',_0x4691b6(0xf6),_0x2f888a],'tabindex':'-1'},'children':[{'tag':_0x4691b6(0xff),'attributes':{'class':['ck',_0x4691b6(0x12c)]},'children':[{'tag':_0x4691b6(0xff),'attributes':{'class':[_0x3ddd9e['if'](_0x4691b6(0xf0),_0x4691b6(0x10c),_0x58c384=>!_0x58c384)]},'children':[this[_0x4691b6(0xfc)]]},this[_0x4691b6(0xe9)],this[_0x4691b6(0x131)],this[_0x4691b6(0x115)]]}]});}[_0x1a42b6(0xdd)](){const _0x3c5ea7=_0x1a42b6;super[_0x3c5ea7(0xdd)](),this[_0x3c5ea7(0x11f)][_0x3c5ea7(0x119)](this[_0x3c5ea7(0xe9)][_0x3c5ea7(0xde)]),this[_0x3c5ea7(0x11f)][_0x3c5ea7(0x119)](this[_0x3c5ea7(0xe9)][_0x3c5ea7(0x100)][_0x3c5ea7(0xde)]),this[_0x3c5ea7(0x11f)][_0x3c5ea7(0x119)](this[_0x3c5ea7(0x131)][_0x3c5ea7(0xde)]),this[_0x3c5ea7(0x11f)][_0x3c5ea7(0x119)](this[_0x3c5ea7(0x115)][_0x3c5ea7(0xde)]),this[_0x3c5ea7(0x12e)][_0x3c5ea7(0x103)](this[_0x3c5ea7(0xde)]);}[_0x1a42b6(0xfd)](_0x4e04d6=0x1){const _0x4edf41=_0x1a42b6;-0x1===_0x4e04d6?this[_0x4edf41(0x10e)][_0x4edf41(0xed)]():this[_0x4edf41(0x10e)][_0x4edf41(0x129)]();}[_0x1a42b6(0x11c)](){const _0x4e5db=_0x1a42b6;this[_0x4e5db(0x110)]='',this[_0x4e5db(0x10a)]='',this[_0x4e5db(0xf0)]=!0x1,this[_0x4e5db(0x115)][_0x4e5db(0x11c)](),this[_0x4e5db(0xe9)][_0x4e5db(0x117)]=!0x1,this[_0x4e5db(0x131)][_0x4e5db(0x117)]=!0x1;}[_0x1a42b6(0x10d)](){const _0x12682d=_0x1a42b6,_0x2a8e88=this[_0x12682d(0x105)],_0x41dc46=new _0x2ddcfe(_0x2a8e88,{'queryView':{'label':_0x2c94de(_0x2a8e88,_0x12682d(0x11d)),'creator':_0x2932de,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2c94de(_0x2a8e88,_0x12682d(0xf3)),'secondary':_0x2c94de(_0x2a8e88,_0x12682d(0xf5))}}},'filteredView':this[_0x12682d(0xf8)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x41dc46[_0x12682d(0x112)](_0x12682d(0x109))['to'](this,_0x12682d(0x109),this,_0x12682d(0xe5),(_0x5f05ee,_0x3d40c9)=>_0x5f05ee&&!_0x3d40c9),this[_0x12682d(0x103)](_0x41dc46,_0x12682d(0x101),(_0x3db37e,_0x364271)=>{const _0x3495e9=_0x12682d;this[_0x3495e9(0x110)]=_0x364271;const _0x2da97a=_0x3960f0(_0x364271);this[_0x3495e9(0xfe)](_0x3495e9(0xf9),_0x2da97a),_0x364271[_0x3495e9(0xf4)]()&&this[_0x3495e9(0x124)][_0x3495e9(0x119)]({'prompt':_0x2da97a},0x0);},{'priority':_0x12682d(0xfa)}),_0x41dc46;}[_0x1a42b6(0xf8)](){const _0x286b07=_0x1a42b6,_0x153b20=new _0x5bbccf(this[_0x286b07(0x105)]);return _0x153b20[_0x286b07(0x130)][_0x286b07(0xe2)][_0x286b07(0xdf)](this[_0x286b07(0x124)])['as'](_0x59b78a),_0x153b20['on'](_0x286b07(0x114),()=>{const _0x396cc3=_0x286b07;this[_0x396cc3(0x124)][_0x396cc3(0xea)](),this[_0x396cc3(0x115)][_0x396cc3(0x127)](''),this[_0x396cc3(0x115)][_0x396cc3(0xfd)]();}),_0x153b20;}[_0x1a42b6(0xe3)](){const _0x570cdb=_0x1a42b6,_0x297c31=new _0x52eb7f(this[_0x570cdb(0x105)]);return _0x297c31[_0x570cdb(0x126)][_0x570cdb(0x112)](_0x570cdb(0x109))['to'](this,_0x570cdb(0x109),this,_0x570cdb(0xe5),this,_0x570cdb(0x10a),(_0x53f2b9,_0x288e7b,_0x135cde)=>_0x53f2b9&&!_0x288e7b&&!!_0x135cde),_0x297c31[_0x570cdb(0x126)][_0x570cdb(0x108)](_0x570cdb(0xeb))['to'](this,_0x570cdb(0x120)),_0x297c31[_0x570cdb(0xec)][_0x570cdb(0x112)](_0x570cdb(0x109))['to'](this,_0x570cdb(0x109),this,_0x570cdb(0xe5),this,_0x570cdb(0x10a),(_0xd07874,_0x1d6679,_0x1f5b82)=>_0xd07874&&!_0x1d6679&&!!_0x1f5b82),_0x297c31[_0x570cdb(0xec)][_0x570cdb(0x108)](_0x570cdb(0xeb))['to'](this,_0x570cdb(0x116)),_0x297c31[_0x570cdb(0x10b)][_0x570cdb(0x112)](_0x570cdb(0x109))['to'](this,_0x570cdb(0x109),this,_0x570cdb(0xe5),(_0xd846,_0x57c640)=>_0xd846&&!_0x57c640),_0x297c31[_0x570cdb(0x10b)][_0x570cdb(0x108)](_0x570cdb(0xeb))['to'](this,_0x570cdb(0x12f)),_0x297c31[_0x570cdb(0x12a)][_0x570cdb(0x112)](_0x570cdb(0x109))['to'](this,_0x570cdb(0xe5)),_0x297c31[_0x570cdb(0x12a)][_0x570cdb(0x108)](_0x570cdb(0xeb))['to'](this,_0x570cdb(0x118)),_0x297c31;}[_0x1a42b6(0xf1)](){const _0x3aafa1=_0x1a42b6;this[_0x3aafa1(0x10a)]='',this[_0x3aafa1(0xf0)]=!0x1,this[_0x3aafa1(0xe5)]=!0x0,this[_0x3aafa1(0xe9)][_0x3aafa1(0x117)]=!0x0,this[_0x3aafa1(0x131)][_0x3aafa1(0x117)]=!0x0,this[_0x3aafa1(0xe9)][_0x3aafa1(0xfd)]();}[_0x1a42b6(0x111)](){const _0x111346=_0x1a42b6,_0x55d436=this[_0x111346(0x105)];this[_0x111346(0xe5)]=!0x1,this[_0x111346(0x110)]='',this[_0x111346(0x115)][_0x111346(0x11c)](),this[_0x111346(0x10a)]&&(this[_0x111346(0x115)][_0x111346(0xe6)][_0x111346(0x123)]=_0x2c94de(_0x55d436,_0x111346(0xe1)));}[_0x1a42b6(0x106)](_0x37e52f){const _0x2171c1=_0x1a42b6,_0x6ea78c=this[_0x2171c1(0x105)];this[_0x2171c1(0x111)](),this[_0x2171c1(0xf0)]=!0x0,this[_0x2171c1(0xfc)][_0x2171c1(0x107)]=_0x37e52f||_0x2c94de(_0x6ea78c,_0x2171c1(0xe0)),this[_0x2171c1(0x10a)]||(this[_0x2171c1(0xe9)][_0x2171c1(0x117)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4558(_0x54e117,_0x3bf88e){const _0x4601d5=_0x4601();return _0x4558=function(_0x4558e5,_0x398ab2){_0x4558e5=_0x4558e5-0x17d;let _0x5a0fd2=_0x4601d5[_0x4558e5];return _0x5a0fd2;},_0x4558(_0x54e117,_0x3bf88e);}(function(_0x34d9a9,_0x411108){const _0x147b8b=_0x4558,_0x469737=_0x34d9a9();while(!![]){try{const _0x40dd24=-parseInt(_0x147b8b(0x17e))/0x1*(-parseInt(_0x147b8b(0x180))/0x2)+-parseInt(_0x147b8b(0x184))/0x3*(-parseInt(_0x147b8b(0x18c))/0x4)+-parseInt(_0x147b8b(0x181))/0x5*(parseInt(_0x147b8b(0x18b))/0x6)+-parseInt(_0x147b8b(0x17d))/0x7+parseInt(_0x147b8b(0x182))/0x8*(-parseInt(_0x147b8b(0x18f))/0x9)+-parseInt(_0x147b8b(0x183))/0xa+parseInt(_0x147b8b(0x187))/0xb*(parseInt(_0x147b8b(0x185))/0xc);if(_0x40dd24===_0x411108)break;else _0x469737['push'](_0x469737['shift']());}catch(_0x1daccc){_0x469737['push'](_0x469737['shift']());}}}(_0x4601,0x7aa38));import{ListItemView as _0x3251eb,ButtonView as _0x7fdca6,ButtonLabelView as _0x20b23a}from'ckeditor5/src/ui.js';function _0x4601(){const _0x3da5e6=['1519840YEinIQ','1821IXHBPm','180BhROaQ','prompt','1244221Nxfdxf','fire','children','execute','466254iQmcUe','5988ZDiOZc','set','locale','10917rVpAuL','5278700GYDyAK','87YfrYuL','add','7334kqWzlp','60kWYtGH','3848fGsFXX'];_0x4601=function(){return _0x3da5e6;};return _0x4601();}import{unescape as _0x348db3}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x3251eb{constructor(_0x1fcb9b){const _0x5ead63=_0x4558;super();const _0x2d4357=new _0x20b23a(),_0x3a2b02=new _0x7fdca6(this[_0x5ead63(0x18e)],_0x2d4357);this[_0x5ead63(0x189)][_0x5ead63(0x17f)](_0x3a2b02),_0x3a2b02[_0x5ead63(0x18d)]({'label':_0x1fcb9b[_0x5ead63(0x186)],'withText':!0x0}),_0x3a2b02['on'](_0x5ead63(0x18a),()=>{const _0x3bd430=_0x5ead63;this[_0x3bd430(0x188)](_0x3bd430(0x18a),{'value':_0x348db3(_0x1fcb9b[_0x3bd430(0x186)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x184abc=_0x3335;(function(_0x4a7d76,_0x507cc2){const _0x86d974=_0x3335,_0x30315f=_0x4a7d76();while(!![]){try{const _0x5d3ce3=-parseInt(_0x86d974(0x1cc))/0x1*(-parseInt(_0x86d974(0x1c6))/0x2)+-parseInt(_0x86d974(0x1ce))/0x3*(-parseInt(_0x86d974(0x1d2))/0x4)+parseInt(_0x86d974(0x1da))/0x5+parseInt(_0x86d974(0x1cf))/0x6+parseInt(_0x86d974(0x1d3))/0x7*(-parseInt(_0x86d974(0x1ca))/0x8)+-parseInt(_0x86d974(0x1dc))/0x9*(parseInt(_0x86d974(0x1d1))/0xa)+parseInt(_0x86d974(0x1cb))/0xb;if(_0x5d3ce3===_0x507cc2)break;else _0x30315f['push'](_0x30315f['shift']());}catch(_0x1c1f8c){_0x30315f['push'](_0x30315f['shift']());}}}(_0x5da4,0xd0e7c));function _0x5da4(){const _0x3a5f7a=['locale','56ChVZiw','clearHistory','items','set','8ILzVJZ','5418259HOSYxw','33248rklLvn','clearHistoryButton','215598bEYTbA','4421862kQzYuZ','children','2550jxcqcq','40vTPgAJ','10847396pyCdgT','Clear','Prompt\x20history','delegate','filter','label','_createClearHistoryButton','1329545qowCmP','add','26109YclmWv','historyGroupView','length','fire','execute'];_0x5da4=function(){return _0x3a5f7a;};return _0x5da4();}import{ListView as _0xb3fe2d,ListItemGroupView as _0x2a7393,ButtonView as _0x2e6204}from'ckeditor5/src/ui.js';import{getTranslation as _0x367161}from'../../utils/common-translations.js';function _0x3335(_0x5c61d7,_0x47f048){const _0x5da403=_0x5da4();return _0x3335=function(_0x3335a0,_0x3169e8){_0x3335a0=_0x3335a0-0x1c6;let _0x8af630=_0x5da403[_0x3335a0];return _0x8af630;},_0x3335(_0x5c61d7,_0x47f048);}export class AIHistoryListView extends _0xb3fe2d{[_0x184abc(0x1dd)];[_0x184abc(0x1cd)];constructor(_0x3c96aa){const _0x153791=_0x184abc;super(_0x3c96aa),this[_0x153791(0x1cd)]=this[_0x153791(0x1d9)](),this[_0x153791(0x1dd)]=new _0x2a7393(),this[_0x153791(0x1dd)][_0x153791(0x1d0)][_0x153791(0x1db)](this[_0x153791(0x1cd)],0x1),this[_0x153791(0x1dd)][_0x153791(0x1d8)]=_0x367161(_0x3c96aa,_0x153791(0x1d5)),this[_0x153791(0x1dd)][_0x153791(0x1c8)][_0x153791(0x1d6)](_0x153791(0x1e0))['to'](this),this[_0x153791(0x1c8)][_0x153791(0x1db)](this[_0x153791(0x1dd)]);}[_0x184abc(0x1d7)](){const _0x29477b=_0x184abc;let _0x51b290=0x0;for(const _0x5c8200 of this[_0x29477b(0x1c8)])_0x51b290+=_0x5c8200[_0x29477b(0x1c8)][_0x29477b(0x1de)];return{'resultsCount':_0x51b290,'totalItemsCount':_0x51b290};}[_0x184abc(0x1d9)](){const _0x552877=_0x184abc,_0x1022ee=this[_0x552877(0x1e1)],_0x2fc801=new _0x2e6204(this[_0x552877(0x1e1)]);return _0x2fc801[_0x552877(0x1c9)]({'label':'('+_0x367161(_0x1022ee,_0x552877(0x1d4))+')','withText':!0x0}),_0x2fc801['on'](_0x552877(0x1e0),()=>this[_0x552877(0x1df)](_0x552877(0x1c7))),_0x2fc801;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xf20253=_0x2d22;function _0x2d22(_0x2b7968,_0x12b037){const _0x14443f=_0x1444();return _0x2d22=function(_0x2d223b,_0x5e13ab){_0x2d223b=_0x2d223b-0x192;let _0x53a0f1=_0x14443f[_0x2d223b];return _0x53a0f1;},_0x2d22(_0x2b7968,_0x12b037);}(function(_0x5260df,_0x36c6ab){const _0x3a962f=_0x2d22,_0x53986a=_0x5260df();while(!![]){try{const _0x2afee=-parseInt(_0x3a962f(0x199))/0x1*(parseInt(_0x3a962f(0x198))/0x2)+-parseInt(_0x3a962f(0x19f))/0x3*(parseInt(_0x3a962f(0x19e))/0x4)+parseInt(_0x3a962f(0x195))/0x5*(parseInt(_0x3a962f(0x19d))/0x6)+parseInt(_0x3a962f(0x194))/0x7+parseInt(_0x3a962f(0x19b))/0x8+parseInt(_0x3a962f(0x19c))/0x9+parseInt(_0x3a962f(0x1a8))/0xa;if(_0x2afee===_0x36c6ab)break;else _0x53986a['push'](_0x53986a['shift']());}catch(_0xb22b6f){_0x53986a['push'](_0x53986a['shift']());}}}(_0x1444,0xed7bf));import{Collection as _0xc9ff5b}from'ckeditor5/src/utils.js';const ts=_0xf20253(0x1a7);function _0x1444(){const _0x30af8f=['toLowerCase','stringify','105202YMAbnx','9Mcrctq','remove','5479928EtbzIN','6055722oJEOhN','1356toWflW','8ZRPbZd','2638941dLDsfi','parse','_loadFromSessionStorage','trim','addMany','setItem','map','prompt','CKEditor/AIFormView/PromptHistory','7901050zXSCmM','_saveToSessionStorage','add','last','getItem','length','1866970qdcIct','17495tygAbg'];_0x1444=function(){return _0x30af8f;};return _0x1444();}export class PromptHistory extends _0xc9ff5b{constructor(){const _0x2ed58b=_0xf20253;super(),this[_0x2ed58b(0x1a1)](),this['on'](_0x2ed58b(0x1aa),(_0x2f7e9a,_0x4cd53b)=>{const _0xf9cd9e=_0x2ed58b,_0x375416=os(_0x4cd53b[_0xf9cd9e(0x1a6)]);for(const _0xd1c000 of this)if(_0xd1c000!=_0x4cd53b&&os(_0xd1c000[_0xf9cd9e(0x1a6)])===_0x375416){this[_0xf9cd9e(0x19a)](_0xd1c000);break;}this[_0xf9cd9e(0x193)]>0x14&&this[_0xf9cd9e(0x19a)](this[_0xf9cd9e(0x1ab)]),this[_0xf9cd9e(0x1a9)]();}),this['on'](_0x2ed58b(0x19a),()=>{const _0x38c3b6=_0x2ed58b;this[_0x38c3b6(0x1a9)]();});}[_0xf20253(0x1a1)](){const _0x20c19=_0xf20253,_0x148650=sessionStorage[_0x20c19(0x192)](ts)||'[]';this[_0x20c19(0x1a3)](JSON[_0x20c19(0x1a0)](_0x148650));}[_0xf20253(0x1a9)](){const _0x3c4aa8=_0xf20253;sessionStorage[_0x3c4aa8(0x1a4)](ts,JSON[_0x3c4aa8(0x197)](this[_0x3c4aa8(0x1a5)](_0x37df01=>_0x37df01)));}}function os(_0x1f775f){const _0x5ae436=_0xf20253;return _0x1f775f[_0x5ae436(0x196)]()[_0x5ae436(0x1a2)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28bec6=_0x5372;(function(_0x19f438,_0x200d55){const _0x2c25f3=_0x5372,_0xe9145a=_0x19f438();while(!![]){try{const _0x25daa5=parseInt(_0x2c25f3(0xc6))/0x1+parseInt(_0x2c25f3(0xbd))/0x2+-parseInt(_0x2c25f3(0xcc))/0x3+parseInt(_0x2c25f3(0xd5))/0x4+parseInt(_0x2c25f3(0xd4))/0x5*(-parseInt(_0x2c25f3(0xb3))/0x6)+parseInt(_0x2c25f3(0xcb))/0x7+parseInt(_0x2c25f3(0xb0))/0x8*(-parseInt(_0x2c25f3(0xbb))/0x9);if(_0x25daa5===_0x200d55)break;else _0xe9145a['push'](_0xe9145a['shift']());}catch(_0x1061cf){_0xe9145a['push'](_0xe9145a['shift']());}}}(_0x335c,0xe3e26));import{Command as _0x26f12a}from'ckeditor5/src/core.js';function _0x5372(_0x56dc17,_0x16ef48){const _0x335c8f=_0x335c();return _0x5372=function(_0x53723f,_0x5e34d6){_0x53723f=_0x53723f-0xab;let _0x5b2e67=_0x335c8f[_0x53723f];return _0x5b2e67;},_0x5372(_0x56dc17,_0x16ef48);}import{AIAssistantUI as _0xb1618d}from'../aiassistantui.js';function _0x335c(){const _0x482f66=['getItems','isCollapsed','getRanges','1143gGtEWO','_hasContext','3430904QqHMcr','change:_hasContext','hasContent','plugins','set','_commandDefinitions','selection','add','get','849302kcQJft','from','editor','includes','showUI','7151571sxqqLM','2745447mIWVhm','refresh','config','custom','values','model','isEmpty','length','275iDaOvY','2024148pTouaW','document','getFirstRange','enabledCommandsIds','isEnabled','requiresContent','87064jPviuW','getSelectedBlocks','element','94008GMXcVl','change:isEnabled','execute','ai.aiAssistant.disabledElements','name'];_0x335c=function(){return _0x482f66;};return _0x335c();}export class ShowAIAssistantCommand extends _0x26f12a{[_0x28bec6(0xc2)];constructor(_0x54b616,_0x472f9c){const _0x55b7e8=_0x28bec6;super(_0x54b616),this[_0x55b7e8(0xc2)]=_0x472f9c,this[_0x55b7e8(0xc1)](_0x55b7e8(0xad),[]),this['on'](_0x55b7e8(0xbe),(_0x1bd6ac,_0x157f37,_0x462994)=>{const _0x481c4b=_0x55b7e8;this[_0x481c4b(0xae)]&&(this[_0x481c4b(0xad)]=F(this[_0x481c4b(0xc2)],_0x462994));}),this[_0x55b7e8(0xc1)](_0x55b7e8(0xbc),!0x1),this['on'](_0x55b7e8(0xb4),(_0x58ca32,_0x4c979a,_0x40f885)=>{const _0x388d96=_0x55b7e8;this[_0x388d96(0xad)]=_0x40f885?F(this[_0x388d96(0xc2)],this[_0x388d96(0xbc)]):[];});}[_0x28bec6(0xcd)](){const _0x4fb389=_0x28bec6,_0x2e80f7=this[_0x4fb389(0xc8)][_0x4fb389(0xd1)];this[_0x4fb389(0xbc)]=function(_0x19c4b6){const _0x4a4d69=_0x4fb389,_0x31aa21=_0x19c4b6[_0x4a4d69(0xab)][_0x4a4d69(0xc3)];return _0x31aa21[_0x4a4d69(0xb9)]?0x0!==[..._0x31aa21[_0x4a4d69(0xb1)]()][_0x4a4d69(0xd3)]&&![..._0x31aa21[_0x4a4d69(0xb1)]()][0x0][_0x4a4d69(0xd2)]:!!_0x19c4b6[_0x4a4d69(0xbf)](_0x31aa21[_0x4a4d69(0xac)]());}(_0x2e80f7);const _0x2632ce=_0x2e80f7[_0x4fb389(0xab)][_0x4fb389(0xc3)],_0x42b23a=this[_0x4fb389(0xc8)][_0x4fb389(0xce)][_0x4fb389(0xc5)](_0x4fb389(0xb6));for(const _0x3039e7 of _0x2632ce[_0x4fb389(0xba)]())for(const _0xc060cc of _0x3039e7[_0x4fb389(0xb8)]())if(_0xc060cc['is'](_0x4fb389(0xb2))&&_0x42b23a[_0x4fb389(0xc9)](_0xc060cc[_0x4fb389(0xb7)]))return void(this[_0x4fb389(0xae)]=!0x1);this[_0x4fb389(0xae)]=!0x0;}[_0x28bec6(0xb5)](_0x2db120='',_0x4b1e03='',_0x14fc98=_0x28bec6(0xcf)){const _0xcb46d4=_0x28bec6;this[_0xcb46d4(0xc8)][_0xcb46d4(0xc0)][_0xcb46d4(0xc5)](_0xb1618d)[_0xcb46d4(0xca)](_0x2db120,_0x4b1e03,_0x14fc98);}}function F(_0x299611,_0x502209){const _0x3ac40e=_0x28bec6,_0x52e69b=new Set();for(const _0x61af45 of _0x299611[_0x3ac40e(0xd0)]())(_0x502209||!0x1===_0x61af45[_0x3ac40e(0xaf)])&&_0x52e69b[_0x3ac40e(0xc4)](_0x61af45['id']);return Array[_0x3ac40e(0xc7)](_0x52e69b);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x18802d,_0x424fe4,_0xdc4144){const t=_0x18802d['t'];switch(_0x424fe4){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',_0xdc4144);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0xdc4144);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'},_0xdc4144);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 _0x424fe4;}}
|
|
@@ -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(_0x2ef015,_0x2c9378){const _0x41ae48=(0x0,_0x2c9378['t'])('Other');return _0x2ef015['length']?'groupId'in _0x2ef015[0x0]?_0x2ef015:[{'groupId':'_ungrouppedCommands','groupLabel':_0x41ae48,'order':0x1/0x0,'commands':_0x2ef015}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x41ae48,'order':0x1/0x0,'commands':[]}];}
|