@ckeditor/ckeditor5-ai 42.0.2 → 43.0.0-alpha.1
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/CHANGELOG.md +1 -1
- package/build/ai.js +1 -76
- package/build/translations/sr-latn.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/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.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/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/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/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/ko.js +1 -1
- package/dist/translations/ko.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/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/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/sk.js +1 -1
- package/dist/translations/sk.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/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/lang/translations/sr-latn.po +7 -7
- 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/ui/aiassistantcontroller.js +2 -2
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- 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/dist/ui/dropdown/buttonlabelwithhighlightview.d.ts +0 -33
- package/dist/ui/dropdown/labelwithhighlightview.d.ts +0 -29
- package/src/ui/dropdown/buttonlabelwithhighlightview.d.ts +0 -29
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +0 -23
- package/src/ui/dropdown/labelwithhighlightview.d.ts +0 -25
- package/src/ui/dropdown/labelwithhighlightview.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x359816,_0x584e0b){const _0x301e71=_0x354c,_0x14e8c6=_0x359816();while(!![]){try{const _0x2d436a=-parseInt(_0x301e71(0x15c))/0x1+parseInt(_0x301e71(0x15d))/0x2*(-parseInt(_0x301e71(0x155))/0x3)+parseInt(_0x301e71(0x156))/0x4+-parseInt(_0x301e71(0x153))/0x5*(parseInt(_0x301e71(0x162))/0x6)+parseInt(_0x301e71(0x163))/0x7*(parseInt(_0x301e71(0x15b))/0x8)+-parseInt(_0x301e71(0x160))/0x9+-parseInt(_0x301e71(0x152))/0xa*(-parseInt(_0x301e71(0x158))/0xb);if(_0x2d436a===_0x584e0b)break;else _0x14e8c6['push'](_0x14e8c6['shift']());}catch(_0x1ccbe1){_0x14e8c6['push'](_0x14e8c6['shift']());}}}(_0xdfe9,0x29957));import{View as _0x3c90ac,IconView as _0x2cda9e}from'ckeditor5/src/ui.js';function _0x354c(_0x5ec589,_0x24e395){const _0xdfe9df=_0xdfe9();return _0x354c=function(_0x354c02,_0x414054){_0x354c02=_0x354c02-0x152;let _0x37c2e6=_0xdfe9df[_0x354c02];return _0x37c2e6;},_0x354c(_0x5ec589,_0x24e395);}import _0x258d85 from'../../../theme/icons/error.svg';export default class at extends _0x3c90ac{constructor(_0x266fb8,_0x5e5007=''){const _0x272371=_0x354c;super(_0x266fb8);const _0x13f378=new _0x2cda9e(),_0x51d79b=this[_0x272371(0x15e)];this[_0x272371(0x15f)](_0x272371(0x161),_0x5e5007),_0x13f378[_0x272371(0x15a)]=_0x258d85,this[_0x272371(0x154)]({'tag':_0x272371(0x157),'attributes':{'class':['ck',_0x272371(0x159)]},'children':[_0x13f378,{'text':_0x51d79b['to'](_0x272371(0x161))}]});}}function _0xdfe9(){const _0x36f2b5=['bindTemplate','set','1465209bhikQy','text','656322eoYwII','2346659nWLirb','5110870GRcrjK','5xmIUmp','setTemplate','48903EOhnnw','382080yjKqwJ','div','11HRhgcf','ck-ai-form__error','content','8fDTlot','222212usQrck','34XipRxn'];_0xdfe9=function(){return _0x36f2b5;};return _0xdfe9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e8db0=_0x12ca;(function(_0x531b74,_0x5c102b){const _0x4ca7c4=_0x12ca,_0x195f7a=_0x531b74();while(!![]){try{const _0x2dffac=parseInt(_0x4ca7c4(0x17a))/0x1*(-parseInt(_0x4ca7c4(0x17e))/0x2)+parseInt(_0x4ca7c4(0x1aa))/0x3+parseInt(_0x4ca7c4(0x1a5))/0x4+-parseInt(_0x4ca7c4(0x1a9))/0x5+-parseInt(_0x4ca7c4(0x18a))/0x6*(parseInt(_0x4ca7c4(0x1a0))/0x7)+parseInt(_0x4ca7c4(0x192))/0x8*(-parseInt(_0x4ca7c4(0x1a8))/0x9)+parseInt(_0x4ca7c4(0x191))/0xa*(parseInt(_0x4ca7c4(0x18c))/0xb);if(_0x2dffac===_0x5c102b)break;else _0x195f7a['push'](_0x195f7a['shift']());}catch(_0x689cf7){_0x195f7a['push'](_0x195f7a['shift']());}}}(_0x30a5,0xbf4d3));import{Rect as _0x31186a,global as _0x39f3eb,isVisible as _0x43ffb0}from'ckeditor5/src/utils.js';function _0x30a5(){const _0x2d27bc=['right','focus','update','History','requestAnimationFrame','history','locale','submitButtonView','set','excludeScrollbarsAndBorders','fieldView','108866kLAzKt','focusFirst','maxRows','rtl','6KhbqXl','fieldWrapperChildren','render','isEnabled','add','isOn','resultsView','focusLast','ck-ai-form__toggle-history','keystrokes','style','Submit','402bVXMgp','left','44TlchyV','filteredView','queryView','submit','fire','3702380MEoakO','1118928dyDjKH','element','_createShowHistoryButton','focusableChildren','uiLanguageDirection','value','enter','focusCycler','bind','minRows','isEmpty','children','execute','ck-ai-form__submit','111461evZjIz','target','window','_createSubmitButton','isVisible','6025556zoyrVP','showHistoryButtonView','width','9VOXCMI','4488640FJOukv','681789oRBlts'];_0x30a5=function(){return _0x2d27bc;};return _0x30a5();}import{AutocompleteView as _0x2d0706,ButtonView as _0x12bdf8}from'ckeditor5/src/ui.js';function _0x12ca(_0x461d20,_0x108ef9){const _0x30a5af=_0x30a5();return _0x12ca=function(_0x12caa2,_0x3312e2){_0x12caa2=_0x12caa2-0x17a;let _0x36afc4=_0x30a5af[_0x12caa2];return _0x36afc4;},_0x12ca(_0x461d20,_0x108ef9);}import{icons as _0x2e3d0b}from'ckeditor5/src/core.js';import{getTranslation as _0xd906ec}from'../../utils/common-translations.js';import _0x37195a from'../../../theme/icons/submit.svg';export default class ut extends _0x2d0706{constructor(_0x25590c,_0x30383f){const _0x529caf=_0x12ca;super(_0x25590c,_0x30383f),this[_0x529caf(0x18e)][_0x529caf(0x1b5)][_0x529caf(0x19b)]=0x1,this[_0x529caf(0x18e)][_0x529caf(0x1b5)][_0x529caf(0x17c)]=0x3,this[_0x529caf(0x1b2)]=this[_0x529caf(0x1a3)](),this[_0x529caf(0x1a6)]=this[_0x529caf(0x194)](),this[_0x529caf(0x195)][_0x529caf(0x182)](this[_0x529caf(0x1a6)],0x1),this[_0x529caf(0x195)][_0x529caf(0x182)](this[_0x529caf(0x1b2)]);}[_0x5e8db0(0x180)](){const _0x23410d=_0x5e8db0;super[_0x23410d(0x180)](),this[_0x23410d(0x18e)][_0x23410d(0x17f)][_0x23410d(0x182)](this[_0x23410d(0x1a6)]),this[_0x23410d(0x19d)][_0x23410d(0x182)](this[_0x23410d(0x1b2)]),this[_0x23410d(0x187)][_0x23410d(0x1b3)](_0x23410d(0x198),(_0x5a6657,_0x1e4d26)=>{const _0x28855b=_0x23410d;_0x5a6657[_0x28855b(0x1a1)]==this[_0x28855b(0x18e)][_0x28855b(0x1b5)][_0x28855b(0x193)]&&(this[_0x28855b(0x18f)](),_0x1e4d26());});}[_0x5e8db0(0x1a3)](){const _0x3855f8=_0x5e8db0,_0x158dcd=new _0x12bdf8(this[_0x3855f8(0x1b1)]),_0x1608b7=this[_0x3855f8(0x1b1)];return _0x158dcd[_0x3855f8(0x1b3)]({'icon':_0x37195a,'label':_0xd906ec(_0x1608b7,_0x3855f8(0x189)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3855f8(0x19f)}),_0x158dcd['on'](_0x3855f8(0x19e),()=>{const _0x39d616=_0x3855f8;this[_0x39d616(0x18f)]();}),_0x158dcd[_0x3855f8(0x19a)](_0x3855f8(0x181))['to'](this[_0x3855f8(0x18e)][_0x3855f8(0x1b5)],_0x3855f8(0x19c),this,_0x3855f8(0x181),(_0x428f42,_0x41ea36)=>!_0x428f42&&_0x41ea36),_0x158dcd;}[_0x5e8db0(0x194)](){const _0x46c0ed=_0x5e8db0,_0x4fec03=new _0x12bdf8(this[_0x46c0ed(0x1b1)]),_0x141ed2=this[_0x46c0ed(0x184)],_0x24dfa9=this[_0x46c0ed(0x1b1)];_0x4fec03[_0x46c0ed(0x1b3)]({'label':_0xd906ec(_0x24dfa9,_0x46c0ed(0x1ae)),'withText':!0x1,'icon':_0x2e3d0b[_0x46c0ed(0x1b0)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x46c0ed(0x186)}),_0x4fec03[_0x46c0ed(0x19a)](_0x46c0ed(0x183))['to'](_0x141ed2,_0x46c0ed(0x1a4)),_0x4fec03[_0x46c0ed(0x19a)](_0x46c0ed(0x181))['to'](this,_0x46c0ed(0x181)),_0x4fec03['on'](_0x46c0ed(0x19e),()=>{const _0x324afa=_0x46c0ed;_0x141ed2[_0x324afa(0x1a4)]=!_0x141ed2[_0x324afa(0x1a4)],_0x141ed2[_0x324afa(0x1a4)]?this[_0x324afa(0x18d)][_0x324afa(0x1ac)]():this[_0x324afa(0x1ac)]();});const _0x68534b=()=>{const _0x24782b=_0x46c0ed;_0x39f3eb[_0x24782b(0x1a2)][_0x24782b(0x1af)](()=>{const _0x3237ff=_0x24782b;if(_0x43ffb0(this[_0x3237ff(0x193)])){const _0x58d83a=new _0x31186a(this[_0x3237ff(0x18e)][_0x3237ff(0x1b5)][_0x3237ff(0x193)]),_0x2d1b77=_0x58d83a[_0x3237ff(0x1a7)],_0x3b29c=_0x3237ff(0x17d)===_0x24dfa9[_0x3237ff(0x196)]?_0x3237ff(0x18b):_0x3237ff(0x1ab);_0x58d83a[_0x3237ff(0x1b4)](),_0x4fec03[_0x3237ff(0x193)][_0x3237ff(0x188)][_0x3b29c]=_0x2d1b77-_0x58d83a[_0x3237ff(0x1a7)]+0x1+'px';}});};return this[_0x46c0ed(0x18e)][_0x46c0ed(0x1b5)]['on'](_0x46c0ed(0x1ad),_0x68534b),this['on'](_0x46c0ed(0x180),_0x68534b),_0x4fec03;}[_0x5e8db0(0x18f)](){const _0x1a4819=_0x5e8db0,_0x15c75b=this[_0x1a4819(0x18e)][_0x1a4819(0x1b5)][_0x1a4819(0x193)][_0x1a4819(0x197)];this[_0x1a4819(0x190)](_0x1a4819(0x18f),_0x15c75b);}[_0x5e8db0(0x1ac)](_0x1985a4){const _0x54c9d4=_0x5e8db0;-0x1===_0x1985a4?this[_0x54c9d4(0x199)][_0x54c9d4(0x185)]():this[_0x54c9d4(0x199)][_0x54c9d4(0x17b)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x501765=_0x1c68;(function(_0x246648,_0x211332){const _0x19e4b1=_0x1c68,_0x2624ed=_0x246648();while(!![]){try{const _0x5298cf=-parseInt(_0x19e4b1(0xc1))/0x1*(parseInt(_0x19e4b1(0xb7))/0x2)+parseInt(_0x19e4b1(0xb2))/0x3+parseInt(_0x19e4b1(0xcf))/0x4*(parseInt(_0x19e4b1(0xcd))/0x5)+parseInt(_0x19e4b1(0xd1))/0x6+parseInt(_0x19e4b1(0xba))/0x7*(parseInt(_0x19e4b1(0xc5))/0x8)+-parseInt(_0x19e4b1(0xc4))/0x9+-parseInt(_0x19e4b1(0xca))/0xa;if(_0x5298cf===_0x211332)break;else _0x2624ed['push'](_0x2624ed['shift']());}catch(_0x24caf3){_0x2624ed['push'](_0x2624ed['shift']());}}}(_0x10e5,0x896c3));import{ToolbarView as _0x4b646d,ButtonView as _0x157bd4}from'ckeditor5/src/ui.js';function _0x1c68(_0x5f459a,_0x3bddfb){const _0x10e57d=_0x10e5();return _0x1c68=function(_0x1c685d,_0x587768){_0x1c685d=_0x1c685d-0xb0;let _0x3ec63e=_0x10e57d[_0x1c685d];return _0x3ec63e;},_0x1c68(_0x5f459a,_0x3bddfb);}import{getTranslation as _0x1df210}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x501765(0xcc),'INSERT':_0x501765(0xc7)};export default class At extends _0x4b646d{constructor(_0x3ae457){const _0x41d4dd=_0x501765;super(_0x3ae457),this[_0x41d4dd(0xc2)](_0x41d4dd(0xd0),!0x1),this[_0x41d4dd(0xc2)](_0x41d4dd(0xbf),AIFormToolbarViewMainActionLabel[_0x41d4dd(0xc0)]),this[_0x41d4dd(0xd3)]=this[_0x41d4dd(0xc3)]('',_0x41d4dd(0xc6)),this[_0x41d4dd(0xd3)][_0x41d4dd(0xb4)](_0x41d4dd(0xbb))['to'](this,_0x41d4dd(0xbf),_0x521c1f=>_0x1df210(_0x3ae457,_0x41d4dd(0xc9)+_0x521c1f[_0x41d4dd(0xb1)]()+_0x41d4dd(0xb5))),this[_0x41d4dd(0xb8)]=this[_0x41d4dd(0xc3)](_0x1df210(_0x3ae457,_0x41d4dd(0xbe))),this[_0x41d4dd(0xb3)]=this[_0x41d4dd(0xc3)](_0x1df210(_0x3ae457,_0x41d4dd(0xc8))),this[_0x41d4dd(0xb9)]=this[_0x41d4dd(0xc3)](_0x1df210(_0x3ae457,_0x41d4dd(0xb6)));const _0x5480a4=this[_0x41d4dd(0xd2)];this[_0x41d4dd(0xb0)]({'attributes':{'class':[_0x41d4dd(0xce),_0x5480a4['if'](_0x41d4dd(0xd0),_0x41d4dd(0xd4),_0x5975aa=>!_0x5975aa)]}}),this[_0x41d4dd(0xcb)][_0x41d4dd(0xbc)]([this[_0x41d4dd(0xd3)],this[_0x41d4dd(0xb8)],this[_0x41d4dd(0xb3)],this[_0x41d4dd(0xb9)]]);}[_0x501765(0xc3)](_0x20c14d,_0x5da2ec){const _0x3b5b7c=_0x501765,_0x7ae1a3=new _0x157bd4(this[_0x3b5b7c(0xbd)]);return _0x7ae1a3[_0x3b5b7c(0xc2)]({'label':_0x20c14d,'class':_0x5da2ec||'','isVisible':!0x0,'withText':!0x0}),_0x7ae1a3;}}function _0x10e5(){const _0x720cf4=['33096VdSJvq','ck-button-action','insert','Try\x20again','AI_','3397330QjFyJh','items','replace','1666910egSRzW','ck-ai-form__toolbar','8WXZwBj','isVisible','5746626ZycyoN','bindTemplate','replaceButton','ck-hidden','extendTemplate','toUpperCase','420852XGyFch','tryAgainButton','bind','_CONTENT','Stop','814630GIRvfF','insertButton','stopButton','588fgDLWN','label','addMany','locale','Insert\x20below','mainAction','REPLACE','1JeZXkq','set','_createButton','7221564RoTWxD'];_0x10e5=function(){return _0x720cf4;};return _0x10e5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30f981=_0x48d5;function _0x48d5(_0x64f251,_0x310e9a){const _0x1d9455=_0x1d94();return _0x48d5=function(_0x48d5c4,_0x5a73d){_0x48d5c4=_0x48d5c4-0x1d0;let _0x1e8ad5=_0x1d9455[_0x48d5c4];return _0x1e8ad5;},_0x48d5(_0x64f251,_0x310e9a);}(function(_0x1a709b,_0x5661e3){const _0xd1e12f=_0x48d5,_0x109fb7=_0x1a709b();while(!![]){try{const _0x8c2a29=parseInt(_0xd1e12f(0x1f9))/0x1+-parseInt(_0xd1e12f(0x1e8))/0x2*(-parseInt(_0xd1e12f(0x221))/0x3)+-parseInt(_0xd1e12f(0x1ea))/0x4+parseInt(_0xd1e12f(0x1e0))/0x5*(-parseInt(_0xd1e12f(0x1f6))/0x6)+-parseInt(_0xd1e12f(0x1e4))/0x7*(parseInt(_0xd1e12f(0x1ef))/0x8)+parseInt(_0xd1e12f(0x20b))/0x9*(-parseInt(_0xd1e12f(0x1ee))/0xa)+parseInt(_0xd1e12f(0x1e6))/0xb;if(_0x8c2a29===_0x5661e3)break;else _0x109fb7['push'](_0x109fb7['shift']());}catch(_0x1c001a){_0x109fb7['push'](_0x109fb7['shift']());}}}(_0x1d94,0x7f265));import{FocusTracker as _0x133659,KeystrokeHandler as _0x2f1218}from'ckeditor5/src/utils.js';import{View as _0x5e7ef7,FocusCycler as _0x3edbc1,createLabeledTextarea as _0x3008aa}from'ckeditor5/src/ui.js';import _0x156f15,{AIFormToolbarViewMainActionLabel as _0xc9ccfd}from'./aiformtoolbarview.js';import _0x5e6c1d from'./aiformcontentarea.js';import _0x4a3b47 from'./aiformerrorview.js';import _0x37d78a from'./aiformpromptview.js';import _0x3b592f from'./aihistorylistview.js';import _0x539c07 from'./aihistorylistitemview.js';import _0x2179df from'./prompthistory.js';function _0x1d94(){const _0x4b734a=['_createPromptView','promptView','label','locale','execute','insertContentBelow','ck-hidden','queryView','clear','replaceContent','listenTo','toolbar','tab','AI_ERROR_FAILED','set','focusTracker','element','bindTo','tryAgainButton','_createHistoryView','isProcessing','9gAgPKV','bind','startProcessing','prompt','isEnabled','historyGroupView','stopButton','replaceButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','high','copyButtonView','shift\x20+\x20tab','_createToolbar','insertButton','clearHistory','delegate','createCollection','render','Empty\x20history','handleError','text','28465TmBSdp','fire','chain','submit','210NLPGgv','_promptHistory','11880242vYwDRy','tryAgainEvent','328050RZSnAf','focus','677348lmcQMY','add','focusCycler','setTemplate','10HpGqxh','253752NvPPZg','focusLast','value','errorView','items','focusFirst','search','618vMgGLA','Ask\x20AI\x20to\x20edit\x20or\x20generate','bindTemplate','693135EhHsGa','fieldView','_focusables','ck-ai-form-content','keystrokes','submitPrompt','REPLACE','isError','isVisible','mainAction','trim','stopProcessing','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','contentArea','div','finishProcessing','reset','ck-ai-form','334269EWTmAa'];_0x1d94=function(){return _0x4b734a;};return _0x1d94();}import{getTranslation as _0x296151}from'../../utils/common-translations.js';import{escape as _0x4e7145}from'lodash-es';export default class N extends _0x5e7ef7{constructor(_0x1418ed,_0x326f5c,_0x4410e1=''){const _0x47105b=_0x48d5;super(_0x1418ed),this[_0x47105b(0x21a)](_0x47105b(0x225),!0x0),this[_0x47105b(0x21a)](_0x47105b(0x220),!0x1),this[_0x47105b(0x21a)](_0x47105b(0x224),''),this[_0x47105b(0x21a)](_0x47105b(0x1f1),''),this[_0x47105b(0x21a)](_0x47105b(0x200),!0x1),this[_0x47105b(0x21a)](_0x47105b(0x202),_0xc9ccfd[_0x47105b(0x1ff)]),this[_0x47105b(0x1e5)]=new _0x2179df(),this[_0x47105b(0x1f2)]=new _0x4a3b47(_0x1418ed),this[_0x47105b(0x206)]=new _0x5e6c1d(_0x1418ed,_0x4410e1),this[_0x47105b(0x206)][_0x47105b(0x222)](_0x47105b(0x220))['to'](this),this[_0x47105b(0x206)][_0x47105b(0x222)](_0x47105b(0x1f1))['to'](this),this[_0x47105b(0x217)]=this[_0x47105b(0x1d7)](),this[_0x47105b(0x217)][_0x47105b(0x222)](_0x47105b(0x202))['to'](this),this[_0x47105b(0x20d)]=this[_0x47105b(0x20c)](),this[_0x47105b(0x21b)]=new _0x133659(),this[_0x47105b(0x1fd)]=new _0x2f1218(),this[_0x47105b(0x1fb)]=this[_0x47105b(0x1db)]([this[_0x47105b(0x206)],this[_0x47105b(0x206)][_0x47105b(0x1d5)],this[_0x47105b(0x217)],this[_0x47105b(0x20d)]]),this[_0x47105b(0x1ec)]=new _0x3edbc1({'focusables':this[_0x47105b(0x1fb)],'focusTracker':this[_0x47105b(0x21b)],'keystrokeHandler':this[_0x47105b(0x1fd)],'actions':{'focusPrevious':_0x47105b(0x1d6),'focusNext':_0x47105b(0x218)}}),this[_0x47105b(0x1ec)][_0x47105b(0x1e2)](this[_0x47105b(0x20d)][_0x47105b(0x1ec)]),this[_0x47105b(0x20d)][_0x47105b(0x213)][_0x47105b(0x1fa)][_0x47105b(0x222)](_0x47105b(0x1f1))['to'](this,_0x47105b(0x224));const _0xe8b4ee=this[_0x47105b(0x1f8)];this[_0x47105b(0x1ed)]({'tag':_0x47105b(0x207),'attributes':{'class':['ck',_0x47105b(0x20a),_0x326f5c],'tabindex':'-1'},'children':[{'tag':_0x47105b(0x207),'attributes':{'class':['ck',_0x47105b(0x1fc)]},'children':[{'tag':_0x47105b(0x207),'attributes':{'class':[_0xe8b4ee['if'](_0x47105b(0x200),_0x47105b(0x212),_0x4caf88=>!_0x4caf88)]},'children':[this[_0x47105b(0x1f2)]]},this[_0x47105b(0x206)],this[_0x47105b(0x217)],this[_0x47105b(0x20d)]]}]});}[_0x30f981(0x1dc)](){const _0xfdbf5d=_0x30f981;super[_0xfdbf5d(0x1dc)](),this[_0xfdbf5d(0x21b)][_0xfdbf5d(0x1eb)](this[_0xfdbf5d(0x206)][_0xfdbf5d(0x21c)]),this[_0xfdbf5d(0x21b)][_0xfdbf5d(0x1eb)](this[_0xfdbf5d(0x206)][_0xfdbf5d(0x1d5)][_0xfdbf5d(0x21c)]),this[_0xfdbf5d(0x21b)][_0xfdbf5d(0x1eb)](this[_0xfdbf5d(0x217)][_0xfdbf5d(0x21c)]),this[_0xfdbf5d(0x21b)][_0xfdbf5d(0x1eb)](this[_0xfdbf5d(0x20d)][_0xfdbf5d(0x21c)]),this[_0xfdbf5d(0x1fd)][_0xfdbf5d(0x216)](this[_0xfdbf5d(0x21c)]);}[_0x30f981(0x1e9)](_0x4e6540=0x1){const _0x52de8f=_0x30f981;-0x1===_0x4e6540?this[_0x52de8f(0x1ec)][_0x52de8f(0x1f0)]():this[_0x52de8f(0x1ec)][_0x52de8f(0x1f4)]();}[_0x30f981(0x209)](){const _0x23e89d=_0x30f981;this[_0x23e89d(0x224)]='',this[_0x23e89d(0x1f1)]='',this[_0x23e89d(0x200)]=!0x1,this[_0x23e89d(0x20d)][_0x23e89d(0x209)](),this[_0x23e89d(0x206)][_0x23e89d(0x201)]=!0x1,this[_0x23e89d(0x217)][_0x23e89d(0x201)]=!0x1;}[_0x30f981(0x20c)](){const _0xaee5b3=_0x30f981,_0x36cc93=this[_0xaee5b3(0x20f)],_0x2177a8=new _0x37d78a(_0x36cc93,{'queryView':{'label':_0x296151(_0x36cc93,_0xaee5b3(0x1f7)),'creator':_0x3008aa,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x296151(_0x36cc93,_0xaee5b3(0x1dd)),'secondary':_0x296151(_0x36cc93,_0xaee5b3(0x205))}}},'filteredView':this[_0xaee5b3(0x21f)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2177a8[_0xaee5b3(0x222)](_0xaee5b3(0x225))['to'](this,_0xaee5b3(0x225),this,_0xaee5b3(0x220),(_0x585402,_0x48666e)=>_0x585402&&!_0x48666e),this[_0xaee5b3(0x216)](_0x2177a8,_0xaee5b3(0x1e3),(_0x237bfd,_0x3d9692)=>{const _0x57557c=_0xaee5b3;this[_0x57557c(0x224)]=_0x3d9692;const _0x2c5241=_0x4e7145(_0x3d9692);this[_0x57557c(0x1e1)](_0x57557c(0x1fe),_0x2c5241),_0x3d9692[_0x57557c(0x203)]()&&this[_0x57557c(0x1e5)][_0x57557c(0x1eb)]({'prompt':_0x2c5241},0x0);},{'priority':_0xaee5b3(0x1d4)}),_0x2177a8;}[_0x30f981(0x21f)](){const _0x5ae82e=_0x30f981,_0x39b66a=new _0x3b592f(this[_0x5ae82e(0x20f)]);return _0x39b66a[_0x5ae82e(0x1d0)][_0x5ae82e(0x1f3)][_0x5ae82e(0x21d)](this[_0x5ae82e(0x1e5)])['as'](_0x539c07),_0x39b66a['on'](_0x5ae82e(0x1d9),()=>{const _0x30753d=_0x5ae82e;this[_0x30753d(0x1e5)][_0x30753d(0x214)](),this[_0x30753d(0x20d)][_0x30753d(0x1f5)](''),this[_0x30753d(0x20d)][_0x30753d(0x1e9)]();}),_0x39b66a;}[_0x30f981(0x1d7)](){const _0x1a040d=_0x30f981,_0x34275d=new _0x156f15(this[_0x1a040d(0x20f)]);return _0x34275d[_0x1a040d(0x1d2)][_0x1a040d(0x222)](_0x1a040d(0x225))['to'](this,_0x1a040d(0x225),this,_0x1a040d(0x220),this,_0x1a040d(0x1f1),(_0x18010e,_0x10b02f,_0x38a4fe)=>_0x18010e&&!_0x10b02f&&!!_0x38a4fe),_0x34275d[_0x1a040d(0x1d2)][_0x1a040d(0x1da)](_0x1a040d(0x210))['to'](this,_0x1a040d(0x215)),_0x34275d[_0x1a040d(0x1d8)][_0x1a040d(0x222)](_0x1a040d(0x225))['to'](this,_0x1a040d(0x225),this,_0x1a040d(0x220),this,_0x1a040d(0x1f1),(_0x177b8f,_0x296fee,_0x29d180)=>_0x177b8f&&!_0x296fee&&!!_0x29d180),_0x34275d[_0x1a040d(0x1d8)][_0x1a040d(0x1da)](_0x1a040d(0x210))['to'](this,_0x1a040d(0x211)),_0x34275d[_0x1a040d(0x21e)][_0x1a040d(0x222)](_0x1a040d(0x225))['to'](this,_0x1a040d(0x225),this,_0x1a040d(0x220),(_0x20626d,_0x1607b8)=>_0x20626d&&!_0x1607b8),_0x34275d[_0x1a040d(0x21e)][_0x1a040d(0x1da)](_0x1a040d(0x210))['to'](this,_0x1a040d(0x1e7)),_0x34275d[_0x1a040d(0x1d1)][_0x1a040d(0x222)](_0x1a040d(0x225))['to'](this,_0x1a040d(0x220)),_0x34275d[_0x1a040d(0x1d1)][_0x1a040d(0x1da)](_0x1a040d(0x210))['to'](this,_0x1a040d(0x204)),_0x34275d;}[_0x30f981(0x223)](){const _0x4ee4a2=_0x30f981;this[_0x4ee4a2(0x1f1)]='',this[_0x4ee4a2(0x200)]=!0x1,this[_0x4ee4a2(0x220)]=!0x0,this[_0x4ee4a2(0x206)][_0x4ee4a2(0x201)]=!0x0,this[_0x4ee4a2(0x217)][_0x4ee4a2(0x201)]=!0x0,this[_0x4ee4a2(0x206)][_0x4ee4a2(0x1e9)]();}[_0x30f981(0x208)](){const _0x34d220=_0x30f981,_0x551e4a=this[_0x34d220(0x20f)];this[_0x34d220(0x220)]=!0x1,this[_0x34d220(0x224)]='',this[_0x34d220(0x20d)][_0x34d220(0x209)](),this[_0x34d220(0x1f1)]&&(this[_0x34d220(0x20d)][_0x34d220(0x213)][_0x34d220(0x20e)]=_0x296151(_0x551e4a,_0x34d220(0x1d3)));}[_0x30f981(0x1de)](_0x409692){const _0x3e6284=_0x30f981,_0x1aef7e=this[_0x3e6284(0x20f)];this[_0x3e6284(0x208)](),this[_0x3e6284(0x200)]=!0x0,this[_0x3e6284(0x1f2)][_0x3e6284(0x1df)]=_0x409692||_0x296151(_0x1aef7e,_0x3e6284(0x219)),this[_0x3e6284(0x1f1)]||(this[_0x3e6284(0x206)][_0x3e6284(0x201)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4b0b(){const _0x2b5c26=['2699919YRiNdY','318CZeZWC','16FeZUJA','585908tTPKnV','8639tVxpQS','fire','set','locale','5342562gRvqyr','children','add','1045528OKTqLZ','20FHKupz','2562845YVHyab','132rxASMV','prompt','execute','1645238kEtQBz','12mkHaGV'];_0x4b0b=function(){return _0x2b5c26;};return _0x4b0b();}(function(_0x2e3866,_0x2a6867){const _0x3133fa=_0x244c,_0x246295=_0x2e3866();while(!![]){try{const _0x1aa7e7=-parseInt(_0x3133fa(0xe7))/0x1*(-parseInt(_0x3133fa(0xe4))/0x2)+parseInt(_0x3133fa(0xe3))/0x3+parseInt(_0x3133fa(0xe6))/0x4+parseInt(_0x3133fa(0xdd))/0x5*(parseInt(_0x3133fa(0xe2))/0x6)+-parseInt(_0x3133fa(0xe1))/0x7*(parseInt(_0x3133fa(0xe5))/0x8)+parseInt(_0x3133fa(0xd8))/0x9*(-parseInt(_0x3133fa(0xdc))/0xa)+-parseInt(_0x3133fa(0xdb))/0xb*(parseInt(_0x3133fa(0xde))/0xc);if(_0x1aa7e7===_0x2a6867)break;else _0x246295['push'](_0x246295['shift']());}catch(_0x2eff85){_0x246295['push'](_0x246295['shift']());}}}(_0x4b0b,0xb53d5));import{ListItemView as _0x9e3141,ButtonView as _0x5cc0bf,ButtonLabelWithHighlightView as _0x38d037}from'ckeditor5/src/ui.js';import{unescape as _0x14877f}from'lodash-es';function _0x244c(_0x46bdfc,_0x2088f2){const _0x4b0b9=_0x4b0b();return _0x244c=function(_0x244c41,_0x269f6b){_0x244c41=_0x244c41-0xd7;let _0x507992=_0x4b0b9[_0x244c41];return _0x507992;},_0x244c(_0x46bdfc,_0x2088f2);}export default class os extends _0x9e3141{constructor(_0x4826d3){const _0x109703=_0x244c;super();const _0x40ab38=new _0x38d037(),_0x404c53=new _0x5cc0bf(this[_0x109703(0xd7)],_0x40ab38);this[_0x109703(0xd9)][_0x109703(0xda)](_0x404c53),_0x404c53[_0x109703(0xe9)]({'label':_0x4826d3[_0x109703(0xdf)],'withText':!0x0}),_0x404c53['on'](_0x109703(0xe0),()=>{const _0x573240=_0x109703;this[_0x573240(0xe8)](_0x573240(0xe0),{'value':_0x14877f(_0x4826d3[_0x573240(0xdf)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa9bfa6=_0x26fc;(function(_0x3e1dd2,_0x1d4477){const _0x3de8ca=_0x26fc,_0x2fd9e7=_0x3e1dd2();while(!![]){try{const _0x36c10a=-parseInt(_0x3de8ca(0x80))/0x1*(-parseInt(_0x3de8ca(0x72))/0x2)+parseInt(_0x3de8ca(0x7e))/0x3+-parseInt(_0x3de8ca(0x73))/0x4+parseInt(_0x3de8ca(0x76))/0x5*(-parseInt(_0x3de8ca(0x7a))/0x6)+-parseInt(_0x3de8ca(0x81))/0x7+-parseInt(_0x3de8ca(0x68))/0x8+parseInt(_0x3de8ca(0x7c))/0x9;if(_0x36c10a===_0x1d4477)break;else _0x2fd9e7['push'](_0x2fd9e7['shift']());}catch(_0x191698){_0x2fd9e7['push'](_0x2fd9e7['shift']());}}}(_0x5367,0x7a2e2));import{ListView as _0x22a7f1,ListItemGroupView as _0x4101bc,ButtonView as _0x20f951}from'ckeditor5/src/ui.js';function _0x26fc(_0xd406b4,_0x3f3024){const _0x536711=_0x5367();return _0x26fc=function(_0x26fcee,_0x3bd433){_0x26fcee=_0x26fcee-0x68;let _0x3461ff=_0x536711[_0x26fcee];return _0x3461ff;},_0x26fc(_0xd406b4,_0x3f3024);}import{getTranslation as _0x15b790}from'../../utils/common-translations.js';export default class hs extends _0x22a7f1{constructor(_0x17228e){const _0x5264e2=_0x26fc;super(_0x17228e),this[_0x5264e2(0x70)]=this[_0x5264e2(0x6d)](),this[_0x5264e2(0x7d)]=new _0x4101bc(),this[_0x5264e2(0x7d)][_0x5264e2(0x6b)][_0x5264e2(0x6a)](this[_0x5264e2(0x70)],0x1),this[_0x5264e2(0x7d)][_0x5264e2(0x7f)]=_0x15b790(_0x17228e,_0x5264e2(0x6f)),this[_0x5264e2(0x7d)][_0x5264e2(0x78)][_0x5264e2(0x6c)](_0x5264e2(0x74))['to'](this),this[_0x5264e2(0x78)][_0x5264e2(0x6a)](this[_0x5264e2(0x7d)]);}[_0xa9bfa6(0x77)](){const _0x5d75cf=_0xa9bfa6;let _0x53b9cd=0x0;for(const _0x533cc0 of this[_0x5d75cf(0x78)])_0x53b9cd+=_0x533cc0[_0x5d75cf(0x78)][_0x5d75cf(0x69)];return{'resultsCount':_0x53b9cd,'totalItemsCount':_0x53b9cd};}[_0xa9bfa6(0x6d)](){const _0x4240cb=_0xa9bfa6,_0x426fcd=this[_0x4240cb(0x75)],_0x4a90c6=new _0x20f951(this[_0x4240cb(0x75)]);return _0x4a90c6[_0x4240cb(0x7b)]({'label':'('+_0x15b790(_0x426fcd,_0x4240cb(0x6e))+')','withText':!0x0}),_0x4a90c6['on'](_0x4240cb(0x74),()=>this[_0x4240cb(0x71)](_0x4240cb(0x79))),_0x4a90c6;}}function _0x5367(){const _0x4104d9=['label','1412yNgPhK','5478669BisDsb','3632576SakAHn','length','add','children','delegate','_createClearHistoryButton','Clear','Prompt\x20history','clearHistoryButton','fire','634UnaKum','1947556IgnMgl','execute','locale','784345ohRGtn','filter','items','clearHistory','30vuKJSM','set','17436267RouIpJ','historyGroupView','1870368rBCBHR'];_0x5367=function(){return _0x4104d9;};return _0x5367();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4bc79c=_0x3b24;(function(_0x359191,_0x47aefb){const _0x1a310b=_0x3b24,_0x57820d=_0x359191();while(!![]){try{const _0x4590aa=parseInt(_0x1a310b(0x101))/0x1+-parseInt(_0x1a310b(0xef))/0x2+-parseInt(_0x1a310b(0xed))/0x3+-parseInt(_0x1a310b(0xf8))/0x4*(-parseInt(_0x1a310b(0x100))/0x5)+-parseInt(_0x1a310b(0xf1))/0x6+parseInt(_0x1a310b(0xfb))/0x7+parseInt(_0x1a310b(0xfc))/0x8;if(_0x4590aa===_0x47aefb)break;else _0x57820d['push'](_0x57820d['shift']());}catch(_0x6643fa){_0x57820d['push'](_0x57820d['shift']());}}}(_0x11ad,0xbb88e));import{Collection as _0x1f5dc7}from'ckeditor5/src/utils.js';const Ss=_0x4bc79c(0xeb);export default class ns extends _0x1f5dc7{constructor(){const _0x54399d=_0x4bc79c;super(),this[_0x54399d(0xec)](),this['on'](_0x54399d(0xf6),(_0x3fb0cf,_0xed7146)=>{const _0x5976f1=_0x54399d,_0x588bd3=ds(_0xed7146[_0x5976f1(0xfe)]);for(const _0x4242dd of this)if(_0x4242dd!=_0xed7146&&ds(_0x4242dd[_0x5976f1(0xfe)])===_0x588bd3){this[_0x5976f1(0xfd)](_0x4242dd);break;}this[_0x5976f1(0xf3)]>0x14&&this[_0x5976f1(0xfd)](this[_0x5976f1(0xee)]),this[_0x5976f1(0x102)]();}),this['on'](_0x54399d(0xfd),()=>{const _0xa1ab4e=_0x54399d;this[_0xa1ab4e(0x102)]();});}[_0x4bc79c(0xec)](){const _0x44a7d5=_0x4bc79c,_0x325342=sessionStorage[_0x44a7d5(0xfa)](Ss)||'[]';this[_0x44a7d5(0xf5)](JSON[_0x44a7d5(0xf9)](_0x325342));}[_0x4bc79c(0x102)](){const _0x8e77e1=_0x4bc79c;sessionStorage[_0x8e77e1(0xf7)](Ss,JSON[_0x8e77e1(0xf0)](this[_0x8e77e1(0xff)](_0x164fc1=>_0x164fc1)));}}function _0x11ad(){const _0x22e3ba=['trim','length','toLowerCase','addMany','add','setItem','20vLgcGi','parse','getItem','2614997CwieFq','15098280KtZxiD','remove','prompt','map','344470MdpXZf','393934DEbAFF','_saveToSessionStorage','CKEditor/AIFormView/PromptHistory','_loadFromSessionStorage','1296558NLOQMW','last','2354810mJrzKA','stringify','3729162kWMBbV'];_0x11ad=function(){return _0x22e3ba;};return _0x11ad();}function _0x3b24(_0x5dd556,_0x40744b){const _0x11ad8e=_0x11ad();return _0x3b24=function(_0x3b240c,_0x3ee7a9){_0x3b240c=_0x3b240c-0xeb;let _0x4b4826=_0x11ad8e[_0x3b240c];return _0x4b4826;},_0x3b24(_0x5dd556,_0x40744b);}function ds(_0x494345){const _0x17479c=_0x4bc79c;return _0x494345[_0x17479c(0xf4)]()[_0x17479c(0xf2)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4da6(_0x14ffd0,_0x3f1cd6){const _0x147b74=_0x147b();return _0x4da6=function(_0x4da609,_0x3ee57){_0x4da609=_0x4da609-0xd9;let _0x9b34ba=_0x147b74[_0x4da609];return _0x9b34ba;},_0x4da6(_0x14ffd0,_0x3f1cd6);}const _0x3371e6=_0x4da6;(function(_0x21b01a,_0x5e20ff){const _0x383cc8=_0x4da6,_0x5eef85=_0x21b01a();while(!![]){try{const _0x3a1846=-parseInt(_0x383cc8(0xdc))/0x1+parseInt(_0x383cc8(0x101))/0x2*(parseInt(_0x383cc8(0xe6))/0x3)+-parseInt(_0x383cc8(0xf1))/0x4+-parseInt(_0x383cc8(0xee))/0x5*(-parseInt(_0x383cc8(0xe5))/0x6)+-parseInt(_0x383cc8(0xfe))/0x7+-parseInt(_0x383cc8(0xf4))/0x8*(-parseInt(_0x383cc8(0xff))/0x9)+parseInt(_0x383cc8(0x105))/0xa;if(_0x3a1846===_0x5e20ff)break;else _0x5eef85['push'](_0x5eef85['shift']());}catch(_0x3c195b){_0x5eef85['push'](_0x5eef85['shift']());}}}(_0x147b,0x6510f));import{Command as _0xd54207}from'ckeditor5/src/core.js';function _0x147b(){const _0x1b2922=['5345109kEqLUo','2491596tjXnXS','_commandDefinitions','4604lPYfBE','_hasContext','isEnabled','length','11933960qhJcSe','custom','change:_hasContext','plugins','getSelectedBlocks','784488GlwUeu','reduce','from','enabledCommandsIds','config','model','change:isEnabled','concat','set','498FSElCX','891qQfvTf','add','isCollapsed','isEmpty','editor','document','element','hasContent','13435cWarXD','getItems','selection','1659652DYUxhQ','refresh','showUI','8dRUwHR','ai.aiAssistant.disabledElements','name','requiresContent','getFirstRange','commands','execute','getRanges','includes','get'];_0x147b=function(){return _0x1b2922;};return _0x147b();}import _0x50f72d from'../aiassistantui.js';export default class x extends _0xd54207{constructor(_0x5c2c69,_0x356b84){const _0x2d867a=_0x4da6;super(_0x5c2c69),this[_0x2d867a(0x100)]=_0x356b84?_0x356b84[_0x2d867a(0xdd)]((_0x564de6,_0x3ae34a)=>_0x564de6[_0x2d867a(0xe3)](_0x3ae34a[_0x2d867a(0xf9)]),new Array()):[],this[_0x2d867a(0xe4)](_0x2d867a(0xdf),[]),this['on'](_0x2d867a(0xd9),(_0x351e28,_0x4796de,_0x2a8d4e)=>{const _0x3ba1b2=_0x2d867a;this[_0x3ba1b2(0x103)]&&(this[_0x3ba1b2(0xdf)]=K(this[_0x3ba1b2(0x100)],_0x2a8d4e));}),this[_0x2d867a(0xe4)](_0x2d867a(0x102),!0x1),this['on'](_0x2d867a(0xe2),(_0x48d074,_0x3f700e,_0x446350)=>{const _0x504299=_0x2d867a;this[_0x504299(0xdf)]=_0x446350?K(this[_0x504299(0x100)],this[_0x504299(0x102)]):[];});}[_0x3371e6(0xf2)](){const _0x1cb54e=_0x3371e6,_0x3fda97=this[_0x1cb54e(0xea)][_0x1cb54e(0xe1)];this[_0x1cb54e(0x102)]=function(_0x351fa9){const _0xa85609=_0x1cb54e,_0x446528=_0x351fa9[_0xa85609(0xeb)][_0xa85609(0xf0)];return _0x446528[_0xa85609(0xe8)]?0x0!==[..._0x446528[_0xa85609(0xdb)]()][_0xa85609(0x104)]&&![..._0x446528[_0xa85609(0xdb)]()][0x0][_0xa85609(0xe9)]:!!_0x351fa9[_0xa85609(0xed)](_0x446528[_0xa85609(0xf8)]());}(_0x3fda97);const _0x38c2a9=_0x3fda97[_0x1cb54e(0xeb)][_0x1cb54e(0xf0)],_0x1f329a=this[_0x1cb54e(0xea)][_0x1cb54e(0xe0)][_0x1cb54e(0xfd)](_0x1cb54e(0xf5));for(const _0x1a3050 of _0x38c2a9[_0x1cb54e(0xfb)]())for(const _0x3950d7 of _0x1a3050[_0x1cb54e(0xef)]())if(_0x3950d7['is'](_0x1cb54e(0xec))&&_0x1f329a[_0x1cb54e(0xfc)](_0x3950d7[_0x1cb54e(0xf6)]))return void(this[_0x1cb54e(0x103)]=!0x1);this[_0x1cb54e(0x103)]=!0x0;}[_0x3371e6(0xfa)](_0x5cea51='',_0x1b0298='',_0x9c3241=_0x3371e6(0x106)){const _0x41de93=_0x3371e6;this[_0x41de93(0xea)][_0x41de93(0xda)][_0x41de93(0xfd)](_0x50f72d)[_0x41de93(0xf3)](_0x5cea51,_0x1b0298,_0x9c3241);}}function K(_0x5cb944,_0x52f4f6){const _0x38f20a=_0x3371e6,_0xb00a6b=new Set();for(const _0x24d735 of _0x5cb944)(_0x52f4f6||!0x1===_0x24d735[_0x38f20a(0xf7)])&&_0xb00a6b[_0x38f20a(0xe7)](_0x24d735['id']);return Array[_0x38f20a(0xde)](_0xb00a6b);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x40b21f,_0x28848c,_0x1a62f1){const t=_0x40b21f['t'];switch(_0x28848c){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'%0\x20commands\x20found':return t('%0\x20commands\x20found',_0x1a62f1);case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x1a62f1);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',_0x1a62f1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1a62f1);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'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');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'},_0x1a62f1);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 _0x28848c;}}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module ai/ui/buttonlabelwithhighlightview
|
|
11
|
-
*/
|
|
12
|
-
import { type ButtonLabel, HighlightedTextView } from 'ckeditor5/src/ui.js';
|
|
13
|
-
/**
|
|
14
|
-
* A button label view that can highlight a text fragment.
|
|
15
|
-
*/
|
|
16
|
-
export default class ButtonLabelWithHighlightView extends HighlightedTextView implements ButtonLabel {
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
style: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
text: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
id: string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
constructor();
|
|
33
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module ai/ui/labelwithhighlightview
|
|
11
|
-
*/
|
|
12
|
-
import { type LabelView, HighlightedTextView } from 'ckeditor5/src/ui.js';
|
|
13
|
-
/**
|
|
14
|
-
* A label view that can highlight a text fragment.
|
|
15
|
-
*/
|
|
16
|
-
export default class LabelWithHighlightView extends HighlightedTextView implements LabelView {
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
readonly id: string;
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
for: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
constructor();
|
|
29
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module ai/ui/buttonlabelwithhighlightview
|
|
7
|
-
*/
|
|
8
|
-
import { type ButtonLabel, HighlightedTextView } from 'ckeditor5/src/ui.js';
|
|
9
|
-
/**
|
|
10
|
-
* A button label view that can highlight a text fragment.
|
|
11
|
-
*/
|
|
12
|
-
export default class ButtonLabelWithHighlightView extends HighlightedTextView implements ButtonLabel {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
style: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
text: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
id: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
constructor();
|
|
29
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
function _0x413f(){const _0x407534=['102ujnCLV','style','set','13693700gwvGIs','6rAoMiO','bindTemplate','2098695WFROzi','ck-button__label','34964xsFknr','186109hQOUyS','3502332xDacpY','extendTemplate','545355veMjkP','48oDMQEO','827650xwUExf'];_0x413f=function(){return _0x407534;};return _0x413f();}(function(_0x1e1d8d,_0x1e1d5a){const _0x50ccd3=_0x469d,_0x1482ca=_0x1e1d8d();while(!![]){try{const _0x16ea88=-parseInt(_0x50ccd3(0x1d9))/0x1+-parseInt(_0x50ccd3(0x1db))/0x2+-parseInt(_0x50ccd3(0x1dc))/0x3*(parseInt(_0x50ccd3(0x1d5))/0x4)+parseInt(_0x50ccd3(0x1d3))/0x5*(parseInt(_0x50ccd3(0x1e0))/0x6)+parseInt(_0x50ccd3(0x1d6))/0x7*(parseInt(_0x50ccd3(0x1da))/0x8)+-parseInt(_0x50ccd3(0x1d7))/0x9+parseInt(_0x50ccd3(0x1df))/0xa;if(_0x16ea88===_0x1e1d5a)break;else _0x1482ca['push'](_0x1482ca['shift']());}catch(_0xbc203c){_0x1482ca['push'](_0x1482ca['shift']());}}}(_0x413f,0x4a005));function _0x469d(_0x48d4a8,_0x9dacec){const _0x413ff7=_0x413f();return _0x469d=function(_0x469d67,_0x38f81d){_0x469d67=_0x469d67-0x1d3;let _0x4e69d7=_0x413ff7[_0x469d67];return _0x4e69d7;},_0x469d(_0x48d4a8,_0x9dacec);}import{HighlightedTextView as _0x8f6e75}from'ckeditor5/src/ui.js';export default class N extends _0x8f6e75{constructor(){const _0xceefb4=_0x469d;super(),this[_0xceefb4(0x1de)]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0xc1d0e7=this[_0xceefb4(0x1e1)];this[_0xceefb4(0x1d8)]({'attributes':{'class':[_0xceefb4(0x1d4)],'style':_0xc1d0e7['to'](_0xceefb4(0x1dd)),'id':_0xc1d0e7['to']('id')}});}}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module ai/ui/labelwithhighlightview
|
|
7
|
-
*/
|
|
8
|
-
import { type LabelView, HighlightedTextView } from 'ckeditor5/src/ui.js';
|
|
9
|
-
/**
|
|
10
|
-
* A label view that can highlight a text fragment.
|
|
11
|
-
*/
|
|
12
|
-
export default class LabelWithHighlightView extends HighlightedTextView implements LabelView {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
readonly id: string;
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
for: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
constructor();
|
|
25
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
(function(_0x4b661a,_0x1e8ae0){const _0x4f7ff3=_0xf366,_0x41c89a=_0x4b661a();while(!![]){try{const _0x31e813=-parseInt(_0x4f7ff3(0x1c2))/0x1+parseInt(_0x4f7ff3(0x1c3))/0x2+-parseInt(_0x4f7ff3(0x1bd))/0x3*(-parseInt(_0x4f7ff3(0x1c0))/0x4)+-parseInt(_0x4f7ff3(0x1bf))/0x5*(parseInt(_0x4f7ff3(0x1bb))/0x6)+-parseInt(_0x4f7ff3(0x1c6))/0x7+parseInt(_0x4f7ff3(0x1c5))/0x8+-parseInt(_0x4f7ff3(0x1c7))/0x9*(parseInt(_0x4f7ff3(0x1c8))/0xa);if(_0x31e813===_0x1e8ae0)break;else _0x41c89a['push'](_0x41c89a['shift']());}catch(_0x55e214){_0x41c89a['push'](_0x41c89a['shift']());}}}(_0x2e12,0x45cfc));import{HighlightedTextView as _0x230f28}from'ckeditor5/src/ui.js';import{uid as _0x2230f1}from'ckeditor5/src/utils.js';function _0xf366(_0x33df5b,_0x4aa565){const _0x2e1280=_0x2e12();return _0xf366=function(_0xf366ca,_0x1fcfae){_0xf366ca=_0xf366ca-0x1bb;let _0x8eabc3=_0x2e1280[_0xf366ca];return _0x8eabc3;},_0xf366(_0x33df5b,_0x4aa565);}export default class S extends _0x230f28{constructor(){const _0x28ccf1=_0xf366;super(),this[_0x28ccf1(0x1c1)](_0x28ccf1(0x1c4),void 0x0);const _0x9ede8a=this[_0x28ccf1(0x1bc)];this['id']=_0x28ccf1(0x1c9)+_0x2230f1(),this[_0x28ccf1(0x1be)]({'attributes':{'class':['ck',_0x28ccf1(0x1ca)],'id':this['id'],'for':_0x9ede8a['to'](_0x28ccf1(0x1c4))}});}}function _0x2e12(){const _0x3ba37f=['5LRNQZm','1642760MlnavU','set','269537xSfugw','494918FOJxcx','for','3714296zLXOYK','1974392kKBiCB','36zNodpr','210470qMkXIp','ck-editor__label_','ck-label','1204242SSpFxa','bindTemplate','3JiIPcc','extendTemplate'];_0x2e12=function(){return _0x3ba37f;};return _0x2e12();}
|