@ckeditor/ckeditor5-ai 44.2.0-alpha.11 → 44.2.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x548818=_0x2e7b;(function(_0x50fc5f,_0x46d21b){const _0x2aa6ed=_0x2e7b,_0x5d6563=_0x50fc5f();while(!![]){try{const _0x504cb5=parseInt(_0x2aa6ed(0xe1))/0x1*(parseInt(_0x2aa6ed(0xf0))/0x2)+parseInt(_0x2aa6ed(0xd5))/0x3*(parseInt(_0x2aa6ed(0xf8))/0x4)+-parseInt(_0x2aa6ed(0xf3))/0x5*(parseInt(_0x2aa6ed(0xe9))/0x6)+parseInt(_0x2aa6ed(0xd8))/0x7+parseInt(_0x2aa6ed(0xdf))/0x8+-parseInt(_0x2aa6ed(0xdc))/0x9+parseInt(_0x2aa6ed(0xda))/0xa;if(_0x504cb5===_0x46d21b)break;else _0x5d6563['push'](_0x5d6563['shift']());}catch(_0x14c9c2){_0x5d6563['push'](_0x5d6563['shift']());}}}(_0x1ee1,0x5387e));import{ToolbarView as _0x5506d2,ButtonView as _0x1b0465}from'ckeditor5/src/ui.js';function _0x1ee1(){const _0x8c5ab3=['items','insertButton','stopButton','Try\x20again','toUpperCase','insert','2mEuaPP','Insert\x20below','mainAction','15605QgFcjG','tryAgainButton','bindTemplate','ck-ai-form__toolbar','AI_','51268qqiJAU','_createButton','117XTOuzx','_CONTENT','isVisible','902888uwFECt','bind','1957990XgVAEl','label','2694825jVzBtd','Stop','ck-hidden','1872528EAKgPi','ck-button-action','241386VyOmWg','set','locale','REPLACE','replace','extendTemplate','addMany','replaceButton','1266lJFEHZ'];_0x1ee1=function(){return _0x8c5ab3;};return _0x1ee1();}function _0x2e7b(_0x263b48,_0x1b8205){const _0x1ee121=_0x1ee1();return _0x2e7b=function(_0x2e7b14,_0x47ae51){_0x2e7b14=_0x2e7b14-0xd4;let _0x38ee93=_0x1ee121[_0x2e7b14];return _0x38ee93;},_0x2e7b(_0x263b48,_0x1b8205);}import{getTranslation as _0x109b2b}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x548818(0xe5),'INSERT':_0x548818(0xef)};export default class at extends _0x5506d2{constructor(_0x8b0dbb){const _0x244174=_0x548818;super(_0x8b0dbb),this[_0x244174(0xe2)](_0x244174(0xd7),!0x1),this[_0x244174(0xe2)](_0x244174(0xf2),AIFormToolbarViewMainActionLabel[_0x244174(0xe4)]),this[_0x244174(0xe8)]=this[_0x244174(0xd4)]('',_0x244174(0xe0)),this[_0x244174(0xe8)][_0x244174(0xd9)](_0x244174(0xdb))['to'](this,_0x244174(0xf2),_0x228c7d=>_0x109b2b(_0x8b0dbb,_0x244174(0xf7)+_0x228c7d[_0x244174(0xee)]()+_0x244174(0xd6))),this[_0x244174(0xeb)]=this[_0x244174(0xd4)](_0x109b2b(_0x8b0dbb,_0x244174(0xf1))),this[_0x244174(0xf4)]=this[_0x244174(0xd4)](_0x109b2b(_0x8b0dbb,_0x244174(0xed))),this[_0x244174(0xec)]=this[_0x244174(0xd4)](_0x109b2b(_0x8b0dbb,_0x244174(0xdd)));const _0x557b79=this[_0x244174(0xf5)];this[_0x244174(0xe6)]({'attributes':{'class':[_0x244174(0xf6),_0x557b79['if'](_0x244174(0xd7),_0x244174(0xde),_0x26774a=>!_0x26774a)]}}),this[_0x244174(0xea)][_0x244174(0xe7)]([this[_0x244174(0xe8)],this[_0x244174(0xeb)],this[_0x244174(0xf4)],this[_0x244174(0xec)]]);}[_0x548818(0xd4)](_0x1c35df,_0xf3333d){const _0x5e1c10=_0x548818,_0x14cdad=new _0x1b0465(this[_0x5e1c10(0xe3)]);return _0x14cdad[_0x5e1c10(0xe2)]({'label':_0x1c35df,'class':_0xf3333d||'','isVisible':!0x0,'withText':!0x0}),_0x14cdad;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xc559(_0x58484f,_0x2c2ab5){const _0x422247=_0x4222();return _0xc559=function(_0xc559ba,_0x3a4cc3){_0xc559ba=_0xc559ba-0xb0;let _0xfbebf=_0x422247[_0xc559ba];return _0xfbebf;},_0xc559(_0x58484f,_0x2c2ab5);}const _0x36e54c=_0xc559;(function(_0x212786,_0x9e058){const _0x170fe6=_0xc559,_0x1cf277=_0x212786();while(!![]){try{const _0x494b6a=parseInt(_0x170fe6(0xb5))/0x1+parseInt(_0x170fe6(0xe7))/0x2+parseInt(_0x170fe6(0xf1))/0x3+-parseInt(_0x170fe6(0xf9))/0x4+-parseInt(_0x170fe6(0xe5))/0x5+parseInt(_0x170fe6(0xda))/0x6*(parseInt(_0x170fe6(0xce))/0x7)+-parseInt(_0x170fe6(0xd6))/0x8*(parseInt(_0x170fe6(0xef))/0x9);if(_0x494b6a===_0x9e058)break;else _0x1cf277['push'](_0x1cf277['shift']());}catch(_0x47d68e){_0x1cf277['push'](_0x1cf277['shift']());}}}(_0x4222,0x3f8dd));function _0x4222(){const _0x1804e8=['670276VRSsgq','isVisible','isProcessing','historyGroupView','add','toolbar','bindTo','_createPromptView','1026zsXsIw','set','1432281csaEDP','trim','clear','mainAction','element','isError','delegate','stopButton','985700VMSgXc','queryView','REPLACE','isEnabled','_promptHistory','text','replaceContent','render','finishProcessing','contentArea','focusCycler','AI_ERROR_FAILED','errorView','focusTracker','items','submitPrompt','265828EfGYoK','replaceButton','_createHistoryView','submit','ck-ai-form-content','clearHistory','focusLast','focus','reset','Ask\x20AI\x20to\x20improve\x20generated\x20text','stopProcessing','copyButtonView','bindTemplate','handleError','div','startProcessing','createCollection','execute','high','promptView','insertButton','keystrokes','prompt','search','label','24605PfwMhL','fire','focusFirst','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainEvent','ck-ai-form','value','_focusables','45848BMEhlf','fieldView','listenTo','setTemplate','144fsnmSk','Empty\x20history','chain','tab','shift\x20+\x20tab','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_createToolbar','bind','tryAgainButton','ck-hidden','locale','13385XeUxcJ','insertContentBelow'];_0x4222=function(){return _0x1804e8;};return _0x4222();}import{FocusTracker as _0x49c4a0,KeystrokeHandler as _0x815781}from'ckeditor5/src/utils.js';import{View as _0x22919c,FocusCycler as _0x25f21a,createLabeledTextarea as _0x3d39d0}from'ckeditor5/src/ui.js';import _0x44af95,{AIFormToolbarViewMainActionLabel as _0x391397}from'./aiformtoolbarview.js';import _0x2671f5 from'./aiformcontentarea.js';import _0x1ece83 from'./aiformerrorview.js';import _0x4cdb85 from'./aiformpromptview.js';import _0xdd475d from'./aihistorylistview.js';import _0x50a4db from'./aihistorylistitemview.js';import _0x1da6d0 from'./prompthistory.js';import{getTranslation as _0x2ce4de}from'../../utils/common-translations.js';import{escape as _0x349eb4}from'lodash-es';export default class k extends _0x22919c{constructor(_0x16e57e,_0x27cad4,_0x5018bd=''){const _0x3228f7=_0xc559;super(_0x16e57e),this[_0x3228f7(0xf0)](_0x3228f7(0xfc),!0x0),this[_0x3228f7(0xf0)](_0x3228f7(0xe9),!0x1),this[_0x3228f7(0xf0)](_0x3228f7(0xcb),''),this[_0x3228f7(0xf0)](_0x3228f7(0xd4),''),this[_0x3228f7(0xf0)](_0x3228f7(0xf6),!0x1),this[_0x3228f7(0xf0)](_0x3228f7(0xf4),_0x391397[_0x3228f7(0xfb)]),this[_0x3228f7(0xfd)]=new _0x1da6d0(),this[_0x3228f7(0xb1)]=new _0x1ece83(_0x16e57e),this[_0x3228f7(0x102)]=new _0x2671f5(_0x16e57e,_0x5018bd),this[_0x3228f7(0x102)][_0x3228f7(0xe1)](_0x3228f7(0xe9))['to'](this),this[_0x3228f7(0x102)][_0x3228f7(0xe1)](_0x3228f7(0xd4))['to'](this),this[_0x3228f7(0xec)]=this[_0x3228f7(0xe0)](),this[_0x3228f7(0xec)][_0x3228f7(0xe1)](_0x3228f7(0xf4))['to'](this),this[_0x3228f7(0xc8)]=this[_0x3228f7(0xee)](),this[_0x3228f7(0xb2)]=new _0x49c4a0(),this[_0x3228f7(0xca)]=new _0x815781(),this[_0x3228f7(0xd5)]=this[_0x3228f7(0xc5)]([this[_0x3228f7(0x102)],this[_0x3228f7(0x102)][_0x3228f7(0xc0)],this[_0x3228f7(0xec)],this[_0x3228f7(0xc8)]]),this[_0x3228f7(0x103)]=new _0x25f21a({'focusables':this[_0x3228f7(0xd5)],'focusTracker':this[_0x3228f7(0xb2)],'keystrokeHandler':this[_0x3228f7(0xca)],'actions':{'focusPrevious':_0x3228f7(0xde),'focusNext':_0x3228f7(0xdd)}}),this[_0x3228f7(0x103)][_0x3228f7(0xdc)](this[_0x3228f7(0xc8)][_0x3228f7(0x103)]),this[_0x3228f7(0xc8)][_0x3228f7(0xfa)][_0x3228f7(0xd7)][_0x3228f7(0xe1)](_0x3228f7(0xd4))['to'](this,_0x3228f7(0xcb));const _0x3d52c5=this[_0x3228f7(0xc1)];this[_0x3228f7(0xd9)]({'tag':_0x3228f7(0xc3),'attributes':{'class':['ck',_0x3228f7(0xd3),_0x27cad4],'tabindex':'-1'},'children':[{'tag':_0x3228f7(0xc3),'attributes':{'class':['ck',_0x3228f7(0xb9)]},'children':[{'tag':_0x3228f7(0xc3),'attributes':{'class':[_0x3d52c5['if'](_0x3228f7(0xf6),_0x3228f7(0xe3),_0xf7779b=>!_0xf7779b)]},'children':[this[_0x3228f7(0xb1)]]},this[_0x3228f7(0x102)],this[_0x3228f7(0xec)],this[_0x3228f7(0xc8)]]}]});}[_0x36e54c(0x100)](){const _0x399133=_0x36e54c;super[_0x399133(0x100)](),this[_0x399133(0xb2)][_0x399133(0xeb)](this[_0x399133(0x102)][_0x399133(0xf5)]),this[_0x399133(0xb2)][_0x399133(0xeb)](this[_0x399133(0x102)][_0x399133(0xc0)][_0x399133(0xf5)]),this[_0x399133(0xb2)][_0x399133(0xeb)](this[_0x399133(0xec)][_0x399133(0xf5)]),this[_0x399133(0xb2)][_0x399133(0xeb)](this[_0x399133(0xc8)][_0x399133(0xf5)]),this[_0x399133(0xca)][_0x399133(0xd8)](this[_0x399133(0xf5)]);}[_0x36e54c(0xbc)](_0x4c45d1=0x1){const _0x25160f=_0x36e54c;-0x1===_0x4c45d1?this[_0x25160f(0x103)][_0x25160f(0xbb)]():this[_0x25160f(0x103)][_0x25160f(0xd0)]();}[_0x36e54c(0xbd)](){const _0x419c21=_0x36e54c;this[_0x419c21(0xcb)]='',this[_0x419c21(0xd4)]='',this[_0x419c21(0xf6)]=!0x1,this[_0x419c21(0xc8)][_0x419c21(0xbd)](),this[_0x419c21(0x102)][_0x419c21(0xe8)]=!0x1,this[_0x419c21(0xec)][_0x419c21(0xe8)]=!0x1;}[_0x36e54c(0xee)](){const _0x26cd5b=_0x36e54c,_0x10f1e4=this[_0x26cd5b(0xe4)],_0x2e7cbd=new _0x4cdb85(_0x10f1e4,{'queryView':{'label':_0x2ce4de(_0x10f1e4,_0x26cd5b(0xd1)),'creator':_0x3d39d0,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2ce4de(_0x10f1e4,_0x26cd5b(0xdb)),'secondary':_0x2ce4de(_0x10f1e4,_0x26cd5b(0xdf))}}},'filteredView':this[_0x26cd5b(0xb7)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2e7cbd[_0x26cd5b(0xe1)](_0x26cd5b(0xfc))['to'](this,_0x26cd5b(0xfc),this,_0x26cd5b(0xe9),(_0x2bd518,_0x7bf6a3)=>_0x2bd518&&!_0x7bf6a3),this[_0x26cd5b(0xd8)](_0x2e7cbd,_0x26cd5b(0xb8),(_0x5f0ed0,_0x144a42)=>{const _0x126738=_0x26cd5b;this[_0x126738(0xcb)]=_0x144a42;const _0x1f4fcf=_0x349eb4(_0x144a42);this[_0x126738(0xcf)](_0x126738(0xb4),_0x1f4fcf),_0x144a42[_0x126738(0xf2)]()&&this[_0x126738(0xfd)][_0x126738(0xeb)]({'prompt':_0x1f4fcf},0x0);},{'priority':_0x26cd5b(0xc7)}),_0x2e7cbd;}[_0x36e54c(0xb7)](){const _0x3044ee=_0x36e54c,_0x1aa9cc=new _0xdd475d(this[_0x3044ee(0xe4)]);return _0x1aa9cc[_0x3044ee(0xea)][_0x3044ee(0xb3)][_0x3044ee(0xed)](this[_0x3044ee(0xfd)])['as'](_0x50a4db),_0x1aa9cc['on'](_0x3044ee(0xba),()=>{const _0x500e5a=_0x3044ee;this[_0x500e5a(0xfd)][_0x500e5a(0xf3)](),this[_0x500e5a(0xc8)][_0x500e5a(0xcc)](''),this[_0x500e5a(0xc8)][_0x500e5a(0xbc)]();}),_0x1aa9cc;}[_0x36e54c(0xe0)](){const _0x555957=_0x36e54c,_0xede9f9=new _0x44af95(this[_0x555957(0xe4)]);return _0xede9f9[_0x555957(0xb6)][_0x555957(0xe1)](_0x555957(0xfc))['to'](this,_0x555957(0xfc),this,_0x555957(0xe9),this,_0x555957(0xd4),(_0x4ba7b4,_0x29d4b4,_0x11a97e)=>_0x4ba7b4&&!_0x29d4b4&&!!_0x11a97e),_0xede9f9[_0x555957(0xb6)][_0x555957(0xf7)](_0x555957(0xc6))['to'](this,_0x555957(0xff)),_0xede9f9[_0x555957(0xc9)][_0x555957(0xe1)](_0x555957(0xfc))['to'](this,_0x555957(0xfc),this,_0x555957(0xe9),this,_0x555957(0xd4),(_0x375cc3,_0x46dd7d,_0x4b1443)=>_0x375cc3&&!_0x46dd7d&&!!_0x4b1443),_0xede9f9[_0x555957(0xc9)][_0x555957(0xf7)](_0x555957(0xc6))['to'](this,_0x555957(0xe6)),_0xede9f9[_0x555957(0xe2)][_0x555957(0xe1)](_0x555957(0xfc))['to'](this,_0x555957(0xfc),this,_0x555957(0xe9),(_0x728148,_0x142a3e)=>_0x728148&&!_0x142a3e),_0xede9f9[_0x555957(0xe2)][_0x555957(0xf7)](_0x555957(0xc6))['to'](this,_0x555957(0xd2)),_0xede9f9[_0x555957(0xf8)][_0x555957(0xe1)](_0x555957(0xfc))['to'](this,_0x555957(0xe9)),_0xede9f9[_0x555957(0xf8)][_0x555957(0xf7)](_0x555957(0xc6))['to'](this,_0x555957(0xbf)),_0xede9f9;}[_0x36e54c(0xc4)](){const _0x536aa6=_0x36e54c;this[_0x536aa6(0xd4)]='',this[_0x536aa6(0xf6)]=!0x1,this[_0x536aa6(0xe9)]=!0x0,this[_0x536aa6(0x102)][_0x536aa6(0xe8)]=!0x0,this[_0x536aa6(0xec)][_0x536aa6(0xe8)]=!0x0,this[_0x536aa6(0x102)][_0x536aa6(0xbc)]();}[_0x36e54c(0x101)](){const _0x2bd134=_0x36e54c,_0x996178=this[_0x2bd134(0xe4)];this[_0x2bd134(0xe9)]=!0x1,this[_0x2bd134(0xcb)]='',this[_0x2bd134(0xc8)][_0x2bd134(0xbd)](),this[_0x2bd134(0xd4)]&&(this[_0x2bd134(0xc8)][_0x2bd134(0xfa)][_0x2bd134(0xcd)]=_0x2ce4de(_0x996178,_0x2bd134(0xbe)));}[_0x36e54c(0xc2)](_0x4b1a29){const _0x1c1cae=_0x36e54c,_0x12f60e=this[_0x1c1cae(0xe4)];this[_0x1c1cae(0x101)](),this[_0x1c1cae(0xf6)]=!0x0,this[_0x1c1cae(0xb1)][_0x1c1cae(0xfe)]=_0x4b1a29||_0x2ce4de(_0x12f60e,_0x1c1cae(0xb0)),this[_0x1c1cae(0xd4)]||(this[_0x1c1cae(0x102)][_0x1c1cae(0xe8)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5006(_0xbaef88,_0x5043be){const _0x3928dd=_0x3928();return _0x5006=function(_0x5006aa,_0x1bfbcf){_0x5006aa=_0x5006aa-0xf9;let _0x10afcf=_0x3928dd[_0x5006aa];return _0x10afcf;},_0x5006(_0xbaef88,_0x5043be);}function _0x3928(){const _0x452da9=['20iwjZaI','set','locale','prompt','fire','add','102xrsXeN','276584OEEZXv','2328399gvTyms','320104XLnfWR','179814LWvGqS','360306wKlVpw','children','execute','4691PMALlt','1369676lonABj'];_0x3928=function(){return _0x452da9;};return _0x3928();}(function(_0x4e3379,_0x31563a){const _0x4f68ac=_0x5006,_0x56a853=_0x4e3379();while(!![]){try{const _0x1c5b21=-parseInt(_0x4f68ac(0x103))/0x1*(parseInt(_0x4f68ac(0xfb))/0x2)+parseInt(_0x4f68ac(0x100))/0x3+parseInt(_0x4f68ac(0xfe))/0x4+-parseInt(_0x4f68ac(0x105))/0x5*(parseInt(_0x4f68ac(0xff))/0x6)+parseInt(_0x4f68ac(0x104))/0x7+-parseInt(_0x4f68ac(0xfc))/0x8+parseInt(_0x4f68ac(0xfd))/0x9;if(_0x1c5b21===_0x31563a)break;else _0x56a853['push'](_0x56a853['shift']());}catch(_0x177ee6){_0x56a853['push'](_0x56a853['shift']());}}}(_0x3928,0x3fad1));import{ListItemView as _0x148afe,ButtonView as _0x577851,ButtonLabelView as _0x2a1446}from'ckeditor5/src/ui.js';import{unescape as _0x506c5d}from'lodash-es';export default class hs extends _0x148afe{constructor(_0x3b3a7c){const _0x3b7bac=_0x5006;super();const _0x1325bd=new _0x2a1446(),_0x55cd3d=new _0x577851(this[_0x3b7bac(0x107)],_0x1325bd);this[_0x3b7bac(0x101)][_0x3b7bac(0xfa)](_0x55cd3d),_0x55cd3d[_0x3b7bac(0x106)]({'label':_0x3b3a7c[_0x3b7bac(0x108)],'withText':!0x0}),_0x55cd3d['on'](_0x3b7bac(0x102),()=>{const _0x2c60f5=_0x3b7bac;this[_0x2c60f5(0xf9)](_0x2c60f5(0x102),{'value':_0x506c5d(_0x3b3a7c[_0x2c60f5(0x108)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xc896(){const _0x3607c4=['set','label','delegate','Prompt\x20history','1796934pvOITk','867182oUCGFk','2224DAFpxx','add','historyGroupView','fire','locale','65659zpxsQd','execute','length','3984603kRAIVB','7017381voCRwP','3223596owwGea','2TOPfFV','filter','10QtiBVR','children','clearHistoryButton','2490wgxZKg','clearHistory','items','_createClearHistoryButton','19683GOLLvu','Clear'];_0xc896=function(){return _0x3607c4;};return _0xc896();}const _0x42ce33=_0x513d;function _0x513d(_0x1b47fe,_0x5605b1){const _0xc89695=_0xc896();return _0x513d=function(_0x513ded,_0x274fb1){_0x513ded=_0x513ded-0x1c2;let _0x7f518b=_0xc89695[_0x513ded];return _0x7f518b;},_0x513d(_0x1b47fe,_0x5605b1);}(function(_0x181b16,_0x4e65f5){const _0x105b26=_0x513d,_0x10af16=_0x181b16();while(!![]){try{const _0x4b1255=parseInt(_0x105b26(0x1d9))/0x1+-parseInt(_0x105b26(0x1c9))/0x2*(parseInt(_0x105b26(0x1c6))/0x3)+parseInt(_0x105b26(0x1c8))/0x4+-parseInt(_0x105b26(0x1cb))/0x5*(-parseInt(_0x105b26(0x1d8))/0x6)+-parseInt(_0x105b26(0x1c7))/0x7+parseInt(_0x105b26(0x1da))/0x8*(-parseInt(_0x105b26(0x1d2))/0x9)+-parseInt(_0x105b26(0x1ce))/0xa*(-parseInt(_0x105b26(0x1c3))/0xb);if(_0x4b1255===_0x4e65f5)break;else _0x10af16['push'](_0x10af16['shift']());}catch(_0x132175){_0x10af16['push'](_0x10af16['shift']());}}}(_0xc896,0xc81d6));import{ListView as _0x359f5f,ListItemGroupView as _0x4fb3cc,ButtonView as _0x1e61b4}from'ckeditor5/src/ui.js';import{getTranslation as _0x509f16}from'../../utils/common-translations.js';export default class rs extends _0x359f5f{constructor(_0x509493){const _0x5e2c6f=_0x513d;super(_0x509493),this[_0x5e2c6f(0x1cd)]=this[_0x5e2c6f(0x1d1)](),this[_0x5e2c6f(0x1dc)]=new _0x4fb3cc(),this[_0x5e2c6f(0x1dc)][_0x5e2c6f(0x1cc)][_0x5e2c6f(0x1db)](this[_0x5e2c6f(0x1cd)],0x1),this[_0x5e2c6f(0x1dc)][_0x5e2c6f(0x1d5)]=_0x509f16(_0x509493,_0x5e2c6f(0x1d7)),this[_0x5e2c6f(0x1dc)][_0x5e2c6f(0x1d0)][_0x5e2c6f(0x1d6)](_0x5e2c6f(0x1c4))['to'](this),this[_0x5e2c6f(0x1d0)][_0x5e2c6f(0x1db)](this[_0x5e2c6f(0x1dc)]);}[_0x42ce33(0x1ca)](){const _0x1fdd42=_0x42ce33;let _0x5b532b=0x0;for(const _0x173b9b of this[_0x1fdd42(0x1d0)])_0x5b532b+=_0x173b9b[_0x1fdd42(0x1d0)][_0x1fdd42(0x1c5)];return{'resultsCount':_0x5b532b,'totalItemsCount':_0x5b532b};}[_0x42ce33(0x1d1)](){const _0x1ff1fa=_0x42ce33,_0x2f6456=this[_0x1ff1fa(0x1c2)],_0x441985=new _0x1e61b4(this[_0x1ff1fa(0x1c2)]);return _0x441985[_0x1ff1fa(0x1d4)]({'label':'('+_0x509f16(_0x2f6456,_0x1ff1fa(0x1d3))+')','withText':!0x0}),_0x441985['on'](_0x1ff1fa(0x1c4),()=>this[_0x1ff1fa(0x1dd)](_0x1ff1fa(0x1cf))),_0x441985;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x588e92=_0x4363;function _0x4575(){const _0x251600=['setItem','toLowerCase','CKEditor/AIFormView/PromptHistory','5183040HvtymW','_saveToSessionStorage','stringify','1460812eFempq','length','addMany','trim','24pOmiea','last','parse','prompt','2654388FEJmJT','add','map','getItem','241875TseKWl','7nkzaHg','10mSsskt','remove','22965975WpLaTn','8156504HpksGA','_loadFromSessionStorage','18926yptYXq'];_0x4575=function(){return _0x251600;};return _0x4575();}(function(_0x352950,_0x57c034){const _0x32dc41=_0x4363,_0x1980c1=_0x352950();while(!![]){try{const _0x3358d3=parseInt(_0x32dc41(0x8c))/0x1+parseInt(_0x32dc41(0x93))/0x2*(-parseInt(_0x32dc41(0x9e))/0x3)+parseInt(_0x32dc41(0x9a))/0x4+-parseInt(_0x32dc41(0x97))/0x5+-parseInt(_0x32dc41(0x88))/0x6+-parseInt(_0x32dc41(0x8d))/0x7*(parseInt(_0x32dc41(0x91))/0x8)+parseInt(_0x32dc41(0x90))/0x9*(parseInt(_0x32dc41(0x8e))/0xa);if(_0x3358d3===_0x57c034)break;else _0x1980c1['push'](_0x1980c1['shift']());}catch(_0x5bdb55){_0x1980c1['push'](_0x1980c1['shift']());}}}(_0x4575,0x8eb84));import{Collection as _0x144dfc}from'ckeditor5/src/utils.js';const cs=_0x588e92(0x96);export default class os extends _0x144dfc{constructor(){const _0x490dfd=_0x588e92;super(),this[_0x490dfd(0x92)](),this['on'](_0x490dfd(0x89),(_0x6f71a2,_0x313773)=>{const _0x5833eb=_0x490dfd,_0x4923ff=Ss(_0x313773[_0x5833eb(0x87)]);for(const _0x3d330c of this)if(_0x3d330c!=_0x313773&&Ss(_0x3d330c[_0x5833eb(0x87)])===_0x4923ff){this[_0x5833eb(0x8f)](_0x3d330c);break;}this[_0x5833eb(0x9b)]>0x14&&this[_0x5833eb(0x8f)](this[_0x5833eb(0x9f)]),this[_0x5833eb(0x98)]();}),this['on'](_0x490dfd(0x8f),()=>{const _0x1c39fa=_0x490dfd;this[_0x1c39fa(0x98)]();});}[_0x588e92(0x92)](){const _0x1c357a=_0x588e92,_0x225a34=sessionStorage[_0x1c357a(0x8b)](cs)||'[]';this[_0x1c357a(0x9c)](JSON[_0x1c357a(0xa0)](_0x225a34));}[_0x588e92(0x98)](){const _0x1f072=_0x588e92;sessionStorage[_0x1f072(0x94)](cs,JSON[_0x1f072(0x99)](this[_0x1f072(0x8a)](_0x3be7d8=>_0x3be7d8)));}}function _0x4363(_0x23fd9f,_0x3caac3){const _0x4575d5=_0x4575();return _0x4363=function(_0x436348,_0x219d96){_0x436348=_0x436348-0x87;let _0x57b438=_0x4575d5[_0x436348];return _0x57b438;},_0x4363(_0x23fd9f,_0x3caac3);}function Ss(_0x1a0604){const _0xc5ff25=_0x588e92;return _0x1a0604[_0xc5ff25(0x95)]()[_0xc5ff25(0x9d)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f00f5=_0x91bb;(function(_0x404e0e,_0x3de33c){const _0x4810fa=_0x91bb,_0x430287=_0x404e0e();while(!![]){try{const _0x54b712=parseInt(_0x4810fa(0x20d))/0x1+-parseInt(_0x4810fa(0x202))/0x2*(parseInt(_0x4810fa(0x20c))/0x3)+parseInt(_0x4810fa(0x1fc))/0x4+-parseInt(_0x4810fa(0x1ef))/0x5+parseInt(_0x4810fa(0x1ed))/0x6+parseInt(_0x4810fa(0x212))/0x7*(parseInt(_0x4810fa(0x1f8))/0x8)+parseInt(_0x4810fa(0x211))/0x9*(-parseInt(_0x4810fa(0x1ec))/0xa);if(_0x54b712===_0x3de33c)break;else _0x430287['push'](_0x430287['shift']());}catch(_0x38431b){_0x430287['push'](_0x430287['shift']());}}}(_0x513e,0xeabe4));function _0x91bb(_0x36cb14,_0x159207){const _0x513e3c=_0x513e();return _0x91bb=function(_0x91bb07,_0x4cd830){_0x91bb07=_0x91bb07-0x1e9;let _0x55ff62=_0x513e3c[_0x91bb07];return _0x55ff62;},_0x91bb(_0x36cb14,_0x159207);}function _0x513e(){const _0xe68508=['change:_hasContext','8163LXuygg','63gOQfTE','showUI','ai.aiAssistant.disabledElements','set','document','name','11030ihbGnY','5472432FgzmRa','getSelectedBlocks','1986305bSQxGn','add','getItems','change:isEnabled','isCollapsed','plugins','length','requiresContent','hasContent','965768VhqXdW','model','getRanges','from','3960492qwCaCz','config','isEmpty','values','getFirstRange','element','2465768EDfinK','isEnabled','selection','enabledCommandsIds','includes','_commandDefinitions','_hasContext','execute','refresh','get','3gaQwYD','603390IVQmxn','editor','custom'];_0x513e=function(){return _0xe68508;};return _0x513e();}import{Command as _0x120fe8}from'ckeditor5/src/core.js';import _0x379ea5 from'../aiassistantui.js';export default class E extends _0x120fe8{constructor(_0x4cbb4f,_0x20bdeb){const _0xcd426=_0x91bb;super(_0x4cbb4f),this[_0xcd426(0x207)]=_0x20bdeb,this[_0xcd426(0x1e9)](_0xcd426(0x205),[]),this['on'](_0xcd426(0x210),(_0x32fc2b,_0x1ede5a,_0x565903)=>{const _0x2a0e71=_0xcd426;this[_0x2a0e71(0x203)]&&(this[_0x2a0e71(0x205)]=G(this[_0x2a0e71(0x207)],_0x565903));}),this[_0xcd426(0x1e9)](_0xcd426(0x208),!0x1),this['on'](_0xcd426(0x1f2),(_0x3b5b96,_0x3043fa,_0x9adcf8)=>{const _0x34fb0a=_0xcd426;this[_0x34fb0a(0x205)]=_0x9adcf8?G(this[_0x34fb0a(0x207)],this[_0x34fb0a(0x208)]):[];});}[_0x3f00f5(0x20a)](){const _0x2f5896=_0x3f00f5,_0x3958bb=this[_0x2f5896(0x20e)][_0x2f5896(0x1f9)];this[_0x2f5896(0x208)]=function(_0x222572){const _0x1f7d5f=_0x2f5896,_0x3ee281=_0x222572[_0x1f7d5f(0x1ea)][_0x1f7d5f(0x204)];return _0x3ee281[_0x1f7d5f(0x1f3)]?0x0!==[..._0x3ee281[_0x1f7d5f(0x1ee)]()][_0x1f7d5f(0x1f5)]&&![..._0x3ee281[_0x1f7d5f(0x1ee)]()][0x0][_0x1f7d5f(0x1fe)]:!!_0x222572[_0x1f7d5f(0x1f7)](_0x3ee281[_0x1f7d5f(0x200)]());}(_0x3958bb);const _0x46bfb9=_0x3958bb[_0x2f5896(0x1ea)][_0x2f5896(0x204)],_0x193e39=this[_0x2f5896(0x20e)][_0x2f5896(0x1fd)][_0x2f5896(0x20b)](_0x2f5896(0x214));for(const _0x13abd7 of _0x46bfb9[_0x2f5896(0x1fa)]())for(const _0x4fd2a2 of _0x13abd7[_0x2f5896(0x1f1)]())if(_0x4fd2a2['is'](_0x2f5896(0x201))&&_0x193e39[_0x2f5896(0x206)](_0x4fd2a2[_0x2f5896(0x1eb)]))return void(this[_0x2f5896(0x203)]=!0x1);this[_0x2f5896(0x203)]=!0x0;}[_0x3f00f5(0x209)](_0x35d465='',_0x5cd5b7='',_0x2242b0=_0x3f00f5(0x20f)){const _0x541773=_0x3f00f5;this[_0x541773(0x20e)][_0x541773(0x1f4)][_0x541773(0x20b)](_0x379ea5)[_0x541773(0x213)](_0x35d465,_0x5cd5b7,_0x2242b0);}}function G(_0x41d134,_0x3c34a4){const _0x1b14f4=_0x3f00f5,_0x210e91=new Set();for(const _0x146aba of _0x41d134[_0x1b14f4(0x1ff)]())(_0x3c34a4||!0x1===_0x146aba[_0x1b14f4(0x1f6)])&&_0x210e91[_0x1b14f4(0x1f0)](_0x146aba['id']);return Array[_0x1b14f4(0x1fb)](_0x210e91);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x36580a,_0xc7e931,_0x2f1fc7){const t=_0x36580a['t'];switch(_0xc7e931){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',_0x2f1fc7);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2f1fc7);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'},_0x2f1fc7);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 _0xc7e931;}}
|
|
@@ -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(_0x2ac326,_0x57d9a7){const _0x248444=(0x0,_0x57d9a7['t'])('Other');return _0x2ac326['length']?'groupId'in _0x2ac326[0x0]?_0x2ac326:[{'groupId':'_ungrouppedCommands','groupLabel':_0x248444,'order':0x1/0x0,'commands':_0x2ac326}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x248444,'order':0x1/0x0,'commands':[]}];}
|