@ckeditor/ckeditor5-ai 0.0.0-nightly-20250221.0 → 0.0.0-nightly-20250222.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/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 _0x236758=_0x42d4;(function(_0x151bec,_0x373ebb){const _0x24b346=_0x42d4,_0x491617=_0x151bec();while(!![]){try{const _0x31ba6a=parseInt(_0x24b346(0x90))/0x1+-parseInt(_0x24b346(0x94))/0x2+-parseInt(_0x24b346(0x79))/0x3+parseInt(_0x24b346(0x80))/0x4*(parseInt(_0x24b346(0x98))/0x5)+-parseInt(_0x24b346(0x7e))/0x6*(-parseInt(_0x24b346(0x8b))/0x7)+-parseInt(_0x24b346(0x72))/0x8+-parseInt(_0x24b346(0x65))/0x9*(-parseInt(_0x24b346(0x96))/0xa);if(_0x31ba6a===_0x373ebb)break;else _0x491617['push'](_0x491617['shift']());}catch(_0x43e602){_0x491617['push'](_0x491617['shift']());}}}(_0x35d8,0xab019));import{Rect as _0x4d4669,global as _0x15bb8e,isVisible as _0x33b8fb}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x345906,ButtonView as _0x12336c}from'ckeditor5/src/ui.js';function _0x35d8(){const _0x19d1a7=['maxRows','isEmpty','fire','submitButtonView','excludeScrollbarsAndBorders','value','window','4284666Ljvygm','isVisible','ck-ai-form__toggle-history','focusableChildren','ck-ai-form__submit','queryView','_createShowHistoryButton','add','uiLanguageDirection','element','History','isOn','Submit','2399960fIUUQM','set','width','focusCycler','_createSubmitButton','keystrokes','isEnabled','3208953BPFcUy','enter','bind','showHistoryButtonView','focus','10830yqudyZ','history','236928QteeBs','resultsView','render','focusFirst','fieldWrapperChildren','locale','left','minRows','focusLast','fieldView','filteredView','3073GlCrcL','children','rtl','target','execute','1133206lfEqqI','submit','requestAnimationFrame','style','2326108VfnEGh','right','20PtneMj','update','30NuvIgR'];_0x35d8=function(){return _0x19d1a7;};return _0x35d8();}import{icons as _0xc68b7d}from'ckeditor5/src/core.js';import{getTranslation as _0x2cc4ee}from'../../utils/common-translations.js';import _0x291463 from'../../../theme/icons/submit.svg';function _0x42d4(_0x2b993e,_0x1e459d){const _0x35d848=_0x35d8();return _0x42d4=function(_0x42d40b,_0x4d49bc){_0x42d40b=_0x42d40b-0x64;let _0xd7d694=_0x35d848[_0x42d40b];return _0xd7d694;},_0x42d4(_0x2b993e,_0x1e459d);}export default class ht extends _0x345906{constructor(_0x571c11,_0x3373c4){const _0xdffd=_0x42d4;super(_0x571c11,_0x3373c4),this[_0xdffd(0x6a)][_0xdffd(0x89)][_0xdffd(0x87)]=0x1,this[_0xdffd(0x6a)][_0xdffd(0x89)][_0xdffd(0x99)]=0x3,this[_0xdffd(0x9c)]=this[_0xdffd(0x76)](),this[_0xdffd(0x7c)]=this[_0xdffd(0x6b)](),this[_0xdffd(0x68)][_0xdffd(0x6c)](this[_0xdffd(0x7c)],0x1),this[_0xdffd(0x68)][_0xdffd(0x6c)](this[_0xdffd(0x9c)]);}[_0x236758(0x82)](){const _0x5a2bde=_0x236758;super[_0x5a2bde(0x82)](),this[_0x5a2bde(0x6a)][_0x5a2bde(0x84)][_0x5a2bde(0x6c)](this[_0x5a2bde(0x7c)]),this[_0x5a2bde(0x8c)][_0x5a2bde(0x6c)](this[_0x5a2bde(0x9c)]),this[_0x5a2bde(0x77)][_0x5a2bde(0x73)](_0x5a2bde(0x7a),(_0x22fac8,_0x5f0bf7)=>{const _0x4bc0d6=_0x5a2bde;_0x22fac8[_0x4bc0d6(0x8e)]==this[_0x4bc0d6(0x6a)][_0x4bc0d6(0x89)][_0x4bc0d6(0x6e)]&&(this[_0x4bc0d6(0x91)](),_0x5f0bf7());});}[_0x236758(0x76)](){const _0x4e2233=_0x236758,_0x25046f=new _0x12336c(this[_0x4e2233(0x85)]),_0xdc63e8=this[_0x4e2233(0x85)];return _0x25046f[_0x4e2233(0x73)]({'icon':_0x291463,'label':_0x2cc4ee(_0xdc63e8,_0x4e2233(0x71)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4e2233(0x69)}),_0x25046f['on'](_0x4e2233(0x8f),()=>{const _0x4e42e9=_0x4e2233;this[_0x4e42e9(0x91)]();}),_0x25046f[_0x4e2233(0x7b)](_0x4e2233(0x78))['to'](this[_0x4e2233(0x6a)][_0x4e2233(0x89)],_0x4e2233(0x9a),this,_0x4e2233(0x78),(_0x2c8de9,_0x12e604)=>!_0x2c8de9&&_0x12e604),_0x25046f;}[_0x236758(0x6b)](){const _0x42ed32=_0x236758,_0x5646eb=new _0x12336c(this[_0x42ed32(0x85)]),_0x36a043=this[_0x42ed32(0x81)],_0x2455d3=this[_0x42ed32(0x85)];_0x5646eb[_0x42ed32(0x73)]({'label':_0x2cc4ee(_0x2455d3,_0x42ed32(0x6f)),'withText':!0x1,'icon':_0xc68b7d[_0x42ed32(0x7f)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x42ed32(0x67)}),_0x5646eb[_0x42ed32(0x7b)](_0x42ed32(0x70))['to'](_0x36a043,_0x42ed32(0x66)),_0x5646eb[_0x42ed32(0x7b)](_0x42ed32(0x78))['to'](this,_0x42ed32(0x78)),_0x5646eb['on'](_0x42ed32(0x8f),()=>{const _0x319fa0=_0x42ed32;_0x36a043[_0x319fa0(0x66)]=!_0x36a043[_0x319fa0(0x66)],_0x36a043[_0x319fa0(0x66)]?this[_0x319fa0(0x8a)][_0x319fa0(0x7d)]():this[_0x319fa0(0x7d)]();});const _0x25e677=()=>{const _0x303666=_0x42ed32;_0x15bb8e[_0x303666(0x64)][_0x303666(0x92)](()=>{const _0x44e75=_0x303666;if(_0x33b8fb(this[_0x44e75(0x6e)])){const _0x2bda3f=new _0x4d4669(this[_0x44e75(0x6a)][_0x44e75(0x89)][_0x44e75(0x6e)]),_0x33203f=_0x2bda3f[_0x44e75(0x74)],_0x888909=_0x44e75(0x8d)===_0x2455d3[_0x44e75(0x6d)]?_0x44e75(0x86):_0x44e75(0x95);_0x2bda3f[_0x44e75(0x9d)](),_0x5646eb[_0x44e75(0x6e)][_0x44e75(0x93)][_0x888909]=_0x33203f-_0x2bda3f[_0x44e75(0x74)]+0x1+'px';}});};return this[_0x42ed32(0x6a)][_0x42ed32(0x89)]['on'](_0x42ed32(0x97),_0x25e677),this['on'](_0x42ed32(0x82),_0x25e677),_0x5646eb;}[_0x236758(0x91)](){const _0x4c4323=_0x236758,_0x3b630b=this[_0x4c4323(0x6a)][_0x4c4323(0x89)][_0x4c4323(0x6e)][_0x4c4323(0x9e)];this[_0x4c4323(0x9b)](_0x4c4323(0x91),_0x3b630b);}[_0x236758(0x7d)](_0x433408){const _0x2d3c93=_0x236758;-0x1===_0x433408?this[_0x2d3c93(0x75)][_0x2d3c93(0x88)]():this[_0x2d3c93(0x75)][_0x2d3c93(0x83)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x633fcd=_0x40f2;(function(_0x5439b8,_0x11d8c8){const _0x2a7798=_0x40f2,_0x4c7258=_0x5439b8();while(!![]){try{const _0x1e9928=-parseInt(_0x2a7798(0x99))/0x1*(parseInt(_0x2a7798(0x9b))/0x2)+parseInt(_0x2a7798(0xb3))/0x3*(-parseInt(_0x2a7798(0xad))/0x4)+parseInt(_0x2a7798(0xb4))/0x5*(-parseInt(_0x2a7798(0x93))/0x6)+parseInt(_0x2a7798(0x98))/0x7+-parseInt(_0x2a7798(0xb1))/0x8+-parseInt(_0x2a7798(0x96))/0x9+-parseInt(_0x2a7798(0x92))/0xa*(-parseInt(_0x2a7798(0xa0))/0xb);if(_0x1e9928===_0x11d8c8)break;else _0x4c7258['push'](_0x4c7258['shift']());}catch(_0x236950){_0x4c7258['push'](_0x4c7258['shift']());}}}(_0x50d9,0x8af83));import{ToolbarView as _0x2b6de3,ButtonView as _0x7e6bf9}from'ckeditor5/src/ui.js';function _0x40f2(_0x10410a,_0x4612e3){const _0x50d908=_0x50d9();return _0x40f2=function(_0x40f266,_0x422cff){_0x40f266=_0x40f266-0x91;let _0x534add=_0x50d908[_0x40f266];return _0x534add;},_0x40f2(_0x10410a,_0x4612e3);}import{getTranslation as _0x2faf43}from'../../utils/common-translations.js';function _0x50d9(){const _0x4f04e2=['8336304orSFVx','set','433137zRGmCI','290345uqZtxh','items','_createButton','isVisible','30341580anAxww','6gHKgYW','addMany','stopButton','9432378izvfPE','label','1531761guPtsX','246855ydnHWf','locale','2xBPUmO','insert','_CONTENT','ck-button-action','tryAgainButton','11zYluvj','Stop','Insert\x20below','bindTemplate','ck-hidden','extendTemplate','toUpperCase','replace','AI_','REPLACE','mainAction','insertButton','Try\x20again','8GaMeHg','bind','ck-ai-form__toolbar','replaceButton'];_0x50d9=function(){return _0x4f04e2;};return _0x50d9();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x633fcd(0xa7),'INSERT':_0x633fcd(0x9c)};export default class at extends _0x2b6de3{constructor(_0x33ec7e){const _0x2d2e9d=_0x633fcd;super(_0x33ec7e),this[_0x2d2e9d(0xb2)](_0x2d2e9d(0x91),!0x1),this[_0x2d2e9d(0xb2)](_0x2d2e9d(0xaa),AIFormToolbarViewMainActionLabel[_0x2d2e9d(0xa9)]),this[_0x2d2e9d(0xb0)]=this[_0x2d2e9d(0xb6)]('',_0x2d2e9d(0x9e)),this[_0x2d2e9d(0xb0)][_0x2d2e9d(0xae)](_0x2d2e9d(0x97))['to'](this,_0x2d2e9d(0xaa),_0x3fc0e1=>_0x2faf43(_0x33ec7e,_0x2d2e9d(0xa8)+_0x3fc0e1[_0x2d2e9d(0xa6)]()+_0x2d2e9d(0x9d))),this[_0x2d2e9d(0xab)]=this[_0x2d2e9d(0xb6)](_0x2faf43(_0x33ec7e,_0x2d2e9d(0xa2))),this[_0x2d2e9d(0x9f)]=this[_0x2d2e9d(0xb6)](_0x2faf43(_0x33ec7e,_0x2d2e9d(0xac))),this[_0x2d2e9d(0x95)]=this[_0x2d2e9d(0xb6)](_0x2faf43(_0x33ec7e,_0x2d2e9d(0xa1)));const _0x2d0b5d=this[_0x2d2e9d(0xa3)];this[_0x2d2e9d(0xa5)]({'attributes':{'class':[_0x2d2e9d(0xaf),_0x2d0b5d['if'](_0x2d2e9d(0x91),_0x2d2e9d(0xa4),_0xcd655f=>!_0xcd655f)]}}),this[_0x2d2e9d(0xb5)][_0x2d2e9d(0x94)]([this[_0x2d2e9d(0xb0)],this[_0x2d2e9d(0xab)],this[_0x2d2e9d(0x9f)],this[_0x2d2e9d(0x95)]]);}[_0x633fcd(0xb6)](_0x4a56ec,_0x5b4ec8){const _0x4a8757=_0x633fcd,_0x2562d0=new _0x7e6bf9(this[_0x4a8757(0x9a)]);return _0x2562d0[_0x4a8757(0xb2)]({'label':_0x4a56ec,'class':_0x5b4ec8||'','isVisible':!0x0,'withText':!0x0}),_0x2562d0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ee05d=_0x4fc4;function _0x3ad8(){const _0x372b42=['ck-ai-form','contentArea','reset','locale','items','tryAgainButton','toolbar','438VebcEt','focusTracker','Ask\x20AI\x20to\x20edit\x20or\x20generate','clearHistory','historyGroupView','delegate','render','ck-ai-form-content','3841722EDddTZ','fieldView','replaceButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','submitPrompt','queryView','errorView','_createToolbar','stopButton','ck-hidden','12496784ewgPTz','isVisible','value','mainAction','chain','2670648ijFdmW','keystrokes','element','stopProcessing','_focusables','focusFirst','createCollection','bindTemplate','focusCycler','replaceContent','bind','setTemplate','tryAgainEvent','REPLACE','high','label','_createPromptView','_createHistoryView','isEnabled','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isError','set','isProcessing','clear','31843UkeWSi','finishProcessing','startProcessing','fire','AI_ERROR_FAILED','text','submit','prompt','bindTo','handleError','1293580RwEEDn','add','listenTo','div','search','execute','598504zPlVsM','promptView','copyButtonView','Empty\x20history','insertButton','_promptHistory','insertContentBelow','focusLast','tab','shift\x20+\x20tab','1665864uizLdl','focus','trim'];_0x3ad8=function(){return _0x372b42;};return _0x3ad8();}(function(_0x85e94c,_0x545391){const _0x24934a=_0x4fc4,_0x56854c=_0x85e94c();while(!![]){try{const _0x29e3d5=-parseInt(_0x24934a(0x1a5))/0x1+parseInt(_0x24934a(0x1af))/0x2+parseInt(_0x24934a(0x1c1))/0x3+parseInt(_0x24934a(0x17d))/0x4+-parseInt(_0x24934a(0x19f))/0x5+-parseInt(_0x24934a(0x1b9))/0x6*(-parseInt(_0x24934a(0x195))/0x7)+-parseInt(_0x24934a(0x178))/0x8;if(_0x29e3d5===_0x545391)break;else _0x56854c['push'](_0x56854c['shift']());}catch(_0x467384){_0x56854c['push'](_0x56854c['shift']());}}}(_0x3ad8,0xa96a7));import{FocusTracker as _0x36bc73,KeystrokeHandler as _0x456eee}from'ckeditor5/src/utils.js';import{View as _0x3b3581,FocusCycler as _0x189dc9,createLabeledTextarea as _0x4748ee}from'ckeditor5/src/ui.js';import _0x20470a,{AIFormToolbarViewMainActionLabel as _0x2a7e07}from'./aiformtoolbarview.js';import _0x1afc26 from'./aiformcontentarea.js';import _0x5106b8 from'./aiformerrorview.js';function _0x4fc4(_0x3a53db,_0x14abf2){const _0x3ad830=_0x3ad8();return _0x4fc4=function(_0x4fc47b,_0x2f2aed){_0x4fc47b=_0x4fc47b-0x176;let _0x147008=_0x3ad830[_0x4fc47b];return _0x147008;},_0x4fc4(_0x3a53db,_0x14abf2);}import _0x4c10eb from'./aiformpromptview.js';import _0x3e5670 from'./aihistorylistview.js';import _0x33cb11 from'./aihistorylistitemview.js';import _0x4a1cc8 from'./prompthistory.js';import{getTranslation as _0x5cbb7d}from'../../utils/common-translations.js';import{escape as _0x1a1485}from'lodash-es';export default class k extends _0x3b3581{constructor(_0x3a6208,_0x1361e2,_0x4be7e9=''){const _0x1953d4=_0x4fc4;super(_0x3a6208),this[_0x1953d4(0x192)](_0x1953d4(0x18f),!0x0),this[_0x1953d4(0x192)](_0x1953d4(0x193),!0x1),this[_0x1953d4(0x192)](_0x1953d4(0x19c),''),this[_0x1953d4(0x192)](_0x1953d4(0x17a),''),this[_0x1953d4(0x192)](_0x1953d4(0x191),!0x1),this[_0x1953d4(0x192)](_0x1953d4(0x17b),_0x2a7e07[_0x1953d4(0x18a)]),this[_0x1953d4(0x1aa)]=new _0x4a1cc8(),this[_0x1953d4(0x1c7)]=new _0x5106b8(_0x3a6208),this[_0x1953d4(0x1b3)]=new _0x1afc26(_0x3a6208,_0x4be7e9),this[_0x1953d4(0x1b3)][_0x1953d4(0x187)](_0x1953d4(0x193))['to'](this),this[_0x1953d4(0x1b3)][_0x1953d4(0x187)](_0x1953d4(0x17a))['to'](this),this[_0x1953d4(0x1b8)]=this[_0x1953d4(0x1c8)](),this[_0x1953d4(0x1b8)][_0x1953d4(0x187)](_0x1953d4(0x17b))['to'](this),this[_0x1953d4(0x1a6)]=this[_0x1953d4(0x18d)](),this[_0x1953d4(0x1ba)]=new _0x36bc73(),this[_0x1953d4(0x17e)]=new _0x456eee(),this[_0x1953d4(0x181)]=this[_0x1953d4(0x183)]([this[_0x1953d4(0x1b3)],this[_0x1953d4(0x1b3)][_0x1953d4(0x1a7)],this[_0x1953d4(0x1b8)],this[_0x1953d4(0x1a6)]]),this[_0x1953d4(0x185)]=new _0x189dc9({'focusables':this[_0x1953d4(0x181)],'focusTracker':this[_0x1953d4(0x1ba)],'keystrokeHandler':this[_0x1953d4(0x17e)],'actions':{'focusPrevious':_0x1953d4(0x1ae),'focusNext':_0x1953d4(0x1ad)}}),this[_0x1953d4(0x185)][_0x1953d4(0x17c)](this[_0x1953d4(0x1a6)][_0x1953d4(0x185)]),this[_0x1953d4(0x1a6)][_0x1953d4(0x1c6)][_0x1953d4(0x1c2)][_0x1953d4(0x187)](_0x1953d4(0x17a))['to'](this,_0x1953d4(0x19c));const _0x2ac665=this[_0x1953d4(0x184)];this[_0x1953d4(0x188)]({'tag':_0x1953d4(0x1a2),'attributes':{'class':['ck',_0x1953d4(0x1b2),_0x1361e2],'tabindex':'-1'},'children':[{'tag':_0x1953d4(0x1a2),'attributes':{'class':['ck',_0x1953d4(0x1c0)]},'children':[{'tag':_0x1953d4(0x1a2),'attributes':{'class':[_0x2ac665['if'](_0x1953d4(0x191),_0x1953d4(0x177),_0x5df712=>!_0x5df712)]},'children':[this[_0x1953d4(0x1c7)]]},this[_0x1953d4(0x1b3)],this[_0x1953d4(0x1b8)],this[_0x1953d4(0x1a6)]]}]});}[_0x5ee05d(0x1bf)](){const _0x41dbb4=_0x5ee05d;super[_0x41dbb4(0x1bf)](),this[_0x41dbb4(0x1ba)][_0x41dbb4(0x1a0)](this[_0x41dbb4(0x1b3)][_0x41dbb4(0x17f)]),this[_0x41dbb4(0x1ba)][_0x41dbb4(0x1a0)](this[_0x41dbb4(0x1b3)][_0x41dbb4(0x1a7)][_0x41dbb4(0x17f)]),this[_0x41dbb4(0x1ba)][_0x41dbb4(0x1a0)](this[_0x41dbb4(0x1b8)][_0x41dbb4(0x17f)]),this[_0x41dbb4(0x1ba)][_0x41dbb4(0x1a0)](this[_0x41dbb4(0x1a6)][_0x41dbb4(0x17f)]),this[_0x41dbb4(0x17e)][_0x41dbb4(0x1a1)](this[_0x41dbb4(0x17f)]);}[_0x5ee05d(0x1b0)](_0x33b869=0x1){const _0x1a6270=_0x5ee05d;-0x1===_0x33b869?this[_0x1a6270(0x185)][_0x1a6270(0x1ac)]():this[_0x1a6270(0x185)][_0x1a6270(0x182)]();}[_0x5ee05d(0x1b4)](){const _0x56d95c=_0x5ee05d;this[_0x56d95c(0x19c)]='',this[_0x56d95c(0x17a)]='',this[_0x56d95c(0x191)]=!0x1,this[_0x56d95c(0x1a6)][_0x56d95c(0x1b4)](),this[_0x56d95c(0x1b3)][_0x56d95c(0x179)]=!0x1,this[_0x56d95c(0x1b8)][_0x56d95c(0x179)]=!0x1;}[_0x5ee05d(0x18d)](){const _0x547204=_0x5ee05d,_0x3b70fa=this[_0x547204(0x1b5)],_0x13b271=new _0x4c10eb(_0x3b70fa,{'queryView':{'label':_0x5cbb7d(_0x3b70fa,_0x547204(0x1bb)),'creator':_0x4748ee,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5cbb7d(_0x3b70fa,_0x547204(0x1a8)),'secondary':_0x5cbb7d(_0x3b70fa,_0x547204(0x190))}}},'filteredView':this[_0x547204(0x18e)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x13b271[_0x547204(0x187)](_0x547204(0x18f))['to'](this,_0x547204(0x18f),this,_0x547204(0x193),(_0xf3b402,_0x4b9bd3)=>_0xf3b402&&!_0x4b9bd3),this[_0x547204(0x1a1)](_0x13b271,_0x547204(0x19b),(_0x1c0523,_0xa4f24c)=>{const _0x353b58=_0x547204;this[_0x353b58(0x19c)]=_0xa4f24c;const _0x11a3ad=_0x1a1485(_0xa4f24c);this[_0x353b58(0x198)](_0x353b58(0x1c5),_0x11a3ad),_0xa4f24c[_0x353b58(0x1b1)]()&&this[_0x353b58(0x1aa)][_0x353b58(0x1a0)]({'prompt':_0x11a3ad},0x0);},{'priority':_0x547204(0x18b)}),_0x13b271;}[_0x5ee05d(0x18e)](){const _0x2a5396=_0x5ee05d,_0x59d0cc=new _0x3e5670(this[_0x2a5396(0x1b5)]);return _0x59d0cc[_0x2a5396(0x1bd)][_0x2a5396(0x1b6)][_0x2a5396(0x19d)](this[_0x2a5396(0x1aa)])['as'](_0x33cb11),_0x59d0cc['on'](_0x2a5396(0x1bc),()=>{const _0x43d442=_0x2a5396;this[_0x43d442(0x1aa)][_0x43d442(0x194)](),this[_0x43d442(0x1a6)][_0x43d442(0x1a3)](''),this[_0x43d442(0x1a6)][_0x43d442(0x1b0)]();}),_0x59d0cc;}[_0x5ee05d(0x1c8)](){const _0x3d1a60=_0x5ee05d,_0x48363b=new _0x20470a(this[_0x3d1a60(0x1b5)]);return _0x48363b[_0x3d1a60(0x1c3)][_0x3d1a60(0x187)](_0x3d1a60(0x18f))['to'](this,_0x3d1a60(0x18f),this,_0x3d1a60(0x193),this,_0x3d1a60(0x17a),(_0x2fddf1,_0x2bd7ec,_0x3d64e1)=>_0x2fddf1&&!_0x2bd7ec&&!!_0x3d64e1),_0x48363b[_0x3d1a60(0x1c3)][_0x3d1a60(0x1be)](_0x3d1a60(0x1a4))['to'](this,_0x3d1a60(0x186)),_0x48363b[_0x3d1a60(0x1a9)][_0x3d1a60(0x187)](_0x3d1a60(0x18f))['to'](this,_0x3d1a60(0x18f),this,_0x3d1a60(0x193),this,_0x3d1a60(0x17a),(_0x5d0a0a,_0x29f41d,_0x1a20c6)=>_0x5d0a0a&&!_0x29f41d&&!!_0x1a20c6),_0x48363b[_0x3d1a60(0x1a9)][_0x3d1a60(0x1be)](_0x3d1a60(0x1a4))['to'](this,_0x3d1a60(0x1ab)),_0x48363b[_0x3d1a60(0x1b7)][_0x3d1a60(0x187)](_0x3d1a60(0x18f))['to'](this,_0x3d1a60(0x18f),this,_0x3d1a60(0x193),(_0x897a55,_0x1cf0e0)=>_0x897a55&&!_0x1cf0e0),_0x48363b[_0x3d1a60(0x1b7)][_0x3d1a60(0x1be)](_0x3d1a60(0x1a4))['to'](this,_0x3d1a60(0x189)),_0x48363b[_0x3d1a60(0x176)][_0x3d1a60(0x187)](_0x3d1a60(0x18f))['to'](this,_0x3d1a60(0x193)),_0x48363b[_0x3d1a60(0x176)][_0x3d1a60(0x1be)](_0x3d1a60(0x1a4))['to'](this,_0x3d1a60(0x180)),_0x48363b;}[_0x5ee05d(0x197)](){const _0x2a4d89=_0x5ee05d;this[_0x2a4d89(0x17a)]='',this[_0x2a4d89(0x191)]=!0x1,this[_0x2a4d89(0x193)]=!0x0,this[_0x2a4d89(0x1b3)][_0x2a4d89(0x179)]=!0x0,this[_0x2a4d89(0x1b8)][_0x2a4d89(0x179)]=!0x0,this[_0x2a4d89(0x1b3)][_0x2a4d89(0x1b0)]();}[_0x5ee05d(0x196)](){const _0x4d3753=_0x5ee05d,_0x5163a9=this[_0x4d3753(0x1b5)];this[_0x4d3753(0x193)]=!0x1,this[_0x4d3753(0x19c)]='',this[_0x4d3753(0x1a6)][_0x4d3753(0x1b4)](),this[_0x4d3753(0x17a)]&&(this[_0x4d3753(0x1a6)][_0x4d3753(0x1c6)][_0x4d3753(0x18c)]=_0x5cbb7d(_0x5163a9,_0x4d3753(0x1c4)));}[_0x5ee05d(0x19e)](_0x49b7c4){const _0x4bbe8d=_0x5ee05d,_0x57ae1b=this[_0x4bbe8d(0x1b5)];this[_0x4bbe8d(0x196)](),this[_0x4bbe8d(0x191)]=!0x0,this[_0x4bbe8d(0x1c7)][_0x4bbe8d(0x19a)]=_0x49b7c4||_0x5cbb7d(_0x57ae1b,_0x4bbe8d(0x199)),this[_0x4bbe8d(0x17a)]||(this[_0x4bbe8d(0x1b3)][_0x4bbe8d(0x179)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2cfa72,_0x5cf20d){const _0x277dd1=_0x26b3,_0x1e0bd7=_0x2cfa72();while(!![]){try{const _0x135aa0=-parseInt(_0x277dd1(0x15b))/0x1*(parseInt(_0x277dd1(0x15e))/0x2)+parseInt(_0x277dd1(0x167))/0x3+-parseInt(_0x277dd1(0x15a))/0x4+parseInt(_0x277dd1(0x160))/0x5+parseInt(_0x277dd1(0x163))/0x6+parseInt(_0x277dd1(0x161))/0x7+-parseInt(_0x277dd1(0x162))/0x8;if(_0x135aa0===_0x5cf20d)break;else _0x1e0bd7['push'](_0x1e0bd7['shift']());}catch(_0x575f42){_0x1e0bd7['push'](_0x1e0bd7['shift']());}}}(_0x3262,0x380d0));import{ListItemView as _0x18ffd6,ButtonView as _0x26aaeb,ButtonLabelView as _0x163684}from'ckeditor5/src/ui.js';function _0x3262(){const _0x49ff9c=['3469976eakmwg','1268058QNboFT','fire','prompt','set','1236642kHmfrf','children','739592UKbHbI','14FTGDoQ','locale','execute','60670TaujVT','add','1899140KXGIQn','1886738LLyNzn'];_0x3262=function(){return _0x49ff9c;};return _0x3262();}import{unescape as _0x5987ce}from'lodash-es';function _0x26b3(_0x217a64,_0x594793){const _0x326220=_0x3262();return _0x26b3=function(_0x26b3ff,_0x3c67af){_0x26b3ff=_0x26b3ff-0x159;let _0x2ec776=_0x326220[_0x26b3ff];return _0x2ec776;},_0x26b3(_0x217a64,_0x594793);}export default class hs extends _0x18ffd6{constructor(_0x5767ca){const _0xfd2f40=_0x26b3;super();const _0x2fd8a8=new _0x163684(),_0x251bb9=new _0x26aaeb(this[_0xfd2f40(0x15c)],_0x2fd8a8);this[_0xfd2f40(0x159)][_0xfd2f40(0x15f)](_0x251bb9),_0x251bb9[_0xfd2f40(0x166)]({'label':_0x5767ca[_0xfd2f40(0x165)],'withText':!0x0}),_0x251bb9['on'](_0xfd2f40(0x15d),()=>{const _0x1a8008=_0xfd2f40;this[_0x1a8008(0x164)](_0x1a8008(0x15d),{'value':_0x5987ce(_0x5767ca[_0x1a8008(0x165)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x436837=_0x4fe0;(function(_0x4db3c0,_0x158895){const _0xa17205=_0x4fe0,_0xc8d7bf=_0x4db3c0();while(!![]){try{const _0x252c26=parseInt(_0xa17205(0x1d3))/0x1+-parseInt(_0xa17205(0x1e1))/0x2+-parseInt(_0xa17205(0x1d1))/0x3+parseInt(_0xa17205(0x1ce))/0x4+parseInt(_0xa17205(0x1dd))/0x5*(-parseInt(_0xa17205(0x1cf))/0x6)+-parseInt(_0xa17205(0x1e5))/0x7*(parseInt(_0xa17205(0x1d0))/0x8)+parseInt(_0xa17205(0x1db))/0x9*(parseInt(_0xa17205(0x1d4))/0xa);if(_0x252c26===_0x158895)break;else _0xc8d7bf['push'](_0xc8d7bf['shift']());}catch(_0x220f9f){_0xc8d7bf['push'](_0xc8d7bf['shift']());}}}(_0x5510,0xe2f72));import{ListView as _0x3472f2,ListItemGroupView as _0x346df2,ButtonView as _0x3d0c6d}from'ckeditor5/src/ui.js';function _0x5510(){const _0x4982fd=['Clear','items','5746508hHTYfe','6vaihCy','48qpLnQa','3547443fbzaNO','fire','882470aLOoBQ','9590jGNyBv','add','execute','historyGroupView','Prompt\x20history','locale','delegate','3717huRlhy','clearHistory','1253290IPVgyb','_createClearHistoryButton','clearHistoryButton','set','513866hrgccs','length','children','label','111349vddnIN','filter'];_0x5510=function(){return _0x4982fd;};return _0x5510();}import{getTranslation as _0x5356a2}from'../../utils/common-translations.js';function _0x4fe0(_0x567053,_0x37adf8){const _0x55107f=_0x5510();return _0x4fe0=function(_0x4fe027,_0x567dcd){_0x4fe027=_0x4fe027-0x1cc;let _0x1c9ac6=_0x55107f[_0x4fe027];return _0x1c9ac6;},_0x4fe0(_0x567053,_0x37adf8);}export default class rs extends _0x3472f2{constructor(_0x3b7891){const _0x4254ff=_0x4fe0;super(_0x3b7891),this[_0x4254ff(0x1df)]=this[_0x4254ff(0x1de)](),this[_0x4254ff(0x1d7)]=new _0x346df2(),this[_0x4254ff(0x1d7)][_0x4254ff(0x1e3)][_0x4254ff(0x1d5)](this[_0x4254ff(0x1df)],0x1),this[_0x4254ff(0x1d7)][_0x4254ff(0x1e4)]=_0x5356a2(_0x3b7891,_0x4254ff(0x1d8)),this[_0x4254ff(0x1d7)][_0x4254ff(0x1cd)][_0x4254ff(0x1da)](_0x4254ff(0x1d6))['to'](this),this[_0x4254ff(0x1cd)][_0x4254ff(0x1d5)](this[_0x4254ff(0x1d7)]);}[_0x436837(0x1e6)](){const _0x49a39f=_0x436837;let _0x462465=0x0;for(const _0x4126fd of this[_0x49a39f(0x1cd)])_0x462465+=_0x4126fd[_0x49a39f(0x1cd)][_0x49a39f(0x1e2)];return{'resultsCount':_0x462465,'totalItemsCount':_0x462465};}[_0x436837(0x1de)](){const _0x5b8d5a=_0x436837,_0x49a99d=this[_0x5b8d5a(0x1d9)],_0x38af51=new _0x3d0c6d(this[_0x5b8d5a(0x1d9)]);return _0x38af51[_0x5b8d5a(0x1e0)]({'label':'('+_0x5356a2(_0x49a99d,_0x5b8d5a(0x1cc))+')','withText':!0x0}),_0x38af51['on'](_0x5b8d5a(0x1d6),()=>this[_0x5b8d5a(0x1d2)](_0x5b8d5a(0x1dc))),_0x38af51;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48dcbc=_0x5d56;(function(_0x2199a8,_0x26be30){const _0x5a3ab9=_0x5d56,_0x3b120e=_0x2199a8();while(!![]){try{const _0x165159=parseInt(_0x5a3ab9(0xe2))/0x1+parseInt(_0x5a3ab9(0xd7))/0x2+parseInt(_0x5a3ab9(0xdf))/0x3*(-parseInt(_0x5a3ab9(0xe5))/0x4)+parseInt(_0x5a3ab9(0xcf))/0x5*(parseInt(_0x5a3ab9(0xe3))/0x6)+-parseInt(_0x5a3ab9(0xd6))/0x7*(-parseInt(_0x5a3ab9(0xdc))/0x8)+parseInt(_0x5a3ab9(0xde))/0x9*(parseInt(_0x5a3ab9(0xe4))/0xa)+-parseInt(_0x5a3ab9(0xd0))/0xb;if(_0x165159===_0x26be30)break;else _0x3b120e['push'](_0x3b120e['shift']());}catch(_0x3347c3){_0x3b120e['push'](_0x3b120e['shift']());}}}(_0x1cfb,0x68821));function _0x5d56(_0x538013,_0xa5e05e){const _0x1cfb78=_0x1cfb();return _0x5d56=function(_0x5d56e0,_0x7fd4da){_0x5d56e0=_0x5d56e0-0xcc;let _0x1cc1ae=_0x1cfb78[_0x5d56e0];return _0x1cc1ae;},_0x5d56(_0x538013,_0xa5e05e);}import{Collection as _0x3e4c84}from'ckeditor5/src/utils.js';const cs=_0x48dcbc(0xd4);function _0x1cfb(){const _0x4b1dc0=['308371RJJKib','322418RSSzoM','addMany','_loadFromSessionStorage','getItem','prompt','16bbhdQw','map','418014CAeHyF','3HXFfZy','length','parse','382265XzuyXl','289326PxYuXE','120hftmhM','1212316fenAvc','stringify','_saveToSessionStorage','toLowerCase','add','40GOfRib','9279116aSNjLq','trim','setItem','last','CKEditor/AIFormView/PromptHistory','remove'];_0x1cfb=function(){return _0x4b1dc0;};return _0x1cfb();}export default class os extends _0x3e4c84{constructor(){const _0xc28054=_0x48dcbc;super(),this[_0xc28054(0xd9)](),this['on'](_0xc28054(0xce),(_0x4a41a7,_0x3ff80d)=>{const _0x5a35ee=_0xc28054,_0x14112a=Ss(_0x3ff80d[_0x5a35ee(0xdb)]);for(const _0x30972d of this)if(_0x30972d!=_0x3ff80d&&Ss(_0x30972d[_0x5a35ee(0xdb)])===_0x14112a){this[_0x5a35ee(0xd5)](_0x30972d);break;}this[_0x5a35ee(0xe0)]>0x14&&this[_0x5a35ee(0xd5)](this[_0x5a35ee(0xd3)]),this[_0x5a35ee(0xcc)]();}),this['on'](_0xc28054(0xd5),()=>{const _0x40f555=_0xc28054;this[_0x40f555(0xcc)]();});}[_0x48dcbc(0xd9)](){const _0x59e335=_0x48dcbc,_0x174142=sessionStorage[_0x59e335(0xda)](cs)||'[]';this[_0x59e335(0xd8)](JSON[_0x59e335(0xe1)](_0x174142));}[_0x48dcbc(0xcc)](){const _0x3e1f0f=_0x48dcbc;sessionStorage[_0x3e1f0f(0xd2)](cs,JSON[_0x3e1f0f(0xe6)](this[_0x3e1f0f(0xdd)](_0x355523=>_0x355523)));}}function Ss(_0xc54644){const _0x483493=_0x48dcbc;return _0xc54644[_0x483493(0xcd)]()[_0x483493(0xd1)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1baad4=_0x30a8;(function(_0x311d2e,_0x33f603){const _0xa43fdb=_0x30a8,_0x372543=_0x311d2e();while(!![]){try{const _0x2affc5=-parseInt(_0xa43fdb(0xad))/0x1+parseInt(_0xa43fdb(0xa0))/0x2+-parseInt(_0xa43fdb(0xb9))/0x3*(parseInt(_0xa43fdb(0xa5))/0x4)+-parseInt(_0xa43fdb(0xb4))/0x5*(-parseInt(_0xa43fdb(0xb3))/0x6)+parseInt(_0xa43fdb(0xa3))/0x7*(parseInt(_0xa43fdb(0xa1))/0x8)+-parseInt(_0xa43fdb(0xaf))/0x9*(parseInt(_0xa43fdb(0x91))/0xa)+parseInt(_0xa43fdb(0x9a))/0xb;if(_0x2affc5===_0x33f603)break;else _0x372543['push'](_0x372543['shift']());}catch(_0x1e7b10){_0x372543['push'](_0x372543['shift']());}}}(_0x4fcd,0xbba79));function _0x4fcd(){const _0x4222e7=['getFirstRange','_hasContext','change:_hasContext','hasContent','14347003uUdHEH','from','values','get','model','getRanges','1209348oYBUxj','296VtrvVo','includes','177247ooqCxH','requiresContent','2692788BdNNqN','isEnabled','document','refresh','change:isEnabled','config','showUI','name','255609TanzYH','execute','711LqaLop','getSelectedBlocks','length','enabledCommandsIds','6tQjnkB','4751835QHibjb','set','isCollapsed','_commandDefinitions','add','6yYWhBu','editor','ai.aiAssistant.disabledElements','custom','selection','180450dAEjch','plugins','isEmpty','getItems','element'];_0x4fcd=function(){return _0x4222e7;};return _0x4fcd();}import{Command as _0x13a468}from'ckeditor5/src/core.js';function _0x30a8(_0x32c916,_0x18eec7){const _0x4fcd80=_0x4fcd();return _0x30a8=function(_0x30a877,_0x1b9563){_0x30a877=_0x30a877-0x90;let _0x3ce578=_0x4fcd80[_0x30a877];return _0x3ce578;},_0x30a8(_0x32c916,_0x18eec7);}import _0x50053e from'../aiassistantui.js';export default class E extends _0x13a468{constructor(_0x118a93,_0x55c3aa){const _0x25220b=_0x30a8;super(_0x118a93),this[_0x25220b(0xb7)]=_0x55c3aa,this[_0x25220b(0xb5)](_0x25220b(0xb2),[]),this['on'](_0x25220b(0x98),(_0x34c867,_0x69736a,_0x46f922)=>{const _0x1a9059=_0x25220b;this[_0x1a9059(0xa6)]&&(this[_0x1a9059(0xb2)]=G(this[_0x1a9059(0xb7)],_0x46f922));}),this[_0x25220b(0xb5)](_0x25220b(0x97),!0x1),this['on'](_0x25220b(0xa9),(_0x3a60a3,_0x31f82c,_0xcf1bf9)=>{const _0x3b3ad6=_0x25220b;this[_0x3b3ad6(0xb2)]=_0xcf1bf9?G(this[_0x3b3ad6(0xb7)],this[_0x3b3ad6(0x97)]):[];});}[_0x1baad4(0xa8)](){const _0x23ff70=_0x1baad4,_0x3893ca=this[_0x23ff70(0xba)][_0x23ff70(0x9e)];this[_0x23ff70(0x97)]=function(_0x40264b){const _0x36a654=_0x23ff70,_0x7cae93=_0x40264b[_0x36a654(0xa7)][_0x36a654(0x90)];return _0x7cae93[_0x36a654(0xb6)]?0x0!==[..._0x7cae93[_0x36a654(0xb0)]()][_0x36a654(0xb1)]&&![..._0x7cae93[_0x36a654(0xb0)]()][0x0][_0x36a654(0x93)]:!!_0x40264b[_0x36a654(0x99)](_0x7cae93[_0x36a654(0x96)]());}(_0x3893ca);const _0x365685=_0x3893ca[_0x23ff70(0xa7)][_0x23ff70(0x90)],_0xb3e0c3=this[_0x23ff70(0xba)][_0x23ff70(0xaa)][_0x23ff70(0x9d)](_0x23ff70(0xbb));for(const _0x304ff6 of _0x365685[_0x23ff70(0x9f)]())for(const _0x38b1fa of _0x304ff6[_0x23ff70(0x94)]())if(_0x38b1fa['is'](_0x23ff70(0x95))&&_0xb3e0c3[_0x23ff70(0xa2)](_0x38b1fa[_0x23ff70(0xac)]))return void(this[_0x23ff70(0xa6)]=!0x1);this[_0x23ff70(0xa6)]=!0x0;}[_0x1baad4(0xae)](_0x32ee00='',_0x5961c1='',_0x3ad605=_0x1baad4(0xbc)){const _0x1360bc=_0x1baad4;this[_0x1360bc(0xba)][_0x1360bc(0x92)][_0x1360bc(0x9d)](_0x50053e)[_0x1360bc(0xab)](_0x32ee00,_0x5961c1,_0x3ad605);}}function G(_0x45ee31,_0x54d6e1){const _0x4c27b3=_0x1baad4,_0x4969a7=new Set();for(const _0x56ae26 of _0x45ee31[_0x4c27b3(0x9c)]())(_0x54d6e1||!0x1===_0x56ae26[_0x4c27b3(0xa4)])&&_0x4969a7[_0x4c27b3(0xb8)](_0x56ae26['id']);return Array[_0x4c27b3(0x9b)](_0x4969a7);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x46d606,_0xd1bcfd,_0x2e2341){const t=_0x46d606['t'];switch(_0xd1bcfd){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',_0x2e2341);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2e2341);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'},_0x2e2341);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 _0xd1bcfd;}}
|
|
@@ -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(_0x364e89,_0x584ed8){const _0x53b505=(0x0,_0x584ed8['t'])('Other');return _0x364e89['length']?'groupId'in _0x364e89[0x0]?_0x364e89:[{'groupId':'_ungrouppedCommands','groupLabel':_0x53b505,'order':0x1/0x0,'commands':_0x364e89}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x53b505,'order':0x1/0x0,'commands':[]}];}
|