@ckeditor/ckeditor5-ai 0.0.0-nightly-20240421.0 → 0.0.0-nightly-20240423.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 +6 -6
- package/package.json +4 -4
- 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 +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x149a(){const _0x5640a9=['locale','smooth','5QRdxKB','addRange','_createLoader','isVisible','listenTo','ck-ai-form__content-area-wrapper','bindTemplate','getSelection','ck-ai-form__content-area','clipboard','appendLoader','check','ck-ai-form__loader','setContent','focus','createRange','ck-ai-form__content-field','textContent','setEndBefore','icon','execute','write','ck-reset_all-excluded','copy','createElement','removeAllRanges','2517208HSYmgU','mousedown','12673940pogDad','text/html','ClipboardItem','688424DTQJzF','scrollTo','scrollHeight','ck-hidden','left','bind','lastElementChild','<span>]</span>','1253pRjfhW','18DwnkVU','body','class','254090qctmnb','1455894HgMWYl','value','ck-ai-form__content-area--processing','18072FdsEBH','\x20ck-ai-form__copy-button--copied','ck-content','position','_createCopyButton','innerHTML','text/plain','contentFieldView','Copy','wheel','331196oMfByO','<span>[</span>','AI\x20is\x20writing...','isProcessing','-9999px','isEnabled','ck-ai-form__copy-button','setStartAfter','setTemplate','ck-ai-form__copy-button-wrapper','element','execCommand','appendChild','querySelector','div','change:value','remove','set','copyButtonView','absolute','_copyHTMLToClipboard','style','render','.ck-ai-form__loader','firstElementChild','loaderView','change:isProcessing'];_0x149a=function(){return _0x5640a9;};return _0x149a();}const _0x599b35=_0x52ad;(function(_0x1ec480,_0x37fe9c){const _0x369152=_0x52ad,_0x232cfe=_0x1ec480();while(!![]){try{const _0x25edba=-parseInt(_0x369152(0x214))/0x1+-parseInt(_0x369152(0x220))/0x2+-parseInt(_0x369152(0x221))/0x3+-parseInt(_0x369152(0x22e))/0x4*(-parseInt(_0x369152(0x1f5))/0x5)+-parseInt(_0x369152(0x224))/0x6*(parseInt(_0x369152(0x21c))/0x7)+-parseInt(_0x369152(0x20f))/0x8+parseInt(_0x369152(0x21d))/0x9*(parseInt(_0x369152(0x211))/0xa);if(_0x25edba===_0x37fe9c)break;else _0x232cfe['push'](_0x232cfe['shift']());}catch(_0x456c3c){_0x232cfe['push'](_0x232cfe['shift']());}}}(_0x149a,0x710ad));import{global as _0x5c6baa}from'ckeditor5/src/utils.js';import{View as _0x1fae0f,ButtonView as _0x49f691,SpinnerView as _0x243624}from'ckeditor5/src/ui.js';import _0x22f164 from'../../../theme/icons/copy.svg';import{getTranslation as _0x49cb85}from'../../utils/common-translations.js';import{icons as _0x153db2}from'ckeditor5/src/core.js';function _0x52ad(_0x25cac6,_0x4b0ad3){const _0x149a77=_0x149a();return _0x52ad=function(_0x52ad43,_0x4377fe){_0x52ad43=_0x52ad43-0x1de;let _0x2ead9e=_0x149a77[_0x52ad43];return _0x2ead9e;},_0x52ad(_0x25cac6,_0x4b0ad3);}export default class nt extends _0x1fae0f{constructor(_0x4c4646,_0x1e0218=''){const _0x25b663=_0x52ad;super(_0x4c4646),this[_0x25b663(0x1e9)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x599be5=this[_0x25b663(0x1fb)];this[_0x25b663(0x22b)]=new ContentFieldView(_0x4c4646,_0x1e0218),this[_0x25b663(0x1ea)]=this[_0x25b663(0x228)](),this[_0x25b663(0x1e0)]({'tag':_0x25b663(0x1e6),'attributes':{'class':['ck',_0x25b663(0x1fa),_0x599be5['if'](_0x25b663(0x1f8),_0x25b663(0x217),_0x5013d5=>!_0x5013d5)],'tabindex':'-1'},'children':[{'tag':_0x25b663(0x1e6),'attributes':{'class':['ck',_0x25b663(0x1fd),_0x599be5['if'](_0x25b663(0x231),_0x25b663(0x223))]},'children':[this[_0x25b663(0x22b)],{'tag':_0x25b663(0x1e6),'attributes':{'class':['ck',_0x25b663(0x1e1)]},'children':[this[_0x25b663(0x1ea)]]}]}]});}[_0x599b35(0x1ee)](){const _0x32ebcf=_0x599b35;super[_0x32ebcf(0x1ee)](),this[_0x32ebcf(0x222)]&&this[_0x32ebcf(0x22b)][_0x32ebcf(0x202)](this[_0x32ebcf(0x222)]);let _0x4db10d=!0x1;this['on'](_0x32ebcf(0x1e7),(_0x25baab,_0x1da78a,_0x450817)=>{const _0x5cc5c0=_0x32ebcf,_0x2b6c95=!this[_0x5cc5c0(0x22b)][_0x5cc5c0(0x1e2)][_0x5cc5c0(0x1e5)](_0x5cc5c0(0x1ef));this[_0x5cc5c0(0x22b)][_0x5cc5c0(0x202)](_0x450817),this[_0x5cc5c0(0x231)]&&_0x2b6c95&&!_0x4db10d&&this[_0x5cc5c0(0x1e2)][_0x5cc5c0(0x215)]({'top':this[_0x5cc5c0(0x1e2)][_0x5cc5c0(0x216)],'behavior':_0x5cc5c0(0x1f4)});}),this['on'](_0x32ebcf(0x1f2),(_0xd42bd6,_0x36d4f6,_0x46b4e4)=>{const _0x43ff77=_0x32ebcf;_0x4db10d=!0x1,_0x46b4e4?(this[_0x43ff77(0x222)]=null,this[_0x43ff77(0x22b)][_0x43ff77(0x1ff)]()):this[_0x43ff77(0x222)]||this[_0x43ff77(0x22b)][_0x43ff77(0x202)]('');}),this[_0x32ebcf(0x1f9)](this[_0x32ebcf(0x1e2)],_0x32ebcf(0x22d),()=>{_0x4db10d=!0x0;}),this[_0x32ebcf(0x1f9)](this[_0x32ebcf(0x1e2)],_0x32ebcf(0x210),()=>{_0x4db10d=!0x0;});}[_0x599b35(0x203)](){const _0x111982=_0x599b35;this[_0x111982(0x1e2)][_0x111982(0x203)]();}[_0x599b35(0x228)](){const _0x50881c=_0x599b35,_0x284d4d=this[_0x50881c(0x1f3)],_0x36318c=new _0x49f691(this[_0x50881c(0x1f3)]),_0x2ad217=_0x50881c(0x1de);return _0x36318c[_0x50881c(0x1e9)]({'label':_0x49cb85(_0x284d4d,_0x50881c(0x22c)),'icon':_0x22f164,'class':_0x2ad217,'tooltip':!0x0}),_0x36318c[_0x50881c(0x219)](_0x50881c(0x1f8))['to'](this,_0x50881c(0x222),_0x588e79=>!!_0x588e79),_0x36318c[_0x50881c(0x219)](_0x50881c(0x233))['to'](this,_0x50881c(0x231),_0x82db07=>!_0x82db07),_0x36318c['on'](_0x50881c(0x209),()=>{const _0x2a377e=_0x50881c;this[_0x2a377e(0x1ec)](this[_0x2a377e(0x22b)][_0x2a377e(0x1e2)]),_0x36318c[_0x2a377e(0x208)]=_0x153db2[_0x2a377e(0x200)],_0x36318c[_0x2a377e(0x21f)]=_0x2ad217+_0x2a377e(0x225),this[_0x2a377e(0x203)](),setTimeout(()=>{const _0x50cac8=_0x2a377e;_0x36318c[_0x50cac8(0x208)]=_0x22f164,_0x36318c[_0x50cac8(0x21f)]=_0x2ad217;},0x3e8);}),_0x36318c;}[_0x599b35(0x1ec)](_0x385223){const _0x1c6e8b=_0x599b35,{window:_0x5d07df,document:_0x2520c7}=_0x5c6baa;if(_0x5d07df[_0x1c6e8b(0x213)]){const {Blob:_0x2fd500,ClipboardItem:_0x120cb4}=_0x5d07df,_0x522018=[new _0x120cb4({'text/html':new _0x2fd500([_0x385223[_0x1c6e8b(0x229)]],{'type':_0x1c6e8b(0x212)}),'text/plain':new _0x2fd500([_0x385223[_0x1c6e8b(0x206)]||''],{'type':_0x1c6e8b(0x22a)})})];navigator[_0x1c6e8b(0x1fe)][_0x1c6e8b(0x20a)](_0x522018);}else{const _0xd4ea77=_0x2520c7[_0x1c6e8b(0x20d)](_0x1c6e8b(0x1e6));_0xd4ea77[_0x1c6e8b(0x1ed)][_0x1c6e8b(0x227)]=_0x1c6e8b(0x1eb),_0xd4ea77[_0x1c6e8b(0x1ed)][_0x1c6e8b(0x218)]=_0x1c6e8b(0x232),_0xd4ea77[_0x1c6e8b(0x229)]=_0x1c6e8b(0x22f)+_0x385223[_0x1c6e8b(0x229)]+_0x1c6e8b(0x21b),_0x2520c7[_0x1c6e8b(0x21e)][_0x1c6e8b(0x1e4)](_0xd4ea77);const _0x59dfe6=_0x2520c7[_0x1c6e8b(0x204)]();_0x59dfe6[_0x1c6e8b(0x1df)](_0xd4ea77[_0x1c6e8b(0x1f0)]),_0x59dfe6[_0x1c6e8b(0x207)](_0xd4ea77[_0x1c6e8b(0x21a)]);const _0x3a4089=_0x5d07df[_0x1c6e8b(0x1fc)]();_0x3a4089[_0x1c6e8b(0x20e)](),_0x3a4089[_0x1c6e8b(0x1f6)](_0x59dfe6),_0x2520c7[_0x1c6e8b(0x1e3)](_0x1c6e8b(0x20c)),_0xd4ea77[_0x1c6e8b(0x1e8)]();}}}export class ContentFieldView extends _0x1fae0f{constructor(_0x52ee2d,_0x9796b9=''){const _0x4983a0=_0x599b35;super(_0x52ee2d),this[_0x4983a0(0x1f1)]=this[_0x4983a0(0x1f7)](),this[_0x4983a0(0x1e0)]({'tag':_0x4983a0(0x1e6),'attributes':{'class':['ck',_0x4983a0(0x226),_0x9796b9,_0x4983a0(0x20b),_0x4983a0(0x205)]}});}[_0x599b35(0x202)](_0x39bef1){const _0x495107=_0x599b35;this[_0x495107(0x1e2)][_0x495107(0x229)]=_0x39bef1;}[_0x599b35(0x1ff)](){const _0x38d997=_0x599b35;this[_0x38d997(0x1e2)][_0x38d997(0x1e4)](this[_0x38d997(0x1f1)][_0x38d997(0x1e2)]);}[_0x599b35(0x1f7)](){const _0x447412=_0x599b35,_0x1fc9bf=new _0x1fae0f(),_0x9ea283=this[_0x447412(0x1f3)],_0x1f8ab0=new _0x243624();return _0x1f8ab0[_0x447412(0x1f8)]=!0x0,_0x1fc9bf[_0x447412(0x1e0)]({'tag':_0x447412(0x1e6),'attributes':{'class':['ck',_0x447412(0x201)]},'children':[_0x1f8ab0,{'text':_0x49cb85(_0x9ea283,_0x447412(0x230))}]}),_0x1fc9bf[_0x447412(0x1ee)](),_0x1fc9bf;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xf0c8(){const _0x190a13=['text','769197qxdArY','div','ck-ai-form__error','285216oWWKnN','1175690XYIlgL','6727NjcvFq','set','bindTemplate','25ujfnxs','177414rFTSDo','content','9trtdXU','19996vVnyXG','291844BaaLbL','5384ViSAWe','setTemplate'];_0xf0c8=function(){return _0x190a13;};return _0xf0c8();}function _0x5a64(_0x1ea159,_0x5b4ab7){const _0xf0c840=_0xf0c8();return _0x5a64=function(_0x5a6477,_0x26fb9d){_0x5a6477=_0x5a6477-0x19a;let _0x52954b=_0xf0c840[_0x5a6477];return _0x52954b;},_0x5a64(_0x1ea159,_0x5b4ab7);}(function(_0x36a282,_0x34880c){const _0x4b5456=_0x5a64,_0x1ba2a0=_0x36a282();while(!![]){try{const _0x47d7d5=-parseInt(_0x4b5456(0x1a9))/0x1+parseInt(_0x4b5456(0x1a2))/0x2+-parseInt(_0x4b5456(0x1a6))/0x3+parseInt(_0x4b5456(0x1a1))/0x4*(parseInt(_0x4b5456(0x19d))/0x5)+-parseInt(_0x4b5456(0x19e))/0x6+parseInt(_0x4b5456(0x19a))/0x7*(parseInt(_0x4b5456(0x1a3))/0x8)+parseInt(_0x4b5456(0x1a0))/0x9*(parseInt(_0x4b5456(0x1aa))/0xa);if(_0x47d7d5===_0x34880c)break;else _0x1ba2a0['push'](_0x1ba2a0['shift']());}catch(_0xeb605f){_0x1ba2a0['push'](_0x1ba2a0['shift']());}}}(_0xf0c8,0x58e17));import{View as _0x41b459,IconView as _0x4ea8e5}from'ckeditor5/src/ui.js';import _0x59200e from'../../../theme/icons/error.svg';export default class mt extends _0x41b459{constructor(_0x1f309f,_0xb8836f=''){const _0x4dcdff=_0x5a64;super(_0x1f309f);const _0x7e28eb=new _0x4ea8e5(),_0x1716ad=this[_0x4dcdff(0x19c)];this[_0x4dcdff(0x19b)](_0x4dcdff(0x1a5),_0xb8836f),_0x7e28eb[_0x4dcdff(0x19f)]=_0x59200e,this[_0x4dcdff(0x1a4)]({'tag':_0x4dcdff(0x1a7),'attributes':{'class':['ck',_0x4dcdff(0x1a8)]},'children':[_0x7e28eb,{'text':_0x1716ad['to'](_0x4dcdff(0x1a5))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30929e=_0x474d;(function(_0x52cda1,_0x5b1e1b){const _0x4701a9=_0x474d,_0x2201d8=_0x52cda1();while(!![]){try{const _0x30a624=-parseInt(_0x4701a9(0x17a))/0x1+parseInt(_0x4701a9(0x17d))/0x2*(-parseInt(_0x4701a9(0x176))/0x3)+parseInt(_0x4701a9(0x170))/0x4*(parseInt(_0x4701a9(0x171))/0x5)+-parseInt(_0x4701a9(0x19c))/0x6*(-parseInt(_0x4701a9(0x19f))/0x7)+parseInt(_0x4701a9(0x17e))/0x8*(parseInt(_0x4701a9(0x18d))/0x9)+parseInt(_0x4701a9(0x17b))/0xa*(-parseInt(_0x4701a9(0x188))/0xb)+parseInt(_0x4701a9(0x17c))/0xc;if(_0x30a624===_0x5b1e1b)break;else _0x2201d8['push'](_0x2201d8['shift']());}catch(_0xdb1a1c){_0x2201d8['push'](_0x2201d8['shift']());}}}(_0x1cf9,0xb1849));import{Rect as _0x4014a3,global as _0x4801a3,isVisible as _0x504a40}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x21816d,ButtonView as _0xd46b8d}from'ckeditor5/src/ui.js';import{icons as _0x4c1f96}from'ckeditor5/src/core.js';import{getTranslation as _0x41cc1b}from'../../utils/common-translations.js';import _0x519fb6 from'../../../theme/icons/submit.svg';function _0x474d(_0x1b25cf,_0x34fce7){const _0x1cf9b=_0x1cf9();return _0x474d=function(_0x474dd0,_0xc822a5){_0x474dd0=_0x474dd0-0x16e;let _0x160bc3=_0x1cf9b[_0x474dd0];return _0x160bc3;},_0x474d(_0x1b25cf,_0x34fce7);}export default class pt extends _0x21816d{constructor(_0x89abf2,_0x940d8e){const _0x46cf73=_0x474d;super(_0x89abf2,_0x940d8e),this[_0x46cf73(0x190)][_0x46cf73(0x198)][_0x46cf73(0x17f)]=0x1,this[_0x46cf73(0x190)][_0x46cf73(0x198)][_0x46cf73(0x19e)]=0x3,this[_0x46cf73(0x181)]=this[_0x46cf73(0x179)](),this[_0x46cf73(0x19d)]=this[_0x46cf73(0x16f)](),this[_0x46cf73(0x189)][_0x46cf73(0x16e)](this[_0x46cf73(0x19d)],0x1),this[_0x46cf73(0x189)][_0x46cf73(0x16e)](this[_0x46cf73(0x181)]);}[_0x30929e(0x1a4)](){const _0x22eec5=_0x30929e;super[_0x22eec5(0x1a4)](),this[_0x22eec5(0x190)][_0x22eec5(0x172)][_0x22eec5(0x16e)](this[_0x22eec5(0x19d)]),this[_0x22eec5(0x18e)][_0x22eec5(0x16e)](this[_0x22eec5(0x181)]),this[_0x22eec5(0x1a6)][_0x22eec5(0x185)](_0x22eec5(0x1a7),(_0x1bbf5a,_0x49c54d)=>{const _0x308181=_0x22eec5;_0x1bbf5a[_0x308181(0x194)]==this[_0x308181(0x190)][_0x308181(0x198)][_0x308181(0x1aa)]&&(this[_0x308181(0x1a3)](),_0x49c54d());});}[_0x30929e(0x179)](){const _0x71ccd4=_0x30929e,_0xd309f5=new _0xd46b8d(this[_0x71ccd4(0x18a)]),_0x55cf68=this[_0x71ccd4(0x18a)];return _0xd309f5[_0x71ccd4(0x185)]({'icon':_0x519fb6,'label':_0x41cc1b(_0x55cf68,_0x71ccd4(0x193)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x71ccd4(0x174)}),_0xd309f5['on'](_0x71ccd4(0x19a),()=>{const _0x114f56=_0x71ccd4;this[_0x114f56(0x1a3)]();}),_0xd309f5[_0x71ccd4(0x175)](_0x71ccd4(0x182))['to'](this[_0x71ccd4(0x190)][_0x71ccd4(0x198)],_0x71ccd4(0x191),this,_0x71ccd4(0x182),(_0x23441a,_0x130650)=>!_0x23441a&&_0x130650),_0xd309f5;}[_0x30929e(0x16f)](){const _0x4f8c92=_0x30929e,_0x40fdc2=new _0xd46b8d(this[_0x4f8c92(0x18a)]),_0x5c7f50=this[_0x4f8c92(0x1a0)],_0x3396d8=this[_0x4f8c92(0x18a)];_0x40fdc2[_0x4f8c92(0x185)]({'label':_0x41cc1b(_0x3396d8,_0x4f8c92(0x186)),'withText':!0x1,'icon':_0x4c1f96[_0x4f8c92(0x1a5)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4f8c92(0x197)}),_0x40fdc2[_0x4f8c92(0x175)](_0x4f8c92(0x192))['to'](_0x5c7f50,_0x4f8c92(0x1a2)),_0x40fdc2[_0x4f8c92(0x175)](_0x4f8c92(0x182))['to'](this,_0x4f8c92(0x182)),_0x40fdc2['on'](_0x4f8c92(0x19a),()=>{const _0x45f4fd=_0x4f8c92;_0x5c7f50[_0x45f4fd(0x1a2)]=!_0x5c7f50[_0x45f4fd(0x1a2)],_0x5c7f50[_0x45f4fd(0x1a2)]?this[_0x45f4fd(0x196)][_0x45f4fd(0x19b)]():this[_0x45f4fd(0x19b)]();});const _0x77fa24=()=>{const _0x36e50d=_0x4f8c92;_0x4801a3[_0x36e50d(0x177)][_0x36e50d(0x173)](()=>{const _0x21c27f=_0x36e50d;if(_0x504a40(this[_0x21c27f(0x1aa)])){const _0x51d1fb=new _0x4014a3(this[_0x21c27f(0x190)][_0x21c27f(0x198)][_0x21c27f(0x1aa)]),_0xa6378f=_0x51d1fb[_0x21c27f(0x180)],_0x4184dd=_0x21c27f(0x187)===_0x3396d8[_0x21c27f(0x18b)]?_0x21c27f(0x1a8):_0x21c27f(0x18c);_0x51d1fb[_0x21c27f(0x18f)](),_0x40fdc2[_0x21c27f(0x1aa)][_0x21c27f(0x184)][_0x4184dd]=_0xa6378f-_0x51d1fb[_0x21c27f(0x180)]+0x1+'px';}});};return this[_0x4f8c92(0x190)][_0x4f8c92(0x198)]['on'](_0x4f8c92(0x1a1),_0x77fa24),this['on'](_0x4f8c92(0x1a4),_0x77fa24),_0x40fdc2;}[_0x30929e(0x1a3)](){const _0x2e72e9=_0x30929e,_0x5ad903=this[_0x2e72e9(0x190)][_0x2e72e9(0x198)][_0x2e72e9(0x1aa)][_0x2e72e9(0x1a9)];this[_0x2e72e9(0x195)](_0x2e72e9(0x1a3),_0x5ad903);}[_0x30929e(0x19b)](_0x24e3d2){const _0x32cb73=_0x30929e;-0x1===_0x24e3d2?this[_0x32cb73(0x199)][_0x32cb73(0x178)]():this[_0x32cb73(0x199)][_0x32cb73(0x183)]();}}function _0x1cf9(){const _0x1307a1=['fieldWrapperChildren','requestAnimationFrame','ck-ai-form__submit','bind','683187nfXeVE','window','focusLast','_createSubmitButton','673759HppEEH','11776270AJByIw','33447768tmbOaB','12EyJkWL','288rWUGTA','minRows','width','submitButtonView','isEnabled','focusFirst','style','set','History','rtl','11qQKJLU','focusableChildren','locale','uiLanguageDirection','right','5634JImSMZ','children','excludeScrollbarsAndBorders','queryView','isEmpty','isOn','Submit','target','fire','filteredView','ck-ai-form__toggle-history','fieldView','focusCycler','execute','focus','30xWOKqW','showHistoryButtonView','maxRows','141211uePRHa','resultsView','update','isVisible','submit','render','history','keystrokes','enter','left','value','element','add','_createShowHistoryButton','4136632HPwdAg','5mgyUjk'];_0x1cf9=function(){return _0x1307a1;};return _0x1cf9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2c14d8=_0x2c79;(function(_0x25ca4f,_0x5e1dbf){const _0x38b461=_0x2c79,_0x373d38=_0x25ca4f();while(!![]){try{const _0x1fe13e=parseInt(_0x38b461(0x1a0))/0x1*(parseInt(_0x38b461(0x189))/0x2)+parseInt(_0x38b461(0x18f))/0x3+-parseInt(_0x38b461(0x18b))/0x4+-parseInt(_0x38b461(0x183))/0x5+-parseInt(_0x38b461(0x1a4))/0x6+parseInt(_0x38b461(0x195))/0x7+-parseInt(_0x38b461(0x19f))/0x8*(-parseInt(_0x38b461(0x192))/0x9);if(_0x1fe13e===_0x5e1dbf)break;else _0x373d38['push'](_0x373d38['shift']());}catch(_0x20eac8){_0x373d38['push'](_0x373d38['shift']());}}}(_0x3a35,0xd1991));function _0x3a35(){const _0x3c7991=['addMany','mainAction','4583061mmhthm','set','locale','AI_','insertButton','_CONTENT','items','tryAgainButton','ck-button-action','Insert\x20below','15144WcLKqp','2pvbWbn','replace','replaceButton','Stop','9475974FmWAxA','Try\x20again','extendTemplate','8334580BncMuW','ck-ai-form__toolbar','ck-hidden','_createButton','isVisible','bindTemplate','598252HIezqv','insert','4640336TmCocA','REPLACE','stopButton','toUpperCase','2966238CDvKMX','label','bind','14373JeOAcz'];_0x3a35=function(){return _0x3c7991;};return _0x3a35();}import{ToolbarView as _0x2d9a09,ButtonView as _0x2fffb3}from'ckeditor5/src/ui.js';import{getTranslation as _0x176339}from'../../utils/common-translations.js';function _0x2c79(_0x169884,_0x116f34){const _0x3a3554=_0x3a35();return _0x2c79=function(_0x2c790e,_0x3789da){_0x2c790e=_0x2c790e-0x181;let _0x3d5522=_0x3a3554[_0x2c790e];return _0x3d5522;},_0x2c79(_0x169884,_0x116f34);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2c14d8(0x1a1),'INSERT':_0x2c14d8(0x18a)};export default class Tt extends _0x2d9a09{constructor(_0x31312b){const _0x4bf30e=_0x2c14d8;super(_0x31312b),this[_0x4bf30e(0x196)](_0x4bf30e(0x187),!0x1),this[_0x4bf30e(0x196)](_0x4bf30e(0x194),AIFormToolbarViewMainActionLabel[_0x4bf30e(0x18c)]),this[_0x4bf30e(0x1a2)]=this[_0x4bf30e(0x186)]('',_0x4bf30e(0x19d)),this[_0x4bf30e(0x1a2)][_0x4bf30e(0x191)](_0x4bf30e(0x190))['to'](this,_0x4bf30e(0x194),_0x347d34=>_0x176339(_0x31312b,_0x4bf30e(0x198)+_0x347d34[_0x4bf30e(0x18e)]()+_0x4bf30e(0x19a))),this[_0x4bf30e(0x199)]=this[_0x4bf30e(0x186)](_0x176339(_0x31312b,_0x4bf30e(0x19e))),this[_0x4bf30e(0x19c)]=this[_0x4bf30e(0x186)](_0x176339(_0x31312b,_0x4bf30e(0x181))),this[_0x4bf30e(0x18d)]=this[_0x4bf30e(0x186)](_0x176339(_0x31312b,_0x4bf30e(0x1a3)));const _0x1a8a3d=this[_0x4bf30e(0x188)];this[_0x4bf30e(0x182)]({'attributes':{'class':[_0x4bf30e(0x184),_0x1a8a3d['if'](_0x4bf30e(0x187),_0x4bf30e(0x185),_0x35cd42=>!_0x35cd42)]}}),this[_0x4bf30e(0x19b)][_0x4bf30e(0x193)]([this[_0x4bf30e(0x1a2)],this[_0x4bf30e(0x199)],this[_0x4bf30e(0x19c)],this[_0x4bf30e(0x18d)]]);}[_0x2c14d8(0x186)](_0x3993fe,_0x7638a5){const _0x4cdaea=_0x2c14d8,_0xeca56f=new _0x2fffb3(this[_0x4cdaea(0x197)]);return _0xeca56f[_0x4cdaea(0x196)]({'label':_0x3993fe,'class':_0x7638a5||'','isVisible':!0x0,'withText':!0x0}),_0xeca56f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ad438=_0x4224;(function(_0x3f8df5,_0x1b112b){const _0xa0858e=_0x4224,_0x5c199a=_0x3f8df5();while(!![]){try{const _0x5ac0bb=-parseInt(_0xa0858e(0x190))/0x1+-parseInt(_0xa0858e(0x173))/0x2+-parseInt(_0xa0858e(0x192))/0x3+-parseInt(_0xa0858e(0x169))/0x4+-parseInt(_0xa0858e(0x17a))/0x5+-parseInt(_0xa0858e(0x152))/0x6*(-parseInt(_0xa0858e(0x191))/0x7)+parseInt(_0xa0858e(0x1a0))/0x8*(parseInt(_0xa0858e(0x19e))/0x9);if(_0x5ac0bb===_0x1b112b)break;else _0x5c199a['push'](_0x5c199a['shift']());}catch(_0x5c6382){_0x5c199a['push'](_0x5c199a['shift']());}}}(_0x55ae,0x8fdb3));import{FocusTracker as _0x33ee64,KeystrokeHandler as _0x4f59a1}from'ckeditor5/src/utils.js';function _0x4224(_0x5b2f48,_0x532e45){const _0x55ae21=_0x55ae();return _0x4224=function(_0x4224a8,_0x1e8f51){_0x4224a8=_0x4224a8-0x149;let _0x3713a5=_0x55ae21[_0x4224a8];return _0x3713a5;},_0x4224(_0x5b2f48,_0x532e45);}import{View as _0x61f75d,FocusCycler as _0x4660de,createLabeledTextarea as _0x666c26}from'ckeditor5/src/ui.js';import _0x1eecd0,{AIFormToolbarViewMainActionLabel as _0x16d070}from'./aiformtoolbarview.js';function _0x55ae(){const _0x28f316=['clearHistory','prompt','AI_ERROR_FAILED','tryAgainButton','shift\x20+\x20tab','isProcessing','isVisible','finishProcessing','focus','ck-ai-form','createCollection','18jChrQE','tryAgainEvent','11505840OsFpxC','fire','listenTo','_createToolbar','insertButton','setTemplate','mainAction','clear','focusTracker','insertContentBelow','3660FXKTXa','text','div','copyButtonView','Ask\x20AI\x20to\x20edit\x20or\x20generate','bindTemplate','focusCycler','focusNext','replaceContent','contentArea','render','value','_focusables','high','replaceButton','bindTo','errorView','startProcessing','keystrokes','backwardCycle','REPLACE','trim','items','1943748fynHNy','stopProcessing','promptView','add','_createPromptView','toolbar','tab','Empty\x20history','delegate','_promptHistory','402918Pwksxe','ck-ai-form-content','stop','handleError','stopButton','fieldView','_createHistoryView','5054210mWwqHa','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isError','reset','focusLast','element','forwardCycle','historyGroupView','queryView','set','bind','submitPrompt','submit','search','focusPrevious','label','Ask\x20AI\x20to\x20improve\x20generated\x20text','focusFirst','ck-hidden','isEnabled','execute','locale','339988QvCtor','9233RECUxB','3160767KUMWiC'];_0x55ae=function(){return _0x28f316;};return _0x55ae();}import _0x48dd1d from'./aiformcontentarea.js';import _0x16e259 from'./aiformerrorview.js';import _0x2e5b5c from'./aiformpromptview.js';import _0x274dcb from'./aihistorylistview.js';import _0x24110d from'./aihistorylistitemview.js';import _0x24492a from'./prompthistory.js';import{getTranslation as _0x4c0752}from'../../utils/common-translations.js';import{escape as _0x3a881a}from'lodash-es';export default class x extends _0x61f75d{constructor(_0x2b42d3,_0x32e668,_0x143b0f=''){const _0x2e7f97=_0x4224;super(_0x2b42d3),this[_0x2e7f97(0x183)](_0x2e7f97(0x18d),!0x0),this[_0x2e7f97(0x183)](_0x2e7f97(0x198),!0x1),this[_0x2e7f97(0x183)](_0x2e7f97(0x194),''),this[_0x2e7f97(0x183)](_0x2e7f97(0x15d),''),this[_0x2e7f97(0x183)](_0x2e7f97(0x17c),!0x1),this[_0x2e7f97(0x183)](_0x2e7f97(0x14e),_0x16d070[_0x2e7f97(0x166)]),this[_0x2e7f97(0x172)]=new _0x24492a(),this[_0x2e7f97(0x162)]=new _0x16e259(_0x2b42d3),this[_0x2e7f97(0x15b)]=new _0x48dd1d(_0x2b42d3,_0x143b0f),this[_0x2e7f97(0x15b)][_0x2e7f97(0x184)](_0x2e7f97(0x198))['to'](this),this[_0x2e7f97(0x15b)][_0x2e7f97(0x184)](_0x2e7f97(0x15d))['to'](this),this[_0x2e7f97(0x16e)]=this[_0x2e7f97(0x14b)](),this[_0x2e7f97(0x16e)][_0x2e7f97(0x184)](_0x2e7f97(0x14e))['to'](this),this[_0x2e7f97(0x16b)]=this[_0x2e7f97(0x16d)](),this[_0x2e7f97(0x150)]=new _0x33ee64(),this[_0x2e7f97(0x164)]=new _0x4f59a1(),this[_0x2e7f97(0x15e)]=this[_0x2e7f97(0x19d)]([this[_0x2e7f97(0x15b)],this[_0x2e7f97(0x15b)][_0x2e7f97(0x155)],this[_0x2e7f97(0x16e)],this[_0x2e7f97(0x16b)]]),this[_0x2e7f97(0x158)]=new _0x4660de({'focusables':this[_0x2e7f97(0x15e)],'focusTracker':this[_0x2e7f97(0x150)],'keystrokeHandler':this[_0x2e7f97(0x164)],'actions':{'focusPrevious':_0x2e7f97(0x197),'focusNext':_0x2e7f97(0x16f)}}),this[_0x2e7f97(0x16b)][_0x2e7f97(0x158)]['on'](_0x2e7f97(0x180),_0x37fbb6=>{const _0x3ca4f5=_0x2e7f97;this[_0x3ca4f5(0x158)][_0x3ca4f5(0x159)](),_0x37fbb6[_0x3ca4f5(0x175)]();}),this[_0x2e7f97(0x16b)][_0x2e7f97(0x158)]['on'](_0x2e7f97(0x165),_0x109511=>{const _0x2d9b07=_0x2e7f97;this[_0x2d9b07(0x158)][_0x2d9b07(0x188)](),_0x109511[_0x2d9b07(0x175)]();}),this[_0x2e7f97(0x16b)][_0x2e7f97(0x182)][_0x2e7f97(0x178)][_0x2e7f97(0x184)](_0x2e7f97(0x15d))['to'](this,_0x2e7f97(0x194));const _0x142248=this[_0x2e7f97(0x157)];this[_0x2e7f97(0x14d)]({'tag':_0x2e7f97(0x154),'attributes':{'class':['ck',_0x2e7f97(0x19c),_0x32e668],'tabindex':'-1'},'children':[{'tag':_0x2e7f97(0x154),'attributes':{'class':['ck',_0x2e7f97(0x174)]},'children':[{'tag':_0x2e7f97(0x154),'attributes':{'class':[_0x142248['if'](_0x2e7f97(0x17c),_0x2e7f97(0x18c),_0x458fe2=>!_0x458fe2)]},'children':[this[_0x2e7f97(0x162)]]},this[_0x2e7f97(0x15b)],this[_0x2e7f97(0x16e)],this[_0x2e7f97(0x16b)]]}]});}[_0x4ad438(0x15c)](){const _0x5f3ff1=_0x4ad438;super[_0x5f3ff1(0x15c)](),this[_0x5f3ff1(0x150)][_0x5f3ff1(0x16c)](this[_0x5f3ff1(0x15b)][_0x5f3ff1(0x17f)]),this[_0x5f3ff1(0x150)][_0x5f3ff1(0x16c)](this[_0x5f3ff1(0x15b)][_0x5f3ff1(0x155)][_0x5f3ff1(0x17f)]),this[_0x5f3ff1(0x150)][_0x5f3ff1(0x16c)](this[_0x5f3ff1(0x16e)][_0x5f3ff1(0x17f)]),this[_0x5f3ff1(0x150)][_0x5f3ff1(0x16c)](this[_0x5f3ff1(0x16b)][_0x5f3ff1(0x17f)]),this[_0x5f3ff1(0x164)][_0x5f3ff1(0x14a)](this[_0x5f3ff1(0x17f)]);}[_0x4ad438(0x19b)](_0x71a581=0x1){const _0x2a71fb=_0x4ad438;-0x1===_0x71a581?this[_0x2a71fb(0x158)][_0x2a71fb(0x17e)]():this[_0x2a71fb(0x158)][_0x2a71fb(0x18b)]();}[_0x4ad438(0x17d)](){const _0x22c909=_0x4ad438;this[_0x22c909(0x194)]='',this[_0x22c909(0x15d)]='',this[_0x22c909(0x17c)]=!0x1,this[_0x22c909(0x16b)][_0x22c909(0x17d)](),this[_0x22c909(0x15b)][_0x22c909(0x199)]=!0x1,this[_0x22c909(0x16e)][_0x22c909(0x199)]=!0x1;}[_0x4ad438(0x16d)](){const _0x12376b=_0x4ad438,_0x2a790d=this[_0x12376b(0x18f)],_0x151841=new _0x2e5b5c(_0x2a790d,{'queryView':{'label':_0x4c0752(_0x2a790d,_0x12376b(0x156)),'creator':_0x666c26,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4c0752(_0x2a790d,_0x12376b(0x170)),'secondary':_0x4c0752(_0x2a790d,_0x12376b(0x17b))}}},'filteredView':this[_0x12376b(0x179)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x151841[_0x12376b(0x184)](_0x12376b(0x18d))['to'](this,_0x12376b(0x18d),this,_0x12376b(0x198),(_0x2dacae,_0x141452)=>_0x2dacae&&!_0x141452),this[_0x12376b(0x14a)](_0x151841,_0x12376b(0x186),(_0x2f8adf,_0x2f9db2)=>{const _0x573d2e=_0x12376b;this[_0x573d2e(0x194)]=_0x2f9db2;const _0x558c6d=_0x3a881a(_0x2f9db2);this[_0x573d2e(0x149)](_0x573d2e(0x185),_0x558c6d),_0x2f9db2[_0x573d2e(0x167)]()&&this[_0x573d2e(0x172)][_0x573d2e(0x16c)]({'prompt':_0x558c6d},0x0);},{'priority':_0x12376b(0x15f)}),_0x151841;}[_0x4ad438(0x179)](){const _0xef822=_0x4ad438,_0x3cab68=new _0x274dcb(this[_0xef822(0x18f)]);return _0x3cab68[_0xef822(0x181)][_0xef822(0x168)][_0xef822(0x161)](this[_0xef822(0x172)])['as'](_0x24110d),_0x3cab68['on'](_0xef822(0x193),()=>{const _0xd660f8=_0xef822;this[_0xd660f8(0x172)][_0xd660f8(0x14f)](),this[_0xd660f8(0x16b)][_0xd660f8(0x187)](''),this[_0xd660f8(0x16b)][_0xd660f8(0x19b)]();}),_0x3cab68;}[_0x4ad438(0x14b)](){const _0x1e4eec=_0x4ad438,_0x433451=new _0x1eecd0(this[_0x1e4eec(0x18f)]);return _0x433451[_0x1e4eec(0x160)][_0x1e4eec(0x184)](_0x1e4eec(0x18d))['to'](this,_0x1e4eec(0x18d),this,_0x1e4eec(0x198),this,_0x1e4eec(0x15d),(_0x4bfcdf,_0x8df7d0,_0x1ffd89)=>_0x4bfcdf&&!_0x8df7d0&&!!_0x1ffd89),_0x433451[_0x1e4eec(0x160)][_0x1e4eec(0x171)](_0x1e4eec(0x18e))['to'](this,_0x1e4eec(0x15a)),_0x433451[_0x1e4eec(0x14c)][_0x1e4eec(0x184)](_0x1e4eec(0x18d))['to'](this,_0x1e4eec(0x18d),this,_0x1e4eec(0x198),this,_0x1e4eec(0x15d),(_0x4e6d2f,_0x5a9118,_0x527192)=>_0x4e6d2f&&!_0x5a9118&&!!_0x527192),_0x433451[_0x1e4eec(0x14c)][_0x1e4eec(0x171)](_0x1e4eec(0x18e))['to'](this,_0x1e4eec(0x151)),_0x433451[_0x1e4eec(0x196)][_0x1e4eec(0x184)](_0x1e4eec(0x18d))['to'](this,_0x1e4eec(0x18d),this,_0x1e4eec(0x198),(_0x1c3023,_0x11336d)=>_0x1c3023&&!_0x11336d),_0x433451[_0x1e4eec(0x196)][_0x1e4eec(0x171)](_0x1e4eec(0x18e))['to'](this,_0x1e4eec(0x19f)),_0x433451[_0x1e4eec(0x177)][_0x1e4eec(0x184)](_0x1e4eec(0x18d))['to'](this,_0x1e4eec(0x198)),_0x433451[_0x1e4eec(0x177)][_0x1e4eec(0x171)](_0x1e4eec(0x18e))['to'](this,_0x1e4eec(0x16a)),_0x433451;}[_0x4ad438(0x163)](){const _0x2216a1=_0x4ad438;this[_0x2216a1(0x15d)]='',this[_0x2216a1(0x17c)]=!0x1,this[_0x2216a1(0x198)]=!0x0,this[_0x2216a1(0x15b)][_0x2216a1(0x199)]=!0x0,this[_0x2216a1(0x16e)][_0x2216a1(0x199)]=!0x0,this[_0x2216a1(0x15b)][_0x2216a1(0x19b)]();}[_0x4ad438(0x19a)](){const _0x4d3a23=_0x4ad438,_0x40a3fc=this[_0x4d3a23(0x18f)];this[_0x4d3a23(0x198)]=!0x1,this[_0x4d3a23(0x194)]='',this[_0x4d3a23(0x16b)][_0x4d3a23(0x17d)](),this[_0x4d3a23(0x15d)]&&(this[_0x4d3a23(0x16b)][_0x4d3a23(0x182)][_0x4d3a23(0x189)]=_0x4c0752(_0x40a3fc,_0x4d3a23(0x18a)));}[_0x4ad438(0x176)](_0x2c0836){const _0x11b9f2=_0x4ad438,_0x31656b=this[_0x11b9f2(0x18f)];this[_0x11b9f2(0x19a)](),this[_0x11b9f2(0x17c)]=!0x0,this[_0x11b9f2(0x162)][_0x11b9f2(0x153)]=_0x2c0836||_0x4c0752(_0x31656b,_0x11b9f2(0x195)),this[_0x11b9f2(0x15d)]||(this[_0x11b9f2(0x15b)][_0x11b9f2(0x199)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x709d98,_0x41c7ce){const _0xc7b0b6=_0x1464,_0xce0338=_0x709d98();while(!![]){try{const _0x22c94a=parseInt(_0xc7b0b6(0xf1))/0x1+-parseInt(_0xc7b0b6(0xf4))/0x2+parseInt(_0xc7b0b6(0xf8))/0x3+-parseInt(_0xc7b0b6(0xf6))/0x4+parseInt(_0xc7b0b6(0xf7))/0x5+-parseInt(_0xc7b0b6(0xf5))/0x6*(-parseInt(_0xc7b0b6(0xef))/0x7)+parseInt(_0xc7b0b6(0xec))/0x8*(-parseInt(_0xc7b0b6(0xed))/0x9);if(_0x22c94a===_0x41c7ce)break;else _0xce0338['push'](_0xce0338['shift']());}catch(_0xc5a065){_0xce0338['push'](_0xce0338['shift']());}}}(_0x1029,0xefa0a));import{ListItemView as _0x14937f,ButtonView as _0x276d4c}from'ckeditor5/src/ui.js';import _0x23cee6 from'../dropdown/buttonlabelwithhighlightview.js';function _0x1464(_0x2b887d,_0x183b65){const _0x102991=_0x1029();return _0x1464=function(_0x14647d,_0x15a62d){_0x14647d=_0x14647d-0xea;let _0x51fda1=_0x102991[_0x14647d];return _0x51fda1;},_0x1464(_0x2b887d,_0x183b65);}import{unescape as _0xce2c78}from'lodash-es';export default class hs extends _0x14937f{constructor(_0x47b437){const _0x2a66cd=_0x1464;super();const _0x3668e0=new _0x23cee6(),_0x58eac4=new _0x276d4c(this[_0x2a66cd(0xf2)],_0x3668e0);this[_0x2a66cd(0xf3)][_0x2a66cd(0xee)](_0x58eac4),_0x58eac4[_0x2a66cd(0xea)]({'label':_0x47b437[_0x2a66cd(0xeb)],'withText':!0x0}),_0x58eac4['on'](_0x2a66cd(0xf9),()=>{const _0x10beb3=_0x2a66cd;this[_0x10beb3(0xf0)](_0x10beb3(0xf9),{'value':_0xce2c78(_0x47b437[_0x10beb3(0xeb)])});});}}function _0x1029(){const _0x575661=['1303955hHbzeL','locale','children','797492haZGjr','982350mDQpbC','3991848FEzJwQ','6413490YmWkUo','1287966SrRgTv','execute','set','prompt','16vsPRZn','8027226uNgAGj','add','49kreWTG','fire'];_0x1029=function(){return _0x575661;};return _0x1029();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1fb892=_0x49b3;(function(_0x51c5f7,_0x14d1f9){const _0x2b6f7e=_0x49b3,_0x2539ed=_0x51c5f7();while(!![]){try{const _0x2ae54c=parseInt(_0x2b6f7e(0xb8))/0x1+parseInt(_0x2b6f7e(0xa4))/0x2+parseInt(_0x2b6f7e(0xb5))/0x3+parseInt(_0x2b6f7e(0xaf))/0x4+-parseInt(_0x2b6f7e(0xa2))/0x5*(-parseInt(_0x2b6f7e(0xb3))/0x6)+-parseInt(_0x2b6f7e(0xb2))/0x7*(parseInt(_0x2b6f7e(0xb0))/0x8)+parseInt(_0x2b6f7e(0xa9))/0x9*(-parseInt(_0x2b6f7e(0xbc))/0xa);if(_0x2ae54c===_0x14d1f9)break;else _0x2539ed['push'](_0x2539ed['shift']());}catch(_0x456c24){_0x2539ed['push'](_0x2539ed['shift']());}}}(_0xc91e,0x2fbd8));import{ListView as _0x1e2d33,ListItemGroupView as _0x1eed1a,ButtonView as _0x2db339}from'ckeditor5/src/ui.js';import{getTranslation as _0x1792eb}from'../../utils/common-translations.js';function _0xc91e(){const _0x12ddff=['Clear','1320431RtjYku','102CHchLL','add','347220aPYXMt','historyGroupView','label','242152xURGYS','clearHistory','Prompt\x20history','clearHistoryButton','2560210gTGpMS','1850EEYdml','fire','97036lzDnte','delegate','locale','set','filter','9suQngs','children','items','length','_createClearHistoryButton','execute','909992MXfDdd','8JSRDTH'];_0xc91e=function(){return _0x12ddff;};return _0xc91e();}function _0x49b3(_0xb4d76e,_0x599aaf){const _0xc91ea0=_0xc91e();return _0x49b3=function(_0x49b33a,_0x20f84d){_0x49b33a=_0x49b33a-0xa2;let _0x56b6cf=_0xc91ea0[_0x49b33a];return _0x56b6cf;},_0x49b3(_0xb4d76e,_0x599aaf);}export default class rs extends _0x1e2d33{constructor(_0x5be996){const _0x1d07d8=_0x49b3;super(_0x5be996),this[_0x1d07d8(0xbb)]=this[_0x1d07d8(0xad)](),this[_0x1d07d8(0xb6)]=new _0x1eed1a(),this[_0x1d07d8(0xb6)][_0x1d07d8(0xaa)][_0x1d07d8(0xb4)](this[_0x1d07d8(0xbb)],0x1),this[_0x1d07d8(0xb6)][_0x1d07d8(0xb7)]=_0x1792eb(_0x5be996,_0x1d07d8(0xba)),this[_0x1d07d8(0xb6)][_0x1d07d8(0xab)][_0x1d07d8(0xa5)](_0x1d07d8(0xae))['to'](this),this[_0x1d07d8(0xab)][_0x1d07d8(0xb4)](this[_0x1d07d8(0xb6)]);}[_0x1fb892(0xa8)](){const _0x3a8eee=_0x1fb892;let _0x59db07=0x0;for(const _0x120dca of this[_0x3a8eee(0xab)])_0x59db07+=_0x120dca[_0x3a8eee(0xab)][_0x3a8eee(0xac)];return{'resultsCount':_0x59db07,'totalItemsCount':_0x59db07};}[_0x1fb892(0xad)](){const _0x47e531=_0x1fb892,_0x17abd0=this[_0x47e531(0xa6)],_0x262d2e=new _0x2db339(this[_0x47e531(0xa6)]);return _0x262d2e[_0x47e531(0xa7)]({'label':'('+_0x1792eb(_0x17abd0,_0x47e531(0xb1))+')','withText':!0x0}),_0x262d2e['on'](_0x47e531(0xae),()=>this[_0x47e531(0xa3)](_0x47e531(0xb9))),_0x262d2e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x147906=_0x55a7;(function(_0x9f6d8d,_0x4345cd){const _0x5ecc78=_0x55a7,_0x2fda9a=_0x9f6d8d();while(!![]){try{const _0x577ecc=parseInt(_0x5ecc78(0x1d2))/0x1*(parseInt(_0x5ecc78(0x1bc))/0x2)+-parseInt(_0x5ecc78(0x1d0))/0x3*(-parseInt(_0x5ecc78(0x1c4))/0x4)+parseInt(_0x5ecc78(0x1cc))/0x5+parseInt(_0x5ecc78(0x1ce))/0x6+-parseInt(_0x5ecc78(0x1c0))/0x7+-parseInt(_0x5ecc78(0x1bd))/0x8*(parseInt(_0x5ecc78(0x1c2))/0x9)+-parseInt(_0x5ecc78(0x1c3))/0xa*(parseInt(_0x5ecc78(0x1c5))/0xb);if(_0x577ecc===_0x4345cd)break;else _0x2fda9a['push'](_0x2fda9a['shift']());}catch(_0x3ddf53){_0x2fda9a['push'](_0x2fda9a['shift']());}}}(_0x3de3,0x2809f));import{Collection as _0x4b49ac}from'ckeditor5/src/utils.js';function _0x55a7(_0x3b69b4,_0x1f880f){const _0x3de32a=_0x3de3();return _0x55a7=function(_0x55a708,_0x5ec71f){_0x55a708=_0x55a708-0x1bb;let _0x5b15ce=_0x3de32a[_0x55a708];return _0x5b15ce;},_0x55a7(_0x3b69b4,_0x1f880f);}const cs=_0x147906(0x1c6);function _0x3de3(){const _0x1b58aa=['addMany','length','setItem','26KDfjpq','8ATEMym','stringify','_loadFromSessionStorage','204743tThJCw','parse','665478BJeuiK','720gFTQOu','976424QESugm','57574wzfWGq','CKEditor/AIFormView/PromptHistory','trim','map','_saveToSessionStorage','add','last','1566600xMFYgV','remove','83106YHAHTH','getItem','3kMLYLv','prompt','5597oRMUmQ','toLowerCase'];_0x3de3=function(){return _0x1b58aa;};return _0x3de3();}export default class os extends _0x4b49ac{constructor(){const _0x1f7fcf=_0x147906;super(),this[_0x1f7fcf(0x1bf)](),this['on'](_0x1f7fcf(0x1ca),(_0x5e0871,_0x57c0cd)=>{const _0x5f1bf5=_0x1f7fcf,_0x2b3fd6=Ss(_0x57c0cd[_0x5f1bf5(0x1d1)]);for(const _0x3584ce of this)if(_0x3584ce!=_0x57c0cd&&Ss(_0x3584ce[_0x5f1bf5(0x1d1)])===_0x2b3fd6){this[_0x5f1bf5(0x1cd)](_0x3584ce);break;}this[_0x5f1bf5(0x1d5)]>0x14&&this[_0x5f1bf5(0x1cd)](this[_0x5f1bf5(0x1cb)]),this[_0x5f1bf5(0x1c9)]();}),this['on'](_0x1f7fcf(0x1cd),()=>{const _0x3c58ea=_0x1f7fcf;this[_0x3c58ea(0x1c9)]();});}[_0x147906(0x1bf)](){const _0x3e4ddf=_0x147906,_0x200892=sessionStorage[_0x3e4ddf(0x1cf)](cs)||'[]';this[_0x3e4ddf(0x1d4)](JSON[_0x3e4ddf(0x1c1)](_0x200892));}[_0x147906(0x1c9)](){const _0x21f33a=_0x147906;sessionStorage[_0x21f33a(0x1bb)](cs,JSON[_0x21f33a(0x1be)](this[_0x21f33a(0x1c8)](_0x230eb1=>_0x230eb1)));}}function Ss(_0x2346db){const _0x5538b0=_0x147906;return _0x2346db[_0x5538b0(0x1d3)]()[_0x5538b0(0x1c7)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1825f6=_0x3d6a;(function(_0x46e487,_0x3d34d8){const _0x9278a1=_0x3d6a,_0x57d499=_0x46e487();while(!![]){try{const _0x57b8aa=-parseInt(_0x9278a1(0x19b))/0x1+-parseInt(_0x9278a1(0x174))/0x2+parseInt(_0x9278a1(0x195))/0x3+parseInt(_0x9278a1(0x191))/0x4*(-parseInt(_0x9278a1(0x18a))/0x5)+-parseInt(_0x9278a1(0x199))/0x6*(-parseInt(_0x9278a1(0x17a))/0x7)+parseInt(_0x9278a1(0x183))/0x8*(parseInt(_0x9278a1(0x178))/0x9)+-parseInt(_0x9278a1(0x182))/0xa*(-parseInt(_0x9278a1(0x17e))/0xb);if(_0x57b8aa===_0x3d34d8)break;else _0x57d499['push'](_0x57d499['shift']());}catch(_0x3a29ff){_0x57d499['push'](_0x57d499['shift']());}}}(_0x5e76,0xb153d));import{Command as _0x1ab490}from'ckeditor5/src/core.js';import _0x1f4306 from'../aiassistantui.js';export default class j extends _0x1ab490{constructor(_0x1c4404,_0x2deafc){const _0xee77d1=_0x3d6a;super(_0x1c4404),this[_0xee77d1(0x18d)]=_0x2deafc?_0x2deafc[_0xee77d1(0x19d)]((_0xbb49b7,_0x1d3e20)=>_0xbb49b7[_0xee77d1(0x18f)](_0x1d3e20[_0xee77d1(0x194)]),new Array()):[],this[_0xee77d1(0x19c)](_0xee77d1(0x180),[]),this['on'](_0xee77d1(0x193),(_0x96026,_0x2e4fc5,_0x279781)=>{const _0x509233=_0xee77d1;this[_0x509233(0x19f)]&&(this[_0x509233(0x180)]=K(this[_0x509233(0x18d)],_0x279781));}),this[_0xee77d1(0x19c)](_0xee77d1(0x18c),!0x1),this['on'](_0xee77d1(0x187),(_0x255d73,_0x363180,_0x434480)=>{const _0x5adf70=_0xee77d1;this[_0x5adf70(0x180)]=_0x434480?K(this[_0x5adf70(0x18d)],this[_0x5adf70(0x18c)]):[];});}[_0x1825f6(0x185)](){const _0x2d5bca=_0x1825f6,_0x33ca13=this[_0x2d5bca(0x186)][_0x2d5bca(0x19e)];this[_0x2d5bca(0x18c)]=function(_0x5efb62){const _0x541bbe=_0x2d5bca,_0x38a056=_0x5efb62[_0x541bbe(0x177)][_0x541bbe(0x175)];return _0x38a056[_0x541bbe(0x17c)]?0x0!==[..._0x38a056[_0x541bbe(0x192)]()][_0x541bbe(0x171)]&&![..._0x38a056[_0x541bbe(0x192)]()][0x0][_0x541bbe(0x17f)]:!!_0x5efb62[_0x541bbe(0x17d)](_0x38a056[_0x541bbe(0x172)]());}(_0x33ca13);const _0x542ae6=_0x33ca13[_0x2d5bca(0x177)][_0x2d5bca(0x175)],_0x5b5f37=this[_0x2d5bca(0x186)][_0x2d5bca(0x179)][_0x2d5bca(0x176)](_0x2d5bca(0x18e));for(const _0x19bfa9 of _0x542ae6[_0x2d5bca(0x197)]())for(const _0x2a902a of _0x19bfa9[_0x2d5bca(0x181)]())if(_0x2a902a['is'](_0x2d5bca(0x173))&&_0x5b5f37[_0x2d5bca(0x188)](_0x2a902a[_0x2d5bca(0x184)]))return void(this[_0x2d5bca(0x19f)]=!0x1);this[_0x2d5bca(0x19f)]=!0x0;}[_0x1825f6(0x190)](_0x232067='',_0x49da92='',_0x1749ae=_0x1825f6(0x19a)){const _0x409a86=_0x1825f6;this[_0x409a86(0x186)][_0x409a86(0x196)][_0x409a86(0x176)](_0x1f4306)[_0x409a86(0x189)](_0x232067,_0x49da92,_0x1749ae);}}function _0x3d6a(_0x5920b3,_0x2d2124){const _0x5e7647=_0x5e76();return _0x3d6a=function(_0x3d6a4c,_0x1a1157){_0x3d6a4c=_0x3d6a4c-0x171;let _0xb6a5c=_0x5e7647[_0x3d6a4c];return _0xb6a5c;},_0x3d6a(_0x5920b3,_0x2d2124);}function _0x5e76(){const _0x5da94f=['2587568DQLCin','selection','get','document','387MIagdY','config','28SmZdIK','requiresContent','isCollapsed','hasContent','25091bAegFy','isEmpty','enabledCommandsIds','getItems','3530ZmLdTZ','267752WUjjsU','name','refresh','editor','change:isEnabled','includes','showUI','2162855mFqcet','add','_hasContext','_commandDefinitions','ai.aiAssistant.disabledElements','concat','execute','4CEKfPa','getSelectedBlocks','change:_hasContext','commands','1344876NhOVXO','plugins','getRanges','from','940818tbTQQn','custom','867176eVXXMV','set','reduce','model','isEnabled','length','getFirstRange','element'];_0x5e76=function(){return _0x5da94f;};return _0x5e76();}function K(_0x2727ed,_0x2a988c){const _0x9603ea=_0x1825f6,_0x297f7f=new Set();for(const _0x575c48 of _0x2727ed)(_0x2a988c||!0x1===_0x575c48[_0x9603ea(0x17b)])&&_0x297f7f[_0x9603ea(0x18b)](_0x575c48['id']);return Array[_0x9603ea(0x198)](_0x297f7f);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2cbe2a,_0x1e49a9,_0x536c6b){const t=_0x2cbe2a['t'];switch(_0x1e49a9){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'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x536c6b);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',_0x536c6b);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x536c6b);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'},_0x536c6b);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 _0x1e49a9;}}
|