@ckeditor/ckeditor5-ai 46.0.2-alpha.1 → 46.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcc8e01=_0x3062;function _0x3062(_0x351fac,_0x451d0f){const _0x59a616=_0x59a6();return _0x3062=function(_0x30625d,_0x58f303){_0x30625d=_0x30625d-0x1ca;let _0x12ad7f=_0x59a616[_0x30625d];return _0x12ad7f;},_0x3062(_0x351fac,_0x451d0f);}function _0x59a6(){const _0x3291b3=['fieldWrapperChildren','target','set','fieldView','9647925QssuhS','1410EzFwTu','execute','queryView','update','7383786deQMBB','History','focusFirst','8zhhbAx','minRows','element','5dYlXtF','rtl','isOn','82GPQNxB','children','locale','isEmpty','fire','ck-ai-form__submit','resultsView','right','_createShowHistoryButton','focusCycler','6421581MUuYsx','value','3056175NjNuxh','keystrokes','add','isVisible','window','focusableChildren','isEnabled','filteredView','25375IkgYLv','submit','_createSubmitButton','1024456xkGfzp','92686lvOiOo','requestAnimationFrame','Submit','style','focus','excludeScrollbarsAndBorders','uiLanguageDirection','bind','render','maxRows','enter','left','submitButtonView','showHistoryButtonView','focusLast','width','ck-ai-form__toggle-history'];_0x59a6=function(){return _0x3291b3;};return _0x59a6();}(function(_0x397e3c,_0x37dadc){const _0x38a14f=_0x3062,_0x52469d=_0x397e3c();while(!![]){try{const _0x329040=-parseInt(_0x38a14f(0x1f5))/0x1*(parseInt(_0x38a14f(0x1e1))/0x2)+parseInt(_0x38a14f(0x1ed))/0x3+parseInt(_0x38a14f(0x1f8))/0x4+-parseInt(_0x38a14f(0x1de))/0x5*(parseInt(_0x38a14f(0x1d8))/0x6)+-parseInt(_0x38a14f(0x1d3))/0x7*(-parseInt(_0x38a14f(0x1db))/0x8)+-parseInt(_0x38a14f(0x1eb))/0x9+parseInt(_0x38a14f(0x1d4))/0xa*(parseInt(_0x38a14f(0x1f9))/0xb);if(_0x329040===_0x37dadc)break;else _0x52469d['push'](_0x52469d['shift']());}catch(_0x58eba2){_0x52469d['push'](_0x52469d['shift']());}}}(_0x59a6,0xd1259));import{Rect as _0x8e930e,global as _0x3d26cc,isVisible as _0x2d5c9e}from'ckeditor5/src/utils.js';import{IconHistory as _0xc9206c,IconSubmit as _0xb0990a}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2a8e2c,ButtonView as _0x3d5cff}from'ckeditor5/src/ui.js';import{getTranslation as _0xfe6d2c}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2a8e2c{[_0xcc8e01(0x1ca)];[_0xcc8e01(0x1cb)];constructor(_0x36e0ae,_0xe3b410){const _0x5df4b0=_0xcc8e01;super(_0x36e0ae,_0xe3b410),this[_0x5df4b0(0x1d6)][_0x5df4b0(0x1d2)][_0x5df4b0(0x1dc)]=0x1,this[_0x5df4b0(0x1d6)][_0x5df4b0(0x1d2)][_0x5df4b0(0x202)]=0x3,this[_0x5df4b0(0x1ca)]=this[_0x5df4b0(0x1f7)](),this[_0x5df4b0(0x1cb)]=this[_0x5df4b0(0x1e9)](),this[_0x5df4b0(0x1f2)][_0x5df4b0(0x1ef)](this[_0x5df4b0(0x1cb)],0x1),this[_0x5df4b0(0x1f2)][_0x5df4b0(0x1ef)](this[_0x5df4b0(0x1ca)]);}[_0xcc8e01(0x201)](){const _0x52ced4=_0xcc8e01;super[_0x52ced4(0x201)](),this[_0x52ced4(0x1d6)][_0x52ced4(0x1cf)][_0x52ced4(0x1ef)](this[_0x52ced4(0x1cb)]),this[_0x52ced4(0x1e2)][_0x52ced4(0x1ef)](this[_0x52ced4(0x1ca)]),this[_0x52ced4(0x1ee)][_0x52ced4(0x1d1)](_0x52ced4(0x203),(_0x33e190,_0x91e786)=>{const _0xa3326f=_0x52ced4;_0x33e190[_0xa3326f(0x1d0)]==this[_0xa3326f(0x1d6)][_0xa3326f(0x1d2)][_0xa3326f(0x1dd)]&&(this[_0xa3326f(0x1f6)](),_0x91e786());});}[_0xcc8e01(0x1f7)](){const _0x5f4aa5=_0xcc8e01,_0x53c637=new _0x3d5cff(this[_0x5f4aa5(0x1e3)]),_0x4fee90=this[_0x5f4aa5(0x1e3)];return _0x53c637[_0x5f4aa5(0x1d1)]({'icon':_0xb0990a,'label':_0xfe6d2c(_0x4fee90,_0x5f4aa5(0x1fb)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5f4aa5(0x1e6)}),_0x53c637['on'](_0x5f4aa5(0x1d5),()=>{const _0x574612=_0x5f4aa5;this[_0x574612(0x1f6)]();}),_0x53c637[_0x5f4aa5(0x200)](_0x5f4aa5(0x1f3))['to'](this[_0x5f4aa5(0x1d6)][_0x5f4aa5(0x1d2)],_0x5f4aa5(0x1e4),this,_0x5f4aa5(0x1f3),(_0x15860f,_0x139ebb)=>!_0x15860f&&_0x139ebb),_0x53c637;}[_0xcc8e01(0x1e9)](){const _0x54fc7e=_0xcc8e01,_0x289b16=new _0x3d5cff(this[_0x54fc7e(0x1e3)]),_0x5b6c7e=this[_0x54fc7e(0x1e7)],_0x7845e2=this[_0x54fc7e(0x1e3)];_0x289b16[_0x54fc7e(0x1d1)]({'label':_0xfe6d2c(_0x7845e2,_0x54fc7e(0x1d9)),'withText':!0x1,'icon':_0xc9206c,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x54fc7e(0x1ce)}),_0x289b16[_0x54fc7e(0x200)](_0x54fc7e(0x1e0))['to'](_0x5b6c7e,_0x54fc7e(0x1f0)),_0x289b16[_0x54fc7e(0x200)](_0x54fc7e(0x1f3))['to'](this,_0x54fc7e(0x1f3)),_0x289b16['on'](_0x54fc7e(0x1d5),()=>{const _0x4c041d=_0x54fc7e;_0x5b6c7e[_0x4c041d(0x1f0)]=!_0x5b6c7e[_0x4c041d(0x1f0)],_0x5b6c7e[_0x4c041d(0x1f0)]?this[_0x4c041d(0x1f4)][_0x4c041d(0x1fd)]():this[_0x4c041d(0x1fd)]();});const _0x18d049=()=>{const _0x4f28b1=_0x54fc7e;_0x3d26cc[_0x4f28b1(0x1f1)][_0x4f28b1(0x1fa)](()=>{const _0x67db1b=_0x4f28b1;if(_0x2d5c9e(this[_0x67db1b(0x1dd)])){const _0x2e727f=new _0x8e930e(this[_0x67db1b(0x1d6)][_0x67db1b(0x1d2)][_0x67db1b(0x1dd)]),_0x4d3e85=_0x2e727f[_0x67db1b(0x1cd)],_0x4c11dd=_0x67db1b(0x1df)===_0x7845e2[_0x67db1b(0x1ff)]?_0x67db1b(0x204):_0x67db1b(0x1e8);_0x2e727f[_0x67db1b(0x1fe)](),_0x289b16[_0x67db1b(0x1dd)][_0x67db1b(0x1fc)][_0x4c11dd]=_0x4d3e85-_0x2e727f[_0x67db1b(0x1cd)]+0x1+'px';}});};return this[_0x54fc7e(0x1d6)][_0x54fc7e(0x1d2)]['on'](_0x54fc7e(0x1d7),_0x18d049),this['on'](_0x54fc7e(0x201),_0x18d049),_0x289b16;}[_0xcc8e01(0x1f6)](){const _0x1e44a1=_0xcc8e01,_0x43345f=this[_0x1e44a1(0x1d6)][_0x1e44a1(0x1d2)][_0x1e44a1(0x1dd)][_0x1e44a1(0x1ec)];this[_0x1e44a1(0x1e5)](_0x1e44a1(0x1f6),_0x43345f);}[_0xcc8e01(0x1fd)](_0x1ef306){const _0x923190=_0xcc8e01;-0x1===_0x1ef306?this[_0x923190(0x1ea)][_0x923190(0x1cc)]():this[_0x923190(0x1ea)][_0x923190(0x1da)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f4c70=_0x3180;function _0x3180(_0x5eede3,_0x94d77b){const _0x5e51b9=_0x5e51();return _0x3180=function(_0x31806d,_0x246d34){_0x31806d=_0x31806d-0x6f;let _0x7fbc13=_0x5e51b9[_0x31806d];return _0x7fbc13;},_0x3180(_0x5eede3,_0x94d77b);}(function(_0xdf57d8,_0x47da44){const _0x2c4047=_0x3180,_0x1d9e52=_0xdf57d8();while(!![]){try{const _0x17e3c1=parseInt(_0x2c4047(0x70))/0x1*(-parseInt(_0x2c4047(0x7a))/0x2)+parseInt(_0x2c4047(0x87))/0x3+parseInt(_0x2c4047(0x79))/0x4*(-parseInt(_0x2c4047(0x81))/0x5)+parseInt(_0x2c4047(0x75))/0x6+-parseInt(_0x2c4047(0x74))/0x7+-parseInt(_0x2c4047(0x73))/0x8*(parseInt(_0x2c4047(0x80))/0x9)+parseInt(_0x2c4047(0x85))/0xa;if(_0x17e3c1===_0x47da44)break;else _0x1d9e52['push'](_0x1d9e52['shift']());}catch(_0x18fd1d){_0x1d9e52['push'](_0x1d9e52['shift']());}}}(_0x5e51,0x845e3));import{ToolbarView as _0x225101,ButtonView as _0x462f39}from'ckeditor5/src/ui.js';import{getTranslation as _0x49c244}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x4f4c70(0x91),'INSERT':_0x4f4c70(0x8f)};export class AIFormToolbarView extends _0x225101{constructor(_0x2e77fa){const _0x3774c3=_0x4f4c70;super(_0x2e77fa),this[_0x3774c3(0x92)](_0x3774c3(0x7f),!0x1),this[_0x3774c3(0x92)](_0x3774c3(0x6f),AIFormToolbarViewMainActionLabel[_0x3774c3(0x88)]),this[_0x3774c3(0x77)]=this[_0x3774c3(0x84)]('',_0x3774c3(0x8d)),this[_0x3774c3(0x77)][_0x3774c3(0x7c)](_0x3774c3(0x83))['to'](this,_0x3774c3(0x6f),_0x2cd030=>_0x49c244(_0x2e77fa,_0x3774c3(0x78)+_0x2cd030[_0x3774c3(0x8a)]()+_0x3774c3(0x89))),this[_0x3774c3(0x8c)]=this[_0x3774c3(0x84)](_0x49c244(_0x2e77fa,_0x3774c3(0x71))),this[_0x3774c3(0x7d)]=this[_0x3774c3(0x84)](_0x49c244(_0x2e77fa,_0x3774c3(0x7b))),this[_0x3774c3(0x72)]=this[_0x3774c3(0x84)](_0x49c244(_0x2e77fa,_0x3774c3(0x7e)));const _0x29b31b=this[_0x3774c3(0x90)];this[_0x3774c3(0x8e)]({'attributes':{'class':[_0x3774c3(0x93),_0x29b31b['if'](_0x3774c3(0x7f),_0x3774c3(0x76),_0x5dcdb6=>!_0x5dcdb6)]}}),this[_0x3774c3(0x86)][_0x3774c3(0x8b)]([this[_0x3774c3(0x77)],this[_0x3774c3(0x8c)],this[_0x3774c3(0x7d)],this[_0x3774c3(0x72)]]);}[_0x4f4c70(0x84)](_0x148ced,_0x31af47){const _0x4d3de3=_0x4f4c70,_0x34b29c=new _0x462f39(this[_0x4d3de3(0x82)]);return _0x34b29c[_0x4d3de3(0x92)]({'label':_0x148ced,'class':_0x31af47||'','isVisible':!0x0,'withText':!0x0}),_0x34b29c;}}function _0x5e51(){const _0x4be263=['Insert\x20below','stopButton','8iweiIb','554106cHiXgA','1571496BIEayL','ck-hidden','replaceButton','AI_','1556iLRVui','48OybzDS','Try\x20again','bind','tryAgainButton','Stop','isVisible','4800078hHSkOB','7075NFDDoL','locale','label','_createButton','18473670VoGEFj','items','1326717NJUesH','REPLACE','_CONTENT','toUpperCase','addMany','insertButton','ck-button-action','extendTemplate','insert','bindTemplate','replace','set','ck-ai-form__toolbar','mainAction','35267STtjIu'];_0x5e51=function(){return _0x4be263;};return _0x5e51();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4deb07=_0x1c08;(function(_0x52148f,_0x2f31c8){const _0x3af8f2=_0x1c08,_0x2d552d=_0x52148f();while(!![]){try{const _0x4dcdc5=parseInt(_0x3af8f2(0x131))/0x1*(-parseInt(_0x3af8f2(0x11b))/0x2)+-parseInt(_0x3af8f2(0x10f))/0x3*(-parseInt(_0x3af8f2(0x122))/0x4)+-parseInt(_0x3af8f2(0x10e))/0x5+parseInt(_0x3af8f2(0x105))/0x6+-parseInt(_0x3af8f2(0xe6))/0x7*(parseInt(_0x3af8f2(0xea))/0x8)+-parseInt(_0x3af8f2(0x115))/0x9*(-parseInt(_0x3af8f2(0x10a))/0xa)+-parseInt(_0x3af8f2(0x100))/0xb*(-parseInt(_0x3af8f2(0x120))/0xc);if(_0x4dcdc5===_0x2f31c8)break;else _0x2d552d['push'](_0x2d552d['shift']());}catch(_0x2c8ad6){_0x2d552d['push'](_0x2d552d['shift']());}}}(_0x4877,0x9418c));import{FocusTracker as _0x13bde5,KeystrokeHandler as _0x10df64}from'ckeditor5/src/utils.js';import{View as _0x20de41,FocusCycler as _0x234d6a,createLabeledTextarea as _0x5dfacf}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x110ab2,AIFormToolbarViewMainActionLabel as _0x31005b}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x45bb32}from'./aiformcontentarea.js';import{AIFormErrorView as _0x3bf07f}from'./aiformerrorview.js';import{AIFormPromptView as _0x2c7523}from'./aiformpromptview.js';import{AIHistoryListView as _0x5d3120}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x5c1a0f}from'./aihistorylistitemview.js';function _0x1c08(_0x309260,_0x2f6e12){const _0x4877c8=_0x4877();return _0x1c08=function(_0x1c08aa,_0x237a7f){_0x1c08aa=_0x1c08aa-0xe1;let _0x44b859=_0x4877c8[_0x1c08aa];return _0x44b859;},_0x1c08(_0x309260,_0x2f6e12);}import{PromptHistory as _0x3c2837}from'./prompthistory.js';function _0x4877(){const _0x4feae8=['clearHistory','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','listenTo','1766166uGlbkA','isEnabled','historyGroupView','focus','label','40lurKcX','focusLast','tryAgainButton','insertButton','565280xVhgWV','108SRWtcf','text','_createHistoryView','replaceButton','_createPromptView','delegate','1654659yyAeuP','focusCycler','shift\x20+\x20tab','fieldView','element','bind','551446TJlXBH','ck-ai-form','ck-hidden','Ask\x20AI\x20to\x20improve\x20generated\x20text','REPLACE','842976mjZLaU','tryAgainEvent','106232pfBuxo','_promptHistory','handleError','items','high','tab','startProcessing','contentArea','prompt','queryView','value','insertContentBelow','set','render','bindTemplate','4tMvxVj','promptView','bindTo','AI_ERROR_FAILED','Ask\x20AI\x20to\x20edit\x20or\x20generate','submit','copyButtonView','focusFirst','stopButton','Empty\x20history','finishProcessing','locale','6060467XJrkbX','isProcessing','errorView','submitPrompt','8rZcGND','ck-ai-form-content','_createToolbar','focusTracker','clear','isError','chain','replaceContent','stopProcessing','mainAction','_focusables','toolbar','fire','keystrokes','add','createCollection','trim','setTemplate','execute','reset','search','isVisible','110IjHXQD','div'];_0x4877=function(){return _0x4feae8;};return _0x4877();}import{getTranslation as _0x392267}from'../../utils/common-translations.js';import{escape as _0x3ea105}from'es-toolkit/compat';export class AIFormView extends _0x20de41{[_0x4deb07(0xed)];[_0x4deb07(0xf7)];[_0x4deb07(0x129)];[_0x4deb07(0xf5)];[_0x4deb07(0x132)];[_0x4deb07(0xe8)];[_0x4deb07(0xf4)];[_0x4deb07(0x116)];[_0x4deb07(0x123)];constructor(_0x33f097,_0x24d68f,_0x571a65=''){const _0x13dd46=_0x4deb07;super(_0x33f097),this[_0x13dd46(0x12e)](_0x13dd46(0x106),!0x0),this[_0x13dd46(0x12e)](_0x13dd46(0xe7),!0x1),this[_0x13dd46(0x12e)](_0x13dd46(0x12a),''),this[_0x13dd46(0x12e)](_0x13dd46(0x12c),''),this[_0x13dd46(0x12e)](_0x13dd46(0xef),!0x1),this[_0x13dd46(0x12e)](_0x13dd46(0xf3),_0x31005b[_0x13dd46(0x11f)]),this[_0x13dd46(0x123)]=new _0x3c2837(),this[_0x13dd46(0xe8)]=new _0x3bf07f(_0x33f097),this[_0x13dd46(0x129)]=new _0x45bb32(_0x33f097,_0x571a65),this[_0x13dd46(0x129)][_0x13dd46(0x11a)](_0x13dd46(0xe7))['to'](this),this[_0x13dd46(0x129)][_0x13dd46(0x11a)](_0x13dd46(0x12c))['to'](this),this[_0x13dd46(0xf5)]=this[_0x13dd46(0xec)](),this[_0x13dd46(0xf5)][_0x13dd46(0x11a)](_0x13dd46(0xf3))['to'](this),this[_0x13dd46(0x132)]=this[_0x13dd46(0x113)](),this[_0x13dd46(0xed)]=new _0x13bde5(),this[_0x13dd46(0xf7)]=new _0x10df64(),this[_0x13dd46(0xf4)]=this[_0x13dd46(0xf9)]([this[_0x13dd46(0x129)],this[_0x13dd46(0x129)][_0x13dd46(0x137)],this[_0x13dd46(0xf5)],this[_0x13dd46(0x132)]]),this[_0x13dd46(0x116)]=new _0x234d6a({'focusables':this[_0x13dd46(0xf4)],'focusTracker':this[_0x13dd46(0xed)],'keystrokeHandler':this[_0x13dd46(0xf7)],'actions':{'focusPrevious':_0x13dd46(0x117),'focusNext':_0x13dd46(0x127)}}),this[_0x13dd46(0x116)][_0x13dd46(0xf0)](this[_0x13dd46(0x132)][_0x13dd46(0x116)]),this[_0x13dd46(0x132)][_0x13dd46(0x12b)][_0x13dd46(0x118)][_0x13dd46(0x11a)](_0x13dd46(0x12c))['to'](this,_0x13dd46(0x12a));const _0x526fd4=this[_0x13dd46(0x130)];this[_0x13dd46(0xfb)]({'tag':_0x13dd46(0x101),'attributes':{'class':['ck',_0x13dd46(0x11c),_0x24d68f],'tabindex':'-1'},'children':[{'tag':_0x13dd46(0x101),'attributes':{'class':['ck',_0x13dd46(0xeb)]},'children':[{'tag':_0x13dd46(0x101),'attributes':{'class':[_0x526fd4['if'](_0x13dd46(0xef),_0x13dd46(0x11d),_0x5307fe=>!_0x5307fe)]},'children':[this[_0x13dd46(0xe8)]]},this[_0x13dd46(0x129)],this[_0x13dd46(0xf5)],this[_0x13dd46(0x132)]]}]});}[_0x4deb07(0x12f)](){const _0x10fa92=_0x4deb07;super[_0x10fa92(0x12f)](),this[_0x10fa92(0xed)][_0x10fa92(0xf8)](this[_0x10fa92(0x129)][_0x10fa92(0x119)]),this[_0x10fa92(0xed)][_0x10fa92(0xf8)](this[_0x10fa92(0x129)][_0x10fa92(0x137)][_0x10fa92(0x119)]),this[_0x10fa92(0xed)][_0x10fa92(0xf8)](this[_0x10fa92(0xf5)][_0x10fa92(0x119)]),this[_0x10fa92(0xed)][_0x10fa92(0xf8)](this[_0x10fa92(0x132)][_0x10fa92(0x119)]),this[_0x10fa92(0xf7)][_0x10fa92(0x104)](this[_0x10fa92(0x119)]);}[_0x4deb07(0x108)](_0x2f1e5d=0x1){const _0x532bfa=_0x4deb07;-0x1===_0x2f1e5d?this[_0x532bfa(0x116)][_0x532bfa(0x10b)]():this[_0x532bfa(0x116)][_0x532bfa(0xe1)]();}[_0x4deb07(0xfd)](){const _0x56dbad=_0x4deb07;this[_0x56dbad(0x12a)]='',this[_0x56dbad(0x12c)]='',this[_0x56dbad(0xef)]=!0x1,this[_0x56dbad(0x132)][_0x56dbad(0xfd)](),this[_0x56dbad(0x129)][_0x56dbad(0xff)]=!0x1,this[_0x56dbad(0xf5)][_0x56dbad(0xff)]=!0x1;}[_0x4deb07(0x113)](){const _0x181f19=_0x4deb07,_0x588664=this[_0x181f19(0xe5)],_0x2b1fe1=new _0x2c7523(_0x588664,{'queryView':{'label':_0x392267(_0x588664,_0x181f19(0x135)),'creator':_0x5dfacf,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x392267(_0x588664,_0x181f19(0xe3)),'secondary':_0x392267(_0x588664,_0x181f19(0x103))}}},'filteredView':this[_0x181f19(0x111)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2b1fe1[_0x181f19(0x11a)](_0x181f19(0x106))['to'](this,_0x181f19(0x106),this,_0x181f19(0xe7),(_0x3a0c20,_0x4b43d1)=>_0x3a0c20&&!_0x4b43d1),this[_0x181f19(0x104)](_0x2b1fe1,_0x181f19(0x136),(_0x578900,_0x5ea156)=>{const _0x448b65=_0x181f19;this[_0x448b65(0x12a)]=_0x5ea156;const _0x4d6b79=_0x3ea105(_0x5ea156);this[_0x448b65(0xf6)](_0x448b65(0xe9),_0x4d6b79),_0x5ea156[_0x448b65(0xfa)]()&&this[_0x448b65(0x123)][_0x448b65(0xf8)]({'prompt':_0x4d6b79},0x0);},{'priority':_0x181f19(0x126)}),_0x2b1fe1;}[_0x4deb07(0x111)](){const _0x4701a7=_0x4deb07,_0x579c44=new _0x5d3120(this[_0x4701a7(0xe5)]);return _0x579c44[_0x4701a7(0x107)][_0x4701a7(0x125)][_0x4701a7(0x133)](this[_0x4701a7(0x123)])['as'](_0x5c1a0f),_0x579c44['on'](_0x4701a7(0x102),()=>{const _0x3d16ef=_0x4701a7;this[_0x3d16ef(0x123)][_0x3d16ef(0xee)](),this[_0x3d16ef(0x132)][_0x3d16ef(0xfe)](''),this[_0x3d16ef(0x132)][_0x3d16ef(0x108)]();}),_0x579c44;}[_0x4deb07(0xec)](){const _0x5320bf=_0x4deb07,_0x1d7fe5=new _0x110ab2(this[_0x5320bf(0xe5)]);return _0x1d7fe5[_0x5320bf(0x112)][_0x5320bf(0x11a)](_0x5320bf(0x106))['to'](this,_0x5320bf(0x106),this,_0x5320bf(0xe7),this,_0x5320bf(0x12c),(_0x3c0a90,_0x56ce40,_0x54907)=>_0x3c0a90&&!_0x56ce40&&!!_0x54907),_0x1d7fe5[_0x5320bf(0x112)][_0x5320bf(0x114)](_0x5320bf(0xfc))['to'](this,_0x5320bf(0xf1)),_0x1d7fe5[_0x5320bf(0x10d)][_0x5320bf(0x11a)](_0x5320bf(0x106))['to'](this,_0x5320bf(0x106),this,_0x5320bf(0xe7),this,_0x5320bf(0x12c),(_0xe32f08,_0x559c56,_0x232ed7)=>_0xe32f08&&!_0x559c56&&!!_0x232ed7),_0x1d7fe5[_0x5320bf(0x10d)][_0x5320bf(0x114)](_0x5320bf(0xfc))['to'](this,_0x5320bf(0x12d)),_0x1d7fe5[_0x5320bf(0x10c)][_0x5320bf(0x11a)](_0x5320bf(0x106))['to'](this,_0x5320bf(0x106),this,_0x5320bf(0xe7),(_0x502f02,_0x29257e)=>_0x502f02&&!_0x29257e),_0x1d7fe5[_0x5320bf(0x10c)][_0x5320bf(0x114)](_0x5320bf(0xfc))['to'](this,_0x5320bf(0x121)),_0x1d7fe5[_0x5320bf(0xe2)][_0x5320bf(0x11a)](_0x5320bf(0x106))['to'](this,_0x5320bf(0xe7)),_0x1d7fe5[_0x5320bf(0xe2)][_0x5320bf(0x114)](_0x5320bf(0xfc))['to'](this,_0x5320bf(0xf2)),_0x1d7fe5;}[_0x4deb07(0x128)](){const _0x4c72ba=_0x4deb07;this[_0x4c72ba(0x12c)]='',this[_0x4c72ba(0xef)]=!0x1,this[_0x4c72ba(0xe7)]=!0x0,this[_0x4c72ba(0x129)][_0x4c72ba(0xff)]=!0x0,this[_0x4c72ba(0xf5)][_0x4c72ba(0xff)]=!0x0,this[_0x4c72ba(0x129)][_0x4c72ba(0x108)]();}[_0x4deb07(0xe4)](){const _0x5c8fa3=_0x4deb07,_0x415a15=this[_0x5c8fa3(0xe5)];this[_0x5c8fa3(0xe7)]=!0x1,this[_0x5c8fa3(0x12a)]='',this[_0x5c8fa3(0x132)][_0x5c8fa3(0xfd)](),this[_0x5c8fa3(0x12c)]&&(this[_0x5c8fa3(0x132)][_0x5c8fa3(0x12b)][_0x5c8fa3(0x109)]=_0x392267(_0x415a15,_0x5c8fa3(0x11e)));}[_0x4deb07(0x124)](_0x29cbcb){const _0x19ff32=_0x4deb07,_0x586c4a=this[_0x19ff32(0xe5)];this[_0x19ff32(0xe4)](),this[_0x19ff32(0xef)]=!0x0,this[_0x19ff32(0xe8)][_0x19ff32(0x110)]=_0x29cbcb||_0x392267(_0x586c4a,_0x19ff32(0x134)),this[_0x19ff32(0x12c)]||(this[_0x19ff32(0x129)][_0x19ff32(0xff)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x752b54,_0xe0d662){const _0x45c124=_0x3452,_0x32ea87=_0x752b54();while(!![]){try{const _0x5830f9=parseInt(_0x45c124(0xd9))/0x1+parseInt(_0x45c124(0xc9))/0x2+parseInt(_0x45c124(0xd5))/0x3*(parseInt(_0x45c124(0xd1))/0x4)+parseInt(_0x45c124(0xcf))/0x5*(-parseInt(_0x45c124(0xd3))/0x6)+-parseInt(_0x45c124(0xd6))/0x7*(parseInt(_0x45c124(0xce))/0x8)+-parseInt(_0x45c124(0xca))/0x9+-parseInt(_0x45c124(0xd4))/0xa*(-parseInt(_0x45c124(0xd7))/0xb);if(_0x5830f9===_0xe0d662)break;else _0x32ea87['push'](_0x32ea87['shift']());}catch(_0x1029ab){_0x32ea87['push'](_0x32ea87['shift']());}}}(_0x3ffc,0xf402f));function _0x3452(_0x36cc51,_0x5a633a){const _0x3ffc11=_0x3ffc();return _0x3452=function(_0x3452d0,_0x29c418){_0x3452d0=_0x3452d0-0xc9;let _0x26c2ba=_0x3ffc11[_0x3452d0];return _0x26c2ba;},_0x3452(_0x36cc51,_0x5a633a);}function _0x3ffc(){const _0x304f88=['2064002eWpkpK','11894202sbpMPk','set','prompt','execute','80jCrbfQ','503340BXZiPh','locale','40UYJzqg','add','72Ipssfo','3779260bjjyvI','165084EQLwfi','773017qIYoHV','44xBiRll','children','1539390mAOUyO','fire'];_0x3ffc=function(){return _0x304f88;};return _0x3ffc();}import{ListItemView as _0x202669,ButtonView as _0x1f73d7,ButtonLabelView as _0x9daf2}from'ckeditor5/src/ui.js';import{unescape as _0x4a3e28}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x202669{constructor(_0x3a4ce3){const _0x581b1e=_0x3452;super();const _0x4b1020=new _0x9daf2(),_0x4a1883=new _0x1f73d7(this[_0x581b1e(0xd0)],_0x4b1020);this[_0x581b1e(0xd8)][_0x581b1e(0xd2)](_0x4a1883),_0x4a1883[_0x581b1e(0xcb)]({'label':_0x3a4ce3[_0x581b1e(0xcc)],'withText':!0x0}),_0x4a1883['on'](_0x581b1e(0xcd),()=>{const _0x2e4e8a=_0x581b1e;this[_0x2e4e8a(0xda)](_0x2e4e8a(0xcd),{'value':_0x4a3e28(_0x3a4ce3[_0x2e4e8a(0xcc)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x50bd(_0x1bcb65,_0x429448){const _0x5ea45c=_0x5ea4();return _0x50bd=function(_0x50bdb6,_0x37f02e){_0x50bdb6=_0x50bdb6-0x128;let _0x476b53=_0x5ea45c[_0x50bdb6];return _0x476b53;},_0x50bd(_0x1bcb65,_0x429448);}const _0x52f0ee=_0x50bd;(function(_0x290e04,_0x1c4158){const _0x55cd7b=_0x50bd,_0x214e6e=_0x290e04();while(!![]){try{const _0x3e40bb=parseInt(_0x55cd7b(0x140))/0x1+-parseInt(_0x55cd7b(0x12d))/0x2+parseInt(_0x55cd7b(0x12e))/0x3+-parseInt(_0x55cd7b(0x135))/0x4*(-parseInt(_0x55cd7b(0x136))/0x5)+-parseInt(_0x55cd7b(0x13a))/0x6*(parseInt(_0x55cd7b(0x12b))/0x7)+-parseInt(_0x55cd7b(0x129))/0x8+parseInt(_0x55cd7b(0x12c))/0x9;if(_0x3e40bb===_0x1c4158)break;else _0x214e6e['push'](_0x214e6e['shift']());}catch(_0x2cfa07){_0x214e6e['push'](_0x214e6e['shift']());}}}(_0x5ea4,0xd5307));import{ListView as _0x2266ac,ListItemGroupView as _0x5ebab4,ButtonView as _0x395714}from'ckeditor5/src/ui.js';import{getTranslation as _0x64d0a1}from'../../utils/common-translations.js';function _0x5ea4(){const _0x357741=['1671549JfeTYv','delegate','Prompt\x20history','6894408NMMzxO','add','9266950WQIpaW','15298686KPNNns','2435186RLXHmC','2568915fdFAGD','_createClearHistoryButton','set','execute','children','fire','historyGroupView','12ilVihV','81265VVNRGM','clearHistory','length','Clear','6VcZUrI','label','items','clearHistoryButton','locale','filter'];_0x5ea4=function(){return _0x357741;};return _0x5ea4();}export class AIHistoryListView extends _0x2266ac{[_0x52f0ee(0x134)];[_0x52f0ee(0x13d)];constructor(_0x1ac0dc){const _0x535012=_0x52f0ee;super(_0x1ac0dc),this[_0x535012(0x13d)]=this[_0x535012(0x12f)](),this[_0x535012(0x134)]=new _0x5ebab4(),this[_0x535012(0x134)][_0x535012(0x132)][_0x535012(0x12a)](this[_0x535012(0x13d)],0x1),this[_0x535012(0x134)][_0x535012(0x13b)]=_0x64d0a1(_0x1ac0dc,_0x535012(0x128)),this[_0x535012(0x134)][_0x535012(0x13c)][_0x535012(0x141)](_0x535012(0x131))['to'](this),this[_0x535012(0x13c)][_0x535012(0x12a)](this[_0x535012(0x134)]);}[_0x52f0ee(0x13f)](){const _0x46ef83=_0x52f0ee;let _0x4a9b4e=0x0;for(const _0x547d44 of this[_0x46ef83(0x13c)])_0x4a9b4e+=_0x547d44[_0x46ef83(0x13c)][_0x46ef83(0x138)];return{'resultsCount':_0x4a9b4e,'totalItemsCount':_0x4a9b4e};}[_0x52f0ee(0x12f)](){const _0x2d88d7=_0x52f0ee,_0x4feb18=this[_0x2d88d7(0x13e)],_0x5bfcc1=new _0x395714(this[_0x2d88d7(0x13e)]);return _0x5bfcc1[_0x2d88d7(0x130)]({'label':'('+_0x64d0a1(_0x4feb18,_0x2d88d7(0x139))+')','withText':!0x0}),_0x5bfcc1['on'](_0x2d88d7(0x131),()=>this[_0x2d88d7(0x133)](_0x2d88d7(0x137))),_0x5bfcc1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36ca7d=_0x406e;function _0x406e(_0x5ef98f,_0x342f12){const _0x2f4367=_0x2f43();return _0x406e=function(_0x406e00,_0x4b1166){_0x406e00=_0x406e00-0x109;let _0x5ac7de=_0x2f4367[_0x406e00];return _0x5ac7de;},_0x406e(_0x5ef98f,_0x342f12);}(function(_0x4d42d8,_0x595203){const _0x6e69fd=_0x406e,_0x4c727d=_0x4d42d8();while(!![]){try{const _0x80572=-parseInt(_0x6e69fd(0x11f))/0x1*(-parseInt(_0x6e69fd(0x116))/0x2)+-parseInt(_0x6e69fd(0x10c))/0x3+-parseInt(_0x6e69fd(0x11e))/0x4*(parseInt(_0x6e69fd(0x11d))/0x5)+parseInt(_0x6e69fd(0x119))/0x6+parseInt(_0x6e69fd(0x111))/0x7+parseInt(_0x6e69fd(0x121))/0x8+-parseInt(_0x6e69fd(0x113))/0x9;if(_0x80572===_0x595203)break;else _0x4c727d['push'](_0x4c727d['shift']());}catch(_0x5e9c73){_0x4c727d['push'](_0x4c727d['shift']());}}}(_0x2f43,0x2affc));import{Collection as _0x56e4c0}from'ckeditor5/src/utils.js';const ts=_0x36ca7d(0x10d);export class PromptHistory extends _0x56e4c0{constructor(){const _0x2508a5=_0x36ca7d;super(),this[_0x2508a5(0x112)](),this['on'](_0x2508a5(0x10a),(_0x47c0e4,_0x3666ad)=>{const _0x37d35d=_0x2508a5,_0x573cf8=os(_0x3666ad[_0x37d35d(0x10b)]);for(const _0x1cf8d0 of this)if(_0x1cf8d0!=_0x3666ad&&os(_0x1cf8d0[_0x37d35d(0x10b)])===_0x573cf8){this[_0x37d35d(0x110)](_0x1cf8d0);break;}this[_0x37d35d(0x10e)]>0x14&&this[_0x37d35d(0x110)](this[_0x37d35d(0x118)]),this[_0x37d35d(0x120)]();}),this['on'](_0x2508a5(0x110),()=>{const _0xdf7f33=_0x2508a5;this[_0xdf7f33(0x120)]();});}[_0x36ca7d(0x112)](){const _0x50f9ea=_0x36ca7d,_0x3e2616=sessionStorage[_0x50f9ea(0x10f)](ts)||'[]';this[_0x50f9ea(0x11b)](JSON[_0x50f9ea(0x109)](_0x3e2616));}[_0x36ca7d(0x120)](){const _0x4518a6=_0x36ca7d;sessionStorage[_0x4518a6(0x11c)](ts,JSON[_0x4518a6(0x11a)](this[_0x4518a6(0x115)](_0x4ee5a2=>_0x4ee5a2)));}}function _0x2f43(){const _0x49a70a=['trim','map','974MbvoCi','toLowerCase','last','950352TPIxxv','stringify','addMany','setItem','39030fkjCpk','124xTNSQS','269lvREnq','_saveToSessionStorage','372232GCCFMQ','parse','add','prompt','91101mQKXRU','CKEditor/AIFormView/PromptHistory','length','getItem','remove','2009707plLoOY','_loadFromSessionStorage','1570932sTSAdd'];_0x2f43=function(){return _0x49a70a;};return _0x2f43();}function os(_0x16e0a9){const _0x219a0d=_0x36ca7d;return _0x16e0a9[_0x219a0d(0x117)]()[_0x219a0d(0x114)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44f0ff=_0x3fae;(function(_0x348903,_0x3d4694){const _0x2bd8da=_0x3fae,_0x230e8d=_0x348903();while(!![]){try{const _0x349604=parseInt(_0x2bd8da(0x1eb))/0x1+parseInt(_0x2bd8da(0x1fa))/0x2+parseInt(_0x2bd8da(0x200))/0x3+parseInt(_0x2bd8da(0x1fd))/0x4+parseInt(_0x2bd8da(0x201))/0x5*(parseInt(_0x2bd8da(0x211))/0x6)+parseInt(_0x2bd8da(0x1fe))/0x7+parseInt(_0x2bd8da(0x1ec))/0x8*(-parseInt(_0x2bd8da(0x1f4))/0x9);if(_0x349604===_0x3d4694)break;else _0x230e8d['push'](_0x230e8d['shift']());}catch(_0x46f6ef){_0x230e8d['push'](_0x230e8d['shift']());}}}(_0x1279,0x8db55));import{Command as _0x159eb0}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x57031c}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x159eb0{[_0x44f0ff(0x20d)];constructor(_0x287bcc,_0xcef24a){const _0x386a44=_0x44f0ff;super(_0x287bcc),this[_0x386a44(0x20d)]=_0xcef24a,this[_0x386a44(0x206)](_0x386a44(0x1f3),[]),this['on'](_0x386a44(0x1f7),(_0x3fc7e4,_0xca943d,_0x59399e)=>{const _0x1649f5=_0x386a44;this[_0x1649f5(0x1ed)]&&(this[_0x1649f5(0x1f3)]=F(this[_0x1649f5(0x20d)],_0x59399e));}),this[_0x386a44(0x206)](_0x386a44(0x20f),!0x1),this['on'](_0x386a44(0x1f2),(_0xd1940e,_0x29b30a,_0x174157)=>{const _0x4c5c0e=_0x386a44;this[_0x4c5c0e(0x1f3)]=_0x174157?F(this[_0x4c5c0e(0x20d)],this[_0x4c5c0e(0x20f)]):[];});}[_0x44f0ff(0x1ee)](){const _0x39d703=_0x44f0ff,_0x2bb3b3=this[_0x39d703(0x20b)][_0x39d703(0x1f6)];this[_0x39d703(0x20f)]=function(_0x4dcbe1){const _0x491d92=_0x39d703,_0x2f6624=_0x4dcbe1[_0x491d92(0x1ff)][_0x491d92(0x1ef)];return _0x2f6624[_0x491d92(0x202)]?0x0!==[..._0x2f6624[_0x491d92(0x208)]()][_0x491d92(0x213)]&&![..._0x2f6624[_0x491d92(0x208)]()][0x0][_0x491d92(0x203)]:!!_0x4dcbe1[_0x491d92(0x1f8)](_0x2f6624[_0x491d92(0x1f9)]());}(_0x2bb3b3);const _0x3ba534=_0x2bb3b3[_0x39d703(0x1ff)][_0x39d703(0x1ef)],_0x3d9eef=this[_0x39d703(0x20b)][_0x39d703(0x1fb)][_0x39d703(0x1f5)](_0x39d703(0x212));for(const _0x3d5aac of _0x3ba534[_0x39d703(0x210)]())for(const _0x1eca90 of _0x3d5aac[_0x39d703(0x20a)]())if(_0x1eca90['is'](_0x39d703(0x207))&&_0x3d9eef[_0x39d703(0x1ea)](_0x1eca90[_0x39d703(0x205)]))return void(this[_0x39d703(0x1ed)]=!0x1);this[_0x39d703(0x1ed)]=!0x0;}[_0x44f0ff(0x204)](_0x3017a5='',_0x4ec6ee='',_0x469bb0=_0x44f0ff(0x1e9)){const _0x46e64=_0x44f0ff;this[_0x46e64(0x20b)][_0x46e64(0x20e)][_0x46e64(0x1f5)](_0x57031c)[_0x46e64(0x1f1)](_0x3017a5,_0x4ec6ee,_0x469bb0);}}function _0x3fae(_0x1bf417,_0xffe1d8){const _0x12792b=_0x1279();return _0x3fae=function(_0x3fae98,_0x960d9f){_0x3fae98=_0x3fae98-0x1e9;let _0x87e646=_0x12792b[_0x3fae98];return _0x87e646;},_0x3fae(_0x1bf417,_0xffe1d8);}function _0x1279(){const _0x37ed89=['2225214gznXqT','get','model','change:_hasContext','hasContent','getFirstRange','1288726GiAhod','config','requiresContent','2882604QtngaB','6286273XmyPPd','document','1706886pSnaPR','13660JHGawt','isCollapsed','isEmpty','execute','name','set','element','getSelectedBlocks','values','getItems','editor','add','_commandDefinitions','plugins','_hasContext','getRanges','1854OvmUhh','ai.aiAssistant.disabledElements','length','custom','includes','118432BRswwS','104SILkxv','isEnabled','refresh','selection','from','showUI','change:isEnabled','enabledCommandsIds'];_0x1279=function(){return _0x37ed89;};return _0x1279();}function F(_0xdd1545,_0x533a67){const _0x15dead=_0x44f0ff,_0x426486=new Set();for(const _0x35e682 of _0xdd1545[_0x15dead(0x209)]())(_0x533a67||!0x1===_0x35e682[_0x15dead(0x1fc)])&&_0x426486[_0x15dead(0x20c)](_0x35e682['id']);return Array[_0x15dead(0x1f0)](_0x426486);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x6fd89b,_0x3a0bd2,_0x47163e){const t=_0x6fd89b['t'];switch(_0x3a0bd2){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',_0x47163e);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x47163e);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'},_0x47163e);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 _0x3a0bd2;}}
|
|
@@ -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(_0x476953,_0x9ad375){const _0x52ec7c=(0x0,_0x9ad375['t'])('Other');return _0x476953['length']?'groupId'in _0x476953[0x0]?_0x476953:[{'groupId':'_ungrouppedCommands','groupLabel':_0x52ec7c,'order':0x1/0x0,'commands':_0x476953}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x52ec7c,'order':0x1/0x0,'commands':[]}];}
|